@girs/amtk-5 5.0.0-4.0.3 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/amtk-5.d.ts CHANGED
@@ -266,40 +266,40 @@ export namespace Amtk {
266
266
  /**
267
267
  * No flags.
268
268
  */
269
- FLAGS_NONE,
269
+ FLAGS_NONE = 0,
270
270
  /**
271
271
  * Do not associate the created object with the
272
272
  * {@link Gio.Action}. For example if the object to create is a {@link Gtk.Actionable}, do not
273
273
  * call `gtk_actionable_set_detailed_action_name()`.
274
274
  */
275
- IGNORE_GACTION,
275
+ IGNORE_GACTION = 1,
276
276
  /**
277
277
  * Do not set an icon.
278
278
  */
279
- IGNORE_ICON,
279
+ IGNORE_ICON = 2,
280
280
  /**
281
281
  * Do not set a label/short description.
282
282
  */
283
- IGNORE_LABEL,
283
+ IGNORE_LABEL = 4,
284
284
  /**
285
285
  * Do not set a tooltip/long description.
286
286
  */
287
- IGNORE_TOOLTIP,
287
+ IGNORE_TOOLTIP = 8,
288
288
  /**
289
289
  * Ignore completely the accelerators.
290
290
  */
291
- IGNORE_ACCELS,
291
+ IGNORE_ACCELS = 16,
292
292
  /**
293
293
  * Ignore the accelerators for
294
294
  * documentation purposes only. For example do not add/configure a
295
295
  * {@link Gtk.AccelLabel}.
296
296
  */
297
- IGNORE_ACCELS_FOR_DOC,
297
+ IGNORE_ACCELS_FOR_DOC = 32,
298
298
  /**
299
299
  * Do not call
300
300
  * `gtk_application_set_accels_for_action()`.
301
301
  */
302
- IGNORE_ACCELS_FOR_APP,
302
+ IGNORE_ACCELS_FOR_APP = 64,
303
303
  }
304
304
 
305
305
 
@@ -334,23 +334,24 @@ export namespace Amtk {
334
334
  // Signals
335
335
  /** @signal */
336
336
  connect<K extends keyof ActionInfoCentralStore.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, ActionInfoCentralStore.SignalSignatures[K]>): number;
337
- connect(signal: string, callback: (...args: any[]) => any): number;
338
337
 
339
338
  /** @signal */
340
339
  connect_after<K extends keyof ActionInfoCentralStore.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, ActionInfoCentralStore.SignalSignatures[K]>): number;
341
- connect_after(signal: string, callback: (...args: any[]) => any): number;
342
340
 
343
341
  /** @signal */
344
- emit<K extends keyof ActionInfoCentralStore.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<ActionInfoCentralStore.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
345
- emit(signal: string, ...args: any[]): void;
342
+ emit<K extends keyof ActionInfoCentralStore.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<ActionInfoCentralStore.SignalSignatures[K]>): void;
346
343
 
347
344
  // Static methods
345
+ /**
346
+ * @since 3.0
347
+ */
348
348
  static get_singleton(): ActionInfoCentralStore;
349
349
 
350
350
  // Methods
351
351
  /**
352
352
  * @param action_name an action name.
353
353
  * @returns the found {@link Amtk.ActionInfo}, or `null`.
354
+ * @since 2.0
354
355
  */
355
356
  lookup(action_name: string): ActionInfo;
356
357
  }
@@ -389,15 +390,12 @@ export namespace Amtk {
389
390
  // Signals
390
391
  /** @signal */
391
392
  connect<K extends keyof ActionInfoStore.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, ActionInfoStore.SignalSignatures[K]>): number;
392
- connect(signal: string, callback: (...args: any[]) => any): number;
393
393
 
394
394
  /** @signal */
395
395
  connect_after<K extends keyof ActionInfoStore.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, ActionInfoStore.SignalSignatures[K]>): number;
396
- connect_after(signal: string, callback: (...args: any[]) => any): number;
397
396
 
398
397
  /** @signal */
399
- emit<K extends keyof ActionInfoStore.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<ActionInfoStore.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
400
- emit(signal: string, ...args: any[]): void;
398
+ emit<K extends keyof ActionInfoStore.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<ActionInfoStore.SignalSignatures[K]>): void;
401
399
 
402
400
  // Methods
403
401
  /**
@@ -406,6 +404,7 @@ export namespace Amtk {
406
404
  * {@link Amtk.ActionInfo} with the same action name. The stores take their own
407
405
  * reference on `info`.
408
406
  * @param info an {@link Amtk.ActionInfo}.
407
+ * @since 2.0
409
408
  */
410
409
  add(info: ActionInfo): void;
411
410
 
@@ -418,6 +417,7 @@ export namespace Amtk {
418
417
  * An API similar to `g_action_map_add_action_entries()`.
419
418
  * @param entries a pointer to the first item in an array of {@link Amtk.ActionInfoEntry} structs.
420
419
  * @param translation_domain a gettext domain, or `null`.
420
+ * @since 2.0
421
421
  */
422
422
  add_entries(entries: ActionInfoEntry[], translation_domain: string | null): void;
423
423
 
@@ -429,12 +429,14 @@ export namespace Amtk {
429
429
  * You probably want to call this function on the application store after
430
430
  * creating the menu and toolbar. But it can also be useful for a store provided
431
431
  * by a library, to easily see which actions are not used by the application.
432
+ * @since 2.0
432
433
  */
433
434
  check_all_used(): void;
434
435
 
435
436
  /**
436
437
  * @param action_name an action name.
437
438
  * @returns the found {@link Amtk.ActionInfo}, or `null`.
439
+ * @since 2.0
438
440
  */
439
441
  lookup(action_name: string): ActionInfo;
440
442
 
@@ -462,6 +464,7 @@ export namespace Amtk {
462
464
  * {@link Amtk.Factory}, containing information about actions that are not added to any
463
465
  * menu or toolbar.
464
466
  * @param application a {@link Gtk.Application}.
467
+ * @since 5.0
465
468
  */
466
469
  set_all_accels_to_app(application: Gtk.Application): void;
467
470
  }
@@ -527,15 +530,12 @@ export namespace Amtk {
527
530
  // Signals
528
531
  /** @signal */
529
532
  connect<K extends keyof ApplicationWindow.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, ApplicationWindow.SignalSignatures[K]>): number;
530
- connect(signal: string, callback: (...args: any[]) => any): number;
531
533
 
532
534
  /** @signal */
533
535
  connect_after<K extends keyof ApplicationWindow.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, ApplicationWindow.SignalSignatures[K]>): number;
534
- connect_after(signal: string, callback: (...args: any[]) => any): number;
535
536
 
536
537
  /** @signal */
537
- emit<K extends keyof ApplicationWindow.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<ApplicationWindow.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
538
- emit(signal: string, ...args: any[]): void;
538
+ emit<K extends keyof ApplicationWindow.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<ApplicationWindow.SignalSignatures[K]>): void;
539
539
 
540
540
  // Static methods
541
541
  /**
@@ -546,6 +546,7 @@ export namespace Amtk {
546
546
  * are added to the default {@link Gtk.RecentManager} with
547
547
  * `gtk_recent_manager_add_item()`, the files will normally show up in the
548
548
  * {@link Gtk.RecentChooserMenu}.
549
+ * @since 5.6
549
550
  */
550
551
  static create_open_recent_menu_base(): Gtk.RecentChooserMenu;
551
552
 
@@ -553,6 +554,7 @@ export namespace Amtk {
553
554
  * Returns the {@link Amtk.ApplicationWindow} of `gtk_window`. The returned object is
554
555
  * guaranteed to be the same for the lifetime of `gtk_window`.
555
556
  * @param gtk_window a {@link Gtk.ApplicationWindow}.
557
+ * @since 2.0
556
558
  */
557
559
  static get_from_gtk_application_window(gtk_window: Gtk.ApplicationWindow): ApplicationWindow;
558
560
 
@@ -566,6 +568,7 @@ export namespace Amtk {
566
568
  * So `amtk_menu_item_set_long_description()` must have been called, which is the
567
569
  * case if the {@link Gtk.MenuItem} has been created with {@link Amtk.Factory}.
568
570
  * @param menu_shell a {@link Gtk.MenuShell}.
571
+ * @since 2.0
569
572
  */
570
573
  connect_menu_to_statusbar(menu_shell: Gtk.MenuShell): void;
571
574
 
@@ -577,6 +580,7 @@ export namespace Amtk {
577
580
  * The full path is retrieved with
578
581
  * `amtk_utils_recent_chooser_menu_get_item_uri()`.
579
582
  * @param menu a {@link Gtk.RecentChooserMenu}.
583
+ * @since 2.0
580
584
  */
581
585
  connect_recent_chooser_menu_to_statusbar(menu: Gtk.RecentChooserMenu): void;
582
586
 
@@ -592,6 +596,7 @@ export namespace Amtk {
592
596
  * `g_application_open()` is called (with an empty hint), so the {@link Gio.Application}
593
597
  * must have the {@link Gio.ApplicationFlags.HANDLES_OPEN} flag set.
594
598
  * @returns a new {@link Gtk.RecentChooserMenu}.
599
+ * @since 3.0
595
600
  */
596
601
  create_open_recent_menu(): Gtk.Widget;
597
602
 
@@ -600,22 +605,26 @@ export namespace Amtk {
600
605
  * submenu. The {@link Gtk.RecentChooserMenu} is created with
601
606
  * `amtk_application_window_create_open_recent_menu()`.
602
607
  * @returns a new {@link Gtk.MenuItem}.
608
+ * @since 2.0
603
609
  */
604
610
  create_open_recent_menu_item(): Gtk.Widget;
605
611
 
606
612
  /**
607
613
  * @returns the {@link Gtk.ApplicationWindow} of `amtk_window`.
614
+ * @since 2.0
608
615
  */
609
616
  get_application_window(): Gtk.ApplicationWindow;
610
617
 
611
618
  /**
612
619
  * @returns the {@link Amtk.ApplicationWindow.statusbar}.
620
+ * @since 2.0
613
621
  */
614
622
  get_statusbar(): Gtk.Statusbar | null;
615
623
 
616
624
  /**
617
625
  * Sets the {@link Amtk.ApplicationWindow.statusbar} property.
618
626
  * @param statusbar a {@link Gtk.Statusbar}, or `null`.
627
+ * @since 2.0
619
628
  */
620
629
  set_statusbar(statusbar: Gtk.Statusbar | null): void;
621
630
  }
@@ -688,15 +697,12 @@ export namespace Amtk {
688
697
  // Signals
689
698
  /** @signal */
690
699
  connect<K extends keyof Factory.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Factory.SignalSignatures[K]>): number;
691
- connect(signal: string, callback: (...args: any[]) => any): number;
692
700
 
693
701
  /** @signal */
694
702
  connect_after<K extends keyof Factory.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Factory.SignalSignatures[K]>): number;
695
- connect_after(signal: string, callback: (...args: any[]) => any): number;
696
703
 
697
704
  /** @signal */
698
- emit<K extends keyof Factory.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Factory.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
699
- emit(signal: string, ...args: any[]): void;
705
+ emit<K extends keyof Factory.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Factory.SignalSignatures[K]>): void;
700
706
 
701
707
  // Methods
702
708
  /**
@@ -707,6 +713,7 @@ export namespace Amtk {
707
713
  * information.
708
714
  * @param action_name an action name.
709
715
  * @returns a new {@link Gtk.CheckMenuItem} for `action_name`.
716
+ * @since 3.0
710
717
  */
711
718
  create_check_menu_item(action_name: string): Gtk.Widget;
712
719
 
@@ -722,6 +729,7 @@ export namespace Amtk {
722
729
  * @param action_name an action name.
723
730
  * @param flags {@link Amtk.FactoryFlags}.
724
731
  * @returns a new {@link Gtk.CheckMenuItem} for `action_name`.
732
+ * @since 3.0
725
733
  */
726
734
  create_check_menu_item_full(action_name: string, flags: FactoryFlags): Gtk.Widget;
727
735
 
@@ -730,6 +738,7 @@ export namespace Amtk {
730
738
  * {@link Amtk.Factory.default_flags}.
731
739
  * @param action_name an action name.
732
740
  * @returns a new {@link Gio.MenuItem} for `action_name`.
741
+ * @since 5.0
733
742
  */
734
743
  create_gmenu_item(action_name: string): Gio.MenuItem;
735
744
 
@@ -742,6 +751,7 @@ export namespace Amtk {
742
751
  * @param action_name an action name.
743
752
  * @param flags {@link Amtk.FactoryFlags}.
744
753
  * @returns a new {@link Gio.MenuItem} for `action_name`.
754
+ * @since 5.0
745
755
  */
746
756
  create_gmenu_item_full(action_name: string, flags: FactoryFlags): Gio.MenuItem;
747
757
 
@@ -750,6 +760,7 @@ export namespace Amtk {
750
760
  * {@link Amtk.Factory.default_flags}.
751
761
  * @param action_name an action name.
752
762
  * @returns a new {@link Gtk.MenuItem} for `action_name`.
763
+ * @since 3.0
753
764
  */
754
765
  create_menu_item(action_name: string): Gtk.Widget;
755
766
 
@@ -759,6 +770,7 @@ export namespace Amtk {
759
770
  * @param action_name an action name.
760
771
  * @param flags {@link Amtk.FactoryFlags}.
761
772
  * @returns a new {@link Gtk.MenuItem} for `action_name`.
773
+ * @since 3.0
762
774
  */
763
775
  create_menu_item_full(action_name: string, flags: FactoryFlags): Gtk.Widget;
764
776
 
@@ -770,6 +782,7 @@ export namespace Amtk {
770
782
  * information.
771
783
  * @param action_name an action name.
772
784
  * @returns a new {@link Gtk.MenuToolButton} for `action_name`.
785
+ * @since 3.0
773
786
  */
774
787
  create_menu_tool_button(action_name: string): Gtk.MenuToolButton;
775
788
 
@@ -782,6 +795,7 @@ export namespace Amtk {
782
795
  * @param action_name an action name.
783
796
  * @param flags {@link Amtk.FactoryFlags}.
784
797
  * @returns a new {@link Gtk.MenuToolButton} for `action_name`.
798
+ * @since 3.0
785
799
  */
786
800
  create_menu_tool_button_full(action_name: string, flags: FactoryFlags): Gtk.MenuToolButton;
787
801
 
@@ -790,6 +804,7 @@ export namespace Amtk {
790
804
  * {@link Amtk.Factory.default_flags}.
791
805
  * @param action_name an action name.
792
806
  * @returns a new {@link Gtk.ShortcutsShortcut} for `action_name`.
807
+ * @since 5.0
793
808
  */
794
809
  create_shortcut(action_name: string): Gtk.Widget;
795
810
 
@@ -818,6 +833,7 @@ export namespace Amtk {
818
833
  * @param action_name an action name.
819
834
  * @param flags {@link Amtk.FactoryFlags}.
820
835
  * @returns a new {@link Gtk.ShortcutsShortcut} for `action_name`.
836
+ * @since 5.0
821
837
  */
822
838
  create_shortcut_full(action_name: string, flags: FactoryFlags): Gtk.Widget;
823
839
 
@@ -826,6 +842,7 @@ export namespace Amtk {
826
842
  * {@link Amtk.Factory.default_flags}.
827
843
  * @param entries a pointer to the first item in an array of {@link Amtk.ActionInfoEntry} structs.
828
844
  * @returns a new simple {@link Gtk.Menu} for `entries`.
845
+ * @since 5.0
829
846
  */
830
847
  create_simple_menu(entries: ActionInfoEntry[]): Gtk.Widget;
831
848
 
@@ -845,6 +862,7 @@ export namespace Amtk {
845
862
  * @param entries a pointer to the first item in an array of {@link Amtk.ActionInfoEntry} structs.
846
863
  * @param flags {@link Amtk.FactoryFlags}.
847
864
  * @returns a new simple {@link Gtk.Menu} for `entries`.
865
+ * @since 5.0
848
866
  */
849
867
  create_simple_menu_full(entries: ActionInfoEntry[], flags: FactoryFlags): Gtk.Widget;
850
868
 
@@ -853,6 +871,7 @@ export namespace Amtk {
853
871
  * {@link Amtk.Factory.default_flags}.
854
872
  * @param action_name an action name.
855
873
  * @returns a new {@link Gtk.ToolButton} for `action_name`.
874
+ * @since 3.0
856
875
  */
857
876
  create_tool_button(action_name: string): Gtk.ToolItem;
858
877
 
@@ -862,22 +881,26 @@ export namespace Amtk {
862
881
  * @param action_name an action name.
863
882
  * @param flags {@link Amtk.FactoryFlags}.
864
883
  * @returns a new {@link Gtk.ToolButton} for `action_name`.
884
+ * @since 3.0
865
885
  */
866
886
  create_tool_button_full(action_name: string, flags: FactoryFlags): Gtk.ToolItem;
867
887
 
868
888
  /**
869
889
  * @returns the {@link Amtk.Factory.application}.
890
+ * @since 3.0
870
891
  */
871
892
  get_application(): Gtk.Application | null;
872
893
 
873
894
  /**
874
895
  * @returns the {@link Amtk.Factory.default_flags}.
896
+ * @since 3.0
875
897
  */
876
898
  get_default_flags(): FactoryFlags;
877
899
 
878
900
  /**
879
901
  * Sets the {@link Amtk.Factory.default_flags} property.
880
902
  * @param default_flags the new value.
903
+ * @since 3.0
881
904
  */
882
905
  set_default_flags(default_flags: FactoryFlags): void;
883
906
  }
@@ -894,7 +917,7 @@ export namespace Amtk {
894
917
  * @since 2.0
895
918
  * @run-first
896
919
  */
897
- "menu-item-deselected": (arg0: Gtk.MenuItem) => void;
920
+ "menu-item-deselected": (menu_item: Gtk.MenuItem) => void;
898
921
  /**
899
922
  * The ::menu-item-selected signal is emitted when the
900
923
  * {@link Gtk.MenuItem.SignalSignatures.select | Gtk.MenuItem::select} signal is emitted on a {@link Gtk.MenuItem} belonging
@@ -903,7 +926,7 @@ export namespace Amtk {
903
926
  * @since 2.0
904
927
  * @run-first
905
928
  */
906
- "menu-item-selected": (arg0: Gtk.MenuItem) => void;
929
+ "menu-item-selected": (menu_item: Gtk.MenuItem) => void;
907
930
  "notify::menu-shell": (pspec: GObject.ParamSpec) => void;
908
931
  }
909
932
 
@@ -952,21 +975,19 @@ export namespace Amtk {
952
975
  // Signals
953
976
  /** @signal */
954
977
  connect<K extends keyof MenuShell.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, MenuShell.SignalSignatures[K]>): number;
955
- connect(signal: string, callback: (...args: any[]) => any): number;
956
978
 
957
979
  /** @signal */
958
980
  connect_after<K extends keyof MenuShell.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, MenuShell.SignalSignatures[K]>): number;
959
- connect_after(signal: string, callback: (...args: any[]) => any): number;
960
981
 
961
982
  /** @signal */
962
- emit<K extends keyof MenuShell.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<MenuShell.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
963
- emit(signal: string, ...args: any[]): void;
983
+ emit<K extends keyof MenuShell.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<MenuShell.SignalSignatures[K]>): void;
964
984
 
965
985
  // Static methods
966
986
  /**
967
987
  * Returns the {@link Amtk.MenuShell} of `gtk_menu_shell`. The returned object is
968
988
  * guaranteed to be the same for the lifetime of `gtk_menu_shell`.
969
989
  * @param gtk_menu_shell a {@link Gtk.MenuShell}.
990
+ * @since 2.0
970
991
  */
971
992
  static get_from_gtk_menu_shell(gtk_menu_shell: Gtk.MenuShell): MenuShell;
972
993
 
@@ -986,11 +1007,155 @@ export namespace Amtk {
986
1007
  // Methods
987
1008
  /**
988
1009
  * @returns the {@link Gtk.MenuShell} of `amtk_menu_shell`.
1010
+ * @since 2.0
989
1011
  */
990
1012
  get_menu_shell(): Gtk.MenuShell;
991
1013
  }
992
1014
 
993
1015
 
1016
+ namespace TreeViewScrolledWindowSizing {
1017
+ // Signal signatures
1018
+ interface SignalSignatures extends Gtk.ScrolledWindow.SignalSignatures {
1019
+ "notify::monitor-limit-enabled": (pspec: GObject.ParamSpec) => void;
1020
+ "notify::hadjustment": (pspec: GObject.ParamSpec) => void;
1021
+ "notify::hscrollbar-policy": (pspec: GObject.ParamSpec) => void;
1022
+ "notify::kinetic-scrolling": (pspec: GObject.ParamSpec) => void;
1023
+ "notify::max-content-height": (pspec: GObject.ParamSpec) => void;
1024
+ "notify::max-content-width": (pspec: GObject.ParamSpec) => void;
1025
+ "notify::min-content-height": (pspec: GObject.ParamSpec) => void;
1026
+ "notify::min-content-width": (pspec: GObject.ParamSpec) => void;
1027
+ "notify::overlay-scrolling": (pspec: GObject.ParamSpec) => void;
1028
+ "notify::propagate-natural-height": (pspec: GObject.ParamSpec) => void;
1029
+ "notify::propagate-natural-width": (pspec: GObject.ParamSpec) => void;
1030
+ "notify::shadow-type": (pspec: GObject.ParamSpec) => void;
1031
+ "notify::vadjustment": (pspec: GObject.ParamSpec) => void;
1032
+ "notify::vscrollbar-policy": (pspec: GObject.ParamSpec) => void;
1033
+ "notify::window-placement": (pspec: GObject.ParamSpec) => void;
1034
+ "notify::window-placement-set": (pspec: GObject.ParamSpec) => void;
1035
+ "notify::border-width": (pspec: GObject.ParamSpec) => void;
1036
+ "notify::child": (pspec: GObject.ParamSpec) => void;
1037
+ "notify::resize-mode": (pspec: GObject.ParamSpec) => void;
1038
+ "notify::app-paintable": (pspec: GObject.ParamSpec) => void;
1039
+ "notify::can-default": (pspec: GObject.ParamSpec) => void;
1040
+ "notify::can-focus": (pspec: GObject.ParamSpec) => void;
1041
+ "notify::composite-child": (pspec: GObject.ParamSpec) => void;
1042
+ "notify::double-buffered": (pspec: GObject.ParamSpec) => void;
1043
+ "notify::events": (pspec: GObject.ParamSpec) => void;
1044
+ "notify::expand": (pspec: GObject.ParamSpec) => void;
1045
+ "notify::focus-on-click": (pspec: GObject.ParamSpec) => void;
1046
+ "notify::halign": (pspec: GObject.ParamSpec) => void;
1047
+ "notify::has-default": (pspec: GObject.ParamSpec) => void;
1048
+ "notify::has-focus": (pspec: GObject.ParamSpec) => void;
1049
+ "notify::has-tooltip": (pspec: GObject.ParamSpec) => void;
1050
+ "notify::height-request": (pspec: GObject.ParamSpec) => void;
1051
+ "notify::hexpand": (pspec: GObject.ParamSpec) => void;
1052
+ "notify::hexpand-set": (pspec: GObject.ParamSpec) => void;
1053
+ "notify::is-focus": (pspec: GObject.ParamSpec) => void;
1054
+ "notify::margin": (pspec: GObject.ParamSpec) => void;
1055
+ "notify::margin-bottom": (pspec: GObject.ParamSpec) => void;
1056
+ "notify::margin-end": (pspec: GObject.ParamSpec) => void;
1057
+ "notify::margin-left": (pspec: GObject.ParamSpec) => void;
1058
+ "notify::margin-right": (pspec: GObject.ParamSpec) => void;
1059
+ "notify::margin-start": (pspec: GObject.ParamSpec) => void;
1060
+ "notify::margin-top": (pspec: GObject.ParamSpec) => void;
1061
+ "notify::name": (pspec: GObject.ParamSpec) => void;
1062
+ "notify::no-show-all": (pspec: GObject.ParamSpec) => void;
1063
+ "notify::opacity": (pspec: GObject.ParamSpec) => void;
1064
+ "notify::parent": (pspec: GObject.ParamSpec) => void;
1065
+ "notify::receives-default": (pspec: GObject.ParamSpec) => void;
1066
+ "notify::scale-factor": (pspec: GObject.ParamSpec) => void;
1067
+ "notify::sensitive": (pspec: GObject.ParamSpec) => void;
1068
+ "notify::style": (pspec: GObject.ParamSpec) => void;
1069
+ "notify::tooltip-markup": (pspec: GObject.ParamSpec) => void;
1070
+ "notify::tooltip-text": (pspec: GObject.ParamSpec) => void;
1071
+ "notify::valign": (pspec: GObject.ParamSpec) => void;
1072
+ "notify::vexpand": (pspec: GObject.ParamSpec) => void;
1073
+ "notify::vexpand-set": (pspec: GObject.ParamSpec) => void;
1074
+ "notify::visible": (pspec: GObject.ParamSpec) => void;
1075
+ "notify::width-request": (pspec: GObject.ParamSpec) => void;
1076
+ "notify::window": (pspec: GObject.ParamSpec) => void;
1077
+ }
1078
+
1079
+ // Constructor properties interface
1080
+ interface ConstructorProps extends Gtk.ScrolledWindow.ConstructorProps, Atk.ImplementorIface.ConstructorProps, Gtk.Buildable.ConstructorProps {
1081
+ monitor_limit_enabled: boolean;
1082
+ monitorLimitEnabled: boolean;
1083
+ }
1084
+ }
1085
+
1086
+ /**
1087
+ * @gir-type Class
1088
+ */
1089
+ class TreeViewScrolledWindowSizing extends Gtk.ScrolledWindow implements Atk.ImplementorIface, Gtk.Buildable {
1090
+ static $gtype: GObject.GType<TreeViewScrolledWindowSizing>;
1091
+
1092
+ // Properties
1093
+ /**
1094
+ * Whether to take the {@link Gdk.Monitor} size into account as a maximum width
1095
+ * and height to apply.
1096
+ * @since 5.10
1097
+ * @default true
1098
+ */
1099
+ get monitor_limit_enabled(): boolean;
1100
+ set monitor_limit_enabled(val: boolean);
1101
+
1102
+ /**
1103
+ * Whether to take the {@link Gdk.Monitor} size into account as a maximum width
1104
+ * and height to apply.
1105
+ * @since 5.10
1106
+ * @default true
1107
+ */
1108
+ get monitorLimitEnabled(): boolean;
1109
+ set monitorLimitEnabled(val: boolean);
1110
+
1111
+ /**
1112
+ * Compile-time signal type information.
1113
+ *
1114
+ * This instance property is generated only for TypeScript type checking.
1115
+ * It is not defined at runtime and should not be accessed in JS code.
1116
+ * @internal
1117
+ */
1118
+ $signals: TreeViewScrolledWindowSizing.SignalSignatures;
1119
+
1120
+ // Constructors
1121
+ constructor(properties?: Partial<TreeViewScrolledWindowSizing.ConstructorProps>, ...args: any[]);
1122
+
1123
+ _init(...args: any[]): void;
1124
+
1125
+ static ["new"](): TreeViewScrolledWindowSizing;
1126
+
1127
+ // Signals
1128
+ /** @signal */
1129
+ connect<K extends keyof TreeViewScrolledWindowSizing.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, TreeViewScrolledWindowSizing.SignalSignatures[K]>): number;
1130
+
1131
+ /** @signal */
1132
+ connect_after<K extends keyof TreeViewScrolledWindowSizing.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, TreeViewScrolledWindowSizing.SignalSignatures[K]>): number;
1133
+
1134
+ /** @signal */
1135
+ emit<K extends keyof TreeViewScrolledWindowSizing.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<TreeViewScrolledWindowSizing.SignalSignatures[K]>): void;
1136
+
1137
+ // Methods
1138
+ /**
1139
+ * @returns the current value of the {@link Amtk.TreeViewScrolledWindowSizing.monitor_limit_enabled} property.
1140
+ * @since 5.10
1141
+ */
1142
+ get_monitor_limit(): boolean;
1143
+
1144
+ /**
1145
+ * @returns the {@link Gtk.TreeView}, if the child widget is a {@link Gtk.TreeView}. Otherwise `null` is returned.
1146
+ * @since 5.10
1147
+ */
1148
+ get_tree_view(): Gtk.TreeView | null;
1149
+
1150
+ /**
1151
+ * Sets the {@link Amtk.TreeViewScrolledWindowSizing.monitor_limit_enabled} property.
1152
+ * @param monitor_limit the new value.
1153
+ * @since 5.10
1154
+ */
1155
+ set_monitor_limit(monitor_limit: boolean): void;
1156
+ }
1157
+
1158
+
994
1159
  /**
995
1160
  * @gir-type Struct
996
1161
  */
@@ -1007,6 +1172,7 @@ export namespace Amtk {
1007
1172
  // Methods
1008
1173
  /**
1009
1174
  * @returns a copy of `info`. The copy will have a reference count of one.
1175
+ * @since 2.0
1010
1176
  */
1011
1177
  copy(): ActionInfo;
1012
1178
 
@@ -1015,16 +1181,19 @@ export namespace Amtk {
1015
1181
  * returns a `null`-terminated array, to be suitable for
1016
1182
  * `gtk_application_set_accels_for_action()`.
1017
1183
  * @returns a `null`-terminated array of accelerators in the format understood by `gtk_accelerator_parse()`.
1184
+ * @since 2.0
1018
1185
  */
1019
1186
  get_accels(): string[];
1020
1187
 
1021
1188
  /**
1022
1189
  * @returns the action name, or `null`. Example: `"win.save"`. Can be a detailed action name, see `g_action_parse_detailed_name()`.
1190
+ * @since 2.0
1023
1191
  */
1024
1192
  get_action_name(): string | null;
1025
1193
 
1026
1194
  /**
1027
1195
  * @returns the icon name, or `null`.
1196
+ * @since 2.0
1028
1197
  */
1029
1198
  get_icon_name(): string | null;
1030
1199
 
@@ -1032,11 +1201,13 @@ export namespace Amtk {
1032
1201
  * Gets the label. The label has normally a mnemonic. To remove the mnemonic,
1033
1202
  * there is the `amtk_utils_remove_mnemonic()` function.
1034
1203
  * @returns the label (i.e. a short description), or `null`.
1204
+ * @since 2.0
1035
1205
  */
1036
1206
  get_label(): string | null;
1037
1207
 
1038
1208
  /**
1039
1209
  * @returns the tooltip (i.e. a long description), or `null`.
1210
+ * @since 2.0
1040
1211
  */
1041
1212
  get_tooltip(): string | null;
1042
1213
 
@@ -1044,18 +1215,21 @@ export namespace Amtk {
1044
1215
  * Returns whether `info` has been used (for example by an {@link Amtk.Factory}
1045
1216
  * function). See also `amtk_action_info_store_check_all_used()`.
1046
1217
  * @returns whether `info` has been used.
1218
+ * @since 3.0
1047
1219
  */
1048
1220
  has_been_used(): boolean;
1049
1221
 
1050
1222
  /**
1051
1223
  * Mark `info` as used. An {@link Amtk.Factory} function that uses an {@link Amtk.ActionInfo}
1052
1224
  * should call this function. See `amtk_action_info_store_check_all_used()`.
1225
+ * @since 3.0
1053
1226
  */
1054
1227
  mark_as_used(): void;
1055
1228
 
1056
1229
  /**
1057
1230
  * Increments the reference count of `info` by one.
1058
1231
  * @returns the passed in `info`.
1232
+ * @since 2.0
1059
1233
  */
1060
1234
  ref(): ActionInfo;
1061
1235
 
@@ -1065,6 +1239,7 @@ export namespace Amtk {
1065
1239
  * `accels` must not be `null`, it must be a `null`-terminated array, to be
1066
1240
  * consistent with `gtk_application_set_accels_for_action()`.
1067
1241
  * @param accels a `null`-terminated array of accelerators in the format understood by `gtk_accelerator_parse()`.
1242
+ * @since 2.0
1068
1243
  */
1069
1244
  set_accels(accels: string[]): void;
1070
1245
 
@@ -1072,11 +1247,13 @@ export namespace Amtk {
1072
1247
  * Sets the action name, for example `"win.save"`. Can be a detailed action
1073
1248
  * name, see `g_action_parse_detailed_name()`.
1074
1249
  * @param action_name the action name.
1250
+ * @since 2.0
1075
1251
  */
1076
1252
  set_action_name(action_name: string): void;
1077
1253
 
1078
1254
  /**
1079
1255
  * @param icon_name the icon name, or `null`.
1256
+ * @since 2.0
1080
1257
  */
1081
1258
  set_icon_name(icon_name: string | null): void;
1082
1259
 
@@ -1084,17 +1261,20 @@ export namespace Amtk {
1084
1261
  * Sets the label with a mnemonic. To know how to encode the mnemonic, see the
1085
1262
  * documentation of `gtk_label_new_with_mnemonic()`.
1086
1263
  * @param label the label (i.e. a short description), or `null`.
1264
+ * @since 2.0
1087
1265
  */
1088
1266
  set_label(label: string | null): void;
1089
1267
 
1090
1268
  /**
1091
1269
  * @param tooltip the tooltip (i.e. a long description), or `null`.
1270
+ * @since 2.0
1092
1271
  */
1093
1272
  set_tooltip(tooltip: string | null): void;
1094
1273
 
1095
1274
  /**
1096
1275
  * Decrements the reference count of `info` by one. If the reference count drops
1097
1276
  * to 0, `info` is freed.
1277
+ * @since 2.0
1098
1278
  */
1099
1279
  unref(): void;
1100
1280
  }
@@ -1201,6 +1381,19 @@ export namespace Amtk {
1201
1381
  }
1202
1382
 
1203
1383
 
1384
+ /**
1385
+ * @gir-type Alias
1386
+ */
1387
+ type TreeViewScrolledWindowSizingClass = typeof TreeViewScrolledWindowSizing;
1388
+
1389
+ /**
1390
+ * @gir-type Struct
1391
+ */
1392
+ abstract class TreeViewScrolledWindowSizingPrivate {
1393
+ static $gtype: GObject.GType<TreeViewScrolledWindowSizingPrivate>;
1394
+ }
1395
+
1396
+
1204
1397
  /**
1205
1398
  * Name of the imported GIR library
1206
1399
  * `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188