@gjsify/gtk-host 0.51.1 → 0.52.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/README.md +154 -1
- package/lib/esm/accessibility.js +1 -0
- package/lib/esm/conformance/at-context.js +1 -0
- package/lib/esm/conformance/index.js +1 -1
- package/lib/esm/conformance/shared-tree-builder.js +1 -0
- package/lib/esm/errors.js +1 -1
- package/lib/esm/generated/accessibility.js +1 -0
- package/lib/esm/host.js +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/menu.js +1 -1
- package/lib/esm/policies.js +1 -1
- package/lib/esm/props.js +1 -1
- package/lib/types/accessibility.d.ts +56 -0
- package/lib/types/accessibility.spec.d.ts +2 -0
- package/lib/types/attrs.d.ts +15 -2
- package/lib/types/conformance/at-context.d.ts +31 -0
- package/lib/types/conformance/index.d.ts +2 -0
- package/lib/types/conformance/nick-vectors.d.mts +26 -0
- package/lib/types/conformance/shared-tree-builder.d.ts +26 -0
- package/lib/types/errors.d.ts +61 -1
- package/lib/types/font-dir.d.ts +5 -3
- package/lib/types/fonts.d.ts +6 -3
- package/lib/types/generated/accessibility.d.ts +208 -0
- package/lib/types/generated/enum-values.d.mts +1 -1
- package/lib/types/generated/props.d.ts +3310 -186
- package/lib/types/generated/surface-data.d.mts +10 -0
- package/lib/types/generated/value-types.d.mts +28 -0
- package/lib/types/generator/emit-types.d.mts +22 -0
- package/lib/types/generator/model.d.mts +20 -0
- package/lib/types/host.d.ts +26 -0
- package/lib/types/index.d.ts +1 -1
- package/lib/types/policies.d.ts +58 -1
- package/lib/types/props.d.ts +10 -5
- package/lib/types/react-jsx-runtime.d.ts +2 -2
- package/lib/types/types.d.ts +52 -0
- package/package.json +17 -15
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type Adw from '@girs/adw-1';
|
|
2
2
|
import type GLib from '@girs/glib-2.0';
|
|
3
|
+
import type GObject from '@girs/gobject-2.0';
|
|
3
4
|
import type Gdk from '@girs/gdk-4.0';
|
|
5
|
+
import type GdkPixbuf from '@girs/gdkpixbuf-2.0';
|
|
4
6
|
import type Gio from '@girs/gio-2.0';
|
|
7
|
+
import type Gsk from '@girs/gsk-4.0';
|
|
5
8
|
import type Gtk from '@girs/gtk-4.0';
|
|
6
9
|
import type Pango from '@girs/pango-1.0';
|
|
7
10
|
import type { NotifyHandler } from '../attrs.js';
|
|
@@ -30,6 +33,7 @@ export type AdwToastPriorityNick = 'normal' | 'high';
|
|
|
30
33
|
export type AdwToolbarStyleNick = 'flat' | 'raised' | 'raised-border';
|
|
31
34
|
export type AdwViewSwitcherPolicyNick = 'narrow' | 'wide';
|
|
32
35
|
export type AdwWrapPolicyNick = 'minimum' | 'natural';
|
|
36
|
+
export type GPasswordSaveNick = 'never' | 'for-session' | 'permanently';
|
|
33
37
|
export type GtkAccessibleAnnouncementPriorityNick = 'low' | 'medium' | 'high';
|
|
34
38
|
export type GtkAccessibleAutocompleteNick = 'none' | 'inline' | 'list' | 'both';
|
|
35
39
|
export type GtkAccessibleInvalidStateNick = 'false' | 'true' | 'grammar' | 'spelling';
|
|
@@ -132,10 +136,43 @@ export type GtkTreeViewGridLinesNick = 'none' | 'horizontal' | 'vertical' | 'bot
|
|
|
132
136
|
export type GtkUnitNick = 'none' | 'points' | 'inch' | 'mm';
|
|
133
137
|
export type GtkWindowGravityNick = 'top-left' | 'top' | 'top-right' | 'left' | 'center' | 'right' | 'bottom-left' | 'bottom' | 'bottom-right' | 'top-start' | 'top-end' | 'start' | 'end' | 'bottom-start' | 'bottom-end';
|
|
134
138
|
export type GtkWrapModeNick = 'none' | 'char' | 'word' | 'word-char';
|
|
139
|
+
export type PangoAlignmentNick = 'left' | 'center' | 'right';
|
|
135
140
|
export type PangoEllipsizeModeNick = 'none' | 'start' | 'middle' | 'end';
|
|
141
|
+
export type PangoOverlineNick = 'none' | 'single';
|
|
142
|
+
export type PangoStretchNick = 'ultra-condensed' | 'extra-condensed' | 'condensed' | 'semi-condensed' | 'normal' | 'semi-expanded' | 'expanded' | 'extra-expanded' | 'ultra-expanded';
|
|
143
|
+
export type PangoStyleNick = 'normal' | 'oblique' | 'italic';
|
|
144
|
+
export type PangoTextTransformNick = 'none' | 'lowercase' | 'uppercase' | 'capitalize';
|
|
145
|
+
export type PangoUnderlineNick = 'none' | 'single' | 'double' | 'low' | 'error' | 'single-line' | 'double-line' | 'error-line';
|
|
146
|
+
export type PangoVariantNick = 'normal' | 'small-caps' | 'all-small-caps' | 'petite-caps' | 'all-petite-caps' | 'unicase' | 'title-caps';
|
|
136
147
|
export type PangoWrapModeNick = 'word' | 'char' | 'word-char' | 'none';
|
|
148
|
+
export type AdwTabViewShortcutsNick = 'all-shortcuts' | 'alt-digits' | 'alt-zero' | 'control-end' | 'control-home' | 'control-page-down' | 'control-page-up' | 'control-shift-end' | 'control-shift-home' | 'control-shift-page-down' | 'control-shift-page-up' | 'control-shift-tab' | 'control-tab' | 'none';
|
|
149
|
+
export type AdwTabViewShortcutsNickSet = AdwTabViewShortcutsNick | `${AdwTabViewShortcutsNick}|${string}`;
|
|
150
|
+
export type GApplicationFlagsNick = 'allow-replacement' | 'can-override-app-id' | 'default-flags' | 'flags-none' | 'handles-command-line' | 'handles-open' | 'is-launcher' | 'is-service' | 'non-unique' | 'replace' | 'send-environment';
|
|
151
|
+
export type GApplicationFlagsNickSet = GApplicationFlagsNick | `${GApplicationFlagsNick}|${string}`;
|
|
152
|
+
export type GBindingFlagsNick = 'bidirectional' | 'default' | 'invert-boolean' | 'sync-create';
|
|
153
|
+
export type GBindingFlagsNickSet = GBindingFlagsNick | `${GBindingFlagsNick}|${string}`;
|
|
154
|
+
export type GdkDragActionNick = 'ask' | 'copy' | 'link' | 'move' | 'none';
|
|
155
|
+
export type GdkDragActionNickSet = GdkDragActionNick | `${GdkDragActionNick}|${string}`;
|
|
156
|
+
export type GdkGLAPINick = 'gl' | 'gles';
|
|
157
|
+
export type GdkGLAPINickSet = GdkGLAPINick | `${GdkGLAPINick}|${string}`;
|
|
158
|
+
export type GdkModifierTypeNick = 'alt-mask' | 'button1-mask' | 'button2-mask' | 'button3-mask' | 'button4-mask' | 'button5-mask' | 'control-mask' | 'hyper-mask' | 'lock-mask' | 'meta-mask' | 'no-modifier-mask' | 'shift-mask' | 'super-mask';
|
|
159
|
+
export type GdkModifierTypeNickSet = GdkModifierTypeNick | `${GdkModifierTypeNick}|${string}`;
|
|
160
|
+
export type GtkEventControllerScrollFlagsNick = 'both-axes' | 'discrete' | 'horizontal' | 'kinetic' | 'none' | 'physical-direction' | 'vertical';
|
|
161
|
+
export type GtkEventControllerScrollFlagsNickSet = GtkEventControllerScrollFlagsNick | `${GtkEventControllerScrollFlagsNick}|${string}`;
|
|
162
|
+
export type GtkFontChooserLevelNick = 'family' | 'features' | 'size' | 'style' | 'variations';
|
|
163
|
+
export type GtkFontChooserLevelNickSet = GtkFontChooserLevelNick | `${GtkFontChooserLevelNick}|${string}`;
|
|
164
|
+
export type GtkInputHintsNick = 'emoji' | 'inhibit-osk' | 'lowercase' | 'no-emoji' | 'no-spellcheck' | 'none' | 'private' | 'spellcheck' | 'uppercase-chars' | 'uppercase-sentences' | 'uppercase-words' | 'vertical-writing' | 'word-completion';
|
|
165
|
+
export type GtkInputHintsNickSet = GtkInputHintsNick | `${GtkInputHintsNick}|${string}`;
|
|
166
|
+
export type GtkPopoverMenuFlagsNick = 'nested' | 'sliding';
|
|
167
|
+
export type GtkPopoverMenuFlagsNickSet = GtkPopoverMenuFlagsNick | `${GtkPopoverMenuFlagsNick}|${string}`;
|
|
168
|
+
export type GtkPrintCapabilitiesNick = 'collate' | 'copies' | 'generate-pdf' | 'generate-ps' | 'number-up' | 'number-up-layout' | 'page-set' | 'preview' | 'reverse' | 'scale';
|
|
169
|
+
export type GtkPrintCapabilitiesNickSet = GtkPrintCapabilitiesNick | `${GtkPrintCapabilitiesNick}|${string}`;
|
|
170
|
+
export type GtkSvgFeaturesNick = 'animations' | 'extensions' | 'external-resources' | 'system-resources' | 'traditional-symbolic';
|
|
171
|
+
export type GtkSvgFeaturesNickSet = GtkSvgFeaturesNick | `${GtkSvgFeaturesNick}|${string}`;
|
|
172
|
+
export type PangoShowFlagsNick = 'ignorables' | 'line-breaks' | 'none' | 'spaces';
|
|
173
|
+
export type PangoShowFlagsNickSet = PangoShowFlagsNick | `${PangoShowFlagsNick}|${string}`;
|
|
137
174
|
/** A dialog showing information about the application. */
|
|
138
|
-
export interface AdwAboutDialogProps extends AdwDialogProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkShortcutManagerProps {
|
|
175
|
+
export interface AdwAboutDialogProps extends AdwDialogProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkShortcutManagerProps {
|
|
139
176
|
/** The path to the Appstream metadata resource. */
|
|
140
177
|
appdataResourcePath?: string | null;
|
|
141
178
|
'appdata-resource-path'?: string | null;
|
|
@@ -218,7 +255,7 @@ export interface AdwAboutDialogProps extends AdwDialogProps, GtkWidgetProps, Gtk
|
|
|
218
255
|
onNotifyWebsite?: NotifyHandler;
|
|
219
256
|
}
|
|
220
257
|
/** A window showing information about the application. */
|
|
221
|
-
export interface AdwAboutWindowProps extends AdwWindowProps, GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
258
|
+
export interface AdwAboutWindowProps extends AdwWindowProps, GtkWindowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
222
259
|
/**
|
|
223
260
|
* The name of the application icon.
|
|
224
261
|
* @deprecated
|
|
@@ -353,7 +390,7 @@ export interface AdwAboutWindowProps extends AdwWindowProps, GtkWindowProps, Gtk
|
|
|
353
390
|
onNotifyWebsite?: NotifyHandler;
|
|
354
391
|
}
|
|
355
392
|
/** A [class@Gtk.ListBoxRow] used to present actions. */
|
|
356
|
-
export interface AdwActionRowProps extends AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
393
|
+
export interface AdwActionRowProps extends AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
357
394
|
/** The widget to activate when the row is activated. */
|
|
358
395
|
activatableWidget?: Gtk.Widget | null;
|
|
359
396
|
'activatable-widget'?: Gtk.Widget | null;
|
|
@@ -383,7 +420,7 @@ export interface AdwActionRowProps extends AdwPreferencesRowProps, GtkListBoxRow
|
|
|
383
420
|
onNotifyTitleLines?: NotifyHandler;
|
|
384
421
|
}
|
|
385
422
|
/** A dialog presenting a message or a question. */
|
|
386
|
-
export interface AdwAlertDialogProps extends AdwDialogProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkShortcutManagerProps {
|
|
423
|
+
export interface AdwAlertDialogProps extends AdwDialogProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkShortcutManagerProps {
|
|
387
424
|
/** The body text of the dialog. */
|
|
388
425
|
body?: string;
|
|
389
426
|
/** Whether the body text includes Pango markup. */
|
|
@@ -416,8 +453,28 @@ export interface AdwAlertDialogProps extends AdwDialogProps, GtkWidgetProps, Gtk
|
|
|
416
453
|
onNotifyHeadingUseMarkup?: NotifyHandler;
|
|
417
454
|
onNotifyPreferWideLayout?: NotifyHandler;
|
|
418
455
|
}
|
|
456
|
+
/** A base class for animations. */
|
|
457
|
+
export interface AdwAnimationProps {
|
|
458
|
+
/** Whether to skip the animation when animations are globally disabled. */
|
|
459
|
+
followEnableAnimationsSetting?: boolean;
|
|
460
|
+
'follow-enable-animations-setting'?: boolean;
|
|
461
|
+
/** The target to animate. */
|
|
462
|
+
target?: Adw.AnimationTarget;
|
|
463
|
+
/** The animation widget. */
|
|
464
|
+
widget?: Gtk.Widget;
|
|
465
|
+
onDone?: Adw.Animation.SignalSignatures['done'];
|
|
466
|
+
onNotifyFollowEnableAnimationsSetting?: NotifyHandler;
|
|
467
|
+
onNotifyTarget?: NotifyHandler;
|
|
468
|
+
onNotifyWidget?: NotifyHandler;
|
|
469
|
+
}
|
|
470
|
+
/** Represents a value [class@Animation] can animate. */
|
|
471
|
+
export interface AdwAnimationTargetProps {
|
|
472
|
+
}
|
|
473
|
+
/** A base class for Adwaita applications. */
|
|
474
|
+
export interface AdwApplicationProps extends GtkApplicationProps, GApplicationProps, GObjectProps, GActionGroupProps, GActionMapProps {
|
|
475
|
+
}
|
|
419
476
|
/** A freeform application window. */
|
|
420
|
-
export interface AdwApplicationWindowProps extends GtkApplicationWindowProps, GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
477
|
+
export interface AdwApplicationWindowProps extends GtkApplicationWindowProps, GtkWindowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GActionGroupProps, GActionMapProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
421
478
|
/** Whether adaptive preview is currently open. */
|
|
422
479
|
adaptivePreview?: boolean;
|
|
423
480
|
'adaptive-preview'?: boolean;
|
|
@@ -427,7 +484,7 @@ export interface AdwApplicationWindowProps extends GtkApplicationWindowProps, Gt
|
|
|
427
484
|
onNotifyContent?: NotifyHandler;
|
|
428
485
|
}
|
|
429
486
|
/** A widget displaying an image, with a generated fallback. */
|
|
430
|
-
export interface AdwAvatarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
487
|
+
export interface AdwAvatarProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
431
488
|
/** A custom image paintable. */
|
|
432
489
|
customImage?: Gdk.Paintable | null;
|
|
433
490
|
'custom-image'?: Gdk.Paintable | null;
|
|
@@ -448,7 +505,7 @@ export interface AdwAvatarProps extends GtkWidgetProps, GtkAccessibleProps, GtkB
|
|
|
448
505
|
onNotifyText?: NotifyHandler;
|
|
449
506
|
}
|
|
450
507
|
/** A bar with contextual information. */
|
|
451
|
-
export interface AdwBannerProps extends GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
508
|
+
export interface AdwBannerProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
452
509
|
/** The label to show on the button. */
|
|
453
510
|
buttonLabel?: string | null;
|
|
454
511
|
'button-label'?: string | null;
|
|
@@ -470,13 +527,13 @@ export interface AdwBannerProps extends GtkWidgetProps, GtkAccessibleProps, GtkA
|
|
|
470
527
|
onNotifyUseMarkup?: NotifyHandler;
|
|
471
528
|
}
|
|
472
529
|
/** A widget with one child. */
|
|
473
|
-
export interface AdwBinProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
530
|
+
export interface AdwBinProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
474
531
|
/** The child widget of the `AdwBin`. */
|
|
475
532
|
child?: Gtk.Widget | null;
|
|
476
533
|
onNotifyChild?: NotifyHandler;
|
|
477
534
|
}
|
|
478
535
|
/** A bottom sheet with an optional bottom bar. */
|
|
479
|
-
export interface AdwBottomSheetProps extends GtkWidgetProps, AdwSwipeableProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
536
|
+
export interface AdwBottomSheetProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, AdwSwipeableProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
480
537
|
/** Horizontal alignment of the bottom sheet. */
|
|
481
538
|
align?: number;
|
|
482
539
|
/** The bottom bar widget. */
|
|
@@ -519,13 +576,21 @@ export interface AdwBottomSheetProps extends GtkWidgetProps, AdwSwipeableProps,
|
|
|
519
576
|
onNotifyShowDragHandle?: NotifyHandler;
|
|
520
577
|
}
|
|
521
578
|
/** A widget that changes layout based on available size. */
|
|
522
|
-
export interface AdwBreakpointBinProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
579
|
+
export interface AdwBreakpointBinProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
523
580
|
/** The child widget. */
|
|
524
581
|
child?: Gtk.Widget | null;
|
|
525
582
|
onNotifyChild?: NotifyHandler;
|
|
526
583
|
}
|
|
584
|
+
/** Describes a breakpoint for [class@Window] or [class@Dialog]. */
|
|
585
|
+
export interface AdwBreakpointProps extends GObjectProps, GtkBuildableProps {
|
|
586
|
+
/** The breakpoint's condition. */
|
|
587
|
+
condition?: Adw.BreakpointCondition | null;
|
|
588
|
+
onApply?: Adw.Breakpoint.SignalSignatures['apply'];
|
|
589
|
+
onUnapply?: Adw.Breakpoint.SignalSignatures['unapply'];
|
|
590
|
+
onNotifyCondition?: NotifyHandler;
|
|
591
|
+
}
|
|
527
592
|
/** A helper widget for creating buttons. */
|
|
528
|
-
export interface AdwButtonContentProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
593
|
+
export interface AdwButtonContentProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
529
594
|
/** Whether the button can be smaller than the natural size of its contents. */
|
|
530
595
|
canShrink?: boolean;
|
|
531
596
|
'can-shrink'?: boolean;
|
|
@@ -543,7 +608,7 @@ export interface AdwButtonContentProps extends GtkWidgetProps, GtkAccessibleProp
|
|
|
543
608
|
onNotifyUseUnderline?: NotifyHandler;
|
|
544
609
|
}
|
|
545
610
|
/** A [class@Gtk.ListBoxRow] that looks like a button. */
|
|
546
|
-
export interface AdwButtonRowProps extends AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
611
|
+
export interface AdwButtonRowProps extends AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
547
612
|
/** The icon name to show after the title. */
|
|
548
613
|
endIconName?: string | null;
|
|
549
614
|
'end-icon-name'?: string | null;
|
|
@@ -554,20 +619,23 @@ export interface AdwButtonRowProps extends AdwPreferencesRowProps, GtkListBoxRow
|
|
|
554
619
|
onNotifyEndIconName?: NotifyHandler;
|
|
555
620
|
onNotifyStartIconName?: NotifyHandler;
|
|
556
621
|
}
|
|
622
|
+
/** An [class@AnimationTarget] that calls a given callback during the animation. */
|
|
623
|
+
export interface AdwCallbackAnimationTargetProps extends AdwAnimationTargetProps, GObjectProps {
|
|
624
|
+
}
|
|
557
625
|
/** A dots indicator for [class@Carousel]. */
|
|
558
|
-
export interface AdwCarouselIndicatorDotsProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
626
|
+
export interface AdwCarouselIndicatorDotsProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
559
627
|
/** The displayed carousel. */
|
|
560
628
|
carousel?: Adw.Carousel | null;
|
|
561
629
|
onNotifyCarousel?: NotifyHandler;
|
|
562
630
|
}
|
|
563
631
|
/** A lines indicator for [class@Carousel]. */
|
|
564
|
-
export interface AdwCarouselIndicatorLinesProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
632
|
+
export interface AdwCarouselIndicatorLinesProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
565
633
|
/** The displayed carousel. */
|
|
566
634
|
carousel?: Adw.Carousel | null;
|
|
567
635
|
onNotifyCarousel?: NotifyHandler;
|
|
568
636
|
}
|
|
569
637
|
/** A paginated scrolling widget. */
|
|
570
|
-
export interface AdwCarouselProps extends GtkWidgetProps, AdwSwipeableProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
638
|
+
export interface AdwCarouselProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, AdwSwipeableProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
571
639
|
/** Whether to allow swiping for more than one page at a time. */
|
|
572
640
|
allowLongSwipes?: boolean;
|
|
573
641
|
'allow-long-swipes'?: boolean;
|
|
@@ -596,8 +664,22 @@ export interface AdwCarouselProps extends GtkWidgetProps, AdwSwipeableProps, Gtk
|
|
|
596
664
|
onNotifyScrollParams?: NotifyHandler;
|
|
597
665
|
onNotifySpacing?: NotifyHandler;
|
|
598
666
|
}
|
|
667
|
+
/** A layout manager constraining its children to a given size. */
|
|
668
|
+
export interface AdwClampLayoutProps extends GtkLayoutManagerProps, GObjectProps, GtkOrientableProps {
|
|
669
|
+
/** The maximum size to allocate to the children. */
|
|
670
|
+
maximumSize?: number;
|
|
671
|
+
'maximum-size'?: number;
|
|
672
|
+
/** The size above which the children are clamped. */
|
|
673
|
+
tighteningThreshold?: number;
|
|
674
|
+
'tightening-threshold'?: number;
|
|
675
|
+
/** The length unit for maximum size and tightening threshold. */
|
|
676
|
+
unit?: AdwLengthUnitNick | Adw.LengthUnit;
|
|
677
|
+
onNotifyMaximumSize?: NotifyHandler;
|
|
678
|
+
onNotifyTighteningThreshold?: NotifyHandler;
|
|
679
|
+
onNotifyUnit?: NotifyHandler;
|
|
680
|
+
}
|
|
599
681
|
/** A widget constraining its child to a given size. */
|
|
600
|
-
export interface AdwClampProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
682
|
+
export interface AdwClampProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
601
683
|
/** The child widget of the `AdwClamp`. */
|
|
602
684
|
child?: Gtk.Widget | null;
|
|
603
685
|
/** The maximum size allocated to the child. */
|
|
@@ -614,7 +696,7 @@ export interface AdwClampProps extends GtkWidgetProps, GtkAccessibleProps, GtkBu
|
|
|
614
696
|
onNotifyUnit?: NotifyHandler;
|
|
615
697
|
}
|
|
616
698
|
/** A scrollable [class@Clamp]. */
|
|
617
|
-
export interface AdwClampScrollableProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps, GtkScrollableProps {
|
|
699
|
+
export interface AdwClampScrollableProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps, GtkScrollableProps {
|
|
618
700
|
/** The child widget of the `AdwClampScrollable`. */
|
|
619
701
|
child?: Gtk.Widget | null;
|
|
620
702
|
/** The maximum size allocated to the child. */
|
|
@@ -631,7 +713,7 @@ export interface AdwClampScrollableProps extends GtkWidgetProps, GtkAccessiblePr
|
|
|
631
713
|
onNotifyUnit?: NotifyHandler;
|
|
632
714
|
}
|
|
633
715
|
/** A [class@Gtk.ListBoxRow] used to choose from a list of items. */
|
|
634
|
-
export interface AdwComboRowProps extends AdwActionRowProps, AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
716
|
+
export interface AdwComboRowProps extends AdwActionRowProps, AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
635
717
|
/** Whether to show a search entry in the popup. */
|
|
636
718
|
enableSearch?: boolean;
|
|
637
719
|
'enable-search'?: boolean;
|
|
@@ -665,8 +747,28 @@ export interface AdwComboRowProps extends AdwActionRowProps, AdwPreferencesRowPr
|
|
|
665
747
|
onNotifySelected?: NotifyHandler;
|
|
666
748
|
onNotifyUseSubtitle?: NotifyHandler;
|
|
667
749
|
}
|
|
750
|
+
/** A binding between a [class@GObject.Object] property and a CSS class on a [class@Gtk.Widget]. */
|
|
751
|
+
export interface AdwCssClassBindingProps extends GObjectProps {
|
|
752
|
+
/** Flags to be used to control the binding. */
|
|
753
|
+
flags?: GBindingFlagsNickSet | number;
|
|
754
|
+
/** The object to use as the source of the CSS class binding. */
|
|
755
|
+
source?: GObject.Object | null;
|
|
756
|
+
/** The name of the property that shoudl be used as the source of the binding. */
|
|
757
|
+
sourceProperty?: string;
|
|
758
|
+
'source-property'?: string;
|
|
759
|
+
/** The widget to use as the target of the CSS class binding. */
|
|
760
|
+
target?: Gtk.Widget | null;
|
|
761
|
+
/** The name of the CSS class that should be toggled on the target object. */
|
|
762
|
+
targetCssClass?: string;
|
|
763
|
+
'target-css-class'?: string;
|
|
764
|
+
onNotifyFlags?: NotifyHandler;
|
|
765
|
+
onNotifySource?: NotifyHandler;
|
|
766
|
+
onNotifySourceProperty?: NotifyHandler;
|
|
767
|
+
onNotifyTarget?: NotifyHandler;
|
|
768
|
+
onNotifyTargetCssClass?: NotifyHandler;
|
|
769
|
+
}
|
|
668
770
|
/** An adaptive dialog container. */
|
|
669
|
-
export interface AdwDialogProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkShortcutManagerProps {
|
|
771
|
+
export interface AdwDialogProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkShortcutManagerProps {
|
|
670
772
|
/** Whether the dialog can be closed. */
|
|
671
773
|
canClose?: boolean;
|
|
672
774
|
'can-close'?: boolean;
|
|
@@ -705,7 +807,7 @@ export interface AdwDialogProps extends GtkWidgetProps, GtkAccessibleProps, GtkB
|
|
|
705
807
|
onNotifyTitle?: NotifyHandler;
|
|
706
808
|
}
|
|
707
809
|
/** A [class@Gtk.ListBoxRow] with an embedded text entry. */
|
|
708
|
-
export interface AdwEntryRowProps extends AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
810
|
+
export interface AdwEntryRowProps extends AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
709
811
|
/** Whether activating the embedded entry can activate the default widget. */
|
|
710
812
|
activatesDefault?: boolean;
|
|
711
813
|
'activates-default'?: boolean;
|
|
@@ -715,8 +817,8 @@ export interface AdwEntryRowProps extends AdwPreferencesRowProps, GtkListBoxRowP
|
|
|
715
817
|
enableEmojiCompletion?: boolean;
|
|
716
818
|
'enable-emoji-completion'?: boolean;
|
|
717
819
|
/** Additional input hints for the entry row. */
|
|
718
|
-
inputHints?: number;
|
|
719
|
-
'input-hints'?: number;
|
|
820
|
+
inputHints?: GtkInputHintsNickSet | number;
|
|
821
|
+
'input-hints'?: GtkInputHintsNickSet | number;
|
|
720
822
|
/** The input purpose of the entry row. */
|
|
721
823
|
inputPurpose?: GtkInputPurposeNick | Gtk.InputPurpose;
|
|
722
824
|
'input-purpose'?: GtkInputPurposeNick | Gtk.InputPurpose;
|
|
@@ -736,8 +838,21 @@ export interface AdwEntryRowProps extends AdwPreferencesRowProps, GtkListBoxRowP
|
|
|
736
838
|
onNotifyMaxLength?: NotifyHandler;
|
|
737
839
|
onNotifyShowApplyButton?: NotifyHandler;
|
|
738
840
|
}
|
|
841
|
+
/** `AdwEnumListItem` is the type of items in a [class@EnumListModel]. */
|
|
842
|
+
export interface AdwEnumListItemProps extends GObjectProps {
|
|
843
|
+
}
|
|
844
|
+
/** A [iface@Gio.ListModel] representing values of a given enum. */
|
|
845
|
+
export interface AdwEnumListModelProps extends GObjectProps, GListModelProps {
|
|
846
|
+
/**
|
|
847
|
+
* The type of the enum represented by the model.
|
|
848
|
+
* @deprecated
|
|
849
|
+
*/
|
|
850
|
+
enumType?: GObject.GType;
|
|
851
|
+
'enum-type'?: GObject.GType;
|
|
852
|
+
onNotifyEnumType?: NotifyHandler;
|
|
853
|
+
}
|
|
739
854
|
/** A [class@Gtk.ListBoxRow] used to reveal widgets. */
|
|
740
|
-
export interface AdwExpanderRowProps extends AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
855
|
+
export interface AdwExpanderRowProps extends AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
741
856
|
/** Whether expansion is enabled. */
|
|
742
857
|
enableExpansion?: boolean;
|
|
743
858
|
'enable-expansion'?: boolean;
|
|
@@ -769,7 +884,7 @@ export interface AdwExpanderRowProps extends AdwPreferencesRowProps, GtkListBoxR
|
|
|
769
884
|
onNotifyTitleLines?: NotifyHandler;
|
|
770
885
|
}
|
|
771
886
|
/** An adaptive container acting like a box or an overlay. */
|
|
772
|
-
export interface AdwFlapProps extends GtkWidgetProps, AdwSwipeableProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
887
|
+
export interface AdwFlapProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, AdwSwipeableProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
773
888
|
/**
|
|
774
889
|
* The content widget.
|
|
775
890
|
* @deprecated
|
|
@@ -865,7 +980,7 @@ export interface AdwFlapProps extends GtkWidgetProps, AdwSwipeableProps, GtkAcce
|
|
|
865
980
|
onNotifyTransitionType?: NotifyHandler;
|
|
866
981
|
}
|
|
867
982
|
/** A title bar widget. */
|
|
868
|
-
export interface AdwHeaderBarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
983
|
+
export interface AdwHeaderBarProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
869
984
|
/** The policy for aligning the center widget. */
|
|
870
985
|
centeringPolicy?: AdwCenteringPolicyNick | Adw.CenteringPolicy;
|
|
871
986
|
'centering-policy'?: AdwCenteringPolicyNick | Adw.CenteringPolicy;
|
|
@@ -896,7 +1011,7 @@ export interface AdwHeaderBarProps extends GtkWidgetProps, GtkAccessibleProps, G
|
|
|
896
1011
|
onNotifyTitleWidget?: NotifyHandler;
|
|
897
1012
|
}
|
|
898
1013
|
/** A view switcher that uses a toggle group. */
|
|
899
|
-
export interface AdwInlineViewSwitcherProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
1014
|
+
export interface AdwInlineViewSwitcherProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
900
1015
|
/** Whether the toggles can be smaller than the natural size of their contents. */
|
|
901
1016
|
canShrink?: boolean;
|
|
902
1017
|
'can-shrink'?: boolean;
|
|
@@ -912,14 +1027,44 @@ export interface AdwInlineViewSwitcherProps extends GtkWidgetProps, GtkAccessibl
|
|
|
912
1027
|
onNotifyHomogeneous?: NotifyHandler;
|
|
913
1028
|
onNotifyStack?: NotifyHandler;
|
|
914
1029
|
}
|
|
1030
|
+
/** An individual layout in [class@MultiLayoutView]. */
|
|
1031
|
+
export interface AdwLayoutProps extends GObjectProps, GtkBuildableProps {
|
|
1032
|
+
/** The content widget. */
|
|
1033
|
+
content?: Gtk.Widget;
|
|
1034
|
+
/** The name of the layout. */
|
|
1035
|
+
name?: string | null;
|
|
1036
|
+
onNotifyContent?: NotifyHandler;
|
|
1037
|
+
onNotifyName?: NotifyHandler;
|
|
1038
|
+
}
|
|
915
1039
|
/** A child slot within [class@Layout]. */
|
|
916
|
-
export interface AdwLayoutSlotProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1040
|
+
export interface AdwLayoutSlotProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
917
1041
|
/** The slot ID. */
|
|
918
1042
|
id?: string;
|
|
919
1043
|
onNotifyId?: NotifyHandler;
|
|
920
1044
|
}
|
|
1045
|
+
/** An auxiliary class used by [class@Leaflet]. */
|
|
1046
|
+
export interface AdwLeafletPageProps extends GObjectProps {
|
|
1047
|
+
/**
|
|
1048
|
+
* The leaflet child to which the page belongs.
|
|
1049
|
+
* @deprecated
|
|
1050
|
+
*/
|
|
1051
|
+
child?: Gtk.Widget;
|
|
1052
|
+
/**
|
|
1053
|
+
* The name of the child page.
|
|
1054
|
+
* @deprecated
|
|
1055
|
+
*/
|
|
1056
|
+
name?: string | null;
|
|
1057
|
+
/**
|
|
1058
|
+
* Whether the child can be navigated to when folded.
|
|
1059
|
+
* @deprecated
|
|
1060
|
+
*/
|
|
1061
|
+
navigatable?: boolean;
|
|
1062
|
+
onNotifyChild?: NotifyHandler;
|
|
1063
|
+
onNotifyName?: NotifyHandler;
|
|
1064
|
+
onNotifyNavigatable?: NotifyHandler;
|
|
1065
|
+
}
|
|
921
1066
|
/** An adaptive container acting like a box or a stack. */
|
|
922
|
-
export interface AdwLeafletProps extends GtkWidgetProps, AdwSwipeableProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
1067
|
+
export interface AdwLeafletProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, AdwSwipeableProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
923
1068
|
/**
|
|
924
1069
|
* Whether gestures and shortcuts for navigating backward are enabled.
|
|
925
1070
|
* @deprecated
|
|
@@ -991,7 +1136,7 @@ export interface AdwLeafletProps extends GtkWidgetProps, AdwSwipeableProps, GtkA
|
|
|
991
1136
|
onNotifyVisibleChildName?: NotifyHandler;
|
|
992
1137
|
}
|
|
993
1138
|
/** A dialog presenting a message or a question. */
|
|
994
|
-
export interface AdwMessageDialogProps extends GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
1139
|
+
export interface AdwMessageDialogProps extends GtkWindowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
995
1140
|
/**
|
|
996
1141
|
* The body text of the dialog.
|
|
997
1142
|
* @deprecated
|
|
@@ -1042,7 +1187,7 @@ export interface AdwMessageDialogProps extends GtkWindowProps, GtkWidgetProps, G
|
|
|
1042
1187
|
onNotifyHeadingUseMarkup?: NotifyHandler;
|
|
1043
1188
|
}
|
|
1044
1189
|
/** A widget for switching between different layouts. */
|
|
1045
|
-
export interface AdwMultiLayoutViewProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1190
|
+
export interface AdwMultiLayoutViewProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1046
1191
|
/** The currently used layout. */
|
|
1047
1192
|
layout?: Adw.Layout | null;
|
|
1048
1193
|
/** The name of the currently used layout. */
|
|
@@ -1052,7 +1197,7 @@ export interface AdwMultiLayoutViewProps extends GtkWidgetProps, GtkAccessiblePr
|
|
|
1052
1197
|
onNotifyLayoutName?: NotifyHandler;
|
|
1053
1198
|
}
|
|
1054
1199
|
/** A page within [class@NavigationView] or [class@NavigationSplitView]. */
|
|
1055
|
-
export interface AdwNavigationPageProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1200
|
+
export interface AdwNavigationPageProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1056
1201
|
/** Whether the page can be popped from navigation stack. */
|
|
1057
1202
|
canPop?: boolean;
|
|
1058
1203
|
'can-pop'?: boolean;
|
|
@@ -1072,7 +1217,7 @@ export interface AdwNavigationPageProps extends GtkWidgetProps, GtkAccessiblePro
|
|
|
1072
1217
|
onNotifyTitle?: NotifyHandler;
|
|
1073
1218
|
}
|
|
1074
1219
|
/** A widget presenting sidebar and content side by side or as a navigation view. */
|
|
1075
|
-
export interface AdwNavigationSplitViewProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1220
|
+
export interface AdwNavigationSplitViewProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1076
1221
|
/** Whether the split view is collapsed. */
|
|
1077
1222
|
collapsed?: boolean;
|
|
1078
1223
|
/** The content widget. */
|
|
@@ -1108,7 +1253,7 @@ export interface AdwNavigationSplitViewProps extends GtkWidgetProps, GtkAccessib
|
|
|
1108
1253
|
onNotifySidebarWidthUnit?: NotifyHandler;
|
|
1109
1254
|
}
|
|
1110
1255
|
/** A page-based navigation container. */
|
|
1111
|
-
export interface AdwNavigationViewProps extends GtkWidgetProps, AdwSwipeableProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1256
|
+
export interface AdwNavigationViewProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, AdwSwipeableProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1112
1257
|
/** Whether to animate page transitions. */
|
|
1113
1258
|
animateTransitions?: boolean;
|
|
1114
1259
|
'animate-transitions'?: boolean;
|
|
@@ -1128,8 +1273,11 @@ export interface AdwNavigationViewProps extends GtkWidgetProps, AdwSwipeableProp
|
|
|
1128
1273
|
onNotifyPopOnEscape?: NotifyHandler;
|
|
1129
1274
|
onNotifyVhomogeneous?: NotifyHandler;
|
|
1130
1275
|
}
|
|
1276
|
+
/** An [class@AnimationTarget] that doesn't do anything. */
|
|
1277
|
+
export interface AdwNoneAnimationTargetProps extends AdwAnimationTargetProps, GObjectProps {
|
|
1278
|
+
}
|
|
1131
1279
|
/** A widget presenting sidebar and content side by side or as an overlay. */
|
|
1132
|
-
export interface AdwOverlaySplitViewProps extends GtkWidgetProps, AdwSwipeableProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1280
|
+
export interface AdwOverlaySplitViewProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, AdwSwipeableProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1133
1281
|
/** Whether the split view is collapsed. */
|
|
1134
1282
|
collapsed?: boolean;
|
|
1135
1283
|
/** The content widget. */
|
|
@@ -1177,10 +1325,10 @@ export interface AdwOverlaySplitViewProps extends GtkWidgetProps, AdwSwipeablePr
|
|
|
1177
1325
|
onNotifySidebarWidthUnit?: NotifyHandler;
|
|
1178
1326
|
}
|
|
1179
1327
|
/** A [class@EntryRow] tailored for entering secrets. */
|
|
1180
|
-
export interface AdwPasswordEntryRowProps extends AdwEntryRowProps, AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
1328
|
+
export interface AdwPasswordEntryRowProps extends AdwEntryRowProps, AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
1181
1329
|
}
|
|
1182
1330
|
/** A dialog showing application's preferences. */
|
|
1183
|
-
export interface AdwPreferencesDialogProps extends AdwDialogProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkShortcutManagerProps {
|
|
1331
|
+
export interface AdwPreferencesDialogProps extends AdwDialogProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkShortcutManagerProps {
|
|
1184
1332
|
/** Whether search is enabled. */
|
|
1185
1333
|
searchEnabled?: boolean;
|
|
1186
1334
|
'search-enabled'?: boolean;
|
|
@@ -1195,7 +1343,7 @@ export interface AdwPreferencesDialogProps extends AdwDialogProps, GtkWidgetProp
|
|
|
1195
1343
|
onNotifyVisiblePageName?: NotifyHandler;
|
|
1196
1344
|
}
|
|
1197
1345
|
/** A group of preference rows. */
|
|
1198
|
-
export interface AdwPreferencesGroupProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1346
|
+
export interface AdwPreferencesGroupProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1199
1347
|
/** The description for this group of preferences. */
|
|
1200
1348
|
description?: string | null;
|
|
1201
1349
|
/** The header suffix widget. */
|
|
@@ -1212,7 +1360,7 @@ export interface AdwPreferencesGroupProps extends GtkWidgetProps, GtkAccessibleP
|
|
|
1212
1360
|
onNotifyTitle?: NotifyHandler;
|
|
1213
1361
|
}
|
|
1214
1362
|
/** A page from [class@PreferencesDialog]. */
|
|
1215
|
-
export interface AdwPreferencesPageProps extends Omit<GtkWidgetProps, 'name'>, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1363
|
+
export interface AdwPreferencesPageProps extends Omit<GtkWidgetProps, 'name'>, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1216
1364
|
/** A [class@Banner] displayed at the top of the page. */
|
|
1217
1365
|
banner?: Adw.Banner | null;
|
|
1218
1366
|
/** The description to be displayed at the top of the page. */
|
|
@@ -1239,7 +1387,7 @@ export interface AdwPreferencesPageProps extends Omit<GtkWidgetProps, 'name'>, G
|
|
|
1239
1387
|
onNotifyUseUnderline?: NotifyHandler;
|
|
1240
1388
|
}
|
|
1241
1389
|
/** A [class@Gtk.ListBoxRow] used to present preferences. */
|
|
1242
|
-
export interface AdwPreferencesRowProps extends GtkListBoxRowProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1390
|
+
export interface AdwPreferencesRowProps extends GtkListBoxRowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1243
1391
|
/** The title of the preference represented by this row. */
|
|
1244
1392
|
title?: string;
|
|
1245
1393
|
/** Whether the user can copy the title from the label. */
|
|
@@ -1257,7 +1405,7 @@ export interface AdwPreferencesRowProps extends GtkListBoxRowProps, GtkWidgetPro
|
|
|
1257
1405
|
onNotifyUseUnderline?: NotifyHandler;
|
|
1258
1406
|
}
|
|
1259
1407
|
/** A window to present an application's preferences. */
|
|
1260
|
-
export interface AdwPreferencesWindowProps extends AdwWindowProps, GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
1408
|
+
export interface AdwPreferencesWindowProps extends AdwWindowProps, GtkWindowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
1261
1409
|
/**
|
|
1262
1410
|
* Whether gestures and shortcuts for closing subpages are enabled.
|
|
1263
1411
|
* @deprecated
|
|
@@ -1287,8 +1435,17 @@ export interface AdwPreferencesWindowProps extends AdwWindowProps, GtkWindowProp
|
|
|
1287
1435
|
onNotifyVisiblePage?: NotifyHandler;
|
|
1288
1436
|
onNotifyVisiblePageName?: NotifyHandler;
|
|
1289
1437
|
}
|
|
1438
|
+
/** An [class@AnimationTarget] changing the value of a property of a [class@GObject.Object] instance. */
|
|
1439
|
+
export interface AdwPropertyAnimationTargetProps extends AdwAnimationTargetProps, GObjectProps {
|
|
1440
|
+
/** The object whose property will be animated. */
|
|
1441
|
+
object?: GObject.Object;
|
|
1442
|
+
/** The `GParamSpec` of the property to be animated. */
|
|
1443
|
+
pspec?: GObject.ParamSpec;
|
|
1444
|
+
onNotifyObject?: NotifyHandler;
|
|
1445
|
+
onNotifyPspec?: NotifyHandler;
|
|
1446
|
+
}
|
|
1290
1447
|
/** A widget that displays a keyboard shortcut. */
|
|
1291
|
-
export interface AdwShortcutLabelProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1448
|
+
export interface AdwShortcutLabelProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1292
1449
|
/** The displayed accelerator. */
|
|
1293
1450
|
accelerator?: string;
|
|
1294
1451
|
/** The text displayed when no accelerator is set. */
|
|
@@ -1298,10 +1455,75 @@ export interface AdwShortcutLabelProps extends GtkWidgetProps, GtkAccessibleProp
|
|
|
1298
1455
|
onNotifyDisabledText?: NotifyHandler;
|
|
1299
1456
|
}
|
|
1300
1457
|
/** A dialog that displays application's keyboard shortcuts. */
|
|
1301
|
-
export interface AdwShortcutsDialogProps extends AdwDialogProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkShortcutManagerProps {
|
|
1458
|
+
export interface AdwShortcutsDialogProps extends AdwDialogProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkShortcutManagerProps {
|
|
1459
|
+
}
|
|
1460
|
+
/** An object representing an individual shortcut in [class@ShortcutsSection]. */
|
|
1461
|
+
export interface AdwShortcutsItemProps extends GObjectProps {
|
|
1462
|
+
/** The shortcut accelerator. */
|
|
1463
|
+
accelerator?: string;
|
|
1464
|
+
/** Fully qualified action name to get the accelerator from. */
|
|
1465
|
+
actionName?: string;
|
|
1466
|
+
'action-name'?: string;
|
|
1467
|
+
/** The shortcut direction. */
|
|
1468
|
+
direction?: GtkTextDirectionNick | Gtk.TextDirection;
|
|
1469
|
+
/** The subtitle of the shortcut. */
|
|
1470
|
+
subtitle?: string;
|
|
1471
|
+
/** The title of the shortcut. */
|
|
1472
|
+
title?: string;
|
|
1473
|
+
onNotifyAccelerator?: NotifyHandler;
|
|
1474
|
+
onNotifyActionName?: NotifyHandler;
|
|
1475
|
+
onNotifyDirection?: NotifyHandler;
|
|
1476
|
+
onNotifySubtitle?: NotifyHandler;
|
|
1477
|
+
onNotifyTitle?: NotifyHandler;
|
|
1478
|
+
}
|
|
1479
|
+
/** An object representing a section in [class@ShortcutsDialog]. */
|
|
1480
|
+
export interface AdwShortcutsSectionProps extends GObjectProps, GListModelProps, GtkBuildableProps {
|
|
1481
|
+
/** The title of the section, can be `NULL`. */
|
|
1482
|
+
title?: string | null;
|
|
1483
|
+
onNotifyTitle?: NotifyHandler;
|
|
1484
|
+
}
|
|
1485
|
+
/** An item within [class@SidebarSection]. */
|
|
1486
|
+
export interface AdwSidebarItemProps extends GObjectProps {
|
|
1487
|
+
/** Whether to activate the item on pointer motion during Drag-and-Drop. */
|
|
1488
|
+
dragMotionActivate?: boolean;
|
|
1489
|
+
'drag-motion-activate'?: boolean;
|
|
1490
|
+
/** Whether the item is enabled. */
|
|
1491
|
+
enabled?: boolean;
|
|
1492
|
+
/** The icon name for this item. */
|
|
1493
|
+
iconName?: string | null;
|
|
1494
|
+
'icon-name'?: string | null;
|
|
1495
|
+
/** The paintable to use as the icon for this item. */
|
|
1496
|
+
iconPaintable?: Gdk.Paintable | null;
|
|
1497
|
+
'icon-paintable'?: Gdk.Paintable | null;
|
|
1498
|
+
/** The prefix widget for this item. */
|
|
1499
|
+
prefix?: Gtk.Widget | null;
|
|
1500
|
+
/** Subtitle of the item. */
|
|
1501
|
+
subtitle?: string | null;
|
|
1502
|
+
/** The suffix widget for this item. */
|
|
1503
|
+
suffix?: Gtk.Widget | null;
|
|
1504
|
+
/** Title of the item. */
|
|
1505
|
+
title?: string | null;
|
|
1506
|
+
/** The tooltip of the item. */
|
|
1507
|
+
tooltip?: string | null;
|
|
1508
|
+
/** Whether an underline in the title indicates a mnemonic. */
|
|
1509
|
+
useUnderline?: boolean;
|
|
1510
|
+
'use-underline'?: boolean;
|
|
1511
|
+
/** Whether the item is visible. */
|
|
1512
|
+
visible?: boolean;
|
|
1513
|
+
onNotifyDragMotionActivate?: NotifyHandler;
|
|
1514
|
+
onNotifyEnabled?: NotifyHandler;
|
|
1515
|
+
onNotifyIconName?: NotifyHandler;
|
|
1516
|
+
onNotifyIconPaintable?: NotifyHandler;
|
|
1517
|
+
onNotifyPrefix?: NotifyHandler;
|
|
1518
|
+
onNotifySubtitle?: NotifyHandler;
|
|
1519
|
+
onNotifySuffix?: NotifyHandler;
|
|
1520
|
+
onNotifyTitle?: NotifyHandler;
|
|
1521
|
+
onNotifyTooltip?: NotifyHandler;
|
|
1522
|
+
onNotifyUseUnderline?: NotifyHandler;
|
|
1523
|
+
onNotifyVisible?: NotifyHandler;
|
|
1302
1524
|
}
|
|
1303
1525
|
/** Adaptive sidebar widget. */
|
|
1304
|
-
export interface AdwSidebarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1526
|
+
export interface AdwSidebarProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1305
1527
|
/** Whether the drop data should be preloaded on hover. */
|
|
1306
1528
|
dropPreload?: boolean;
|
|
1307
1529
|
'drop-preload'?: boolean;
|
|
@@ -1334,8 +1556,21 @@ export interface AdwSidebarProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
1334
1556
|
onNotifySelected?: NotifyHandler;
|
|
1335
1557
|
onNotifySuffix?: NotifyHandler;
|
|
1336
1558
|
}
|
|
1559
|
+
/** A section within [class@Sidebar]. */
|
|
1560
|
+
export interface AdwSidebarSectionProps extends GObjectProps, GtkBuildableProps {
|
|
1561
|
+
/** Context menu model for the section items. */
|
|
1562
|
+
menuModel?: Gio.MenuModel | null;
|
|
1563
|
+
'menu-model'?: Gio.MenuModel | null;
|
|
1564
|
+
/** The suffix widget for this section. */
|
|
1565
|
+
suffix?: Gtk.Widget | null;
|
|
1566
|
+
/** Title of the section. */
|
|
1567
|
+
title?: string | null;
|
|
1568
|
+
onNotifyMenuModel?: NotifyHandler;
|
|
1569
|
+
onNotifySuffix?: NotifyHandler;
|
|
1570
|
+
onNotifyTitle?: NotifyHandler;
|
|
1571
|
+
}
|
|
1337
1572
|
/** An [class@ActionRow] with an embedded spin button. */
|
|
1338
|
-
export interface AdwSpinRowProps extends AdwActionRowProps, AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
1573
|
+
export interface AdwSpinRowProps extends AdwActionRowProps, AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
1339
1574
|
/** The adjustment that holds the value of the spin row. */
|
|
1340
1575
|
adjustment?: Gtk.Adjustment;
|
|
1341
1576
|
/** The acceleration rate when you hold down a button or key. */
|
|
@@ -1367,11 +1602,17 @@ export interface AdwSpinRowProps extends AdwActionRowProps, AdwPreferencesRowPro
|
|
|
1367
1602
|
onNotifyValue?: NotifyHandler;
|
|
1368
1603
|
onNotifyWrap?: NotifyHandler;
|
|
1369
1604
|
}
|
|
1605
|
+
/** A paintable showing a loading spinner. */
|
|
1606
|
+
export interface AdwSpinnerPaintableProps extends GObjectProps, GdkPaintableProps, GtkSymbolicPaintableProps {
|
|
1607
|
+
/** The widget the spinner uses for frame clock. */
|
|
1608
|
+
widget?: Gtk.Widget | null;
|
|
1609
|
+
onNotifyWidget?: NotifyHandler;
|
|
1610
|
+
}
|
|
1370
1611
|
/** A widget showing a loading spinner. */
|
|
1371
|
-
export interface AdwSpinnerProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1612
|
+
export interface AdwSpinnerProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1372
1613
|
}
|
|
1373
1614
|
/** A combined button and dropdown widget. */
|
|
1374
|
-
export interface AdwSplitButtonProps extends GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1615
|
+
export interface AdwSplitButtonProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1375
1616
|
/** Whether the button can be smaller than the natural size of its contents. */
|
|
1376
1617
|
canShrink?: boolean;
|
|
1377
1618
|
'can-shrink'?: boolean;
|
|
@@ -1407,8 +1648,48 @@ export interface AdwSplitButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
1407
1648
|
onNotifyPopover?: NotifyHandler;
|
|
1408
1649
|
onNotifyUseUnderline?: NotifyHandler;
|
|
1409
1650
|
}
|
|
1651
|
+
/** A spring-based [class@Animation]. */
|
|
1652
|
+
export interface AdwSpringAnimationProps extends AdwAnimationProps, GObjectProps {
|
|
1653
|
+
/** Whether the animation should be clamped. */
|
|
1654
|
+
clamp?: boolean;
|
|
1655
|
+
/** Precision of the spring. */
|
|
1656
|
+
epsilon?: number;
|
|
1657
|
+
/** The initial velocity to start the animation with. */
|
|
1658
|
+
initialVelocity?: number;
|
|
1659
|
+
'initial-velocity'?: number;
|
|
1660
|
+
/** Physical parameters describing the spring. */
|
|
1661
|
+
springParams?: Adw.SpringParams;
|
|
1662
|
+
'spring-params'?: Adw.SpringParams;
|
|
1663
|
+
/** The value to animate from. */
|
|
1664
|
+
valueFrom?: number;
|
|
1665
|
+
'value-from'?: number;
|
|
1666
|
+
/** The value to animate to. */
|
|
1667
|
+
valueTo?: number;
|
|
1668
|
+
'value-to'?: number;
|
|
1669
|
+
onNotifyClamp?: NotifyHandler;
|
|
1670
|
+
onNotifyEpsilon?: NotifyHandler;
|
|
1671
|
+
onNotifyInitialVelocity?: NotifyHandler;
|
|
1672
|
+
onNotifySpringParams?: NotifyHandler;
|
|
1673
|
+
onNotifyValueFrom?: NotifyHandler;
|
|
1674
|
+
onNotifyValueTo?: NotifyHandler;
|
|
1675
|
+
}
|
|
1676
|
+
/** An auxiliary class used by [class@Squeezer]. */
|
|
1677
|
+
export interface AdwSqueezerPageProps extends GObjectProps {
|
|
1678
|
+
/**
|
|
1679
|
+
* The the squeezer child to which the page belongs.
|
|
1680
|
+
* @deprecated
|
|
1681
|
+
*/
|
|
1682
|
+
child?: Gtk.Widget;
|
|
1683
|
+
/**
|
|
1684
|
+
* Whether the child is enabled.
|
|
1685
|
+
* @deprecated
|
|
1686
|
+
*/
|
|
1687
|
+
enabled?: boolean;
|
|
1688
|
+
onNotifyChild?: NotifyHandler;
|
|
1689
|
+
onNotifyEnabled?: NotifyHandler;
|
|
1690
|
+
}
|
|
1410
1691
|
/** A best fit container. */
|
|
1411
|
-
export interface AdwSqueezerProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
1692
|
+
export interface AdwSqueezerProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
1412
1693
|
/**
|
|
1413
1694
|
* Whether to allow squeezing beyond the last child's minimum size.
|
|
1414
1695
|
* @deprecated
|
|
@@ -1464,7 +1745,7 @@ export interface AdwSqueezerProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
1464
1745
|
onNotifyYalign?: NotifyHandler;
|
|
1465
1746
|
}
|
|
1466
1747
|
/** A page used for empty/error states and similar use-cases. */
|
|
1467
|
-
export interface AdwStatusPageProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1748
|
+
export interface AdwStatusPageProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1468
1749
|
/** The child widget. */
|
|
1469
1750
|
child?: Gtk.Widget | null;
|
|
1470
1751
|
/** The description markup to be displayed below the title. */
|
|
@@ -1482,17 +1763,63 @@ export interface AdwStatusPageProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
1482
1763
|
onNotifyPaintable?: NotifyHandler;
|
|
1483
1764
|
onNotifyTitle?: NotifyHandler;
|
|
1484
1765
|
}
|
|
1766
|
+
/** A class for managing application-wide styling. */
|
|
1767
|
+
export interface AdwStyleManagerProps extends GObjectProps {
|
|
1768
|
+
/** The requested application color scheme. */
|
|
1769
|
+
colorScheme?: AdwColorSchemeNick | Adw.ColorScheme;
|
|
1770
|
+
'color-scheme'?: AdwColorSchemeNick | Adw.ColorScheme;
|
|
1771
|
+
/** The display the style manager is associated with. */
|
|
1772
|
+
display?: Gdk.Display | null;
|
|
1773
|
+
onNotifyColorScheme?: NotifyHandler;
|
|
1774
|
+
onNotifyDisplay?: NotifyHandler;
|
|
1775
|
+
}
|
|
1776
|
+
/** A swipe tracker used in [class@Carousel], [class@NavigationView] and [class@OverlaySplitView]. */
|
|
1777
|
+
export interface AdwSwipeTrackerProps extends GObjectProps, GtkOrientableProps {
|
|
1778
|
+
/** Whether to allow swiping for more than one snap point at a time. */
|
|
1779
|
+
allowLongSwipes?: boolean;
|
|
1780
|
+
'allow-long-swipes'?: boolean;
|
|
1781
|
+
/** Whether to allow dragging with mouse pointer. */
|
|
1782
|
+
allowMouseDrag?: boolean;
|
|
1783
|
+
'allow-mouse-drag'?: boolean;
|
|
1784
|
+
/** Whether to allow touchscreen swiping from `GtkWindowHandle`. */
|
|
1785
|
+
allowWindowHandle?: boolean;
|
|
1786
|
+
'allow-window-handle'?: boolean;
|
|
1787
|
+
/** Whether the swipe tracker is enabled. */
|
|
1788
|
+
enabled?: boolean;
|
|
1789
|
+
/** Whether to allow swiping past the first available snap point. */
|
|
1790
|
+
lowerOvershoot?: boolean;
|
|
1791
|
+
'lower-overshoot'?: boolean;
|
|
1792
|
+
/** Whether to reverse the swipe direction. */
|
|
1793
|
+
reversed?: boolean;
|
|
1794
|
+
/** The widget the swipe tracker is attached to. */
|
|
1795
|
+
swipeable?: Adw.Swipeable;
|
|
1796
|
+
/** Whether to allow swiping past the last available snap point. */
|
|
1797
|
+
upperOvershoot?: boolean;
|
|
1798
|
+
'upper-overshoot'?: boolean;
|
|
1799
|
+
onBeginSwipe?: Adw.SwipeTracker.SignalSignatures['begin-swipe'];
|
|
1800
|
+
onEndSwipe?: Adw.SwipeTracker.SignalSignatures['end-swipe'];
|
|
1801
|
+
onPrepare?: Adw.SwipeTracker.SignalSignatures['prepare'];
|
|
1802
|
+
onUpdateSwipe?: Adw.SwipeTracker.SignalSignatures['update-swipe'];
|
|
1803
|
+
onNotifyAllowLongSwipes?: NotifyHandler;
|
|
1804
|
+
onNotifyAllowMouseDrag?: NotifyHandler;
|
|
1805
|
+
onNotifyAllowWindowHandle?: NotifyHandler;
|
|
1806
|
+
onNotifyEnabled?: NotifyHandler;
|
|
1807
|
+
onNotifyLowerOvershoot?: NotifyHandler;
|
|
1808
|
+
onNotifyReversed?: NotifyHandler;
|
|
1809
|
+
onNotifySwipeable?: NotifyHandler;
|
|
1810
|
+
onNotifyUpperOvershoot?: NotifyHandler;
|
|
1811
|
+
}
|
|
1485
1812
|
/** An interface for swipeable widgets. */
|
|
1486
1813
|
export interface AdwSwipeableProps {
|
|
1487
1814
|
}
|
|
1488
1815
|
/** A [class@Gtk.ListBoxRow] used to represent two states. */
|
|
1489
|
-
export interface AdwSwitchRowProps extends AdwActionRowProps, AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1816
|
+
export interface AdwSwitchRowProps extends AdwActionRowProps, AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1490
1817
|
/** Whether the switch row is in the "on" or "off" position. */
|
|
1491
1818
|
active?: boolean;
|
|
1492
1819
|
onNotifyActive?: NotifyHandler;
|
|
1493
1820
|
}
|
|
1494
1821
|
/** A tab bar for [class@TabView]. */
|
|
1495
|
-
export interface AdwTabBarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1822
|
+
export interface AdwTabBarProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1496
1823
|
/** Whether the tabs automatically hide. */
|
|
1497
1824
|
autohide?: boolean;
|
|
1498
1825
|
/** The widget shown after the tabs. */
|
|
@@ -1522,7 +1849,7 @@ export interface AdwTabBarProps extends GtkWidgetProps, GtkAccessibleProps, GtkB
|
|
|
1522
1849
|
onNotifyView?: NotifyHandler;
|
|
1523
1850
|
}
|
|
1524
1851
|
/** A button that displays the number of [class@TabView] pages. */
|
|
1525
|
-
export interface AdwTabButtonProps extends GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1852
|
+
export interface AdwTabButtonProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1526
1853
|
/** The view the tab button displays. */
|
|
1527
1854
|
view?: Adw.TabView | null;
|
|
1528
1855
|
onActivate?: Adw.TabButton.SignalSignatures['activate'];
|
|
@@ -1530,7 +1857,7 @@ export interface AdwTabButtonProps extends GtkWidgetProps, GtkAccessibleProps, G
|
|
|
1530
1857
|
onNotifyView?: NotifyHandler;
|
|
1531
1858
|
}
|
|
1532
1859
|
/** A tab overview for [class@TabView]. */
|
|
1533
|
-
export interface AdwTabOverviewProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1860
|
+
export interface AdwTabOverviewProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1534
1861
|
/** The child widget. */
|
|
1535
1862
|
child?: Gtk.Widget | null;
|
|
1536
1863
|
/** Whether to enable new tab button. */
|
|
@@ -1571,8 +1898,60 @@ export interface AdwTabOverviewProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
1571
1898
|
onNotifyShowStartTitleButtons?: NotifyHandler;
|
|
1572
1899
|
onNotifyView?: NotifyHandler;
|
|
1573
1900
|
}
|
|
1901
|
+
/** An auxiliary class used by [class@TabView]. */
|
|
1902
|
+
export interface AdwTabPageProps extends GObjectProps, GtkAccessibleProps {
|
|
1903
|
+
/** The child of the page. */
|
|
1904
|
+
child?: Gtk.Widget;
|
|
1905
|
+
/** The icon of the page. */
|
|
1906
|
+
icon?: Gio.Icon | null;
|
|
1907
|
+
/** Whether the indicator icon is activatable. */
|
|
1908
|
+
indicatorActivatable?: boolean;
|
|
1909
|
+
'indicator-activatable'?: boolean;
|
|
1910
|
+
/** An indicator icon for the page. */
|
|
1911
|
+
indicatorIcon?: Gio.Icon | null;
|
|
1912
|
+
'indicator-icon'?: Gio.Icon | null;
|
|
1913
|
+
/** The tooltip of the indicator icon. */
|
|
1914
|
+
indicatorTooltip?: string;
|
|
1915
|
+
'indicator-tooltip'?: string;
|
|
1916
|
+
/** The search keyboard of the page. */
|
|
1917
|
+
keyword?: string | null;
|
|
1918
|
+
/** Whether to enable live thumbnail for this page. */
|
|
1919
|
+
liveThumbnail?: boolean;
|
|
1920
|
+
'live-thumbnail'?: boolean;
|
|
1921
|
+
/** Whether the page is loading. */
|
|
1922
|
+
loading?: boolean;
|
|
1923
|
+
/** Whether the page needs attention. */
|
|
1924
|
+
needsAttention?: boolean;
|
|
1925
|
+
'needs-attention'?: boolean;
|
|
1926
|
+
/** The parent page of the page. */
|
|
1927
|
+
parent?: Adw.TabPage | null;
|
|
1928
|
+
/** The horizontal alignment of the page thumbnail. */
|
|
1929
|
+
thumbnailXalign?: number;
|
|
1930
|
+
'thumbnail-xalign'?: number;
|
|
1931
|
+
/** The vertical alignment of the page thumbnail. */
|
|
1932
|
+
thumbnailYalign?: number;
|
|
1933
|
+
'thumbnail-yalign'?: number;
|
|
1934
|
+
/** The title of the page. */
|
|
1935
|
+
title?: string;
|
|
1936
|
+
/** The tooltip of the page. */
|
|
1937
|
+
tooltip?: string | null;
|
|
1938
|
+
onNotifyChild?: NotifyHandler;
|
|
1939
|
+
onNotifyIcon?: NotifyHandler;
|
|
1940
|
+
onNotifyIndicatorActivatable?: NotifyHandler;
|
|
1941
|
+
onNotifyIndicatorIcon?: NotifyHandler;
|
|
1942
|
+
onNotifyIndicatorTooltip?: NotifyHandler;
|
|
1943
|
+
onNotifyKeyword?: NotifyHandler;
|
|
1944
|
+
onNotifyLiveThumbnail?: NotifyHandler;
|
|
1945
|
+
onNotifyLoading?: NotifyHandler;
|
|
1946
|
+
onNotifyNeedsAttention?: NotifyHandler;
|
|
1947
|
+
onNotifyParent?: NotifyHandler;
|
|
1948
|
+
onNotifyThumbnailXalign?: NotifyHandler;
|
|
1949
|
+
onNotifyThumbnailYalign?: NotifyHandler;
|
|
1950
|
+
onNotifyTitle?: NotifyHandler;
|
|
1951
|
+
onNotifyTooltip?: NotifyHandler;
|
|
1952
|
+
}
|
|
1574
1953
|
/** A dynamic tabbed container. */
|
|
1575
|
-
export interface AdwTabViewProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1954
|
+
export interface AdwTabViewProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1576
1955
|
/** Default page icon. */
|
|
1577
1956
|
defaultIcon?: Gio.Icon;
|
|
1578
1957
|
'default-icon'?: Gio.Icon;
|
|
@@ -1583,7 +1962,7 @@ export interface AdwTabViewProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
1583
1962
|
selectedPage?: Adw.TabPage | null;
|
|
1584
1963
|
'selected-page'?: Adw.TabPage | null;
|
|
1585
1964
|
/** The enabled shortcuts. */
|
|
1586
|
-
shortcuts?: number;
|
|
1965
|
+
shortcuts?: AdwTabViewShortcutsNickSet | number;
|
|
1587
1966
|
onClosePage?: Adw.TabView.SignalSignatures['close-page'];
|
|
1588
1967
|
onCreateWindow?: Adw.TabView.SignalSignatures['create-window'];
|
|
1589
1968
|
onIndicatorActivated?: Adw.TabView.SignalSignatures['indicator-activated'];
|
|
@@ -1596,14 +1975,75 @@ export interface AdwTabViewProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
1596
1975
|
onNotifySelectedPage?: NotifyHandler;
|
|
1597
1976
|
onNotifyShortcuts?: NotifyHandler;
|
|
1598
1977
|
}
|
|
1978
|
+
/** A time-based [class@Animation]. */
|
|
1979
|
+
export interface AdwTimedAnimationProps extends AdwAnimationProps, GObjectProps {
|
|
1980
|
+
/** Whether the animation changes direction on every iteration. */
|
|
1981
|
+
alternate?: boolean;
|
|
1982
|
+
/** Duration of the animation, in milliseconds. */
|
|
1983
|
+
duration?: number;
|
|
1984
|
+
/** Easing function used in the animation. */
|
|
1985
|
+
easing?: AdwEasingNick | Adw.Easing;
|
|
1986
|
+
/** Number of times the animation will play. */
|
|
1987
|
+
repeatCount?: number;
|
|
1988
|
+
'repeat-count'?: number;
|
|
1989
|
+
/** Whether the animation plays backwards. */
|
|
1990
|
+
reverse?: boolean;
|
|
1991
|
+
/** The value to animate from. */
|
|
1992
|
+
valueFrom?: number;
|
|
1993
|
+
'value-from'?: number;
|
|
1994
|
+
/** The value to animate to. */
|
|
1995
|
+
valueTo?: number;
|
|
1996
|
+
'value-to'?: number;
|
|
1997
|
+
onNotifyAlternate?: NotifyHandler;
|
|
1998
|
+
onNotifyDuration?: NotifyHandler;
|
|
1999
|
+
onNotifyEasing?: NotifyHandler;
|
|
2000
|
+
onNotifyRepeatCount?: NotifyHandler;
|
|
2001
|
+
onNotifyReverse?: NotifyHandler;
|
|
2002
|
+
onNotifyValueFrom?: NotifyHandler;
|
|
2003
|
+
onNotifyValueTo?: NotifyHandler;
|
|
2004
|
+
}
|
|
1599
2005
|
/** A widget showing toasts above its content. */
|
|
1600
|
-
export interface AdwToastOverlayProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2006
|
+
export interface AdwToastOverlayProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1601
2007
|
/** The child widget. */
|
|
1602
2008
|
child?: Gtk.Widget | null;
|
|
1603
2009
|
onNotifyChild?: NotifyHandler;
|
|
1604
2010
|
}
|
|
2011
|
+
/** A helper object for [class@ToastOverlay]. */
|
|
2012
|
+
export interface AdwToastProps extends GObjectProps {
|
|
2013
|
+
/** The name of the associated action. */
|
|
2014
|
+
actionName?: string | null;
|
|
2015
|
+
'action-name'?: string | null;
|
|
2016
|
+
/** The parameter for action invocations. */
|
|
2017
|
+
actionTarget?: GLib.Variant | null;
|
|
2018
|
+
'action-target'?: GLib.Variant | null;
|
|
2019
|
+
/** The label to show on the button. */
|
|
2020
|
+
buttonLabel?: string | null;
|
|
2021
|
+
'button-label'?: string | null;
|
|
2022
|
+
/** The custom title widget. */
|
|
2023
|
+
customTitle?: Gtk.Widget | null;
|
|
2024
|
+
'custom-title'?: Gtk.Widget | null;
|
|
2025
|
+
/** The priority of the toast. */
|
|
2026
|
+
priority?: AdwToastPriorityNick | Adw.ToastPriority;
|
|
2027
|
+
/** The timeout of the toast, in seconds. */
|
|
2028
|
+
timeout?: number;
|
|
2029
|
+
/** The title of the toast. */
|
|
2030
|
+
title?: string | null;
|
|
2031
|
+
/** Whether to use Pango markup for the toast title. */
|
|
2032
|
+
useMarkup?: boolean;
|
|
2033
|
+
'use-markup'?: boolean;
|
|
2034
|
+
onButtonClicked?: Adw.Toast.SignalSignatures['button-clicked'];
|
|
2035
|
+
onDismissed?: Adw.Toast.SignalSignatures['dismissed'];
|
|
2036
|
+
onNotifyActionName?: NotifyHandler;
|
|
2037
|
+
onNotifyActionTarget?: NotifyHandler;
|
|
2038
|
+
onNotifyButtonLabel?: NotifyHandler;
|
|
2039
|
+
onNotifyCustomTitle?: NotifyHandler;
|
|
2040
|
+
onNotifyPriority?: NotifyHandler;
|
|
2041
|
+
onNotifyTimeout?: NotifyHandler;
|
|
2042
|
+
onNotifyTitle?: NotifyHandler;
|
|
2043
|
+
onNotifyUseMarkup?: NotifyHandler;
|
|
2044
|
+
}
|
|
1605
2045
|
/** A group of exclusive toggles. */
|
|
1606
|
-
export interface AdwToggleGroupProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
2046
|
+
export interface AdwToggleGroupProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
1607
2047
|
/** The index of the active toggle. */
|
|
1608
2048
|
active?: number;
|
|
1609
2049
|
/** The name of the active toggle. */
|
|
@@ -1620,7 +2060,7 @@ export interface AdwToggleGroupProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
1620
2060
|
onNotifyHomogeneous?: NotifyHandler;
|
|
1621
2061
|
}
|
|
1622
2062
|
/** A toggle within [class@ToggleGroup]. */
|
|
1623
|
-
export interface AdwToggleProps {
|
|
2063
|
+
export interface AdwToggleProps extends GObjectProps {
|
|
1624
2064
|
/** The toggle child. */
|
|
1625
2065
|
child?: Gtk.Widget | null;
|
|
1626
2066
|
/** The description of the toggle. */
|
|
@@ -1649,7 +2089,7 @@ export interface AdwToggleProps {
|
|
|
1649
2089
|
onNotifyUseUnderline?: NotifyHandler;
|
|
1650
2090
|
}
|
|
1651
2091
|
/** A widget containing a page, as well as top and/or bottom bars. */
|
|
1652
|
-
export interface AdwToolbarViewProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2092
|
+
export interface AdwToolbarViewProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1653
2093
|
/** Appearance of the bottom bars. */
|
|
1654
2094
|
bottomBarStyle?: AdwToolbarStyleNick | Adw.ToolbarStyle;
|
|
1655
2095
|
'bottom-bar-style'?: AdwToolbarStyleNick | Adw.ToolbarStyle;
|
|
@@ -1678,8 +2118,54 @@ export interface AdwToolbarViewProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
1678
2118
|
onNotifyRevealTopBars?: NotifyHandler;
|
|
1679
2119
|
onNotifyTopBarStyle?: NotifyHandler;
|
|
1680
2120
|
}
|
|
2121
|
+
/** An auxiliary class used by [class@ViewStack]. */
|
|
2122
|
+
export interface AdwViewStackPageProps extends GObjectProps, GtkAccessibleProps {
|
|
2123
|
+
/** The badge number for this page. */
|
|
2124
|
+
badgeNumber?: number;
|
|
2125
|
+
'badge-number'?: number;
|
|
2126
|
+
/** The stack child to which the page belongs. */
|
|
2127
|
+
child?: Gtk.Widget;
|
|
2128
|
+
/** The icon name of the child page. */
|
|
2129
|
+
iconName?: string | null;
|
|
2130
|
+
'icon-name'?: string | null;
|
|
2131
|
+
/** The name of the child page. */
|
|
2132
|
+
name?: string | null;
|
|
2133
|
+
/** Whether the page requires the user attention. */
|
|
2134
|
+
needsAttention?: boolean;
|
|
2135
|
+
'needs-attention'?: boolean;
|
|
2136
|
+
/** Section title for this page. */
|
|
2137
|
+
sectionTitle?: string | null;
|
|
2138
|
+
'section-title'?: string | null;
|
|
2139
|
+
/** Whether this page starts a section. */
|
|
2140
|
+
startsSection?: boolean;
|
|
2141
|
+
'starts-section'?: boolean;
|
|
2142
|
+
/** The title of the child page. */
|
|
2143
|
+
title?: string | null;
|
|
2144
|
+
/** Whether an embedded underline in the title indicates a mnemonic. */
|
|
2145
|
+
useUnderline?: boolean;
|
|
2146
|
+
'use-underline'?: boolean;
|
|
2147
|
+
/** Whether this page is visible. */
|
|
2148
|
+
visible?: boolean;
|
|
2149
|
+
onNotifyBadgeNumber?: NotifyHandler;
|
|
2150
|
+
onNotifyChild?: NotifyHandler;
|
|
2151
|
+
onNotifyIconName?: NotifyHandler;
|
|
2152
|
+
onNotifyName?: NotifyHandler;
|
|
2153
|
+
onNotifyNeedsAttention?: NotifyHandler;
|
|
2154
|
+
onNotifySectionTitle?: NotifyHandler;
|
|
2155
|
+
onNotifyStartsSection?: NotifyHandler;
|
|
2156
|
+
onNotifyTitle?: NotifyHandler;
|
|
2157
|
+
onNotifyUseUnderline?: NotifyHandler;
|
|
2158
|
+
onNotifyVisible?: NotifyHandler;
|
|
2159
|
+
}
|
|
2160
|
+
/** An auxiliary class used by [class@ViewStack]. */
|
|
2161
|
+
export interface AdwViewStackPagesProps extends GObjectProps, GListModelProps, GtkSectionModelProps, GtkSelectionModelProps {
|
|
2162
|
+
/** The selected [class@ViewStackPage] within the [class@ViewStackPages]. */
|
|
2163
|
+
selectedPage?: Adw.ViewStackPage | null;
|
|
2164
|
+
'selected-page'?: Adw.ViewStackPage | null;
|
|
2165
|
+
onNotifySelectedPage?: NotifyHandler;
|
|
2166
|
+
}
|
|
1681
2167
|
/** A view container for [class@ViewSwitcher]. */
|
|
1682
|
-
export interface AdwViewStackProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2168
|
+
export interface AdwViewStackProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1683
2169
|
/** Whether the stack uses a crossfade transition between pages. */
|
|
1684
2170
|
enableTransitions?: boolean;
|
|
1685
2171
|
'enable-transitions'?: boolean;
|
|
@@ -1704,7 +2190,7 @@ export interface AdwViewStackProps extends GtkWidgetProps, GtkAccessibleProps, G
|
|
|
1704
2190
|
onNotifyVisibleChildName?: NotifyHandler;
|
|
1705
2191
|
}
|
|
1706
2192
|
/** A view switcher action bar. */
|
|
1707
|
-
export interface AdwViewSwitcherBarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2193
|
+
export interface AdwViewSwitcherBarProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1708
2194
|
/** Whether the bar should be revealed or hidden. */
|
|
1709
2195
|
reveal?: boolean;
|
|
1710
2196
|
/** The stack the view switcher controls. */
|
|
@@ -1713,7 +2199,7 @@ export interface AdwViewSwitcherBarProps extends GtkWidgetProps, GtkAccessiblePr
|
|
|
1713
2199
|
onNotifyStack?: NotifyHandler;
|
|
1714
2200
|
}
|
|
1715
2201
|
/** An adaptive view switcher. */
|
|
1716
|
-
export interface AdwViewSwitcherProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2202
|
+
export interface AdwViewSwitcherProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1717
2203
|
/** The policy to determine which mode to use. */
|
|
1718
2204
|
policy?: AdwViewSwitcherPolicyNick | Adw.ViewSwitcherPolicy;
|
|
1719
2205
|
/** The stack the view switcher controls. */
|
|
@@ -1722,7 +2208,7 @@ export interface AdwViewSwitcherProps extends GtkWidgetProps, GtkAccessibleProps
|
|
|
1722
2208
|
onNotifyStack?: NotifyHandler;
|
|
1723
2209
|
}
|
|
1724
2210
|
/** An adaptive sidebar that controls an [class@ViewStack]. */
|
|
1725
|
-
export interface AdwViewSwitcherSidebarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2211
|
+
export interface AdwViewSwitcherSidebarProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1726
2212
|
/** The item filter. */
|
|
1727
2213
|
filter?: Gtk.Filter | null;
|
|
1728
2214
|
/** Determines the sidebar's look and behavior. */
|
|
@@ -1744,7 +2230,7 @@ export interface AdwViewSwitcherSidebarProps extends GtkWidgetProps, GtkAccessib
|
|
|
1744
2230
|
onNotifySuffix?: NotifyHandler;
|
|
1745
2231
|
}
|
|
1746
2232
|
/** A view switcher title. */
|
|
1747
|
-
export interface AdwViewSwitcherTitleProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2233
|
+
export interface AdwViewSwitcherTitleProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1748
2234
|
/**
|
|
1749
2235
|
* The stack the view switcher controls.
|
|
1750
2236
|
* @deprecated
|
|
@@ -1772,7 +2258,7 @@ export interface AdwViewSwitcherTitleProps extends GtkWidgetProps, GtkAccessible
|
|
|
1772
2258
|
onNotifyViewSwitcherEnabled?: NotifyHandler;
|
|
1773
2259
|
}
|
|
1774
2260
|
/** A freeform window. */
|
|
1775
|
-
export interface AdwWindowProps extends GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
2261
|
+
export interface AdwWindowProps extends GtkWindowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
1776
2262
|
/** Whether adaptive preview is currently open. */
|
|
1777
2263
|
adaptivePreview?: boolean;
|
|
1778
2264
|
'adaptive-preview'?: boolean;
|
|
@@ -1782,7 +2268,7 @@ export interface AdwWindowProps extends GtkWindowProps, GtkWidgetProps, GtkAcces
|
|
|
1782
2268
|
onNotifyContent?: NotifyHandler;
|
|
1783
2269
|
}
|
|
1784
2270
|
/** A helper widget for setting a window's title and subtitle. */
|
|
1785
|
-
export interface AdwWindowTitleProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2271
|
+
export interface AdwWindowTitleProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1786
2272
|
/** The subtitle to display. */
|
|
1787
2273
|
subtitle?: string;
|
|
1788
2274
|
/** The title to display. */
|
|
@@ -1791,7 +2277,7 @@ export interface AdwWindowTitleProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
1791
2277
|
onNotifyTitle?: NotifyHandler;
|
|
1792
2278
|
}
|
|
1793
2279
|
/** A box-like widget that can wrap into multiple lines. */
|
|
1794
|
-
export interface AdwWrapBoxProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
2280
|
+
export interface AdwWrapBoxProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
1795
2281
|
/** The alignment of the children within each line. */
|
|
1796
2282
|
align?: number;
|
|
1797
2283
|
/** The spacing between widgets on the same line. */
|
|
@@ -1843,8 +2329,161 @@ export interface AdwWrapBoxProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
1843
2329
|
onNotifyWrapPolicy?: NotifyHandler;
|
|
1844
2330
|
onNotifyWrapReverse?: NotifyHandler;
|
|
1845
2331
|
}
|
|
2332
|
+
/** A box-like layout that can wrap into multiple lines. */
|
|
2333
|
+
export interface AdwWrapLayoutProps extends GtkLayoutManagerProps, GObjectProps, GtkOrientableProps {
|
|
2334
|
+
/** The alignment of the children within each line. */
|
|
2335
|
+
align?: number;
|
|
2336
|
+
/** The spacing between widgets on the same line. */
|
|
2337
|
+
childSpacing?: number;
|
|
2338
|
+
'child-spacing'?: number;
|
|
2339
|
+
/** The length unit for child spacing. */
|
|
2340
|
+
childSpacingUnit?: AdwLengthUnitNick | Adw.LengthUnit;
|
|
2341
|
+
'child-spacing-unit'?: AdwLengthUnitNick | Adw.LengthUnit;
|
|
2342
|
+
/** Determines whether and how each complete line should be stretched to fill the entire widget. */
|
|
2343
|
+
justify?: AdwJustifyModeNick | Adw.JustifyMode;
|
|
2344
|
+
/** Whether the last line should be stretched to fill the entire widget. */
|
|
2345
|
+
justifyLastLine?: boolean;
|
|
2346
|
+
'justify-last-line'?: boolean;
|
|
2347
|
+
/** Whether all lines should take the same amount of space. */
|
|
2348
|
+
lineHomogeneous?: boolean;
|
|
2349
|
+
'line-homogeneous'?: boolean;
|
|
2350
|
+
/** The spacing between lines. */
|
|
2351
|
+
lineSpacing?: number;
|
|
2352
|
+
'line-spacing'?: number;
|
|
2353
|
+
/** The length unit for line spacing. */
|
|
2354
|
+
lineSpacingUnit?: AdwLengthUnitNick | Adw.LengthUnit;
|
|
2355
|
+
'line-spacing-unit'?: AdwLengthUnitNick | Adw.LengthUnit;
|
|
2356
|
+
/** Determines the natural size for each line. */
|
|
2357
|
+
naturalLineLength?: number;
|
|
2358
|
+
'natural-line-length'?: number;
|
|
2359
|
+
/** The length unit for natural line length. */
|
|
2360
|
+
naturalLineLengthUnit?: AdwLengthUnitNick | Adw.LengthUnit;
|
|
2361
|
+
'natural-line-length-unit'?: AdwLengthUnitNick | Adw.LengthUnit;
|
|
2362
|
+
/** The direction children are packed in each line. */
|
|
2363
|
+
packDirection?: AdwPackDirectionNick | Adw.PackDirection;
|
|
2364
|
+
'pack-direction'?: AdwPackDirectionNick | Adw.PackDirection;
|
|
2365
|
+
/** The policy for line wrapping. */
|
|
2366
|
+
wrapPolicy?: AdwWrapPolicyNick | Adw.WrapPolicy;
|
|
2367
|
+
'wrap-policy'?: AdwWrapPolicyNick | Adw.WrapPolicy;
|
|
2368
|
+
/** Whether wrap direction should be reversed. */
|
|
2369
|
+
wrapReverse?: boolean;
|
|
2370
|
+
'wrap-reverse'?: boolean;
|
|
2371
|
+
onNotifyAlign?: NotifyHandler;
|
|
2372
|
+
onNotifyChildSpacing?: NotifyHandler;
|
|
2373
|
+
onNotifyChildSpacingUnit?: NotifyHandler;
|
|
2374
|
+
onNotifyJustify?: NotifyHandler;
|
|
2375
|
+
onNotifyJustifyLastLine?: NotifyHandler;
|
|
2376
|
+
onNotifyLineHomogeneous?: NotifyHandler;
|
|
2377
|
+
onNotifyLineSpacing?: NotifyHandler;
|
|
2378
|
+
onNotifyLineSpacingUnit?: NotifyHandler;
|
|
2379
|
+
onNotifyNaturalLineLength?: NotifyHandler;
|
|
2380
|
+
onNotifyNaturalLineLengthUnit?: NotifyHandler;
|
|
2381
|
+
onNotifyPackDirection?: NotifyHandler;
|
|
2382
|
+
onNotifyWrapPolicy?: NotifyHandler;
|
|
2383
|
+
onNotifyWrapReverse?: NotifyHandler;
|
|
2384
|
+
}
|
|
2385
|
+
/** `GActionGroup` represents a group of actions. */
|
|
2386
|
+
export interface GActionGroupProps {
|
|
2387
|
+
onActionAdded?: Gio.ActionGroup.SignalSignatures['action-added'];
|
|
2388
|
+
onActionEnabledChanged?: Gio.ActionGroup.SignalSignatures['action-enabled-changed'];
|
|
2389
|
+
onActionRemoved?: Gio.ActionGroup.SignalSignatures['action-removed'];
|
|
2390
|
+
onActionStateChanged?: Gio.ActionGroup.SignalSignatures['action-state-changed'];
|
|
2391
|
+
}
|
|
2392
|
+
export interface GActionMapProps {
|
|
2393
|
+
}
|
|
2394
|
+
/** `GApplication` is the core class for application support. */
|
|
2395
|
+
export interface GApplicationProps {
|
|
2396
|
+
/**
|
|
2397
|
+
* The group of actions that the application exports.
|
|
2398
|
+
* @deprecated
|
|
2399
|
+
*/
|
|
2400
|
+
actionGroup?: Gio.ActionGroup;
|
|
2401
|
+
'action-group'?: Gio.ActionGroup;
|
|
2402
|
+
/** The unique identifier for the application. */
|
|
2403
|
+
applicationId?: string | null;
|
|
2404
|
+
'application-id'?: string | null;
|
|
2405
|
+
/** Flags specifying the behaviour of the application. */
|
|
2406
|
+
flags?: GApplicationFlagsNickSet | number;
|
|
2407
|
+
/** Time (in milliseconds) to stay alive after becoming idle. */
|
|
2408
|
+
inactivityTimeout?: number;
|
|
2409
|
+
'inactivity-timeout'?: number;
|
|
2410
|
+
/** The base resource path for the application. */
|
|
2411
|
+
resourceBasePath?: string | null;
|
|
2412
|
+
'resource-base-path'?: string | null;
|
|
2413
|
+
/** The human-readable version number of the application. */
|
|
2414
|
+
version?: string | null;
|
|
2415
|
+
onActivate?: Gio.Application.SignalSignatures['activate'];
|
|
2416
|
+
onCommandLine?: Gio.Application.SignalSignatures['command-line'];
|
|
2417
|
+
onHandleLocalOptions?: Gio.Application.SignalSignatures['handle-local-options'];
|
|
2418
|
+
onNameLost?: Gio.Application.SignalSignatures['name-lost'];
|
|
2419
|
+
onOpen?: Gio.Application.SignalSignatures['open'];
|
|
2420
|
+
onShutdown?: Gio.Application.SignalSignatures['shutdown'];
|
|
2421
|
+
onStartup?: Gio.Application.SignalSignatures['startup'];
|
|
2422
|
+
onNotifyActionGroup?: NotifyHandler;
|
|
2423
|
+
onNotifyApplicationId?: NotifyHandler;
|
|
2424
|
+
onNotifyFlags?: NotifyHandler;
|
|
2425
|
+
onNotifyInactivityTimeout?: NotifyHandler;
|
|
2426
|
+
onNotifyResourceBasePath?: NotifyHandler;
|
|
2427
|
+
onNotifyVersion?: NotifyHandler;
|
|
2428
|
+
}
|
|
2429
|
+
export interface GInitiallyUnownedProps {
|
|
2430
|
+
}
|
|
2431
|
+
/** `GListModel` is an interface that represents a mutable list of [class@GObject.Object]. */
|
|
2432
|
+
export interface GListModelProps {
|
|
2433
|
+
onItemsChanged?: Gio.ListModel.SignalSignatures['items-changed'];
|
|
2434
|
+
}
|
|
2435
|
+
/** `GMountOperation` provides a mechanism for interacting with the user. */
|
|
2436
|
+
export interface GMountOperationProps {
|
|
2437
|
+
/** Whether to use an anonymous user when authenticating. */
|
|
2438
|
+
anonymous?: boolean;
|
|
2439
|
+
/** The index of the user's choice when a question is asked during the mount operation. */
|
|
2440
|
+
choice?: number;
|
|
2441
|
+
/** The domain to use for the mount operation. */
|
|
2442
|
+
domain?: string | null;
|
|
2443
|
+
/** Whether the device to be unlocked is a TCRYPT hidden volume. */
|
|
2444
|
+
isTcryptHiddenVolume?: boolean;
|
|
2445
|
+
'is-tcrypt-hidden-volume'?: boolean;
|
|
2446
|
+
/** Whether the device to be unlocked is a TCRYPT system volume. */
|
|
2447
|
+
isTcryptSystemVolume?: boolean;
|
|
2448
|
+
'is-tcrypt-system-volume'?: boolean;
|
|
2449
|
+
/** The password that is used for authentication when carrying out the mount operation. */
|
|
2450
|
+
password?: string | null;
|
|
2451
|
+
/** Determines if and how the password information should be saved. */
|
|
2452
|
+
passwordSave?: GPasswordSaveNick | Gio.PasswordSave;
|
|
2453
|
+
'password-save'?: GPasswordSaveNick | Gio.PasswordSave;
|
|
2454
|
+
/** The VeraCrypt PIM value, when unlocking a VeraCrypt volume. */
|
|
2455
|
+
pim?: number;
|
|
2456
|
+
/** The user name that is used for authentication when carrying out the mount operation. */
|
|
2457
|
+
username?: string | null;
|
|
2458
|
+
onAborted?: Gio.MountOperation.SignalSignatures['aborted'];
|
|
2459
|
+
onAskPassword?: Gio.MountOperation.SignalSignatures['ask-password'];
|
|
2460
|
+
onAskQuestion?: Gio.MountOperation.SignalSignatures['ask-question'];
|
|
2461
|
+
onReply?: Gio.MountOperation.SignalSignatures['reply'];
|
|
2462
|
+
onShowProcesses?: Gio.MountOperation.SignalSignatures['show-processes'];
|
|
2463
|
+
onShowUnmountProgress?: Gio.MountOperation.SignalSignatures['show-unmount-progress'];
|
|
2464
|
+
onNotifyAnonymous?: NotifyHandler;
|
|
2465
|
+
onNotifyChoice?: NotifyHandler;
|
|
2466
|
+
onNotifyDomain?: NotifyHandler;
|
|
2467
|
+
onNotifyIsTcryptHiddenVolume?: NotifyHandler;
|
|
2468
|
+
onNotifyIsTcryptSystemVolume?: NotifyHandler;
|
|
2469
|
+
onNotifyPassword?: NotifyHandler;
|
|
2470
|
+
onNotifyPasswordSave?: NotifyHandler;
|
|
2471
|
+
onNotifyPim?: NotifyHandler;
|
|
2472
|
+
onNotifyUsername?: NotifyHandler;
|
|
2473
|
+
}
|
|
2474
|
+
/** The base object type. */
|
|
2475
|
+
export interface GObjectProps {
|
|
2476
|
+
onNotify?: GObject.Object.SignalSignatures['notify'];
|
|
2477
|
+
}
|
|
2478
|
+
export interface GParamProps {
|
|
2479
|
+
}
|
|
2480
|
+
/** An interface for content that can be painted. */
|
|
2481
|
+
export interface GdkPaintableProps {
|
|
2482
|
+
onInvalidateContents?: Gdk.Paintable.SignalSignatures['invalidate-contents'];
|
|
2483
|
+
onInvalidateSize?: Gdk.Paintable.SignalSignatures['invalidate-size'];
|
|
2484
|
+
}
|
|
1846
2485
|
/** Displays information about a program. */
|
|
1847
|
-
export interface GtkAboutDialogProps extends GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
2486
|
+
export interface GtkAboutDialogProps extends GtkWindowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
1848
2487
|
/** The people who contributed artwork to the program. */
|
|
1849
2488
|
artists?: string[];
|
|
1850
2489
|
/** The authors of the program. */
|
|
@@ -1902,6 +2541,9 @@ export interface GtkAboutDialogProps extends GtkWindowProps, GtkWidgetProps, Gtk
|
|
|
1902
2541
|
onNotifyWebsiteLabel?: NotifyHandler;
|
|
1903
2542
|
onNotifyWrapLicense?: NotifyHandler;
|
|
1904
2543
|
}
|
|
2544
|
+
/** Represents a link (i.e. */
|
|
2545
|
+
export interface GtkAccessibleHyperlinkProps extends GObjectProps, GtkAccessibleProps {
|
|
2546
|
+
}
|
|
1905
2547
|
/** An interface for accessible objects containing links. */
|
|
1906
2548
|
export interface GtkAccessibleHypertextProps {
|
|
1907
2549
|
}
|
|
@@ -1919,7 +2561,7 @@ export interface GtkAccessibleRangeProps {
|
|
|
1919
2561
|
export interface GtkAccessibleTextProps {
|
|
1920
2562
|
}
|
|
1921
2563
|
/** Presents contextual actions. */
|
|
1922
|
-
export interface GtkActionBarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2564
|
+
export interface GtkActionBarProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1923
2565
|
/** Controls whether the action bar shows its contents. */
|
|
1924
2566
|
revealed?: boolean;
|
|
1925
2567
|
onNotifyRevealed?: NotifyHandler;
|
|
@@ -1935,8 +2577,72 @@ export interface GtkActionableProps {
|
|
|
1935
2577
|
onNotifyActionName?: NotifyHandler;
|
|
1936
2578
|
onNotifyActionTarget?: NotifyHandler;
|
|
1937
2579
|
}
|
|
2580
|
+
/** Activates a widget. */
|
|
2581
|
+
export interface GtkActivateActionProps extends GtkShortcutActionProps, GObjectProps {
|
|
2582
|
+
}
|
|
2583
|
+
/** A model for a numeric value. */
|
|
2584
|
+
export interface GtkAdjustmentProps extends GInitiallyUnownedProps, GObjectProps {
|
|
2585
|
+
/** The minimum value of the adjustment. */
|
|
2586
|
+
lower?: number;
|
|
2587
|
+
/** The page increment of the adjustment. */
|
|
2588
|
+
pageIncrement?: number;
|
|
2589
|
+
'page-increment'?: number;
|
|
2590
|
+
/** The page size of the adjustment. */
|
|
2591
|
+
pageSize?: number;
|
|
2592
|
+
'page-size'?: number;
|
|
2593
|
+
/** The step increment of the adjustment. */
|
|
2594
|
+
stepIncrement?: number;
|
|
2595
|
+
'step-increment'?: number;
|
|
2596
|
+
/** The maximum value of the adjustment. */
|
|
2597
|
+
upper?: number;
|
|
2598
|
+
/** The value of the adjustment. */
|
|
2599
|
+
value?: number;
|
|
2600
|
+
onChanged?: Gtk.Adjustment.SignalSignatures['changed'];
|
|
2601
|
+
onValueChanged?: Gtk.Adjustment.SignalSignatures['value-changed'];
|
|
2602
|
+
onNotifyLower?: NotifyHandler;
|
|
2603
|
+
onNotifyPageIncrement?: NotifyHandler;
|
|
2604
|
+
onNotifyPageSize?: NotifyHandler;
|
|
2605
|
+
onNotifyStepIncrement?: NotifyHandler;
|
|
2606
|
+
onNotifyUpper?: NotifyHandler;
|
|
2607
|
+
onNotifyValue?: NotifyHandler;
|
|
2608
|
+
}
|
|
2609
|
+
/** Collects the arguments that are needed to present a message to the user. */
|
|
2610
|
+
export interface GtkAlertDialogProps extends GObjectProps {
|
|
2611
|
+
/** Labels for buttons to show in the alert. */
|
|
2612
|
+
buttons?: string[] | null;
|
|
2613
|
+
/** Determines what happens when the <kbd>Escape</kbd> key is pressed while the alert is shown. */
|
|
2614
|
+
cancelButton?: number;
|
|
2615
|
+
'cancel-button'?: number;
|
|
2616
|
+
/** Determines what happens when the <kbd>Return</kbd> key is pressed while the alert is shown. */
|
|
2617
|
+
defaultButton?: number;
|
|
2618
|
+
'default-button'?: number;
|
|
2619
|
+
/** The detail text for the alert. */
|
|
2620
|
+
detail?: string;
|
|
2621
|
+
/** The message for the alert. */
|
|
2622
|
+
message?: string;
|
|
2623
|
+
/** Whether the alert is modal. */
|
|
2624
|
+
modal?: boolean;
|
|
2625
|
+
onNotifyButtons?: NotifyHandler;
|
|
2626
|
+
onNotifyCancelButton?: NotifyHandler;
|
|
2627
|
+
onNotifyDefaultButton?: NotifyHandler;
|
|
2628
|
+
onNotifyDetail?: NotifyHandler;
|
|
2629
|
+
onNotifyMessage?: NotifyHandler;
|
|
2630
|
+
onNotifyModal?: NotifyHandler;
|
|
2631
|
+
}
|
|
2632
|
+
/** Combines two shortcut triggers. */
|
|
2633
|
+
export interface GtkAlternativeTriggerProps extends GtkShortcutTriggerProps, GObjectProps, GListModelProps {
|
|
2634
|
+
/** The first `GtkShortcutTrigger` to check. */
|
|
2635
|
+
first?: Gtk.ShortcutTrigger;
|
|
2636
|
+
/** The second `GtkShortcutTrigger` to check. */
|
|
2637
|
+
second?: Gtk.ShortcutTrigger;
|
|
2638
|
+
onNotifyFirst?: NotifyHandler;
|
|
2639
|
+
onNotifySecond?: NotifyHandler;
|
|
2640
|
+
}
|
|
2641
|
+
/** Matches an item when at least one of its filters matches. */
|
|
2642
|
+
export interface GtkAnyFilterProps extends GtkMultiFilterProps, GtkFilterProps, GObjectProps, GListModelProps, GtkBuildableProps {
|
|
2643
|
+
}
|
|
1938
2644
|
/** The `GtkAppChooserButton` lets the user select an application. */
|
|
1939
|
-
export interface GtkAppChooserButtonProps extends GtkWidgetProps, GtkAccessibleProps, GtkAppChooserProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2645
|
+
export interface GtkAppChooserButtonProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkAppChooserProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1940
2646
|
/** The text to show at the top of the dialog that can be opened from the button. */
|
|
1941
2647
|
heading?: string | null;
|
|
1942
2648
|
/** Whether the app chooser dialog should be modal. */
|
|
@@ -1956,7 +2662,7 @@ export interface GtkAppChooserButtonProps extends GtkWidgetProps, GtkAccessibleP
|
|
|
1956
2662
|
onNotifyShowDialogItem?: NotifyHandler;
|
|
1957
2663
|
}
|
|
1958
2664
|
/** `GtkAppChooserDialog` shows a `GtkAppChooserWidget` inside a `GtkDialog`. */
|
|
1959
|
-
export interface GtkAppChooserDialogProps extends GtkDialogProps, GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkAppChooserProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
2665
|
+
export interface GtkAppChooserDialogProps extends GtkDialogProps, GtkWindowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkAppChooserProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
1960
2666
|
/** The GFile used by the `GtkAppChooserDialog`. */
|
|
1961
2667
|
gfile?: Gio.File;
|
|
1962
2668
|
/** The text to show at the top of the dialog. */
|
|
@@ -1972,7 +2678,7 @@ export interface GtkAppChooserProps {
|
|
|
1972
2678
|
onNotifyContentType?: NotifyHandler;
|
|
1973
2679
|
}
|
|
1974
2680
|
/** `GtkAppChooserWidget` is a widget for selecting applications. */
|
|
1975
|
-
export interface GtkAppChooserWidgetProps extends GtkWidgetProps, GtkAccessibleProps, GtkAppChooserProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2681
|
+
export interface GtkAppChooserWidgetProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkAppChooserProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1976
2682
|
/** The text that appears in the widget when there are no applications for the given content type. */
|
|
1977
2683
|
defaultText?: string | null;
|
|
1978
2684
|
'default-text'?: string | null;
|
|
@@ -2000,15 +2706,31 @@ export interface GtkAppChooserWidgetProps extends GtkWidgetProps, GtkAccessibleP
|
|
|
2000
2706
|
onNotifyShowOther?: NotifyHandler;
|
|
2001
2707
|
onNotifyShowRecommended?: NotifyHandler;
|
|
2002
2708
|
}
|
|
2709
|
+
/** A high-level API for writing applications. */
|
|
2710
|
+
export interface GtkApplicationProps extends GApplicationProps, GObjectProps, GActionGroupProps, GActionMapProps {
|
|
2711
|
+
/** The menu model to be used for the application's menu bar. */
|
|
2712
|
+
menubar?: Gio.MenuModel | null;
|
|
2713
|
+
/**
|
|
2714
|
+
* Set this property to true to register with the session manager.
|
|
2715
|
+
* @deprecated
|
|
2716
|
+
*/
|
|
2717
|
+
registerSession?: boolean;
|
|
2718
|
+
'register-session'?: boolean;
|
|
2719
|
+
onQueryEnd?: Gtk.Application.SignalSignatures['query-end'];
|
|
2720
|
+
onWindowAdded?: Gtk.Application.SignalSignatures['window-added'];
|
|
2721
|
+
onWindowRemoved?: Gtk.Application.SignalSignatures['window-removed'];
|
|
2722
|
+
onNotifyMenubar?: NotifyHandler;
|
|
2723
|
+
onNotifyRegisterSession?: NotifyHandler;
|
|
2724
|
+
}
|
|
2003
2725
|
/** A `GtkWindow` subclass that integrates with `GtkApplication`. */
|
|
2004
|
-
export interface GtkApplicationWindowProps extends GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
2726
|
+
export interface GtkApplicationWindowProps extends GtkWindowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GActionGroupProps, GActionMapProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
2005
2727
|
/** If this property is true, the window will display a menubar unless it is shown by the desktop shell. */
|
|
2006
2728
|
showMenubar?: boolean;
|
|
2007
2729
|
'show-menubar'?: boolean;
|
|
2008
2730
|
onNotifyShowMenubar?: NotifyHandler;
|
|
2009
2731
|
}
|
|
2010
2732
|
/** Preserves the aspect ratio of its child. */
|
|
2011
|
-
export interface GtkAspectFrameProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2733
|
+
export interface GtkAspectFrameProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2012
2734
|
/** The child widget. */
|
|
2013
2735
|
child?: Gtk.Widget | null;
|
|
2014
2736
|
/** Whether the `GtkAspectFrame` should use the aspect ratio of its child. */
|
|
@@ -2026,8 +2748,36 @@ export interface GtkAspectFrameProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
2026
2748
|
onNotifyXalign?: NotifyHandler;
|
|
2027
2749
|
onNotifyYalign?: NotifyHandler;
|
|
2028
2750
|
}
|
|
2751
|
+
/** `GtkAssistantPage` is an auxiliary object used by `GtkAssistant`. */
|
|
2752
|
+
export interface GtkAssistantPageProps extends GObjectProps {
|
|
2753
|
+
/**
|
|
2754
|
+
* The child widget.
|
|
2755
|
+
* @deprecated
|
|
2756
|
+
*/
|
|
2757
|
+
child?: Gtk.Widget;
|
|
2758
|
+
/**
|
|
2759
|
+
* Whether all required fields are filled in.
|
|
2760
|
+
* @deprecated
|
|
2761
|
+
*/
|
|
2762
|
+
complete?: boolean;
|
|
2763
|
+
/**
|
|
2764
|
+
* The type of the assistant page.
|
|
2765
|
+
* @deprecated
|
|
2766
|
+
*/
|
|
2767
|
+
pageType?: GtkAssistantPageTypeNick | Gtk.AssistantPageType;
|
|
2768
|
+
'page-type'?: GtkAssistantPageTypeNick | Gtk.AssistantPageType;
|
|
2769
|
+
/**
|
|
2770
|
+
* The title of the page.
|
|
2771
|
+
* @deprecated
|
|
2772
|
+
*/
|
|
2773
|
+
title?: string;
|
|
2774
|
+
onNotifyChild?: NotifyHandler;
|
|
2775
|
+
onNotifyComplete?: NotifyHandler;
|
|
2776
|
+
onNotifyPageType?: NotifyHandler;
|
|
2777
|
+
onNotifyTitle?: NotifyHandler;
|
|
2778
|
+
}
|
|
2029
2779
|
/** `GtkAssistant` is used to represent a complex as a series of steps. */
|
|
2030
|
-
export interface GtkAssistantProps extends GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
2780
|
+
export interface GtkAssistantProps extends GtkWindowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
2031
2781
|
/**
|
|
2032
2782
|
* %TRUE if the assistant uses a `GtkHeaderBar` for action buttons instead of the action-area.
|
|
2033
2783
|
* @deprecated
|
|
@@ -2041,8 +2791,50 @@ export interface GtkAssistantProps extends GtkWindowProps, GtkWidgetProps, GtkAc
|
|
|
2041
2791
|
onPrepare?: Gtk.Assistant.SignalSignatures['prepare'];
|
|
2042
2792
|
onNotifyUseHeaderBar?: NotifyHandler;
|
|
2043
2793
|
}
|
|
2794
|
+
/** A layout manager for widgets with a single child. */
|
|
2795
|
+
export interface GtkBinLayoutProps extends GtkLayoutManagerProps, GObjectProps {
|
|
2796
|
+
}
|
|
2797
|
+
/** A list model that wraps `GBookmarkFile`. */
|
|
2798
|
+
export interface GtkBookmarkListProps extends GObjectProps, GListModelProps {
|
|
2799
|
+
/** The attributes to query. */
|
|
2800
|
+
attributes?: string | null;
|
|
2801
|
+
/** The bookmark file to load. */
|
|
2802
|
+
filename?: string;
|
|
2803
|
+
/** Priority used when loading. */
|
|
2804
|
+
ioPriority?: number;
|
|
2805
|
+
'io-priority'?: number;
|
|
2806
|
+
onNotifyAttributes?: NotifyHandler;
|
|
2807
|
+
onNotifyFilename?: NotifyHandler;
|
|
2808
|
+
onNotifyIoPriority?: NotifyHandler;
|
|
2809
|
+
}
|
|
2810
|
+
/** Evaluates a boolean expression to determine whether to include items. */
|
|
2811
|
+
export interface GtkBoolFilterProps extends GtkFilterProps, GObjectProps {
|
|
2812
|
+
/** The boolean expression to evaluate on each item. */
|
|
2813
|
+
expression?: Gtk.Expression | null;
|
|
2814
|
+
/** If the expression result should be inverted. */
|
|
2815
|
+
invert?: boolean;
|
|
2816
|
+
onNotifyExpression?: NotifyHandler;
|
|
2817
|
+
onNotifyInvert?: NotifyHandler;
|
|
2818
|
+
}
|
|
2819
|
+
/** Arranges children in a single row or column. */
|
|
2820
|
+
export interface GtkBoxLayoutProps extends GtkLayoutManagerProps, GObjectProps, GtkOrientableProps {
|
|
2821
|
+
/** The child that determines the baseline of the box in vertical layout. */
|
|
2822
|
+
baselineChild?: number;
|
|
2823
|
+
'baseline-child'?: number;
|
|
2824
|
+
/** The position of the allocated baseline within the extra space allocated to each child. */
|
|
2825
|
+
baselinePosition?: GtkBaselinePositionNick | Gtk.BaselinePosition;
|
|
2826
|
+
'baseline-position'?: GtkBaselinePositionNick | Gtk.BaselinePosition;
|
|
2827
|
+
/** Whether the box layout should distribute the available space equally among the children. */
|
|
2828
|
+
homogeneous?: boolean;
|
|
2829
|
+
/** The space to put between the children. */
|
|
2830
|
+
spacing?: number;
|
|
2831
|
+
onNotifyBaselineChild?: NotifyHandler;
|
|
2832
|
+
onNotifyBaselinePosition?: NotifyHandler;
|
|
2833
|
+
onNotifyHomogeneous?: NotifyHandler;
|
|
2834
|
+
onNotifySpacing?: NotifyHandler;
|
|
2835
|
+
}
|
|
2044
2836
|
/** Arranges child widgets into a single row or column. */
|
|
2045
|
-
export interface GtkBoxProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
2837
|
+
export interface GtkBoxProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
2046
2838
|
/** The position of the child that determines the baseline. */
|
|
2047
2839
|
baselineChild?: number;
|
|
2048
2840
|
'baseline-child'?: number;
|
|
@@ -2061,8 +2853,40 @@ export interface GtkBoxProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuil
|
|
|
2061
2853
|
/** Allows objects to extend and customize deserialization from ui files. */
|
|
2062
2854
|
export interface GtkBuildableProps {
|
|
2063
2855
|
}
|
|
2856
|
+
/** A `GtkBuilderScope` implementation for the C language. */
|
|
2857
|
+
export interface GtkBuilderCScopeProps extends GObjectProps, GtkBuilderScopeProps {
|
|
2858
|
+
}
|
|
2859
|
+
/** Creates widgets by instantiating `GtkBuilder` UI templates. */
|
|
2860
|
+
export interface GtkBuilderListItemFactoryProps extends GtkListItemFactoryProps, GObjectProps {
|
|
2861
|
+
/** `GBytes` containing the UI definition. */
|
|
2862
|
+
bytes?: GLib.Bytes;
|
|
2863
|
+
/** Path of the resource containing the UI definition. */
|
|
2864
|
+
resource?: string | null;
|
|
2865
|
+
/** `GtkBuilderScope` to use when instantiating listitems */
|
|
2866
|
+
scope?: Gtk.BuilderScope | null;
|
|
2867
|
+
onNotifyBytes?: NotifyHandler;
|
|
2868
|
+
onNotifyResource?: NotifyHandler;
|
|
2869
|
+
onNotifyScope?: NotifyHandler;
|
|
2870
|
+
}
|
|
2871
|
+
/** Reads XML descriptions of a user interface and instantiates the described objects. */
|
|
2872
|
+
export interface GtkBuilderProps extends GObjectProps {
|
|
2873
|
+
/** The object the builder is evaluating for. */
|
|
2874
|
+
currentObject?: GObject.Object | null;
|
|
2875
|
+
'current-object'?: GObject.Object | null;
|
|
2876
|
+
/** The scope the builder is operating in */
|
|
2877
|
+
scope?: Gtk.BuilderScope;
|
|
2878
|
+
/** The translation domain used when translating property values that have been marked as translatable. */
|
|
2879
|
+
translationDomain?: string | null;
|
|
2880
|
+
'translation-domain'?: string | null;
|
|
2881
|
+
onNotifyCurrentObject?: NotifyHandler;
|
|
2882
|
+
onNotifyScope?: NotifyHandler;
|
|
2883
|
+
onNotifyTranslationDomain?: NotifyHandler;
|
|
2884
|
+
}
|
|
2885
|
+
/** Provides language binding support to `GtkBuilder`. */
|
|
2886
|
+
export interface GtkBuilderScopeProps {
|
|
2887
|
+
}
|
|
2064
2888
|
/** Calls a callback function when the button is clicked. */
|
|
2065
|
-
export interface GtkButtonProps extends GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2889
|
+
export interface GtkButtonProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2066
2890
|
/** Whether the size of the button can be made smaller than the natural size of its contents. */
|
|
2067
2891
|
canShrink?: boolean;
|
|
2068
2892
|
'can-shrink'?: boolean;
|
|
@@ -2088,8 +2912,11 @@ export interface GtkButtonProps extends GtkWidgetProps, GtkAccessibleProps, GtkA
|
|
|
2088
2912
|
onNotifyLabel?: NotifyHandler;
|
|
2089
2913
|
onNotifyUseUnderline?: NotifyHandler;
|
|
2090
2914
|
}
|
|
2915
|
+
/** A variant of `GtkClosureExpression` using a C closure. */
|
|
2916
|
+
export interface GtkCClosureExpressionProps extends GtkExpressionProps {
|
|
2917
|
+
}
|
|
2091
2918
|
/** Displays a Gregorian calendar, one month at a time. */
|
|
2092
|
-
export interface GtkCalendarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2919
|
+
export interface GtkCalendarProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2093
2920
|
/** The selected date. */
|
|
2094
2921
|
date?: GLib.DateTime;
|
|
2095
2922
|
/**
|
|
@@ -2129,6 +2956,35 @@ export interface GtkCalendarProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
2129
2956
|
onNotifyShowWeekNumbers?: NotifyHandler;
|
|
2130
2957
|
onNotifyYear?: NotifyHandler;
|
|
2131
2958
|
}
|
|
2959
|
+
/** Invokes a callback. */
|
|
2960
|
+
export interface GtkCallbackActionProps extends GtkShortcutActionProps, GObjectProps {
|
|
2961
|
+
}
|
|
2962
|
+
/** A cell area that renders GtkCellRenderers into a row or a column The `GtkCellAreaBox` renders cell renderers into a row or a column depending on its `GtkOrientation`. */
|
|
2963
|
+
export interface GtkCellAreaBoxProps extends GtkCellAreaProps, GInitiallyUnownedProps, GObjectProps, GtkBuildableProps, GtkCellLayoutProps, GtkOrientableProps {
|
|
2964
|
+
/** The amount of space to reserve between cells. */
|
|
2965
|
+
spacing?: number;
|
|
2966
|
+
onNotifySpacing?: NotifyHandler;
|
|
2967
|
+
}
|
|
2968
|
+
/** Stores geometrical information for a series of rows in a GtkCellArea The `GtkCellAreaContext` object is created by a given `GtkCellArea` implementation via its `GtkCellAreaClass.create_context()` vir… */
|
|
2969
|
+
export interface GtkCellAreaContextProps extends GObjectProps {
|
|
2970
|
+
/**
|
|
2971
|
+
* The `GtkCellArea` this context was created by
|
|
2972
|
+
* @deprecated
|
|
2973
|
+
*/
|
|
2974
|
+
area?: Gtk.CellArea;
|
|
2975
|
+
onNotifyArea?: NotifyHandler;
|
|
2976
|
+
}
|
|
2977
|
+
/** An abstract class for laying out `GtkCellRenderer`s The `GtkCellArea` is an abstract class for [iface@Gtk.CellLayout] widgets (also referred to as "layouting widgets") to interface with an arbitrary … */
|
|
2978
|
+
export interface GtkCellAreaProps {
|
|
2979
|
+
/** The cell in the area that currently has focus */
|
|
2980
|
+
focusCell?: Gtk.CellRenderer | null;
|
|
2981
|
+
'focus-cell'?: Gtk.CellRenderer | null;
|
|
2982
|
+
onAddEditable?: Gtk.CellArea.SignalSignatures['add-editable'];
|
|
2983
|
+
onApplyAttributes?: Gtk.CellArea.SignalSignatures['apply-attributes'];
|
|
2984
|
+
onFocusChanged?: Gtk.CellArea.SignalSignatures['focus-changed'];
|
|
2985
|
+
onRemoveEditable?: Gtk.CellArea.SignalSignatures['remove-editable'];
|
|
2986
|
+
onNotifyFocusCell?: NotifyHandler;
|
|
2987
|
+
}
|
|
2132
2988
|
/** Interface for widgets that can be used for editing cells The `GtkCellEditable` interface must be implemented for widgets to be usable to edit the contents of a `GtkTreeView` cell. */
|
|
2133
2989
|
export interface GtkCellEditableProps {
|
|
2134
2990
|
/** Indicates whether editing on the cell has been canceled. */
|
|
@@ -2141,8 +2997,297 @@ export interface GtkCellEditableProps {
|
|
|
2141
2997
|
/** An interface for packing cells `GtkCellLayout` is an interface to be implemented by all objects which want to provide a `GtkTreeViewColumn` like API for packing cells, setting attributes and data fun… */
|
|
2142
2998
|
export interface GtkCellLayoutProps {
|
|
2143
2999
|
}
|
|
3000
|
+
/** Renders a keyboard accelerator in a cell `GtkCellRendererAccel` displays a keyboard accelerator (i.e. */
|
|
3001
|
+
export interface GtkCellRendererAccelProps extends GtkCellRendererTextProps, GtkCellRendererProps, GInitiallyUnownedProps, GObjectProps {
|
|
3002
|
+
/** The keyval of the accelerator. */
|
|
3003
|
+
accelKey?: number;
|
|
3004
|
+
'accel-key'?: number;
|
|
3005
|
+
/** Determines if the edited accelerators are GTK accelerators. */
|
|
3006
|
+
accelMode?: GtkCellRendererAccelModeNick | Gtk.CellRendererAccelMode;
|
|
3007
|
+
'accel-mode'?: GtkCellRendererAccelModeNick | Gtk.CellRendererAccelMode;
|
|
3008
|
+
/** The modifier mask of the accelerator. */
|
|
3009
|
+
accelMods?: GdkModifierTypeNickSet | number;
|
|
3010
|
+
'accel-mods'?: GdkModifierTypeNickSet | number;
|
|
3011
|
+
/** The hardware keycode of the accelerator. */
|
|
3012
|
+
keycode?: number;
|
|
3013
|
+
onAccelCleared?: Gtk.CellRendererAccel.SignalSignatures['accel-cleared'];
|
|
3014
|
+
onAccelEdited?: Gtk.CellRendererAccel.SignalSignatures['accel-edited'];
|
|
3015
|
+
onNotifyAccelKey?: NotifyHandler;
|
|
3016
|
+
onNotifyAccelMode?: NotifyHandler;
|
|
3017
|
+
onNotifyAccelMods?: NotifyHandler;
|
|
3018
|
+
onNotifyKeycode?: NotifyHandler;
|
|
3019
|
+
}
|
|
3020
|
+
/** Renders a combobox in a cell `GtkCellRendererCombo` renders text in a cell like `GtkCellRendererText` from which it is derived. */
|
|
3021
|
+
export interface GtkCellRendererComboProps extends GtkCellRendererTextProps, GtkCellRendererProps, GInitiallyUnownedProps, GObjectProps {
|
|
3022
|
+
/** If %TRUE, the cell renderer will include an entry and allow to enter values other than the ones in the popup list. */
|
|
3023
|
+
hasEntry?: boolean;
|
|
3024
|
+
'has-entry'?: boolean;
|
|
3025
|
+
/** Holds a tree model containing the possible values for the combo box. */
|
|
3026
|
+
model?: Gtk.TreeModel;
|
|
3027
|
+
/** Specifies the model column which holds the possible values for the combo box. */
|
|
3028
|
+
textColumn?: number;
|
|
3029
|
+
'text-column'?: number;
|
|
3030
|
+
onChanged?: Gtk.CellRendererCombo.SignalSignatures['changed'];
|
|
3031
|
+
onNotifyHasEntry?: NotifyHandler;
|
|
3032
|
+
onNotifyModel?: NotifyHandler;
|
|
3033
|
+
onNotifyTextColumn?: NotifyHandler;
|
|
3034
|
+
}
|
|
3035
|
+
/** Renders a pixbuf in a cell A `GtkCellRendererPixbuf` can be used to render an image in a cell. */
|
|
3036
|
+
export interface GtkCellRendererPixbufProps extends GtkCellRendererProps, GInitiallyUnownedProps, GObjectProps {
|
|
3037
|
+
/** The GIcon representing the icon to display. */
|
|
3038
|
+
gicon?: Gio.Icon;
|
|
3039
|
+
/** The name of the themed icon to display. */
|
|
3040
|
+
iconName?: string;
|
|
3041
|
+
'icon-name'?: string;
|
|
3042
|
+
/** The `GtkIconSize` value that specifies the size of the rendered icon. */
|
|
3043
|
+
iconSize?: GtkIconSizeNick | Gtk.IconSize;
|
|
3044
|
+
'icon-size'?: GtkIconSizeNick | Gtk.IconSize;
|
|
3045
|
+
pixbuf?: GdkPixbuf.Pixbuf;
|
|
3046
|
+
pixbufExpanderClosed?: GdkPixbuf.Pixbuf;
|
|
3047
|
+
'pixbuf-expander-closed'?: GdkPixbuf.Pixbuf;
|
|
3048
|
+
pixbufExpanderOpen?: GdkPixbuf.Pixbuf;
|
|
3049
|
+
'pixbuf-expander-open'?: GdkPixbuf.Pixbuf;
|
|
3050
|
+
texture?: Gdk.Texture;
|
|
3051
|
+
onNotifyGicon?: NotifyHandler;
|
|
3052
|
+
onNotifyIconName?: NotifyHandler;
|
|
3053
|
+
onNotifyIconSize?: NotifyHandler;
|
|
3054
|
+
onNotifyPixbuf?: NotifyHandler;
|
|
3055
|
+
onNotifyPixbufExpanderClosed?: NotifyHandler;
|
|
3056
|
+
onNotifyPixbufExpanderOpen?: NotifyHandler;
|
|
3057
|
+
onNotifyTexture?: NotifyHandler;
|
|
3058
|
+
}
|
|
3059
|
+
/** Renders numbers as progress bars `GtkCellRendererProgress` renders a numeric value as a progress par in a cell. */
|
|
3060
|
+
export interface GtkCellRendererProgressProps extends GtkCellRendererProps, GInitiallyUnownedProps, GObjectProps, GtkOrientableProps {
|
|
3061
|
+
/** Whether progess is inverted. */
|
|
3062
|
+
inverted?: boolean;
|
|
3063
|
+
/** Setting this to a non-negative value causes the cell renderer to enter "activity mode", where a block bounces back and forth to indicate that some progress is made, without specifying exactly how muc… */
|
|
3064
|
+
pulse?: number;
|
|
3065
|
+
/** The "text" property determines the label which will be drawn over the progress bar. */
|
|
3066
|
+
text?: string;
|
|
3067
|
+
/** The "text-xalign" property controls the horizontal alignment of the text in the progress bar. */
|
|
3068
|
+
textXalign?: number;
|
|
3069
|
+
'text-xalign'?: number;
|
|
3070
|
+
/** The "text-yalign" property controls the vertical alignment of the text in the progress bar. */
|
|
3071
|
+
textYalign?: number;
|
|
3072
|
+
'text-yalign'?: number;
|
|
3073
|
+
/** The "value" property determines the percentage to which the progress bar will be "filled in". */
|
|
3074
|
+
value?: number;
|
|
3075
|
+
onNotifyInverted?: NotifyHandler;
|
|
3076
|
+
onNotifyPulse?: NotifyHandler;
|
|
3077
|
+
onNotifyText?: NotifyHandler;
|
|
3078
|
+
onNotifyTextXalign?: NotifyHandler;
|
|
3079
|
+
onNotifyTextYalign?: NotifyHandler;
|
|
3080
|
+
onNotifyValue?: NotifyHandler;
|
|
3081
|
+
}
|
|
3082
|
+
/** An object for rendering a single cell The `GtkCellRenderer` is a base class of a set of objects used for rendering a cell to a `cairo_t`. */
|
|
3083
|
+
export interface GtkCellRendererProps {
|
|
3084
|
+
cellBackground?: string;
|
|
3085
|
+
'cell-background'?: string;
|
|
3086
|
+
/** Cell background as a `GdkRGBA` */
|
|
3087
|
+
cellBackgroundRgba?: Gdk.RGBA;
|
|
3088
|
+
'cell-background-rgba'?: Gdk.RGBA;
|
|
3089
|
+
cellBackgroundSet?: boolean;
|
|
3090
|
+
'cell-background-set'?: boolean;
|
|
3091
|
+
height?: number;
|
|
3092
|
+
isExpanded?: boolean;
|
|
3093
|
+
'is-expanded'?: boolean;
|
|
3094
|
+
isExpander?: boolean;
|
|
3095
|
+
'is-expander'?: boolean;
|
|
3096
|
+
mode?: GtkCellRendererModeNick | Gtk.CellRendererMode;
|
|
3097
|
+
sensitive?: boolean;
|
|
3098
|
+
visible?: boolean;
|
|
3099
|
+
width?: number;
|
|
3100
|
+
xalign?: number;
|
|
3101
|
+
xpad?: number;
|
|
3102
|
+
yalign?: number;
|
|
3103
|
+
ypad?: number;
|
|
3104
|
+
onEditingCanceled?: Gtk.CellRenderer.SignalSignatures['editing-canceled'];
|
|
3105
|
+
onEditingStarted?: Gtk.CellRenderer.SignalSignatures['editing-started'];
|
|
3106
|
+
onNotifyCellBackground?: NotifyHandler;
|
|
3107
|
+
onNotifyCellBackgroundRgba?: NotifyHandler;
|
|
3108
|
+
onNotifyCellBackgroundSet?: NotifyHandler;
|
|
3109
|
+
onNotifyHeight?: NotifyHandler;
|
|
3110
|
+
onNotifyIsExpanded?: NotifyHandler;
|
|
3111
|
+
onNotifyIsExpander?: NotifyHandler;
|
|
3112
|
+
onNotifyMode?: NotifyHandler;
|
|
3113
|
+
onNotifySensitive?: NotifyHandler;
|
|
3114
|
+
onNotifyVisible?: NotifyHandler;
|
|
3115
|
+
onNotifyWidth?: NotifyHandler;
|
|
3116
|
+
onNotifyXalign?: NotifyHandler;
|
|
3117
|
+
onNotifyXpad?: NotifyHandler;
|
|
3118
|
+
onNotifyYalign?: NotifyHandler;
|
|
3119
|
+
onNotifyYpad?: NotifyHandler;
|
|
3120
|
+
}
|
|
3121
|
+
/** Renders a spin button in a cell `GtkCellRendererSpin` renders text in a cell like `GtkCellRendererText` from which it is derived. */
|
|
3122
|
+
export interface GtkCellRendererSpinProps extends GtkCellRendererTextProps, GtkCellRendererProps, GInitiallyUnownedProps, GObjectProps {
|
|
3123
|
+
/** The adjustment that holds the value of the spinbutton. */
|
|
3124
|
+
adjustment?: Gtk.Adjustment;
|
|
3125
|
+
/** The acceleration rate when you hold down a button. */
|
|
3126
|
+
climbRate?: number;
|
|
3127
|
+
'climb-rate'?: number;
|
|
3128
|
+
/** The number of decimal places to display. */
|
|
3129
|
+
digits?: number;
|
|
3130
|
+
onNotifyAdjustment?: NotifyHandler;
|
|
3131
|
+
onNotifyClimbRate?: NotifyHandler;
|
|
3132
|
+
onNotifyDigits?: NotifyHandler;
|
|
3133
|
+
}
|
|
3134
|
+
/** Renders a spinning animation in a cell `GtkCellRendererSpinner` renders a spinning animation in a cell, very similar to `GtkSpinner`. */
|
|
3135
|
+
export interface GtkCellRendererSpinnerProps extends GtkCellRendererProps, GInitiallyUnownedProps, GObjectProps {
|
|
3136
|
+
/** Whether the spinner is active (ie. */
|
|
3137
|
+
active?: boolean;
|
|
3138
|
+
/** Pulse of the spinner. */
|
|
3139
|
+
pulse?: number;
|
|
3140
|
+
/** The `GtkIconSize` value that specifies the size of the rendered spinner. */
|
|
3141
|
+
size?: GtkIconSizeNick | Gtk.IconSize;
|
|
3142
|
+
onNotifyActive?: NotifyHandler;
|
|
3143
|
+
onNotifyPulse?: NotifyHandler;
|
|
3144
|
+
onNotifySize?: NotifyHandler;
|
|
3145
|
+
}
|
|
3146
|
+
/** Renders text in a cell A `GtkCellRendererText` renders a given text in its cell, using the font, color and style information provided by its properties. */
|
|
3147
|
+
export interface GtkCellRendererTextProps extends GtkCellRendererProps, GInitiallyUnownedProps, GObjectProps {
|
|
3148
|
+
alignSet?: boolean;
|
|
3149
|
+
'align-set'?: boolean;
|
|
3150
|
+
/** Specifies how to align the lines of text with respect to each other. */
|
|
3151
|
+
alignment?: PangoAlignmentNick | Pango.Alignment;
|
|
3152
|
+
attributes?: Pango.AttrList;
|
|
3153
|
+
background?: string;
|
|
3154
|
+
/** Background color as a `GdkRGBA` */
|
|
3155
|
+
backgroundRgba?: Gdk.RGBA;
|
|
3156
|
+
'background-rgba'?: Gdk.RGBA;
|
|
3157
|
+
backgroundSet?: boolean;
|
|
3158
|
+
'background-set'?: boolean;
|
|
3159
|
+
editable?: boolean;
|
|
3160
|
+
editableSet?: boolean;
|
|
3161
|
+
'editable-set'?: boolean;
|
|
3162
|
+
/** Specifies the preferred place to ellipsize the string, if the cell renderer does not have enough room to display the entire string. */
|
|
3163
|
+
ellipsize?: PangoEllipsizeModeNick | Pango.EllipsizeMode;
|
|
3164
|
+
ellipsizeSet?: boolean;
|
|
3165
|
+
'ellipsize-set'?: boolean;
|
|
3166
|
+
family?: string;
|
|
3167
|
+
familySet?: boolean;
|
|
3168
|
+
'family-set'?: boolean;
|
|
3169
|
+
font?: string;
|
|
3170
|
+
fontDesc?: Pango.FontDescription;
|
|
3171
|
+
'font-desc'?: Pango.FontDescription;
|
|
3172
|
+
foreground?: string;
|
|
3173
|
+
/** Foreground color as a `GdkRGBA` */
|
|
3174
|
+
foregroundRgba?: Gdk.RGBA;
|
|
3175
|
+
'foreground-rgba'?: Gdk.RGBA;
|
|
3176
|
+
foregroundSet?: boolean;
|
|
3177
|
+
'foreground-set'?: boolean;
|
|
3178
|
+
language?: string;
|
|
3179
|
+
languageSet?: boolean;
|
|
3180
|
+
'language-set'?: boolean;
|
|
3181
|
+
markup?: string;
|
|
3182
|
+
/** The desired maximum width of the cell, in characters. */
|
|
3183
|
+
maxWidthChars?: number;
|
|
3184
|
+
'max-width-chars'?: number;
|
|
3185
|
+
/** The text that will be displayed in the `GtkCellRenderer` if `GtkCellRendererText:editable` is %TRUE and the cell is empty. */
|
|
3186
|
+
placeholderText?: string;
|
|
3187
|
+
'placeholder-text'?: string;
|
|
3188
|
+
rise?: number;
|
|
3189
|
+
riseSet?: boolean;
|
|
3190
|
+
'rise-set'?: boolean;
|
|
3191
|
+
scale?: number;
|
|
3192
|
+
scaleSet?: boolean;
|
|
3193
|
+
'scale-set'?: boolean;
|
|
3194
|
+
singleParagraphMode?: boolean;
|
|
3195
|
+
'single-paragraph-mode'?: boolean;
|
|
3196
|
+
size?: number;
|
|
3197
|
+
sizePoints?: number;
|
|
3198
|
+
'size-points'?: number;
|
|
3199
|
+
sizeSet?: boolean;
|
|
3200
|
+
'size-set'?: boolean;
|
|
3201
|
+
stretch?: PangoStretchNick | Pango.Stretch;
|
|
3202
|
+
stretchSet?: boolean;
|
|
3203
|
+
'stretch-set'?: boolean;
|
|
3204
|
+
strikethrough?: boolean;
|
|
3205
|
+
strikethroughSet?: boolean;
|
|
3206
|
+
'strikethrough-set'?: boolean;
|
|
3207
|
+
style?: PangoStyleNick | Pango.Style;
|
|
3208
|
+
styleSet?: boolean;
|
|
3209
|
+
'style-set'?: boolean;
|
|
3210
|
+
text?: string;
|
|
3211
|
+
underline?: PangoUnderlineNick | Pango.Underline;
|
|
3212
|
+
underlineSet?: boolean;
|
|
3213
|
+
'underline-set'?: boolean;
|
|
3214
|
+
variant?: PangoVariantNick | Pango.Variant;
|
|
3215
|
+
variantSet?: boolean;
|
|
3216
|
+
'variant-set'?: boolean;
|
|
3217
|
+
weight?: number;
|
|
3218
|
+
weightSet?: boolean;
|
|
3219
|
+
'weight-set'?: boolean;
|
|
3220
|
+
/** The desired width of the cell, in characters. */
|
|
3221
|
+
widthChars?: number;
|
|
3222
|
+
'width-chars'?: number;
|
|
3223
|
+
/** Specifies how to break the string into multiple lines, if the cell renderer does not have enough room to display the entire string. */
|
|
3224
|
+
wrapMode?: PangoWrapModeNick | Pango.WrapMode;
|
|
3225
|
+
'wrap-mode'?: PangoWrapModeNick | Pango.WrapMode;
|
|
3226
|
+
/** Specifies the minimum width at which the text is wrapped. */
|
|
3227
|
+
wrapWidth?: number;
|
|
3228
|
+
'wrap-width'?: number;
|
|
3229
|
+
onEdited?: Gtk.CellRendererText.SignalSignatures['edited'];
|
|
3230
|
+
onNotifyAlignSet?: NotifyHandler;
|
|
3231
|
+
onNotifyAlignment?: NotifyHandler;
|
|
3232
|
+
onNotifyAttributes?: NotifyHandler;
|
|
3233
|
+
onNotifyBackground?: NotifyHandler;
|
|
3234
|
+
onNotifyBackgroundRgba?: NotifyHandler;
|
|
3235
|
+
onNotifyBackgroundSet?: NotifyHandler;
|
|
3236
|
+
onNotifyEditable?: NotifyHandler;
|
|
3237
|
+
onNotifyEditableSet?: NotifyHandler;
|
|
3238
|
+
onNotifyEllipsize?: NotifyHandler;
|
|
3239
|
+
onNotifyEllipsizeSet?: NotifyHandler;
|
|
3240
|
+
onNotifyFamily?: NotifyHandler;
|
|
3241
|
+
onNotifyFamilySet?: NotifyHandler;
|
|
3242
|
+
onNotifyFont?: NotifyHandler;
|
|
3243
|
+
onNotifyFontDesc?: NotifyHandler;
|
|
3244
|
+
onNotifyForeground?: NotifyHandler;
|
|
3245
|
+
onNotifyForegroundRgba?: NotifyHandler;
|
|
3246
|
+
onNotifyForegroundSet?: NotifyHandler;
|
|
3247
|
+
onNotifyLanguage?: NotifyHandler;
|
|
3248
|
+
onNotifyLanguageSet?: NotifyHandler;
|
|
3249
|
+
onNotifyMarkup?: NotifyHandler;
|
|
3250
|
+
onNotifyMaxWidthChars?: NotifyHandler;
|
|
3251
|
+
onNotifyPlaceholderText?: NotifyHandler;
|
|
3252
|
+
onNotifyRise?: NotifyHandler;
|
|
3253
|
+
onNotifyRiseSet?: NotifyHandler;
|
|
3254
|
+
onNotifyScale?: NotifyHandler;
|
|
3255
|
+
onNotifyScaleSet?: NotifyHandler;
|
|
3256
|
+
onNotifySingleParagraphMode?: NotifyHandler;
|
|
3257
|
+
onNotifySize?: NotifyHandler;
|
|
3258
|
+
onNotifySizePoints?: NotifyHandler;
|
|
3259
|
+
onNotifySizeSet?: NotifyHandler;
|
|
3260
|
+
onNotifyStretch?: NotifyHandler;
|
|
3261
|
+
onNotifyStretchSet?: NotifyHandler;
|
|
3262
|
+
onNotifyStrikethrough?: NotifyHandler;
|
|
3263
|
+
onNotifyStrikethroughSet?: NotifyHandler;
|
|
3264
|
+
onNotifyStyle?: NotifyHandler;
|
|
3265
|
+
onNotifyStyleSet?: NotifyHandler;
|
|
3266
|
+
onNotifyText?: NotifyHandler;
|
|
3267
|
+
onNotifyUnderline?: NotifyHandler;
|
|
3268
|
+
onNotifyUnderlineSet?: NotifyHandler;
|
|
3269
|
+
onNotifyVariant?: NotifyHandler;
|
|
3270
|
+
onNotifyVariantSet?: NotifyHandler;
|
|
3271
|
+
onNotifyWeight?: NotifyHandler;
|
|
3272
|
+
onNotifyWeightSet?: NotifyHandler;
|
|
3273
|
+
onNotifyWidthChars?: NotifyHandler;
|
|
3274
|
+
onNotifyWrapMode?: NotifyHandler;
|
|
3275
|
+
onNotifyWrapWidth?: NotifyHandler;
|
|
3276
|
+
}
|
|
3277
|
+
/** Renders a toggle button in a cell `GtkCellRendererToggle` renders a toggle button in a cell. */
|
|
3278
|
+
export interface GtkCellRendererToggleProps extends GtkCellRendererProps, GInitiallyUnownedProps, GObjectProps {
|
|
3279
|
+
activatable?: boolean;
|
|
3280
|
+
active?: boolean;
|
|
3281
|
+
inconsistent?: boolean;
|
|
3282
|
+
radio?: boolean;
|
|
3283
|
+
onToggled?: Gtk.CellRendererToggle.SignalSignatures['toggled'];
|
|
3284
|
+
onNotifyActivatable?: NotifyHandler;
|
|
3285
|
+
onNotifyActive?: NotifyHandler;
|
|
3286
|
+
onNotifyInconsistent?: NotifyHandler;
|
|
3287
|
+
onNotifyRadio?: NotifyHandler;
|
|
3288
|
+
}
|
|
2144
3289
|
/** A widget displaying a single row of a GtkTreeModel A `GtkCellView` displays a single row of a `GtkTreeModel` using a `GtkCellArea` and `GtkCellAreaContext`. */
|
|
2145
|
-
export interface GtkCellViewProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkCellLayoutProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
3290
|
+
export interface GtkCellViewProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkCellLayoutProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
2146
3291
|
/** The `GtkCellArea` rendering cells If no area is specified when creating the cell view with gtk_cell_view_new_with_context() a horizontally oriented `GtkCellArea`Box will be used. */
|
|
2147
3292
|
cellArea?: Gtk.CellArea;
|
|
2148
3293
|
'cell-area'?: Gtk.CellArea;
|
|
@@ -2164,7 +3309,7 @@ export interface GtkCellViewProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
2164
3309
|
onNotifyModel?: NotifyHandler;
|
|
2165
3310
|
}
|
|
2166
3311
|
/** Arranges three children in a row, keeping the middle child centered as well as possible. */
|
|
2167
|
-
export interface GtkCenterBoxProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
3312
|
+
export interface GtkCenterBoxProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
2168
3313
|
/** The position of the baseline aligned widget if extra space is available. */
|
|
2169
3314
|
baselinePosition?: GtkBaselinePositionNick | Gtk.BaselinePosition;
|
|
2170
3315
|
'baseline-position'?: GtkBaselinePositionNick | Gtk.BaselinePosition;
|
|
@@ -2186,8 +3331,15 @@ export interface GtkCenterBoxProps extends GtkWidgetProps, GtkAccessibleProps, G
|
|
|
2186
3331
|
onNotifyShrinkCenterLast?: NotifyHandler;
|
|
2187
3332
|
onNotifyStartWidget?: NotifyHandler;
|
|
2188
3333
|
}
|
|
3334
|
+
/** Manages up to three children. */
|
|
3335
|
+
export interface GtkCenterLayoutProps extends GtkLayoutManagerProps, GObjectProps {
|
|
3336
|
+
/** Whether to shrink the center widget after other children. */
|
|
3337
|
+
shrinkCenterLast?: boolean;
|
|
3338
|
+
'shrink-center-last'?: boolean;
|
|
3339
|
+
onNotifyShrinkCenterLast?: NotifyHandler;
|
|
3340
|
+
}
|
|
2189
3341
|
/** Places a label next to an indicator. */
|
|
2190
|
-
export interface GtkCheckButtonProps extends GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3342
|
+
export interface GtkCheckButtonProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2191
3343
|
/** If the check button is active. */
|
|
2192
3344
|
active?: boolean;
|
|
2193
3345
|
/** The child widget. */
|
|
@@ -2210,8 +3362,11 @@ export interface GtkCheckButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
2210
3362
|
onNotifyLabel?: NotifyHandler;
|
|
2211
3363
|
onNotifyUseUnderline?: NotifyHandler;
|
|
2212
3364
|
}
|
|
3365
|
+
/** An expression using a custom `GClosure` to compute the value from its parameters. */
|
|
3366
|
+
export interface GtkClosureExpressionProps extends GtkExpressionProps {
|
|
3367
|
+
}
|
|
2213
3368
|
/** The `GtkColorButton` allows to open a color chooser dialog to change the color. */
|
|
2214
|
-
export interface GtkColorButtonProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkColorChooserProps, GtkConstraintTargetProps {
|
|
3369
|
+
export interface GtkColorButtonProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkColorChooserProps, GtkConstraintTargetProps {
|
|
2215
3370
|
/** Whether the color chooser dialog should be modal. */
|
|
2216
3371
|
modal?: boolean;
|
|
2217
3372
|
/** Whether the color chooser should open in editor mode. */
|
|
@@ -2226,7 +3381,7 @@ export interface GtkColorButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
2226
3381
|
onNotifyTitle?: NotifyHandler;
|
|
2227
3382
|
}
|
|
2228
3383
|
/** A dialog for choosing a color. */
|
|
2229
|
-
export interface GtkColorChooserDialogProps extends GtkDialogProps, GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkColorChooserProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
3384
|
+
export interface GtkColorChooserDialogProps extends GtkDialogProps, GtkWindowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkColorChooserProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
2230
3385
|
/** Whether the color chooser dialog is showing the single-color editor. */
|
|
2231
3386
|
showEditor?: boolean;
|
|
2232
3387
|
'show-editor'?: boolean;
|
|
@@ -2250,14 +3405,14 @@ export interface GtkColorChooserProps {
|
|
|
2250
3405
|
onNotifyUseAlpha?: NotifyHandler;
|
|
2251
3406
|
}
|
|
2252
3407
|
/** The `GtkColorChooserWidget` widget lets the user select a color. */
|
|
2253
|
-
export interface GtkColorChooserWidgetProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkColorChooserProps, GtkConstraintTargetProps {
|
|
3408
|
+
export interface GtkColorChooserWidgetProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkColorChooserProps, GtkConstraintTargetProps {
|
|
2254
3409
|
/** %TRUE when the color chooser is showing the single-color editor. */
|
|
2255
3410
|
showEditor?: boolean;
|
|
2256
3411
|
'show-editor'?: boolean;
|
|
2257
3412
|
onNotifyShowEditor?: NotifyHandler;
|
|
2258
3413
|
}
|
|
2259
3414
|
/** Opens a color chooser dialog to select a color. */
|
|
2260
|
-
export interface GtkColorDialogButtonProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3415
|
+
export interface GtkColorDialogButtonProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2261
3416
|
/** The `GtkColorDialog` that contains parameters for the color chooser dialog. */
|
|
2262
3417
|
dialog?: Gtk.ColorDialog | null;
|
|
2263
3418
|
/** The selected color. */
|
|
@@ -2266,8 +3421,21 @@ export interface GtkColorDialogButtonProps extends GtkWidgetProps, GtkAccessible
|
|
|
2266
3421
|
onNotifyDialog?: NotifyHandler;
|
|
2267
3422
|
onNotifyRgba?: NotifyHandler;
|
|
2268
3423
|
}
|
|
3424
|
+
/** Asynchronous API to present a color chooser dialog. */
|
|
3425
|
+
export interface GtkColorDialogProps extends GObjectProps {
|
|
3426
|
+
/** Whether the color chooser dialog is modal. */
|
|
3427
|
+
modal?: boolean;
|
|
3428
|
+
/** A title that may be shown on the color chooser dialog. */
|
|
3429
|
+
title?: string;
|
|
3430
|
+
/** Whether colors may have alpha (translucency). */
|
|
3431
|
+
withAlpha?: boolean;
|
|
3432
|
+
'with-alpha'?: boolean;
|
|
3433
|
+
onNotifyModal?: NotifyHandler;
|
|
3434
|
+
onNotifyTitle?: NotifyHandler;
|
|
3435
|
+
onNotifyWithAlpha?: NotifyHandler;
|
|
3436
|
+
}
|
|
2269
3437
|
/** Represents items in a cell in [class@Gtk.ColumnView]. */
|
|
2270
|
-
export interface GtkColumnViewCellProps extends GtkListItemProps {
|
|
3438
|
+
export interface GtkColumnViewCellProps extends GtkListItemProps, GObjectProps {
|
|
2271
3439
|
/** Widget used for display. */
|
|
2272
3440
|
child?: Gtk.Widget | null;
|
|
2273
3441
|
/** If the item can be focused with the keyboard. */
|
|
@@ -2275,8 +3443,40 @@ export interface GtkColumnViewCellProps extends GtkListItemProps {
|
|
|
2275
3443
|
onNotifyChild?: NotifyHandler;
|
|
2276
3444
|
onNotifyFocusable?: NotifyHandler;
|
|
2277
3445
|
}
|
|
3446
|
+
/** Represents the columns in a `GtkColumnView`. */
|
|
3447
|
+
export interface GtkColumnViewColumnProps extends GObjectProps {
|
|
3448
|
+
/** Column gets share of extra width allocated to the view. */
|
|
3449
|
+
expand?: boolean;
|
|
3450
|
+
/** Factory for populating list items. */
|
|
3451
|
+
factory?: Gtk.ListItemFactory | null;
|
|
3452
|
+
/** If not -1, this is the width that the column is allocated, regardless of the size of its content. */
|
|
3453
|
+
fixedWidth?: number;
|
|
3454
|
+
'fixed-width'?: number;
|
|
3455
|
+
/** Menu model used to create the context menu for the column header. */
|
|
3456
|
+
headerMenu?: Gio.MenuModel | null;
|
|
3457
|
+
'header-menu'?: Gio.MenuModel | null;
|
|
3458
|
+
/** An ID for the column. */
|
|
3459
|
+
id?: string | null;
|
|
3460
|
+
/** Whether this column is resizable. */
|
|
3461
|
+
resizable?: boolean;
|
|
3462
|
+
/** Sorter for sorting items according to this column. */
|
|
3463
|
+
sorter?: Gtk.Sorter | null;
|
|
3464
|
+
/** Title displayed in the header. */
|
|
3465
|
+
title?: string | null;
|
|
3466
|
+
/** Whether this column is visible. */
|
|
3467
|
+
visible?: boolean;
|
|
3468
|
+
onNotifyExpand?: NotifyHandler;
|
|
3469
|
+
onNotifyFactory?: NotifyHandler;
|
|
3470
|
+
onNotifyFixedWidth?: NotifyHandler;
|
|
3471
|
+
onNotifyHeaderMenu?: NotifyHandler;
|
|
3472
|
+
onNotifyId?: NotifyHandler;
|
|
3473
|
+
onNotifyResizable?: NotifyHandler;
|
|
3474
|
+
onNotifySorter?: NotifyHandler;
|
|
3475
|
+
onNotifyTitle?: NotifyHandler;
|
|
3476
|
+
onNotifyVisible?: NotifyHandler;
|
|
3477
|
+
}
|
|
2278
3478
|
/** Presents a large dynamic list of items using multiple columns with headers. */
|
|
2279
|
-
export interface GtkColumnViewProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkScrollableProps {
|
|
3479
|
+
export interface GtkColumnViewProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkScrollableProps {
|
|
2280
3480
|
/** Allow rubberband selection. */
|
|
2281
3481
|
enableRubberband?: boolean;
|
|
2282
3482
|
'enable-rubberband'?: boolean;
|
|
@@ -2313,8 +3513,31 @@ export interface GtkColumnViewProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
2313
3513
|
onNotifySingleClickActivate?: NotifyHandler;
|
|
2314
3514
|
onNotifyTabBehavior?: NotifyHandler;
|
|
2315
3515
|
}
|
|
3516
|
+
/** Configures how rows are displayed in a [class@Gtk.ColumnView]. */
|
|
3517
|
+
export interface GtkColumnViewRowProps extends GObjectProps {
|
|
3518
|
+
/** The accessible description to set on the row. */
|
|
3519
|
+
accessibleDescription?: string;
|
|
3520
|
+
'accessible-description'?: string;
|
|
3521
|
+
/** The accessible label to set on the row. */
|
|
3522
|
+
accessibleLabel?: string;
|
|
3523
|
+
'accessible-label'?: string;
|
|
3524
|
+
/** If the row can be activated by the user. */
|
|
3525
|
+
activatable?: boolean;
|
|
3526
|
+
/** If the row can be focused with the keyboard. */
|
|
3527
|
+
focusable?: boolean;
|
|
3528
|
+
/** If the row can be selected by the user. */
|
|
3529
|
+
selectable?: boolean;
|
|
3530
|
+
onNotifyAccessibleDescription?: NotifyHandler;
|
|
3531
|
+
onNotifyAccessibleLabel?: NotifyHandler;
|
|
3532
|
+
onNotifyActivatable?: NotifyHandler;
|
|
3533
|
+
onNotifyFocusable?: NotifyHandler;
|
|
3534
|
+
onNotifySelectable?: NotifyHandler;
|
|
3535
|
+
}
|
|
3536
|
+
/** Sorts [class@Gtk.ColumnView] columns. */
|
|
3537
|
+
export interface GtkColumnViewSorterProps extends GtkSorterProps, GObjectProps {
|
|
3538
|
+
}
|
|
2316
3539
|
/** A `GtkComboBox` is a widget that allows the user to choose from a list of valid choices. */
|
|
2317
|
-
export interface GtkComboBoxProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkCellEditableProps, GtkCellLayoutProps, GtkConstraintTargetProps {
|
|
3540
|
+
export interface GtkComboBoxProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkCellEditableProps, GtkCellLayoutProps, GtkConstraintTargetProps {
|
|
2318
3541
|
/** The item which is currently active. */
|
|
2319
3542
|
active?: number;
|
|
2320
3543
|
/** The value of the ID column of the active row. */
|
|
@@ -2360,13 +3583,109 @@ export interface GtkComboBoxProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
2360
3583
|
onNotifyPopupFixedWidth?: NotifyHandler;
|
|
2361
3584
|
}
|
|
2362
3585
|
/** A `GtkComboBoxText` is a simple variant of `GtkComboBox` for text-only use cases. */
|
|
2363
|
-
export interface GtkComboBoxTextProps extends GtkComboBoxProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkCellEditableProps, GtkCellLayoutProps, GtkConstraintTargetProps {
|
|
3586
|
+
export interface GtkComboBoxTextProps extends GtkComboBoxProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkCellEditableProps, GtkCellLayoutProps, GtkConstraintTargetProps {
|
|
3587
|
+
}
|
|
3588
|
+
/** A constant value in a `GtkExpression`. */
|
|
3589
|
+
export interface GtkConstantExpressionProps extends GtkExpressionProps {
|
|
3590
|
+
}
|
|
3591
|
+
/** An invisible layout element in a `GtkConstraintLayout`. */
|
|
3592
|
+
export interface GtkConstraintGuideProps extends GObjectProps, GtkConstraintTargetProps {
|
|
3593
|
+
/** The maximum height of the guide. */
|
|
3594
|
+
maxHeight?: number;
|
|
3595
|
+
'max-height'?: number;
|
|
3596
|
+
/** The maximum width of the guide. */
|
|
3597
|
+
maxWidth?: number;
|
|
3598
|
+
'max-width'?: number;
|
|
3599
|
+
/** The minimum height of the guide. */
|
|
3600
|
+
minHeight?: number;
|
|
3601
|
+
'min-height'?: number;
|
|
3602
|
+
/** The minimum width of the guide. */
|
|
3603
|
+
minWidth?: number;
|
|
3604
|
+
'min-width'?: number;
|
|
3605
|
+
/** A name that identifies the `GtkConstraintGuide`, for debugging. */
|
|
3606
|
+
name?: string | null;
|
|
3607
|
+
/** The preferred, or natural, height of the guide. */
|
|
3608
|
+
natHeight?: number;
|
|
3609
|
+
'nat-height'?: number;
|
|
3610
|
+
/** The preferred, or natural, width of the guide. */
|
|
3611
|
+
natWidth?: number;
|
|
3612
|
+
'nat-width'?: number;
|
|
3613
|
+
/** The `GtkConstraintStrength` to be used for the constraint on the natural size of the guide. */
|
|
3614
|
+
strength?: GtkConstraintStrengthNick | Gtk.ConstraintStrength;
|
|
3615
|
+
onNotifyMaxHeight?: NotifyHandler;
|
|
3616
|
+
onNotifyMaxWidth?: NotifyHandler;
|
|
3617
|
+
onNotifyMinHeight?: NotifyHandler;
|
|
3618
|
+
onNotifyMinWidth?: NotifyHandler;
|
|
3619
|
+
onNotifyName?: NotifyHandler;
|
|
3620
|
+
onNotifyNatHeight?: NotifyHandler;
|
|
3621
|
+
onNotifyNatWidth?: NotifyHandler;
|
|
3622
|
+
onNotifyStrength?: NotifyHandler;
|
|
3623
|
+
}
|
|
3624
|
+
/** `GtkLayoutChild` subclass for children in a `GtkConstraintLayout`. */
|
|
3625
|
+
export interface GtkConstraintLayoutChildProps extends GtkLayoutChildProps, GObjectProps {
|
|
3626
|
+
}
|
|
3627
|
+
/** Uses constraints to describe relations between widgets. */
|
|
3628
|
+
export interface GtkConstraintLayoutProps extends GtkLayoutManagerProps, GObjectProps, GtkBuildableProps {
|
|
3629
|
+
}
|
|
3630
|
+
/** Describes a constraint between attributes of two widgets, expressed as a linear equation. */
|
|
3631
|
+
export interface GtkConstraintProps extends GObjectProps {
|
|
3632
|
+
/** The constant value to be added to the [property@Gtk.Constraint:source-attribute]. */
|
|
3633
|
+
constant?: number;
|
|
3634
|
+
/** The multiplication factor to be applied to the [property@Gtk.Constraint:source-attribute]. */
|
|
3635
|
+
multiplier?: number;
|
|
3636
|
+
/** The order relation between the terms of the constraint. */
|
|
3637
|
+
relation?: GtkConstraintRelationNick | Gtk.ConstraintRelation;
|
|
3638
|
+
/** The source of the constraint. */
|
|
3639
|
+
source?: Gtk.ConstraintTarget | null;
|
|
3640
|
+
/** The attribute of the [property@Gtk.Constraint:source] read by the constraint. */
|
|
3641
|
+
sourceAttribute?: GtkConstraintAttributeNick | Gtk.ConstraintAttribute;
|
|
3642
|
+
'source-attribute'?: GtkConstraintAttributeNick | Gtk.ConstraintAttribute;
|
|
3643
|
+
/** The strength of the constraint. */
|
|
3644
|
+
strength?: number;
|
|
3645
|
+
/** The target of the constraint. */
|
|
3646
|
+
target?: Gtk.ConstraintTarget | null;
|
|
3647
|
+
/** The attribute of the [property@Gtk.Constraint:target] set by the constraint. */
|
|
3648
|
+
targetAttribute?: GtkConstraintAttributeNick | Gtk.ConstraintAttribute;
|
|
3649
|
+
'target-attribute'?: GtkConstraintAttributeNick | Gtk.ConstraintAttribute;
|
|
3650
|
+
onNotifyConstant?: NotifyHandler;
|
|
3651
|
+
onNotifyMultiplier?: NotifyHandler;
|
|
3652
|
+
onNotifyRelation?: NotifyHandler;
|
|
3653
|
+
onNotifySource?: NotifyHandler;
|
|
3654
|
+
onNotifySourceAttribute?: NotifyHandler;
|
|
3655
|
+
onNotifyStrength?: NotifyHandler;
|
|
3656
|
+
onNotifyTarget?: NotifyHandler;
|
|
3657
|
+
onNotifyTargetAttribute?: NotifyHandler;
|
|
2364
3658
|
}
|
|
2365
3659
|
/** Makes it possible to use an object as source or target in a [class@Gtk.Constraint]. */
|
|
2366
3660
|
export interface GtkConstraintTargetProps {
|
|
2367
3661
|
}
|
|
3662
|
+
/** A style provider for CSS. */
|
|
3663
|
+
export interface GtkCssProviderProps extends GObjectProps, GtkStyleProviderProps {
|
|
3664
|
+
/** Define the color scheme used for rendering the user interface. */
|
|
3665
|
+
prefersColorScheme?: GtkInterfaceColorSchemeNick | Gtk.InterfaceColorScheme;
|
|
3666
|
+
'prefers-color-scheme'?: GtkInterfaceColorSchemeNick | Gtk.InterfaceColorScheme;
|
|
3667
|
+
/** Define the contrast mode to use for the user interface. */
|
|
3668
|
+
prefersContrast?: GtkInterfaceContrastNick | Gtk.InterfaceContrast;
|
|
3669
|
+
'prefers-contrast'?: GtkInterfaceContrastNick | Gtk.InterfaceContrast;
|
|
3670
|
+
/** Define the type of reduced motion to use for the user interface. */
|
|
3671
|
+
prefersReducedMotion?: GtkReducedMotionNick | Gtk.ReducedMotion;
|
|
3672
|
+
'prefers-reduced-motion'?: GtkReducedMotionNick | Gtk.ReducedMotion;
|
|
3673
|
+
onParsingError?: Gtk.CssProvider.SignalSignatures['parsing-error'];
|
|
3674
|
+
onNotifyPrefersColorScheme?: NotifyHandler;
|
|
3675
|
+
onNotifyPrefersContrast?: NotifyHandler;
|
|
3676
|
+
onNotifyPrefersReducedMotion?: NotifyHandler;
|
|
3677
|
+
}
|
|
3678
|
+
/** Determines whether to include items with a callback. */
|
|
3679
|
+
export interface GtkCustomFilterProps extends GtkFilterProps, GObjectProps {
|
|
3680
|
+
}
|
|
3681
|
+
/** Uses closures for size negotiation. */
|
|
3682
|
+
export interface GtkCustomLayoutProps extends GtkLayoutManagerProps, GObjectProps {
|
|
3683
|
+
}
|
|
3684
|
+
/** Sorts items via a callback function. */
|
|
3685
|
+
export interface GtkCustomSorterProps extends GtkSorterProps, GObjectProps {
|
|
3686
|
+
}
|
|
2368
3687
|
/** Dialogs are a convenient way to prompt the user for a small amount of input. */
|
|
2369
|
-
export interface GtkDialogProps extends GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
3688
|
+
export interface GtkDialogProps extends GtkWindowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
2370
3689
|
/**
|
|
2371
3690
|
* %TRUE if the dialog uses a headerbar for action buttons instead of the action-area.
|
|
2372
3691
|
* @deprecated
|
|
@@ -2377,14 +3696,43 @@ export interface GtkDialogProps extends GtkWindowProps, GtkWidgetProps, GtkAcces
|
|
|
2377
3696
|
onResponse?: Gtk.Dialog.SignalSignatures['response'];
|
|
2378
3697
|
onNotifyUseHeaderBar?: NotifyHandler;
|
|
2379
3698
|
}
|
|
3699
|
+
/** A list model that wraps [method@Gio.File.enumerate_children_async]. */
|
|
3700
|
+
export interface GtkDirectoryListProps extends GObjectProps, GListModelProps {
|
|
3701
|
+
/** The attributes to query. */
|
|
3702
|
+
attributes?: string | null;
|
|
3703
|
+
/** File to query. */
|
|
3704
|
+
file?: Gio.File | null;
|
|
3705
|
+
/** Priority used when loading. */
|
|
3706
|
+
ioPriority?: number;
|
|
3707
|
+
'io-priority'?: number;
|
|
3708
|
+
/** %TRUE if the directory is monitored for changed. */
|
|
3709
|
+
monitored?: boolean;
|
|
3710
|
+
onNotifyAttributes?: NotifyHandler;
|
|
3711
|
+
onNotifyFile?: NotifyHandler;
|
|
3712
|
+
onNotifyIoPriority?: NotifyHandler;
|
|
3713
|
+
onNotifyMonitored?: NotifyHandler;
|
|
3714
|
+
}
|
|
2380
3715
|
/** A `GtkRoot` implementation for drag icons. */
|
|
2381
|
-
export interface GtkDragIconProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps {
|
|
3716
|
+
export interface GtkDragIconProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps {
|
|
2382
3717
|
/** The widget to display as drag icon. */
|
|
2383
3718
|
child?: Gtk.Widget | null;
|
|
2384
3719
|
onNotifyChild?: NotifyHandler;
|
|
2385
3720
|
}
|
|
3721
|
+
/** An event controller to initiate Drag-And-Drop operations. */
|
|
3722
|
+
export interface GtkDragSourceProps extends GtkGestureSingleProps, GtkGestureProps, GtkEventControllerProps, GObjectProps {
|
|
3723
|
+
/** The actions that are supported by drag operations from the source. */
|
|
3724
|
+
actions?: GdkDragActionNickSet | number;
|
|
3725
|
+
/** The data that is offered by drag operations from this source. */
|
|
3726
|
+
content?: Gdk.ContentProvider | null;
|
|
3727
|
+
onDragBegin?: Gtk.DragSource.SignalSignatures['drag-begin'];
|
|
3728
|
+
onDragCancel?: Gtk.DragSource.SignalSignatures['drag-cancel'];
|
|
3729
|
+
onDragEnd?: Gtk.DragSource.SignalSignatures['drag-end'];
|
|
3730
|
+
onPrepare?: Gtk.DragSource.SignalSignatures['prepare'];
|
|
3731
|
+
onNotifyActions?: NotifyHandler;
|
|
3732
|
+
onNotifyContent?: NotifyHandler;
|
|
3733
|
+
}
|
|
2386
3734
|
/** Allows drawing with cairo. */
|
|
2387
|
-
export interface GtkDrawingAreaProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3735
|
+
export interface GtkDrawingAreaProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2388
3736
|
/** The content height. */
|
|
2389
3737
|
contentHeight?: number;
|
|
2390
3738
|
'content-height'?: number;
|
|
@@ -2395,8 +3743,14 @@ export interface GtkDrawingAreaProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
2395
3743
|
onNotifyContentHeight?: NotifyHandler;
|
|
2396
3744
|
onNotifyContentWidth?: NotifyHandler;
|
|
2397
3745
|
}
|
|
3746
|
+
/** An event controller tracking the pointer during Drag-and-Drop operations. */
|
|
3747
|
+
export interface GtkDropControllerMotionProps extends GtkEventControllerProps, GObjectProps {
|
|
3748
|
+
onEnter?: Gtk.DropControllerMotion.SignalSignatures['enter'];
|
|
3749
|
+
onLeave?: Gtk.DropControllerMotion.SignalSignatures['leave'];
|
|
3750
|
+
onMotion?: Gtk.DropControllerMotion.SignalSignatures['motion'];
|
|
3751
|
+
}
|
|
2398
3752
|
/** Allows the user to choose an item from a list of options. */
|
|
2399
|
-
export interface GtkDropDownProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3753
|
+
export interface GtkDropDownProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2400
3754
|
/** Whether to show a search entry in the popup. */
|
|
2401
3755
|
enableSearch?: boolean;
|
|
2402
3756
|
'enable-search'?: boolean;
|
|
@@ -2431,8 +3785,39 @@ export interface GtkDropDownProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
2431
3785
|
onNotifySelected?: NotifyHandler;
|
|
2432
3786
|
onNotifyShowArrow?: NotifyHandler;
|
|
2433
3787
|
}
|
|
3788
|
+
/** An event controller to receive Drag-and-Drop operations, asynchronously. */
|
|
3789
|
+
export interface GtkDropTargetAsyncProps extends GtkEventControllerProps, GObjectProps {
|
|
3790
|
+
/** The `GdkDragActions` that this drop target supports. */
|
|
3791
|
+
actions?: GdkDragActionNickSet | number;
|
|
3792
|
+
/** The `GdkContentFormats` that determines the supported data formats. */
|
|
3793
|
+
formats?: Gdk.ContentFormats | null;
|
|
3794
|
+
onAccept?: Gtk.DropTargetAsync.SignalSignatures['accept'];
|
|
3795
|
+
onDragEnter?: Gtk.DropTargetAsync.SignalSignatures['drag-enter'];
|
|
3796
|
+
onDragLeave?: Gtk.DropTargetAsync.SignalSignatures['drag-leave'];
|
|
3797
|
+
onDragMotion?: Gtk.DropTargetAsync.SignalSignatures['drag-motion'];
|
|
3798
|
+
onDrop?: Gtk.DropTargetAsync.SignalSignatures['drop'];
|
|
3799
|
+
onNotifyActions?: NotifyHandler;
|
|
3800
|
+
onNotifyFormats?: NotifyHandler;
|
|
3801
|
+
}
|
|
3802
|
+
/** An event controller to receive Drag-and-Drop operations. */
|
|
3803
|
+
export interface GtkDropTargetProps extends GtkEventControllerProps, GObjectProps {
|
|
3804
|
+
/** The `GdkDragActions` that this drop target supports. */
|
|
3805
|
+
actions?: GdkDragActionNickSet | number;
|
|
3806
|
+
/** The `GdkContentFormats` that determine the supported data formats. */
|
|
3807
|
+
formats?: Gdk.ContentFormats | null;
|
|
3808
|
+
/** Whether the drop data should be preloaded when the pointer is only hovering over the widget but has not been released. */
|
|
3809
|
+
preload?: boolean;
|
|
3810
|
+
onAccept?: Gtk.DropTarget.SignalSignatures['accept'];
|
|
3811
|
+
onDrop?: Gtk.DropTarget.SignalSignatures['drop'];
|
|
3812
|
+
onEnter?: Gtk.DropTarget.SignalSignatures['enter'];
|
|
3813
|
+
onLeave?: Gtk.DropTarget.SignalSignatures['leave'];
|
|
3814
|
+
onMotion?: Gtk.DropTarget.SignalSignatures['motion'];
|
|
3815
|
+
onNotifyActions?: NotifyHandler;
|
|
3816
|
+
onNotifyFormats?: NotifyHandler;
|
|
3817
|
+
onNotifyPreload?: NotifyHandler;
|
|
3818
|
+
}
|
|
2434
3819
|
/** Allows users to edit the displayed text by switching to an “edit mode”. */
|
|
2435
|
-
export interface GtkEditableLabelProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
3820
|
+
export interface GtkEditableLabelProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
2436
3821
|
/** This property is %TRUE while the widget is in edit mode. */
|
|
2437
3822
|
editing?: boolean;
|
|
2438
3823
|
onNotifyEditing?: NotifyHandler;
|
|
@@ -2470,11 +3855,65 @@ export interface GtkEditableProps {
|
|
|
2470
3855
|
onNotifyXalign?: NotifyHandler;
|
|
2471
3856
|
}
|
|
2472
3857
|
/** Used by text widgets to let users insert Emoji characters. */
|
|
2473
|
-
export interface GtkEmojiChooserProps extends GtkPopoverProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkShortcutManagerProps {
|
|
3858
|
+
export interface GtkEmojiChooserProps extends GtkPopoverProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkShortcutManagerProps {
|
|
2474
3859
|
onEmojiPicked?: Gtk.EmojiChooser.SignalSignatures['emoji-picked'];
|
|
2475
3860
|
}
|
|
3861
|
+
/** Holds the text that is displayed in a single-line text entry widget. */
|
|
3862
|
+
export interface GtkEntryBufferProps extends GObjectProps {
|
|
3863
|
+
/** The maximum length (in characters) of the text in the buffer. */
|
|
3864
|
+
maxLength?: number;
|
|
3865
|
+
'max-length'?: number;
|
|
3866
|
+
/** The contents of the buffer. */
|
|
3867
|
+
text?: string;
|
|
3868
|
+
onDeletedText?: Gtk.EntryBuffer.SignalSignatures['deleted-text'];
|
|
3869
|
+
onInsertedText?: Gtk.EntryBuffer.SignalSignatures['inserted-text'];
|
|
3870
|
+
onNotifyMaxLength?: NotifyHandler;
|
|
3871
|
+
onNotifyText?: NotifyHandler;
|
|
3872
|
+
}
|
|
3873
|
+
/** `GtkEntryCompletion` is an auxiliary object to provide completion functionality for `GtkEntry`. */
|
|
3874
|
+
export interface GtkEntryCompletionProps extends GObjectProps, GtkBuildableProps, GtkCellLayoutProps {
|
|
3875
|
+
/** The `GtkCellArea` used to layout cell renderers in the treeview column. */
|
|
3876
|
+
cellArea?: Gtk.CellArea;
|
|
3877
|
+
'cell-area'?: Gtk.CellArea;
|
|
3878
|
+
/** Determines whether the common prefix of the possible completions should be inserted automatically in the entry. */
|
|
3879
|
+
inlineCompletion?: boolean;
|
|
3880
|
+
'inline-completion'?: boolean;
|
|
3881
|
+
/** Determines whether the possible completions on the popup will appear in the entry as you navigate through them. */
|
|
3882
|
+
inlineSelection?: boolean;
|
|
3883
|
+
'inline-selection'?: boolean;
|
|
3884
|
+
/** The minimum key length as set for completion. */
|
|
3885
|
+
minimumKeyLength?: number;
|
|
3886
|
+
'minimum-key-length'?: number;
|
|
3887
|
+
/** The model used as data source. */
|
|
3888
|
+
model?: Gtk.TreeModel | null;
|
|
3889
|
+
/** Determines whether the possible completions should be shown in a popup window. */
|
|
3890
|
+
popupCompletion?: boolean;
|
|
3891
|
+
'popup-completion'?: boolean;
|
|
3892
|
+
/** Determines whether the completions popup window will be resized to the width of the entry. */
|
|
3893
|
+
popupSetWidth?: boolean;
|
|
3894
|
+
'popup-set-width'?: boolean;
|
|
3895
|
+
/** Determines whether the completions popup window will shown for a single possible completion. */
|
|
3896
|
+
popupSingleMatch?: boolean;
|
|
3897
|
+
'popup-single-match'?: boolean;
|
|
3898
|
+
/** The column of the model containing the strings. */
|
|
3899
|
+
textColumn?: number;
|
|
3900
|
+
'text-column'?: number;
|
|
3901
|
+
onCursorOnMatch?: Gtk.EntryCompletion.SignalSignatures['cursor-on-match'];
|
|
3902
|
+
onInsertPrefix?: Gtk.EntryCompletion.SignalSignatures['insert-prefix'];
|
|
3903
|
+
onMatchSelected?: Gtk.EntryCompletion.SignalSignatures['match-selected'];
|
|
3904
|
+
onNoMatches?: Gtk.EntryCompletion.SignalSignatures['no-matches'];
|
|
3905
|
+
onNotifyCellArea?: NotifyHandler;
|
|
3906
|
+
onNotifyInlineCompletion?: NotifyHandler;
|
|
3907
|
+
onNotifyInlineSelection?: NotifyHandler;
|
|
3908
|
+
onNotifyMinimumKeyLength?: NotifyHandler;
|
|
3909
|
+
onNotifyModel?: NotifyHandler;
|
|
3910
|
+
onNotifyPopupCompletion?: NotifyHandler;
|
|
3911
|
+
onNotifyPopupSetWidth?: NotifyHandler;
|
|
3912
|
+
onNotifyPopupSingleMatch?: NotifyHandler;
|
|
3913
|
+
onNotifyTextColumn?: NotifyHandler;
|
|
3914
|
+
}
|
|
2476
3915
|
/** A single-line text entry widget. */
|
|
2477
|
-
export interface GtkEntryProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkCellEditableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
3916
|
+
export interface GtkEntryProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkCellEditableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
2478
3917
|
/** Whether to activate the default widget when Enter is pressed. */
|
|
2479
3918
|
activatesDefault?: boolean;
|
|
2480
3919
|
'activates-default'?: boolean;
|
|
@@ -2500,8 +3939,8 @@ export interface GtkEntryProps extends GtkWidgetProps, GtkAccessibleProps, GtkBu
|
|
|
2500
3939
|
imModule?: string;
|
|
2501
3940
|
'im-module'?: string;
|
|
2502
3941
|
/** Additional hints that allow input methods to fine-tune their behavior. */
|
|
2503
|
-
inputHints?: number;
|
|
2504
|
-
'input-hints'?: number;
|
|
3942
|
+
inputHints?: GtkInputHintsNickSet | number;
|
|
3943
|
+
'input-hints'?: GtkInputHintsNickSet | number;
|
|
2505
3944
|
/** The purpose of this text field. */
|
|
2506
3945
|
inputPurpose?: GtkInputPurposeNick | Gtk.InputPurpose;
|
|
2507
3946
|
'input-purpose'?: GtkInputPurposeNick | Gtk.InputPurpose;
|
|
@@ -2625,8 +4064,67 @@ export interface GtkEntryProps extends GtkWidgetProps, GtkAccessibleProps, GtkBu
|
|
|
2625
4064
|
onNotifyTruncateMultiline?: NotifyHandler;
|
|
2626
4065
|
onNotifyVisibility?: NotifyHandler;
|
|
2627
4066
|
}
|
|
4067
|
+
/** `GtkEnumListItem` is the type of items in a [class@Gtk.EnumList]. */
|
|
4068
|
+
export interface GtkEnumListItemProps extends GObjectProps {
|
|
4069
|
+
}
|
|
4070
|
+
/** A [iface@Gio.ListModel] representing values of a given enum. */
|
|
4071
|
+
export interface GtkEnumListProps extends GObjectProps, GListModelProps {
|
|
4072
|
+
/** The type of the enum represented by the model. */
|
|
4073
|
+
enumType?: GObject.GType;
|
|
4074
|
+
'enum-type'?: GObject.GType;
|
|
4075
|
+
onNotifyEnumType?: NotifyHandler;
|
|
4076
|
+
}
|
|
4077
|
+
/** Tracks keyboard focus. */
|
|
4078
|
+
export interface GtkEventControllerFocusProps extends GtkEventControllerProps, GObjectProps {
|
|
4079
|
+
onEnter?: Gtk.EventControllerFocus.SignalSignatures['enter'];
|
|
4080
|
+
onLeave?: Gtk.EventControllerFocus.SignalSignatures['leave'];
|
|
4081
|
+
}
|
|
4082
|
+
/** Provides access to key events. */
|
|
4083
|
+
export interface GtkEventControllerKeyProps extends GtkEventControllerProps, GObjectProps {
|
|
4084
|
+
onImUpdate?: Gtk.EventControllerKey.SignalSignatures['im-update'];
|
|
4085
|
+
onKeyPressed?: Gtk.EventControllerKey.SignalSignatures['key-pressed'];
|
|
4086
|
+
onKeyReleased?: Gtk.EventControllerKey.SignalSignatures['key-released'];
|
|
4087
|
+
onModifiers?: Gtk.EventControllerKey.SignalSignatures['modifiers'];
|
|
4088
|
+
}
|
|
4089
|
+
/** Provides raw access to the event stream. */
|
|
4090
|
+
export interface GtkEventControllerLegacyProps extends GtkEventControllerProps, GObjectProps {
|
|
4091
|
+
onEvent?: Gtk.EventControllerLegacy.SignalSignatures['event'];
|
|
4092
|
+
}
|
|
4093
|
+
/** Tracks the pointer position. */
|
|
4094
|
+
export interface GtkEventControllerMotionProps extends GtkEventControllerProps, GObjectProps {
|
|
4095
|
+
onEnter?: Gtk.EventControllerMotion.SignalSignatures['enter'];
|
|
4096
|
+
onLeave?: Gtk.EventControllerMotion.SignalSignatures['leave'];
|
|
4097
|
+
onMotion?: Gtk.EventControllerMotion.SignalSignatures['motion'];
|
|
4098
|
+
}
|
|
4099
|
+
/** The base class for event controllers. */
|
|
4100
|
+
export interface GtkEventControllerProps {
|
|
4101
|
+
/** The name for this controller, typically used for debugging purposes. */
|
|
4102
|
+
name?: string | null;
|
|
4103
|
+
/** The limit for which events this controller will handle. */
|
|
4104
|
+
propagationLimit?: GtkPropagationLimitNick | Gtk.PropagationLimit;
|
|
4105
|
+
'propagation-limit'?: GtkPropagationLimitNick | Gtk.PropagationLimit;
|
|
4106
|
+
/** The propagation phase at which this controller will handle events. */
|
|
4107
|
+
propagationPhase?: GtkPropagationPhaseNick | Gtk.PropagationPhase;
|
|
4108
|
+
'propagation-phase'?: GtkPropagationPhaseNick | Gtk.PropagationPhase;
|
|
4109
|
+
onNotifyName?: NotifyHandler;
|
|
4110
|
+
onNotifyPropagationLimit?: NotifyHandler;
|
|
4111
|
+
onNotifyPropagationPhase?: NotifyHandler;
|
|
4112
|
+
}
|
|
4113
|
+
/** Handles scroll events. */
|
|
4114
|
+
export interface GtkEventControllerScrollProps extends GtkEventControllerProps, GObjectProps {
|
|
4115
|
+
/** The flags affecting event controller behavior. */
|
|
4116
|
+
flags?: GtkEventControllerScrollFlagsNickSet | number;
|
|
4117
|
+
onDecelerate?: Gtk.EventControllerScroll.SignalSignatures['decelerate'];
|
|
4118
|
+
onScroll?: Gtk.EventControllerScroll.SignalSignatures['scroll'];
|
|
4119
|
+
onScrollBegin?: Gtk.EventControllerScroll.SignalSignatures['scroll-begin'];
|
|
4120
|
+
onScrollEnd?: Gtk.EventControllerScroll.SignalSignatures['scroll-end'];
|
|
4121
|
+
onNotifyFlags?: NotifyHandler;
|
|
4122
|
+
}
|
|
4123
|
+
/** Matches an item when each of its filters matches. */
|
|
4124
|
+
export interface GtkEveryFilterProps extends GtkMultiFilterProps, GtkFilterProps, GObjectProps, GListModelProps, GtkBuildableProps {
|
|
4125
|
+
}
|
|
2628
4126
|
/** Allows the user to reveal or conceal a child widget. */
|
|
2629
|
-
export interface GtkExpanderProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4127
|
+
export interface GtkExpanderProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2630
4128
|
/** The child widget. */
|
|
2631
4129
|
child?: Gtk.Widget | null;
|
|
2632
4130
|
/** Whether the expander has been opened to reveal the child. */
|
|
@@ -2654,8 +4152,22 @@ export interface GtkExpanderProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
2654
4152
|
onNotifyUseMarkup?: NotifyHandler;
|
|
2655
4153
|
onNotifyUseUnderline?: NotifyHandler;
|
|
2656
4154
|
}
|
|
4155
|
+
/** Provides a way to describe references to values. */
|
|
4156
|
+
export interface GtkExpressionProps {
|
|
4157
|
+
}
|
|
2657
4158
|
/** `GtkFileChooserDialog` is a dialog suitable for use with “File Open” or “File Save” commands. */
|
|
2658
|
-
export interface GtkFileChooserDialogProps extends GtkDialogProps, GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkFileChooserProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
4159
|
+
export interface GtkFileChooserDialogProps extends GtkDialogProps, GtkWindowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkFileChooserProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
4160
|
+
}
|
|
4161
|
+
/** `GtkFileChooserNative` is an abstraction of a dialog suitable for use with “File Open” or “File Save as” commands. */
|
|
4162
|
+
export interface GtkFileChooserNativeProps extends GtkNativeDialogProps, GObjectProps, GtkFileChooserProps {
|
|
4163
|
+
/** The text used for the label on the accept button in the dialog, or %NULL to use the default text. */
|
|
4164
|
+
acceptLabel?: string | null;
|
|
4165
|
+
'accept-label'?: string | null;
|
|
4166
|
+
/** The text used for the label on the cancel button in the dialog, or %NULL to use the default text. */
|
|
4167
|
+
cancelLabel?: string | null;
|
|
4168
|
+
'cancel-label'?: string | null;
|
|
4169
|
+
onNotifyAcceptLabel?: NotifyHandler;
|
|
4170
|
+
onNotifyCancelLabel?: NotifyHandler;
|
|
2659
4171
|
}
|
|
2660
4172
|
/** `GtkFileChooser` is an interface that can be implemented by file selection widgets. */
|
|
2661
4173
|
export interface GtkFileChooserProps {
|
|
@@ -2687,7 +4199,7 @@ export interface GtkFileChooserProps {
|
|
|
2687
4199
|
onNotifySelectMultiple?: NotifyHandler;
|
|
2688
4200
|
}
|
|
2689
4201
|
/** `GtkFileChooserWidget` is a widget for choosing files. */
|
|
2690
|
-
export interface GtkFileChooserWidgetProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkFileChooserProps {
|
|
4202
|
+
export interface GtkFileChooserWidgetProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkFileChooserProps {
|
|
2691
4203
|
/** Whether search mode is enabled. */
|
|
2692
4204
|
searchMode?: boolean;
|
|
2693
4205
|
'search-mode'?: boolean;
|
|
@@ -2705,18 +4217,114 @@ export interface GtkFileChooserWidgetProps extends GtkWidgetProps, GtkAccessible
|
|
|
2705
4217
|
onUpFolder?: Gtk.FileChooserWidget.SignalSignatures['up-folder'];
|
|
2706
4218
|
onNotifySearchMode?: NotifyHandler;
|
|
2707
4219
|
}
|
|
4220
|
+
/** Asynchronous API to present a file chooser dialog. */
|
|
4221
|
+
export interface GtkFileDialogProps extends GObjectProps {
|
|
4222
|
+
/** Label for the file chooser's accept button. */
|
|
4223
|
+
acceptLabel?: string | null;
|
|
4224
|
+
'accept-label'?: string | null;
|
|
4225
|
+
/** The default filter. */
|
|
4226
|
+
defaultFilter?: Gtk.FileFilter | null;
|
|
4227
|
+
'default-filter'?: Gtk.FileFilter | null;
|
|
4228
|
+
/** The list of filters. */
|
|
4229
|
+
filters?: Gio.ListModel | null;
|
|
4230
|
+
/** The initial file. */
|
|
4231
|
+
initialFile?: Gio.File | null;
|
|
4232
|
+
'initial-file'?: Gio.File | null;
|
|
4233
|
+
/** The initial folder. */
|
|
4234
|
+
initialFolder?: Gio.File | null;
|
|
4235
|
+
'initial-folder'?: Gio.File | null;
|
|
4236
|
+
/** The initial name. */
|
|
4237
|
+
initialName?: string | null;
|
|
4238
|
+
'initial-name'?: string | null;
|
|
4239
|
+
/** Whether the file chooser dialog is modal. */
|
|
4240
|
+
modal?: boolean;
|
|
4241
|
+
/** A title that may be shown on the file chooser dialog. */
|
|
4242
|
+
title?: string;
|
|
4243
|
+
onNotifyAcceptLabel?: NotifyHandler;
|
|
4244
|
+
onNotifyDefaultFilter?: NotifyHandler;
|
|
4245
|
+
onNotifyFilters?: NotifyHandler;
|
|
4246
|
+
onNotifyInitialFile?: NotifyHandler;
|
|
4247
|
+
onNotifyInitialFolder?: NotifyHandler;
|
|
4248
|
+
onNotifyInitialName?: NotifyHandler;
|
|
4249
|
+
onNotifyModal?: NotifyHandler;
|
|
4250
|
+
onNotifyTitle?: NotifyHandler;
|
|
4251
|
+
}
|
|
4252
|
+
/** Filters files by name or mime type. */
|
|
4253
|
+
export interface GtkFileFilterProps extends GtkFilterProps, GObjectProps, GtkBuildableProps {
|
|
4254
|
+
/** The MIME types that this filter matches. */
|
|
4255
|
+
mimeTypes?: string[];
|
|
4256
|
+
'mime-types'?: string[];
|
|
4257
|
+
/** The human-readable name of the filter. */
|
|
4258
|
+
name?: string | null;
|
|
4259
|
+
/** The patterns that this filter matches. */
|
|
4260
|
+
patterns?: string[];
|
|
4261
|
+
/** The suffixes that this filter matches. */
|
|
4262
|
+
suffixes?: string[];
|
|
4263
|
+
onNotifyMimeTypes?: NotifyHandler;
|
|
4264
|
+
onNotifyName?: NotifyHandler;
|
|
4265
|
+
onNotifyPatterns?: NotifyHandler;
|
|
4266
|
+
onNotifySuffixes?: NotifyHandler;
|
|
4267
|
+
}
|
|
4268
|
+
/** Asynchronous API to open a file with an application. */
|
|
4269
|
+
export interface GtkFileLauncherProps extends GObjectProps {
|
|
4270
|
+
/** Whether to ask the user to choose an app for opening the file. */
|
|
4271
|
+
alwaysAsk?: boolean;
|
|
4272
|
+
'always-ask'?: boolean;
|
|
4273
|
+
/** The file to launch. */
|
|
4274
|
+
file?: Gio.File | null;
|
|
4275
|
+
/** Whether to make the file writable for the handler. */
|
|
4276
|
+
writable?: boolean;
|
|
4277
|
+
onNotifyAlwaysAsk?: NotifyHandler;
|
|
4278
|
+
onNotifyFile?: NotifyHandler;
|
|
4279
|
+
onNotifyWritable?: NotifyHandler;
|
|
4280
|
+
}
|
|
4281
|
+
/** A list model that filters the elements of another model. */
|
|
4282
|
+
export interface GtkFilterListModelProps extends GObjectProps, GListModelProps, GtkSectionModelProps {
|
|
4283
|
+
/** The filter for this model. */
|
|
4284
|
+
filter?: Gtk.Filter | null;
|
|
4285
|
+
/** If the model should filter items incrementally. */
|
|
4286
|
+
incremental?: boolean;
|
|
4287
|
+
/** The model being filtered. */
|
|
4288
|
+
model?: Gio.ListModel | null;
|
|
4289
|
+
/** Monitor the list items for changes. */
|
|
4290
|
+
watchItems?: boolean;
|
|
4291
|
+
'watch-items'?: boolean;
|
|
4292
|
+
onNotifyFilter?: NotifyHandler;
|
|
4293
|
+
onNotifyIncremental?: NotifyHandler;
|
|
4294
|
+
onNotifyModel?: NotifyHandler;
|
|
4295
|
+
onNotifyWatchItems?: NotifyHandler;
|
|
4296
|
+
}
|
|
4297
|
+
/** Describes the filtering to be performed by a [class@Gtk.FilterListModel]. */
|
|
4298
|
+
export interface GtkFilterProps extends GObjectProps {
|
|
4299
|
+
onChanged?: Gtk.Filter.SignalSignatures['changed'];
|
|
4300
|
+
}
|
|
4301
|
+
/** `GtkLayoutChild` subclass for children in a `GtkFixedLayout`. */
|
|
4302
|
+
export interface GtkFixedLayoutChildProps extends GtkLayoutChildProps, GObjectProps {
|
|
4303
|
+
/** The transform of the child. */
|
|
4304
|
+
transform?: Gsk.Transform | null;
|
|
4305
|
+
onNotifyTransform?: NotifyHandler;
|
|
4306
|
+
}
|
|
4307
|
+
/** Places child widgets at fixed positions. */
|
|
4308
|
+
export interface GtkFixedLayoutProps extends GtkLayoutManagerProps, GObjectProps {
|
|
4309
|
+
}
|
|
2708
4310
|
/** Places its child widgets at fixed positions and with fixed sizes. */
|
|
2709
|
-
export interface GtkFixedProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4311
|
+
export interface GtkFixedProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4312
|
+
}
|
|
4313
|
+
/** A list model that concatenates other list models. */
|
|
4314
|
+
export interface GtkFlattenListModelProps extends GObjectProps, GListModelProps, GtkSectionModelProps {
|
|
4315
|
+
/** The model being flattened. */
|
|
4316
|
+
model?: Gio.ListModel | null;
|
|
4317
|
+
onNotifyModel?: NotifyHandler;
|
|
2710
4318
|
}
|
|
2711
4319
|
/** The kind of widget that can be added to a `GtkFlowBox`. */
|
|
2712
|
-
export interface GtkFlowBoxChildProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4320
|
+
export interface GtkFlowBoxChildProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2713
4321
|
/** The child widget. */
|
|
2714
4322
|
child?: Gtk.Widget | null;
|
|
2715
4323
|
onActivate?: Gtk.FlowBoxChild.SignalSignatures['activate'];
|
|
2716
4324
|
onNotifyChild?: NotifyHandler;
|
|
2717
4325
|
}
|
|
2718
4326
|
/** Puts child widgets in a reflowing grid. */
|
|
2719
|
-
export interface GtkFlowBoxProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
4327
|
+
export interface GtkFlowBoxProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
2720
4328
|
/** Whether to accept unpaired release events. */
|
|
2721
4329
|
acceptUnpairedRelease?: boolean;
|
|
2722
4330
|
'accept-unpaired-release'?: boolean;
|
|
@@ -2757,7 +4365,7 @@ export interface GtkFlowBoxProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
2757
4365
|
onNotifySelectionMode?: NotifyHandler;
|
|
2758
4366
|
}
|
|
2759
4367
|
/** The `GtkFontButton` allows to open a font chooser dialog to change the font. */
|
|
2760
|
-
export interface GtkFontButtonProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkFontChooserProps {
|
|
4368
|
+
export interface GtkFontButtonProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkFontChooserProps {
|
|
2761
4369
|
/** Whether the font chooser dialog should be modal. */
|
|
2762
4370
|
modal?: boolean;
|
|
2763
4371
|
/** The title of the font chooser dialog. */
|
|
@@ -2776,7 +4384,7 @@ export interface GtkFontButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
2776
4384
|
onNotifyUseSize?: NotifyHandler;
|
|
2777
4385
|
}
|
|
2778
4386
|
/** The `GtkFontChooserDialog` widget is a dialog for selecting a font. */
|
|
2779
|
-
export interface GtkFontChooserDialogProps extends GtkDialogProps, GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkFontChooserProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
4387
|
+
export interface GtkFontChooserDialogProps extends GtkDialogProps, GtkWindowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkFontChooserProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
2780
4388
|
}
|
|
2781
4389
|
/** `GtkFontChooser` is an interface that can be implemented by widgets for choosing fonts. */
|
|
2782
4390
|
export interface GtkFontChooserProps {
|
|
@@ -2800,7 +4408,7 @@ export interface GtkFontChooserProps {
|
|
|
2800
4408
|
* The level of granularity to offer for selecting fonts.
|
|
2801
4409
|
* @deprecated
|
|
2802
4410
|
*/
|
|
2803
|
-
level?: number;
|
|
4411
|
+
level?: GtkFontChooserLevelNickSet | number;
|
|
2804
4412
|
/**
|
|
2805
4413
|
* The string with which to preview the font.
|
|
2806
4414
|
* @deprecated
|
|
@@ -2822,10 +4430,10 @@ export interface GtkFontChooserProps {
|
|
|
2822
4430
|
onNotifyShowPreviewEntry?: NotifyHandler;
|
|
2823
4431
|
}
|
|
2824
4432
|
/** The `GtkFontChooserWidget` widget lets the user select a font. */
|
|
2825
|
-
export interface GtkFontChooserWidgetProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkFontChooserProps {
|
|
4433
|
+
export interface GtkFontChooserWidgetProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkFontChooserProps {
|
|
2826
4434
|
}
|
|
2827
4435
|
/** Opens a font chooser dialog to select a font. */
|
|
2828
|
-
export interface GtkFontDialogButtonProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4436
|
+
export interface GtkFontDialogButtonProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2829
4437
|
/** The `GtkFontDialog` that contains parameters for the font chooser dialog. */
|
|
2830
4438
|
dialog?: Gtk.FontDialog | null;
|
|
2831
4439
|
/** The selected font. */
|
|
@@ -2853,8 +4461,27 @@ export interface GtkFontDialogButtonProps extends GtkWidgetProps, GtkAccessibleP
|
|
|
2853
4461
|
onNotifyUseFont?: NotifyHandler;
|
|
2854
4462
|
onNotifyUseSize?: NotifyHandler;
|
|
2855
4463
|
}
|
|
4464
|
+
/** Asynchronous API to present a font chooser dialog. */
|
|
4465
|
+
export interface GtkFontDialogProps extends GObjectProps {
|
|
4466
|
+
/** A filter to restrict what fonts are shown in the font chooser dialog. */
|
|
4467
|
+
filter?: Gtk.Filter | null;
|
|
4468
|
+
/** A custom font map to select fonts from. */
|
|
4469
|
+
fontMap?: Pango.FontMap | null;
|
|
4470
|
+
'font-map'?: Pango.FontMap | null;
|
|
4471
|
+
/** The language for which the font features are selected. */
|
|
4472
|
+
language?: Pango.Language | null;
|
|
4473
|
+
/** Whether the font chooser dialog is modal. */
|
|
4474
|
+
modal?: boolean;
|
|
4475
|
+
/** A title that may be shown on the font chooser dialog that is presented by [method@Gtk.FontDialog.choose_font]. */
|
|
4476
|
+
title?: string;
|
|
4477
|
+
onNotifyFilter?: NotifyHandler;
|
|
4478
|
+
onNotifyFontMap?: NotifyHandler;
|
|
4479
|
+
onNotifyLanguage?: NotifyHandler;
|
|
4480
|
+
onNotifyModal?: NotifyHandler;
|
|
4481
|
+
onNotifyTitle?: NotifyHandler;
|
|
4482
|
+
}
|
|
2856
4483
|
/** Surrounds its child with a decorative frame and an optional label. */
|
|
2857
|
-
export interface GtkFrameProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4484
|
+
export interface GtkFrameProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2858
4485
|
/** The child widget. */
|
|
2859
4486
|
child?: Gtk.Widget | null;
|
|
2860
4487
|
/** Text of the frame's label. */
|
|
@@ -2871,10 +4498,10 @@ export interface GtkFrameProps extends GtkWidgetProps, GtkAccessibleProps, GtkBu
|
|
|
2871
4498
|
onNotifyLabelXalign?: NotifyHandler;
|
|
2872
4499
|
}
|
|
2873
4500
|
/** Allows drawing with OpenGL. */
|
|
2874
|
-
export interface GtkGLAreaProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4501
|
+
export interface GtkGLAreaProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2875
4502
|
/** The allowed APIs. */
|
|
2876
|
-
allowedApis?: number;
|
|
2877
|
-
'allowed-apis'?: number;
|
|
4503
|
+
allowedApis?: GdkGLAPINickSet | number;
|
|
4504
|
+
'allowed-apis'?: GdkGLAPINickSet | number;
|
|
2878
4505
|
/** If set to %TRUE the ::render signal will be emitted every time the widget draws. */
|
|
2879
4506
|
autoRender?: boolean;
|
|
2880
4507
|
'auto-render'?: boolean;
|
|
@@ -2899,8 +4526,85 @@ export interface GtkGLAreaProps extends GtkWidgetProps, GtkAccessibleProps, GtkB
|
|
|
2899
4526
|
onNotifyHasStencilBuffer?: NotifyHandler;
|
|
2900
4527
|
onNotifyUseEs?: NotifyHandler;
|
|
2901
4528
|
}
|
|
4529
|
+
/** Recognizes click gestures. */
|
|
4530
|
+
export interface GtkGestureClickProps extends GtkGestureSingleProps, GtkGestureProps, GtkEventControllerProps, GObjectProps {
|
|
4531
|
+
onPressed?: Gtk.GestureClick.SignalSignatures['pressed'];
|
|
4532
|
+
onReleased?: Gtk.GestureClick.SignalSignatures['released'];
|
|
4533
|
+
onStopped?: Gtk.GestureClick.SignalSignatures['stopped'];
|
|
4534
|
+
onUnpairedRelease?: Gtk.GestureClick.SignalSignatures['unpaired-release'];
|
|
4535
|
+
}
|
|
4536
|
+
/** Recognizes drag gestures. */
|
|
4537
|
+
export interface GtkGestureDragProps extends GtkGestureSingleProps, GtkGestureProps, GtkEventControllerProps, GObjectProps {
|
|
4538
|
+
onDragBegin?: Gtk.GestureDrag.SignalSignatures['drag-begin'];
|
|
4539
|
+
onDragEnd?: Gtk.GestureDrag.SignalSignatures['drag-end'];
|
|
4540
|
+
onDragUpdate?: Gtk.GestureDrag.SignalSignatures['drag-update'];
|
|
4541
|
+
}
|
|
4542
|
+
/** Recognizes long press gestures. */
|
|
4543
|
+
export interface GtkGestureLongPressProps extends GtkGestureSingleProps, GtkGestureProps, GtkEventControllerProps, GObjectProps {
|
|
4544
|
+
/** Factor by which to modify the default timeout. */
|
|
4545
|
+
delayFactor?: number;
|
|
4546
|
+
'delay-factor'?: number;
|
|
4547
|
+
onCancelled?: Gtk.GestureLongPress.SignalSignatures['cancelled'];
|
|
4548
|
+
onPressed?: Gtk.GestureLongPress.SignalSignatures['pressed'];
|
|
4549
|
+
onNotifyDelayFactor?: NotifyHandler;
|
|
4550
|
+
}
|
|
4551
|
+
/** Recognizes pan gestures. */
|
|
4552
|
+
export interface GtkGesturePanProps extends GtkGestureDragProps, GtkGestureSingleProps, GtkGestureProps, GtkEventControllerProps, GObjectProps {
|
|
4553
|
+
/** The expected orientation of pan gestures. */
|
|
4554
|
+
orientation?: GtkOrientationNick | Gtk.Orientation;
|
|
4555
|
+
onPan?: Gtk.GesturePan.SignalSignatures['pan'];
|
|
4556
|
+
onNotifyOrientation?: NotifyHandler;
|
|
4557
|
+
}
|
|
4558
|
+
/** The base class for gesture recognition. */
|
|
4559
|
+
export interface GtkGestureProps {
|
|
4560
|
+
/** The number of touch points that trigger recognition on this gesture. */
|
|
4561
|
+
nPoints?: number;
|
|
4562
|
+
'n-points'?: number;
|
|
4563
|
+
onBegin?: Gtk.Gesture.SignalSignatures['begin'];
|
|
4564
|
+
onCancel?: Gtk.Gesture.SignalSignatures['cancel'];
|
|
4565
|
+
onEnd?: Gtk.Gesture.SignalSignatures['end'];
|
|
4566
|
+
onSequenceStateChanged?: Gtk.Gesture.SignalSignatures['sequence-state-changed'];
|
|
4567
|
+
onUpdate?: Gtk.Gesture.SignalSignatures['update'];
|
|
4568
|
+
onNotifyNPoints?: NotifyHandler;
|
|
4569
|
+
}
|
|
4570
|
+
/** Recognizes 2-finger rotation gestures. */
|
|
4571
|
+
export interface GtkGestureRotateProps extends GtkGestureProps, GtkEventControllerProps, GObjectProps {
|
|
4572
|
+
onAngleChanged?: Gtk.GestureRotate.SignalSignatures['angle-changed'];
|
|
4573
|
+
}
|
|
4574
|
+
/** A `GtkGesture` subclass optimized for singe-touch and mouse gestures. */
|
|
4575
|
+
export interface GtkGestureSingleProps extends GtkGestureProps, GtkEventControllerProps, GObjectProps {
|
|
4576
|
+
/** Mouse button number to listen to, or 0 to listen for any button. */
|
|
4577
|
+
button?: number;
|
|
4578
|
+
/** Whether the gesture is exclusive. */
|
|
4579
|
+
exclusive?: boolean;
|
|
4580
|
+
/** Whether the gesture handles only touch events. */
|
|
4581
|
+
touchOnly?: boolean;
|
|
4582
|
+
'touch-only'?: boolean;
|
|
4583
|
+
onNotifyButton?: NotifyHandler;
|
|
4584
|
+
onNotifyExclusive?: NotifyHandler;
|
|
4585
|
+
onNotifyTouchOnly?: NotifyHandler;
|
|
4586
|
+
}
|
|
4587
|
+
/** Recognizes tablet stylus input. */
|
|
4588
|
+
export interface GtkGestureStylusProps extends GtkGestureSingleProps, GtkGestureProps, GtkEventControllerProps, GObjectProps {
|
|
4589
|
+
/** If this gesture should exclusively react to stylus input devices. */
|
|
4590
|
+
stylusOnly?: boolean;
|
|
4591
|
+
'stylus-only'?: boolean;
|
|
4592
|
+
onDown?: Gtk.GestureStylus.SignalSignatures['down'];
|
|
4593
|
+
onMotion?: Gtk.GestureStylus.SignalSignatures['motion'];
|
|
4594
|
+
onProximity?: Gtk.GestureStylus.SignalSignatures['proximity'];
|
|
4595
|
+
onUp?: Gtk.GestureStylus.SignalSignatures['up'];
|
|
4596
|
+
onNotifyStylusOnly?: NotifyHandler;
|
|
4597
|
+
}
|
|
4598
|
+
/** Recognizes swipe gestures. */
|
|
4599
|
+
export interface GtkGestureSwipeProps extends GtkGestureSingleProps, GtkGestureProps, GtkEventControllerProps, GObjectProps {
|
|
4600
|
+
onSwipe?: Gtk.GestureSwipe.SignalSignatures['swipe'];
|
|
4601
|
+
}
|
|
4602
|
+
/** Recognizes 2-finger pinch/zoom gestures. */
|
|
4603
|
+
export interface GtkGestureZoomProps extends GtkGestureProps, GtkEventControllerProps, GObjectProps {
|
|
4604
|
+
onScaleChanged?: Gtk.GestureZoom.SignalSignatures['scale-changed'];
|
|
4605
|
+
}
|
|
2902
4606
|
/** Bypasses gsk rendering by passing the content of its child directly to the compositor. */
|
|
2903
|
-
export interface GtkGraphicsOffloadProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4607
|
+
export interface GtkGraphicsOffloadProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2904
4608
|
/** Whether to draw a black background. */
|
|
2905
4609
|
blackBackground?: boolean;
|
|
2906
4610
|
'black-background'?: boolean;
|
|
@@ -2912,8 +4616,48 @@ export interface GtkGraphicsOffloadProps extends GtkWidgetProps, GtkAccessiblePr
|
|
|
2912
4616
|
onNotifyChild?: NotifyHandler;
|
|
2913
4617
|
onNotifyEnabled?: NotifyHandler;
|
|
2914
4618
|
}
|
|
4619
|
+
/** `GtkLayoutChild` subclass for children in a `GtkGridLayout`. */
|
|
4620
|
+
export interface GtkGridLayoutChildProps extends GtkLayoutChildProps, GObjectProps {
|
|
4621
|
+
/** The column to place the child in. */
|
|
4622
|
+
column?: number;
|
|
4623
|
+
/** The number of columns the child spans to. */
|
|
4624
|
+
columnSpan?: number;
|
|
4625
|
+
'column-span'?: number;
|
|
4626
|
+
/** The row to place the child in. */
|
|
4627
|
+
row?: number;
|
|
4628
|
+
/** The number of rows the child spans to. */
|
|
4629
|
+
rowSpan?: number;
|
|
4630
|
+
'row-span'?: number;
|
|
4631
|
+
onNotifyColumn?: NotifyHandler;
|
|
4632
|
+
onNotifyColumnSpan?: NotifyHandler;
|
|
4633
|
+
onNotifyRow?: NotifyHandler;
|
|
4634
|
+
onNotifyRowSpan?: NotifyHandler;
|
|
4635
|
+
}
|
|
4636
|
+
/** Arranges child widgets in rows and columns. */
|
|
4637
|
+
export interface GtkGridLayoutProps extends GtkLayoutManagerProps, GObjectProps {
|
|
4638
|
+
/** The row to align to the baseline, when `GtkWidget:valign` is set to %GTK_ALIGN_BASELINE. */
|
|
4639
|
+
baselineRow?: number;
|
|
4640
|
+
'baseline-row'?: number;
|
|
4641
|
+
/** Whether all the columns in the grid have the same width. */
|
|
4642
|
+
columnHomogeneous?: boolean;
|
|
4643
|
+
'column-homogeneous'?: boolean;
|
|
4644
|
+
/** The amount of space between to consecutive columns. */
|
|
4645
|
+
columnSpacing?: number;
|
|
4646
|
+
'column-spacing'?: number;
|
|
4647
|
+
/** Whether all the rows in the grid have the same height. */
|
|
4648
|
+
rowHomogeneous?: boolean;
|
|
4649
|
+
'row-homogeneous'?: boolean;
|
|
4650
|
+
/** The amount of space between to consecutive rows. */
|
|
4651
|
+
rowSpacing?: number;
|
|
4652
|
+
'row-spacing'?: number;
|
|
4653
|
+
onNotifyBaselineRow?: NotifyHandler;
|
|
4654
|
+
onNotifyColumnHomogeneous?: NotifyHandler;
|
|
4655
|
+
onNotifyColumnSpacing?: NotifyHandler;
|
|
4656
|
+
onNotifyRowHomogeneous?: NotifyHandler;
|
|
4657
|
+
onNotifyRowSpacing?: NotifyHandler;
|
|
4658
|
+
}
|
|
2915
4659
|
/** Arranges its child widgets in rows and columns. */
|
|
2916
|
-
export interface GtkGridProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
4660
|
+
export interface GtkGridProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
2917
4661
|
/** The row to align to the baseline when valign is using baseline alignment. */
|
|
2918
4662
|
baselineRow?: number;
|
|
2919
4663
|
'baseline-row'?: number;
|
|
@@ -2936,7 +4680,7 @@ export interface GtkGridProps extends GtkWidgetProps, GtkAccessibleProps, GtkBui
|
|
|
2936
4680
|
onNotifyRowSpacing?: NotifyHandler;
|
|
2937
4681
|
}
|
|
2938
4682
|
/** Presents a large dynamic grid of items. */
|
|
2939
|
-
export interface GtkGridViewProps extends GtkListBaseProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps, GtkScrollableProps {
|
|
4683
|
+
export interface GtkGridViewProps extends GtkListBaseProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps, GtkScrollableProps {
|
|
2940
4684
|
/** Allow rubberband selection. */
|
|
2941
4685
|
enableRubberband?: boolean;
|
|
2942
4686
|
'enable-rubberband'?: boolean;
|
|
@@ -2966,7 +4710,7 @@ export interface GtkGridViewProps extends GtkListBaseProps, GtkWidgetProps, GtkA
|
|
|
2966
4710
|
onNotifyTabBehavior?: NotifyHandler;
|
|
2967
4711
|
}
|
|
2968
4712
|
/** Creates a custom titlebar for a window. */
|
|
2969
|
-
export interface GtkHeaderBarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4713
|
+
export interface GtkHeaderBarProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2970
4714
|
/** The decoration layout for buttons. */
|
|
2971
4715
|
decorationLayout?: string | null;
|
|
2972
4716
|
'decoration-layout'?: string | null;
|
|
@@ -2984,8 +4728,75 @@ export interface GtkHeaderBarProps extends GtkWidgetProps, GtkAccessibleProps, G
|
|
|
2984
4728
|
onNotifyTitleWidget?: NotifyHandler;
|
|
2985
4729
|
onNotifyUseNativeControls?: NotifyHandler;
|
|
2986
4730
|
}
|
|
4731
|
+
/** The interface for GTK input methods. */
|
|
4732
|
+
export interface GtkIMContextProps {
|
|
4733
|
+
/** Additional hints that allow input methods to fine-tune their behaviour. */
|
|
4734
|
+
inputHints?: GtkInputHintsNickSet | number;
|
|
4735
|
+
'input-hints'?: GtkInputHintsNickSet | number;
|
|
4736
|
+
/** The purpose of the text field that the `GtkIMContext is connected to. */
|
|
4737
|
+
inputPurpose?: GtkInputPurposeNick | Gtk.InputPurpose;
|
|
4738
|
+
'input-purpose'?: GtkInputPurposeNick | Gtk.InputPurpose;
|
|
4739
|
+
onCommit?: Gtk.IMContext.SignalSignatures['commit'];
|
|
4740
|
+
onDeleteSurrounding?: Gtk.IMContext.SignalSignatures['delete-surrounding'];
|
|
4741
|
+
onInvalidComposition?: Gtk.IMContext.SignalSignatures['invalid-composition'];
|
|
4742
|
+
onPreeditChanged?: Gtk.IMContext.SignalSignatures['preedit-changed'];
|
|
4743
|
+
onPreeditEnd?: Gtk.IMContext.SignalSignatures['preedit-end'];
|
|
4744
|
+
onPreeditStart?: Gtk.IMContext.SignalSignatures['preedit-start'];
|
|
4745
|
+
onRetrieveSurrounding?: Gtk.IMContext.SignalSignatures['retrieve-surrounding'];
|
|
4746
|
+
onNotifyInputHints?: NotifyHandler;
|
|
4747
|
+
onNotifyInputPurpose?: NotifyHandler;
|
|
4748
|
+
}
|
|
4749
|
+
/** Supports compose sequences, dead keys and numeric Unicode input. */
|
|
4750
|
+
export interface GtkIMContextSimpleProps extends GtkIMContextProps, GObjectProps {
|
|
4751
|
+
}
|
|
4752
|
+
/** Supports switching between multiple input methods. */
|
|
4753
|
+
export interface GtkIMMulticontextProps extends GtkIMContextProps, GObjectProps {
|
|
4754
|
+
}
|
|
4755
|
+
/** Contains information found when looking up an icon in `GtkIconTheme` or loading it from a file. */
|
|
4756
|
+
export interface GtkIconPaintableProps extends GObjectProps, GdkPaintableProps, GtkSymbolicPaintableProps {
|
|
4757
|
+
/** The file representing the icon, if any. */
|
|
4758
|
+
file?: Gio.File | null;
|
|
4759
|
+
/**
|
|
4760
|
+
* The icon name that was chosen during lookup.
|
|
4761
|
+
* @deprecated
|
|
4762
|
+
*/
|
|
4763
|
+
iconName?: string | null;
|
|
4764
|
+
'icon-name'?: string | null;
|
|
4765
|
+
/**
|
|
4766
|
+
* Whether the icon is symbolic or not.
|
|
4767
|
+
* @deprecated
|
|
4768
|
+
*/
|
|
4769
|
+
isSymbolic?: boolean;
|
|
4770
|
+
'is-symbolic'?: boolean;
|
|
4771
|
+
scale?: number;
|
|
4772
|
+
size?: number;
|
|
4773
|
+
onNotifyFile?: NotifyHandler;
|
|
4774
|
+
onNotifyIconName?: NotifyHandler;
|
|
4775
|
+
onNotifyIsSymbolic?: NotifyHandler;
|
|
4776
|
+
onNotifyScale?: NotifyHandler;
|
|
4777
|
+
onNotifySize?: NotifyHandler;
|
|
4778
|
+
}
|
|
4779
|
+
/** Loads themed icons. */
|
|
4780
|
+
export interface GtkIconThemeProps extends GObjectProps {
|
|
4781
|
+
/** The display that this icon theme object is attached to. */
|
|
4782
|
+
display?: Gdk.Display | null;
|
|
4783
|
+
/** Resource paths that will be looked at when looking for icons, similar to search paths. */
|
|
4784
|
+
resourcePath?: string[] | null;
|
|
4785
|
+
'resource-path'?: string[] | null;
|
|
4786
|
+
/** The search path for this icon theme. */
|
|
4787
|
+
searchPath?: string[] | null;
|
|
4788
|
+
'search-path'?: string[] | null;
|
|
4789
|
+
/** The name of the icon theme that is being used. */
|
|
4790
|
+
themeName?: string;
|
|
4791
|
+
'theme-name'?: string;
|
|
4792
|
+
onChanged?: Gtk.IconTheme.SignalSignatures['changed'];
|
|
4793
|
+
onNotifyDisplay?: NotifyHandler;
|
|
4794
|
+
onNotifyResourcePath?: NotifyHandler;
|
|
4795
|
+
onNotifySearchPath?: NotifyHandler;
|
|
4796
|
+
onNotifyThemeName?: NotifyHandler;
|
|
4797
|
+
}
|
|
2987
4798
|
/** `GtkIconView` is a widget which displays data in a grid of icons. */
|
|
2988
|
-
export interface GtkIconViewProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkCellLayoutProps, GtkConstraintTargetProps, GtkScrollableProps {
|
|
4799
|
+
export interface GtkIconViewProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkCellLayoutProps, GtkConstraintTargetProps, GtkScrollableProps {
|
|
2989
4800
|
/** The activate-on-single-click property specifies whether the "item-activated" signal will be emitted after a single click. */
|
|
2990
4801
|
activateOnSingleClick?: boolean;
|
|
2991
4802
|
'activate-on-single-click'?: boolean;
|
|
@@ -3059,7 +4870,7 @@ export interface GtkIconViewProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
3059
4870
|
onNotifyTooltipColumn?: NotifyHandler;
|
|
3060
4871
|
}
|
|
3061
4872
|
/** Displays an image. */
|
|
3062
|
-
export interface GtkImageProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4873
|
+
export interface GtkImageProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3063
4874
|
/** A path to the file to display. */
|
|
3064
4875
|
file?: string;
|
|
3065
4876
|
/** The `GIcon` displayed in the GtkImage. */
|
|
@@ -3090,7 +4901,7 @@ export interface GtkImageProps extends GtkWidgetProps, GtkAccessibleProps, GtkBu
|
|
|
3090
4901
|
onNotifyUseFallback?: NotifyHandler;
|
|
3091
4902
|
}
|
|
3092
4903
|
/** `GtkInfoBar` can be used to show messages to the user without a dialog. */
|
|
3093
|
-
export interface GtkInfoBarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4904
|
+
export interface GtkInfoBarProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3094
4905
|
/** The type of the message. */
|
|
3095
4906
|
messageType?: GtkMessageTypeNick | Gtk.MessageType;
|
|
3096
4907
|
'message-type'?: GtkMessageTypeNick | Gtk.MessageType;
|
|
@@ -3106,7 +4917,7 @@ export interface GtkInfoBarProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
3106
4917
|
onNotifyShowCloseButton?: NotifyHandler;
|
|
3107
4918
|
}
|
|
3108
4919
|
/** Shows text in a predefined area. */
|
|
3109
|
-
export interface GtkInscriptionProps extends GtkWidgetProps, GtkAccessibleProps, GtkAccessibleTextProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4920
|
+
export interface GtkInscriptionProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkAccessibleTextProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3110
4921
|
/** A list of style attributes to apply to the text of the inscription. */
|
|
3111
4922
|
attributes?: Pango.AttrList | null;
|
|
3112
4923
|
/** Utility property that sets both the [property@Gtk.Inscription:text] and [property@Gtk.Inscription:attributes] properties, mainly intended for use in GtkBuilder ui files to ease translation support an… */
|
|
@@ -3147,8 +4958,17 @@ export interface GtkInscriptionProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
3147
4958
|
onNotifyXalign?: NotifyHandler;
|
|
3148
4959
|
onNotifyYalign?: NotifyHandler;
|
|
3149
4960
|
}
|
|
4961
|
+
/** Triggers when a specific keyval and modifiers are pressed. */
|
|
4962
|
+
export interface GtkKeyvalTriggerProps extends GtkShortcutTriggerProps, GObjectProps {
|
|
4963
|
+
/** The key value for the trigger. */
|
|
4964
|
+
keyval?: number;
|
|
4965
|
+
/** The key modifiers for the trigger. */
|
|
4966
|
+
modifiers?: GdkModifierTypeNickSet | number;
|
|
4967
|
+
onNotifyKeyval?: NotifyHandler;
|
|
4968
|
+
onNotifyModifiers?: NotifyHandler;
|
|
4969
|
+
}
|
|
3150
4970
|
/** Displays a small amount of text. */
|
|
3151
|
-
export interface GtkLabelProps extends GtkWidgetProps, GtkAccessibleProps, GtkAccessibleHypertextProps, GtkAccessibleTextProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4971
|
+
export interface GtkLabelProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkAccessibleHypertextProps, GtkAccessibleTextProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3152
4972
|
/** A list of style attributes to apply to the text of the label. */
|
|
3153
4973
|
attributes?: Pango.AttrList | null;
|
|
3154
4974
|
/** The preferred place to ellipsize the string, if the label does not have enough room to display the entire string. */
|
|
@@ -3220,8 +5040,22 @@ export interface GtkLabelProps extends GtkWidgetProps, GtkAccessibleProps, GtkAc
|
|
|
3220
5040
|
onNotifyXalign?: NotifyHandler;
|
|
3221
5041
|
onNotifyYalign?: NotifyHandler;
|
|
3222
5042
|
}
|
|
5043
|
+
/** The base class for objects that are meant to hold layout properties. */
|
|
5044
|
+
export interface GtkLayoutChildProps {
|
|
5045
|
+
/** The widget that is associated to the `GtkLayoutChild` instance. */
|
|
5046
|
+
childWidget?: Gtk.Widget;
|
|
5047
|
+
'child-widget'?: Gtk.Widget;
|
|
5048
|
+
/** The layout manager that created the `GtkLayoutChild` instance. */
|
|
5049
|
+
layoutManager?: Gtk.LayoutManager;
|
|
5050
|
+
'layout-manager'?: Gtk.LayoutManager;
|
|
5051
|
+
onNotifyChildWidget?: NotifyHandler;
|
|
5052
|
+
onNotifyLayoutManager?: NotifyHandler;
|
|
5053
|
+
}
|
|
5054
|
+
/** Handles the preferred size and allocation for children of a widget. */
|
|
5055
|
+
export interface GtkLayoutManagerProps {
|
|
5056
|
+
}
|
|
3223
5057
|
/** Shows a level indicator. */
|
|
3224
|
-
export interface GtkLevelBarProps extends GtkWidgetProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
5058
|
+
export interface GtkLevelBarProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
3225
5059
|
/** Whether the `GtkLeveBar` is inverted. */
|
|
3226
5060
|
inverted?: boolean;
|
|
3227
5061
|
/** Determines the maximum value of the interval that can be displayed by the bar. */
|
|
@@ -3242,7 +5076,7 @@ export interface GtkLevelBarProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
3242
5076
|
onNotifyValue?: NotifyHandler;
|
|
3243
5077
|
}
|
|
3244
5078
|
/** A button with a hyperlink. */
|
|
3245
|
-
export interface GtkLinkButtonProps extends GtkButtonProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
5079
|
+
export interface GtkLinkButtonProps extends GtkButtonProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3246
5080
|
/** The URI bound to this button. */
|
|
3247
5081
|
uri?: string;
|
|
3248
5082
|
/** The 'visited' state of this button. */
|
|
@@ -3258,7 +5092,7 @@ export interface GtkListBaseProps {
|
|
|
3258
5092
|
onNotifyOrientation?: NotifyHandler;
|
|
3259
5093
|
}
|
|
3260
5094
|
/** Shows a vertical list. */
|
|
3261
|
-
export interface GtkListBoxProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
5095
|
+
export interface GtkListBoxProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3262
5096
|
/** Whether to accept unpaired release events. */
|
|
3263
5097
|
acceptUnpairedRelease?: boolean;
|
|
3264
5098
|
'accept-unpaired-release'?: boolean;
|
|
@@ -3289,7 +5123,7 @@ export interface GtkListBoxProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
3289
5123
|
onNotifyTabBehavior?: NotifyHandler;
|
|
3290
5124
|
}
|
|
3291
5125
|
/** The kind of widget that can be added to a `GtkListBox`. */
|
|
3292
|
-
export interface GtkListBoxRowProps extends GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
5126
|
+
export interface GtkListBoxRowProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3293
5127
|
/** Determines whether the ::row-activated signal will be emitted for this row. */
|
|
3294
5128
|
activatable?: boolean;
|
|
3295
5129
|
/** The child widget. */
|
|
@@ -3302,13 +5136,16 @@ export interface GtkListBoxRowProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
3302
5136
|
onNotifySelectable?: NotifyHandler;
|
|
3303
5137
|
}
|
|
3304
5138
|
/** Used by list widgets to represent the headers they display. */
|
|
3305
|
-
export interface GtkListHeaderProps {
|
|
5139
|
+
export interface GtkListHeaderProps extends GObjectProps {
|
|
3306
5140
|
/** Widget used for display. */
|
|
3307
5141
|
child?: Gtk.Widget | null;
|
|
3308
5142
|
onNotifyChild?: NotifyHandler;
|
|
3309
5143
|
}
|
|
5144
|
+
/** Creates widgets for the items taken from a `GListModel`. */
|
|
5145
|
+
export interface GtkListItemFactoryProps extends GObjectProps {
|
|
5146
|
+
}
|
|
3310
5147
|
/** Used by list widgets to represent items in a [iface@Gio.ListModel]. */
|
|
3311
|
-
export interface GtkListItemProps {
|
|
5148
|
+
export interface GtkListItemProps extends GObjectProps {
|
|
3312
5149
|
/** The accessible description to set on the listitem. */
|
|
3313
5150
|
accessibleDescription?: string;
|
|
3314
5151
|
'accessible-description'?: string;
|
|
@@ -3330,8 +5167,11 @@ export interface GtkListItemProps {
|
|
|
3330
5167
|
onNotifyFocusable?: NotifyHandler;
|
|
3331
5168
|
onNotifySelectable?: NotifyHandler;
|
|
3332
5169
|
}
|
|
5170
|
+
/** A list-like data structure that can be used with the [class@Gtk.TreeView]. */
|
|
5171
|
+
export interface GtkListStoreProps extends GObjectProps, GtkBuildableProps, GtkTreeDragDestProps, GtkTreeDragSourceProps, GtkTreeModelProps, GtkTreeSortableProps {
|
|
5172
|
+
}
|
|
3333
5173
|
/** Presents a large dynamic list of items. */
|
|
3334
|
-
export interface GtkListViewProps extends GtkListBaseProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps, GtkScrollableProps {
|
|
5174
|
+
export interface GtkListViewProps extends GtkListBaseProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps, GtkScrollableProps {
|
|
3335
5175
|
/** Allow rubberband selection. */
|
|
3336
5176
|
enableRubberband?: boolean;
|
|
3337
5177
|
'enable-rubberband'?: boolean;
|
|
@@ -3361,7 +5201,7 @@ export interface GtkListViewProps extends GtkListBaseProps, GtkWidgetProps, GtkA
|
|
|
3361
5201
|
onNotifyTabBehavior?: NotifyHandler;
|
|
3362
5202
|
}
|
|
3363
5203
|
/** `GtkLockButton` is a widget to obtain and revoke authorizations needed to operate the controls. */
|
|
3364
|
-
export interface GtkLockButtonProps extends GtkButtonProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
5204
|
+
export interface GtkLockButtonProps extends GtkButtonProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3365
5205
|
/**
|
|
3366
5206
|
* The `GPermission object controlling this button.
|
|
3367
5207
|
* @deprecated
|
|
@@ -3404,15 +5244,21 @@ export interface GtkLockButtonProps extends GtkButtonProps, GtkWidgetProps, GtkA
|
|
|
3404
5244
|
onNotifyTooltipNotAuthorized?: NotifyHandler;
|
|
3405
5245
|
onNotifyTooltipUnlock?: NotifyHandler;
|
|
3406
5246
|
}
|
|
5247
|
+
/** A list model that maps the items in another model to different items. */
|
|
5248
|
+
export interface GtkMapListModelProps extends GObjectProps, GListModelProps, GtkSectionModelProps {
|
|
5249
|
+
/** The model being mapped. */
|
|
5250
|
+
model?: Gio.ListModel | null;
|
|
5251
|
+
onNotifyModel?: NotifyHandler;
|
|
5252
|
+
}
|
|
3407
5253
|
/** Shows controls for video playback. */
|
|
3408
|
-
export interface GtkMediaControlsProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
5254
|
+
export interface GtkMediaControlsProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3409
5255
|
/** The media-stream managed by this object or %NULL if none. */
|
|
3410
5256
|
mediaStream?: Gtk.MediaStream | null;
|
|
3411
5257
|
'media-stream'?: Gtk.MediaStream | null;
|
|
3412
5258
|
onNotifyMediaStream?: NotifyHandler;
|
|
3413
5259
|
}
|
|
3414
5260
|
/** Displays a popup when clicked. */
|
|
3415
|
-
export interface GtkMenuButtonProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
5261
|
+
export interface GtkMenuButtonProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3416
5262
|
/** Whether the menu button is active. */
|
|
3417
5263
|
active?: boolean;
|
|
3418
5264
|
/** Whether to show a dropdown arrow even when using an icon or a custom child. */
|
|
@@ -3458,7 +5304,7 @@ export interface GtkMenuButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
3458
5304
|
onNotifyUseUnderline?: NotifyHandler;
|
|
3459
5305
|
}
|
|
3460
5306
|
/** `GtkMessageDialog` presents a dialog with some message text. */
|
|
3461
|
-
export interface GtkMessageDialogProps extends GtkDialogProps, GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
5307
|
+
export interface GtkMessageDialogProps extends GtkDialogProps, GtkWindowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
3462
5308
|
/** Set of buttons to display on the dialog. */
|
|
3463
5309
|
buttons?: GtkButtonsTypeNick | Gtk.ButtonsType;
|
|
3464
5310
|
/** The type of the message. */
|
|
@@ -3482,11 +5328,111 @@ export interface GtkMessageDialogProps extends GtkDialogProps, GtkWindowProps, G
|
|
|
3482
5328
|
onNotifyText?: NotifyHandler;
|
|
3483
5329
|
onNotifyUseMarkup?: NotifyHandler;
|
|
3484
5330
|
}
|
|
5331
|
+
/** Activates a widget with a mnemonic. */
|
|
5332
|
+
export interface GtkMnemonicActionProps extends GtkShortcutActionProps, GObjectProps {
|
|
5333
|
+
}
|
|
5334
|
+
/** Triggers when a specific mnemonic is pressed. */
|
|
5335
|
+
export interface GtkMnemonicTriggerProps extends GtkShortcutTriggerProps, GObjectProps {
|
|
5336
|
+
/** The key value for the trigger. */
|
|
5337
|
+
keyval?: number;
|
|
5338
|
+
onNotifyKeyval?: NotifyHandler;
|
|
5339
|
+
}
|
|
5340
|
+
/** Asks the user for passwords and other information required to mount a volume. */
|
|
5341
|
+
export interface GtkMountOperationProps extends GMountOperationProps, GObjectProps {
|
|
5342
|
+
/** The display where dialogs will be shown. */
|
|
5343
|
+
display?: Gdk.Display;
|
|
5344
|
+
/** The parent window. */
|
|
5345
|
+
parent?: Gtk.Window | null;
|
|
5346
|
+
onNotifyDisplay?: NotifyHandler;
|
|
5347
|
+
onNotifyParent?: NotifyHandler;
|
|
5348
|
+
}
|
|
5349
|
+
/** Base class for filters that combine multiple filters. */
|
|
5350
|
+
export interface GtkMultiFilterProps {
|
|
5351
|
+
}
|
|
5352
|
+
/** A selection model that allows selecting multiple elements. */
|
|
5353
|
+
export interface GtkMultiSelectionProps extends GObjectProps, GListModelProps, GtkSectionModelProps, GtkSelectionModelProps {
|
|
5354
|
+
/** The list managed by this selection. */
|
|
5355
|
+
model?: Gio.ListModel | null;
|
|
5356
|
+
onNotifyModel?: NotifyHandler;
|
|
5357
|
+
}
|
|
5358
|
+
/** Combines multiple sorters by trying them in turn. */
|
|
5359
|
+
export interface GtkMultiSorterProps extends GtkSorterProps, GObjectProps, GListModelProps, GtkBuildableProps {
|
|
5360
|
+
}
|
|
5361
|
+
/** Activates a named action. */
|
|
5362
|
+
export interface GtkNamedActionProps extends GtkShortcutActionProps, GObjectProps {
|
|
5363
|
+
/** The name of the action to activate. */
|
|
5364
|
+
actionName?: string;
|
|
5365
|
+
'action-name'?: string;
|
|
5366
|
+
onNotifyActionName?: NotifyHandler;
|
|
5367
|
+
}
|
|
5368
|
+
/** Base class for platform dialogs that don't use `GtkDialog`. */
|
|
5369
|
+
export interface GtkNativeDialogProps {
|
|
5370
|
+
/** Whether the window should be modal with respect to its transient parent. */
|
|
5371
|
+
modal?: boolean;
|
|
5372
|
+
/** The title of the dialog window */
|
|
5373
|
+
title?: string | null;
|
|
5374
|
+
/** The transient parent of the dialog, or %NULL for none. */
|
|
5375
|
+
transientFor?: Gtk.Window | null;
|
|
5376
|
+
'transient-for'?: Gtk.Window | null;
|
|
5377
|
+
/** Whether the window is currently visible. */
|
|
5378
|
+
visible?: boolean;
|
|
5379
|
+
onResponse?: Gtk.NativeDialog.SignalSignatures['response'];
|
|
5380
|
+
onNotifyModal?: NotifyHandler;
|
|
5381
|
+
onNotifyTitle?: NotifyHandler;
|
|
5382
|
+
onNotifyTransientFor?: NotifyHandler;
|
|
5383
|
+
onNotifyVisible?: NotifyHandler;
|
|
5384
|
+
}
|
|
3485
5385
|
/** An interface for widgets that have their own [class@Gdk.Surface]. */
|
|
3486
5386
|
export interface GtkNativeProps {
|
|
3487
5387
|
}
|
|
5388
|
+
/** A `GtkShortcutTrigger` that never triggers. */
|
|
5389
|
+
export interface GtkNeverTriggerProps extends GtkShortcutTriggerProps, GObjectProps {
|
|
5390
|
+
}
|
|
5391
|
+
/** A selection model that does not allow selecting anything. */
|
|
5392
|
+
export interface GtkNoSelectionProps extends GObjectProps, GListModelProps, GtkSectionModelProps, GtkSelectionModelProps {
|
|
5393
|
+
/** The model being managed. */
|
|
5394
|
+
model?: Gio.ListModel | null;
|
|
5395
|
+
onNotifyModel?: NotifyHandler;
|
|
5396
|
+
}
|
|
5397
|
+
/** An auxiliary object used by `GtkNotebook`. */
|
|
5398
|
+
export interface GtkNotebookPageProps extends GObjectProps {
|
|
5399
|
+
/** The child for this page. */
|
|
5400
|
+
child?: Gtk.Widget;
|
|
5401
|
+
/** Whether the tab is detachable. */
|
|
5402
|
+
detachable?: boolean;
|
|
5403
|
+
/** The label widget displayed in the child's menu entry. */
|
|
5404
|
+
menu?: Gtk.Widget;
|
|
5405
|
+
/** The text of the menu widget. */
|
|
5406
|
+
menuLabel?: string;
|
|
5407
|
+
'menu-label'?: string;
|
|
5408
|
+
/** The index of the child in the parent. */
|
|
5409
|
+
position?: number;
|
|
5410
|
+
/** Whether the tab is reorderable by user action. */
|
|
5411
|
+
reorderable?: boolean;
|
|
5412
|
+
/** The tab widget for this page. */
|
|
5413
|
+
tab?: Gtk.Widget;
|
|
5414
|
+
/** Whether to expand the child's tab. */
|
|
5415
|
+
tabExpand?: boolean;
|
|
5416
|
+
'tab-expand'?: boolean;
|
|
5417
|
+
/** Whether the child's tab should fill the allocated area. */
|
|
5418
|
+
tabFill?: boolean;
|
|
5419
|
+
'tab-fill'?: boolean;
|
|
5420
|
+
/** The text of the tab widget. */
|
|
5421
|
+
tabLabel?: string;
|
|
5422
|
+
'tab-label'?: string;
|
|
5423
|
+
onNotifyChild?: NotifyHandler;
|
|
5424
|
+
onNotifyDetachable?: NotifyHandler;
|
|
5425
|
+
onNotifyMenu?: NotifyHandler;
|
|
5426
|
+
onNotifyMenuLabel?: NotifyHandler;
|
|
5427
|
+
onNotifyPosition?: NotifyHandler;
|
|
5428
|
+
onNotifyReorderable?: NotifyHandler;
|
|
5429
|
+
onNotifyTab?: NotifyHandler;
|
|
5430
|
+
onNotifyTabExpand?: NotifyHandler;
|
|
5431
|
+
onNotifyTabFill?: NotifyHandler;
|
|
5432
|
+
onNotifyTabLabel?: NotifyHandler;
|
|
5433
|
+
}
|
|
3488
5434
|
/** Switches between children using tabs. */
|
|
3489
|
-
export interface GtkNotebookProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
5435
|
+
export interface GtkNotebookProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3490
5436
|
/** If %TRUE, pressing the right mouse button on the notebook shows a page switching menu. */
|
|
3491
5437
|
enablePopup?: boolean;
|
|
3492
5438
|
'enable-popup'?: boolean;
|
|
@@ -3524,24 +5470,66 @@ export interface GtkNotebookProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
3524
5470
|
onNotifyShowTabs?: NotifyHandler;
|
|
3525
5471
|
onNotifyTabPos?: NotifyHandler;
|
|
3526
5472
|
}
|
|
5473
|
+
/** Does nothing. */
|
|
5474
|
+
export interface GtkNothingActionProps extends GtkShortcutActionProps, GObjectProps {
|
|
5475
|
+
}
|
|
5476
|
+
/** Sorts items numerically. */
|
|
5477
|
+
export interface GtkNumericSorterProps extends GtkSorterProps, GObjectProps {
|
|
5478
|
+
/** The expression to evaluate on items to get a number to compare with. */
|
|
5479
|
+
expression?: Gtk.Expression | null;
|
|
5480
|
+
/** Whether the sorter will sort smaller numbers first. */
|
|
5481
|
+
sortOrder?: GtkSortTypeNick | Gtk.SortType;
|
|
5482
|
+
'sort-order'?: GtkSortTypeNick | Gtk.SortType;
|
|
5483
|
+
onNotifyExpression?: NotifyHandler;
|
|
5484
|
+
onNotifySortOrder?: NotifyHandler;
|
|
5485
|
+
}
|
|
5486
|
+
/** A `GObject` value in a `GtkExpression`. */
|
|
5487
|
+
export interface GtkObjectExpressionProps extends GtkExpressionProps {
|
|
5488
|
+
}
|
|
3527
5489
|
/** An interface for widgets that can be oriented horizontally or vertically. */
|
|
3528
5490
|
export interface GtkOrientableProps {
|
|
3529
5491
|
/** The orientation of the orientable. */
|
|
3530
5492
|
orientation?: GtkOrientationNick | Gtk.Orientation;
|
|
3531
5493
|
onNotifyOrientation?: NotifyHandler;
|
|
3532
5494
|
}
|
|
5495
|
+
/** `GtkLayoutChild` subclass for children in a `GtkOverlayLayout`. */
|
|
5496
|
+
export interface GtkOverlayLayoutChildProps extends GtkLayoutChildProps, GObjectProps {
|
|
5497
|
+
/** Whether the child should be clipped to fit the parent's size. */
|
|
5498
|
+
clipOverlay?: boolean;
|
|
5499
|
+
'clip-overlay'?: boolean;
|
|
5500
|
+
/** Whether the child size should contribute to the `GtkOverlayLayout`'s measurement. */
|
|
5501
|
+
measure?: boolean;
|
|
5502
|
+
onNotifyClipOverlay?: NotifyHandler;
|
|
5503
|
+
onNotifyMeasure?: NotifyHandler;
|
|
5504
|
+
}
|
|
5505
|
+
/** The layout manager used by [class@Gtk.Overlay]. */
|
|
5506
|
+
export interface GtkOverlayLayoutProps extends GtkLayoutManagerProps, GObjectProps {
|
|
5507
|
+
}
|
|
3533
5508
|
/** Places “overlay” widgets on top of a single main child. */
|
|
3534
|
-
export interface GtkOverlayProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
5509
|
+
export interface GtkOverlayProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3535
5510
|
/** The main child widget. */
|
|
3536
5511
|
child?: Gtk.Widget | null;
|
|
3537
5512
|
onGetChildPosition?: Gtk.Overlay.SignalSignatures['get-child-position'];
|
|
3538
5513
|
onNotifyChild?: NotifyHandler;
|
|
3539
5514
|
}
|
|
5515
|
+
/** Handles input from the pads found in drawing tablets. */
|
|
5516
|
+
export interface GtkPadControllerProps extends GtkEventControllerProps, GObjectProps {
|
|
5517
|
+
/** The action group of the controller. */
|
|
5518
|
+
actionGroup?: Gio.ActionGroup;
|
|
5519
|
+
'action-group'?: Gio.ActionGroup;
|
|
5520
|
+
/** The pad of the controller. */
|
|
5521
|
+
pad?: Gdk.Device;
|
|
5522
|
+
onNotifyActionGroup?: NotifyHandler;
|
|
5523
|
+
onNotifyPad?: NotifyHandler;
|
|
5524
|
+
}
|
|
5525
|
+
/** Stores page size, orientation and margins for printing. */
|
|
5526
|
+
export interface GtkPageSetupProps extends GObjectProps {
|
|
5527
|
+
}
|
|
3540
5528
|
/** Presents a page setup dialog for platforms which don’t provide a native page setup dialog, like Unix. */
|
|
3541
|
-
export interface GtkPageSetupUnixDialogProps extends GtkDialogProps, GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
5529
|
+
export interface GtkPageSetupUnixDialogProps extends GtkDialogProps, GtkWindowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
3542
5530
|
}
|
|
3543
5531
|
/** Arranges its children in two panes, horizontally or vertically. */
|
|
3544
|
-
export interface GtkPanedProps extends GtkWidgetProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
5532
|
+
export interface GtkPanedProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
3545
5533
|
/** The second child. */
|
|
3546
5534
|
endChild?: Gtk.Widget | null;
|
|
3547
5535
|
'end-child'?: Gtk.Widget | null;
|
|
@@ -3584,8 +5572,14 @@ export interface GtkPanedProps extends GtkWidgetProps, GtkAccessibleProps, GtkAc
|
|
|
3584
5572
|
onNotifyStartChild?: NotifyHandler;
|
|
3585
5573
|
onNotifyWideHandle?: NotifyHandler;
|
|
3586
5574
|
}
|
|
5575
|
+
/** A `GParamSpec` for properties holding a `GtkExpression`. */
|
|
5576
|
+
export interface GtkParamSpecExpressionProps extends GParamProps {
|
|
5577
|
+
}
|
|
5578
|
+
/** A `GtkEntryBuffer` that locks the underlying memory to prevent it from being swapped to disk. */
|
|
5579
|
+
export interface GtkPasswordEntryBufferProps extends GtkEntryBufferProps, GObjectProps {
|
|
5580
|
+
}
|
|
3587
5581
|
/** A single-line text entry widget for entering passwords and other secrets. */
|
|
3588
|
-
export interface GtkPasswordEntryProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
5582
|
+
export interface GtkPasswordEntryProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
3589
5583
|
/** Whether to activate the default widget when Enter is pressed. */
|
|
3590
5584
|
activatesDefault?: boolean;
|
|
3591
5585
|
'activates-default'?: boolean;
|
|
@@ -3605,7 +5599,7 @@ export interface GtkPasswordEntryProps extends GtkWidgetProps, GtkAccessibleProp
|
|
|
3605
5599
|
onNotifyShowPeekIcon?: NotifyHandler;
|
|
3606
5600
|
}
|
|
3607
5601
|
/** Displays a `GdkPaintable`. */
|
|
3608
|
-
export interface GtkPictureProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
5602
|
+
export interface GtkPictureProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3609
5603
|
/** The alternative textual description for the picture. */
|
|
3610
5604
|
alternativeText?: string | null;
|
|
3611
5605
|
'alternative-text'?: string | null;
|
|
@@ -3637,7 +5631,7 @@ export interface GtkPictureProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
3637
5631
|
onNotifyPaintable?: NotifyHandler;
|
|
3638
5632
|
}
|
|
3639
5633
|
/** A single child container with a popover. */
|
|
3640
|
-
export interface GtkPopoverBinProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
5634
|
+
export interface GtkPopoverBinProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3641
5635
|
/** The child widget of the popover bin. */
|
|
3642
5636
|
child?: Gtk.Widget | null;
|
|
3643
5637
|
/** Whether the popover bin will handle input to trigger the popup. */
|
|
@@ -3654,16 +5648,16 @@ export interface GtkPopoverBinProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
3654
5648
|
onNotifyPopover?: NotifyHandler;
|
|
3655
5649
|
}
|
|
3656
5650
|
/** Presents a horizontal bar of items that pop up menus when clicked. */
|
|
3657
|
-
export interface GtkPopoverMenuBarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
5651
|
+
export interface GtkPopoverMenuBarProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3658
5652
|
/** The `GMenuModel` from which the menu bar is created. */
|
|
3659
5653
|
menuModel?: Gio.MenuModel | null;
|
|
3660
5654
|
'menu-model'?: Gio.MenuModel | null;
|
|
3661
5655
|
onNotifyMenuModel?: NotifyHandler;
|
|
3662
5656
|
}
|
|
3663
5657
|
/** A subclass of `GtkPopover` that implements menu behavior. */
|
|
3664
|
-
export interface GtkPopoverMenuProps extends GtkPopoverProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkShortcutManagerProps {
|
|
5658
|
+
export interface GtkPopoverMenuProps extends GtkPopoverProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkShortcutManagerProps {
|
|
3665
5659
|
/** The flags that @popover uses to create/display a menu from its model. */
|
|
3666
|
-
flags?: number;
|
|
5660
|
+
flags?: GtkPopoverMenuFlagsNickSet | number;
|
|
3667
5661
|
/** The model from which the menu is made. */
|
|
3668
5662
|
menuModel?: Gio.MenuModel | null;
|
|
3669
5663
|
'menu-model'?: Gio.MenuModel | null;
|
|
@@ -3675,7 +5669,7 @@ export interface GtkPopoverMenuProps extends GtkPopoverProps, GtkWidgetProps, Gt
|
|
|
3675
5669
|
onNotifyVisibleSubmenu?: NotifyHandler;
|
|
3676
5670
|
}
|
|
3677
5671
|
/** Presents a bubble-like popup. */
|
|
3678
|
-
export interface GtkPopoverProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkShortcutManagerProps {
|
|
5672
|
+
export interface GtkPopoverProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkShortcutManagerProps {
|
|
3679
5673
|
/** Whether to dismiss the popover on outside clicks. */
|
|
3680
5674
|
autohide?: boolean;
|
|
3681
5675
|
/** Whether the popover pops down after a child popover. */
|
|
@@ -3708,8 +5702,134 @@ export interface GtkPopoverProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
3708
5702
|
onNotifyPointingTo?: NotifyHandler;
|
|
3709
5703
|
onNotifyPosition?: NotifyHandler;
|
|
3710
5704
|
}
|
|
5705
|
+
/** Encapsulates context information that is required when drawing pages for printing. */
|
|
5706
|
+
export interface GtkPrintContextProps extends GObjectProps {
|
|
5707
|
+
}
|
|
5708
|
+
/** Asynchronous API to present a print dialog to the user. */
|
|
5709
|
+
export interface GtkPrintDialogProps extends GObjectProps {
|
|
5710
|
+
/** A label that may be shown on the accept button of a print dialog that is presented by [method@Gtk.PrintDialog.setup]. */
|
|
5711
|
+
acceptLabel?: string;
|
|
5712
|
+
'accept-label'?: string;
|
|
5713
|
+
/** Whether the print dialog is modal. */
|
|
5714
|
+
modal?: boolean;
|
|
5715
|
+
/** The page setup to use. */
|
|
5716
|
+
pageSetup?: Gtk.PageSetup | null;
|
|
5717
|
+
'page-setup'?: Gtk.PageSetup | null;
|
|
5718
|
+
/** The print settings to use. */
|
|
5719
|
+
printSettings?: Gtk.PrintSettings | null;
|
|
5720
|
+
'print-settings'?: Gtk.PrintSettings | null;
|
|
5721
|
+
/** A title that may be shown on the print dialog that is presented by [method@Gtk.PrintDialog.setup]. */
|
|
5722
|
+
title?: string;
|
|
5723
|
+
onNotifyAcceptLabel?: NotifyHandler;
|
|
5724
|
+
onNotifyModal?: NotifyHandler;
|
|
5725
|
+
onNotifyPageSetup?: NotifyHandler;
|
|
5726
|
+
onNotifyPrintSettings?: NotifyHandler;
|
|
5727
|
+
onNotifyTitle?: NotifyHandler;
|
|
5728
|
+
}
|
|
5729
|
+
/** Represents a job that is sent to a printer. */
|
|
5730
|
+
export interface GtkPrintJobProps extends GObjectProps {
|
|
5731
|
+
/** Page setup. */
|
|
5732
|
+
pageSetup?: Gtk.PageSetup;
|
|
5733
|
+
'page-setup'?: Gtk.PageSetup;
|
|
5734
|
+
/** The printer to send the job to. */
|
|
5735
|
+
printer?: Gtk.Printer;
|
|
5736
|
+
/** Printer settings. */
|
|
5737
|
+
settings?: Gtk.PrintSettings;
|
|
5738
|
+
/** The title of the print job. */
|
|
5739
|
+
title?: string;
|
|
5740
|
+
/** %TRUE if the print job will continue to emit status-changed signals after the print data has been setn to the printer. */
|
|
5741
|
+
trackPrintStatus?: boolean;
|
|
5742
|
+
'track-print-status'?: boolean;
|
|
5743
|
+
onStatusChanged?: Gtk.PrintJob.SignalSignatures['status-changed'];
|
|
5744
|
+
onNotifyPageSetup?: NotifyHandler;
|
|
5745
|
+
onNotifyPrinter?: NotifyHandler;
|
|
5746
|
+
onNotifySettings?: NotifyHandler;
|
|
5747
|
+
onNotifyTitle?: NotifyHandler;
|
|
5748
|
+
onNotifyTrackPrintStatus?: NotifyHandler;
|
|
5749
|
+
}
|
|
5750
|
+
/** The interface that is used to implement print preview. */
|
|
5751
|
+
export interface GtkPrintOperationPreviewProps {
|
|
5752
|
+
onGotPageSize?: Gtk.PrintOperationPreview.SignalSignatures['got-page-size'];
|
|
5753
|
+
onReady?: Gtk.PrintOperationPreview.SignalSignatures['ready'];
|
|
5754
|
+
}
|
|
5755
|
+
/** High-level, portable printing API. */
|
|
5756
|
+
export interface GtkPrintOperationProps extends GObjectProps, GtkPrintOperationPreviewProps {
|
|
5757
|
+
/** Determines whether the print operation may run asynchronously or not. */
|
|
5758
|
+
allowAsync?: boolean;
|
|
5759
|
+
'allow-async'?: boolean;
|
|
5760
|
+
/** The current page in the document. */
|
|
5761
|
+
currentPage?: number;
|
|
5762
|
+
'current-page'?: number;
|
|
5763
|
+
/** Used as the label of the tab containing custom widgets. */
|
|
5764
|
+
customTabLabel?: string;
|
|
5765
|
+
'custom-tab-label'?: string;
|
|
5766
|
+
/** The `GtkPageSetup` used by default. */
|
|
5767
|
+
defaultPageSetup?: Gtk.PageSetup;
|
|
5768
|
+
'default-page-setup'?: Gtk.PageSetup;
|
|
5769
|
+
/** If %TRUE, page size combo box and orientation combo box are embedded into page setup page. */
|
|
5770
|
+
embedPageSetup?: boolean;
|
|
5771
|
+
'embed-page-setup'?: boolean;
|
|
5772
|
+
/** The name of a file to generate instead of showing the print dialog. */
|
|
5773
|
+
exportFilename?: string;
|
|
5774
|
+
'export-filename'?: string;
|
|
5775
|
+
/** Determines whether there is a selection in your application. */
|
|
5776
|
+
hasSelection?: boolean;
|
|
5777
|
+
'has-selection'?: boolean;
|
|
5778
|
+
/** A string used to identify the job (e.g. */
|
|
5779
|
+
jobName?: string;
|
|
5780
|
+
'job-name'?: string;
|
|
5781
|
+
/** The number of pages in the document. */
|
|
5782
|
+
nPages?: number;
|
|
5783
|
+
'n-pages'?: number;
|
|
5784
|
+
/** The `GtkPrintSettings` used for initializing the dialog. */
|
|
5785
|
+
printSettings?: Gtk.PrintSettings | null;
|
|
5786
|
+
'print-settings'?: Gtk.PrintSettings | null;
|
|
5787
|
+
/** Determines whether to show a progress dialog during the print operation. */
|
|
5788
|
+
showProgress?: boolean;
|
|
5789
|
+
'show-progress'?: boolean;
|
|
5790
|
+
/** If %TRUE, the print operation will support print of selection. */
|
|
5791
|
+
supportSelection?: boolean;
|
|
5792
|
+
'support-selection'?: boolean;
|
|
5793
|
+
/** If %TRUE, the print operation will try to continue report on the status of the print job in the printer queues and printer. */
|
|
5794
|
+
trackPrintStatus?: boolean;
|
|
5795
|
+
'track-print-status'?: boolean;
|
|
5796
|
+
/** The transformation for the cairo context obtained from `GtkPrintContext` is set up in such a way that distances are measured in units of @unit. */
|
|
5797
|
+
unit?: GtkUnitNick | Gtk.Unit;
|
|
5798
|
+
/** If %TRUE, the transformation for the cairo context obtained from `GtkPrintContext` puts the origin at the top left corner of the page. */
|
|
5799
|
+
useFullPage?: boolean;
|
|
5800
|
+
'use-full-page'?: boolean;
|
|
5801
|
+
onBeginPrint?: Gtk.PrintOperation.SignalSignatures['begin-print'];
|
|
5802
|
+
onCreateCustomWidget?: Gtk.PrintOperation.SignalSignatures['create-custom-widget'];
|
|
5803
|
+
onCustomWidgetApply?: Gtk.PrintOperation.SignalSignatures['custom-widget-apply'];
|
|
5804
|
+
onDone?: Gtk.PrintOperation.SignalSignatures['done'];
|
|
5805
|
+
onDrawPage?: Gtk.PrintOperation.SignalSignatures['draw-page'];
|
|
5806
|
+
onEndPrint?: Gtk.PrintOperation.SignalSignatures['end-print'];
|
|
5807
|
+
onPaginate?: Gtk.PrintOperation.SignalSignatures['paginate'];
|
|
5808
|
+
onPreview?: Gtk.PrintOperation.SignalSignatures['preview'];
|
|
5809
|
+
onRequestPageSetup?: Gtk.PrintOperation.SignalSignatures['request-page-setup'];
|
|
5810
|
+
onStatusChanged?: Gtk.PrintOperation.SignalSignatures['status-changed'];
|
|
5811
|
+
onUpdateCustomWidget?: Gtk.PrintOperation.SignalSignatures['update-custom-widget'];
|
|
5812
|
+
onNotifyAllowAsync?: NotifyHandler;
|
|
5813
|
+
onNotifyCurrentPage?: NotifyHandler;
|
|
5814
|
+
onNotifyCustomTabLabel?: NotifyHandler;
|
|
5815
|
+
onNotifyDefaultPageSetup?: NotifyHandler;
|
|
5816
|
+
onNotifyEmbedPageSetup?: NotifyHandler;
|
|
5817
|
+
onNotifyExportFilename?: NotifyHandler;
|
|
5818
|
+
onNotifyHasSelection?: NotifyHandler;
|
|
5819
|
+
onNotifyJobName?: NotifyHandler;
|
|
5820
|
+
onNotifyNPages?: NotifyHandler;
|
|
5821
|
+
onNotifyPrintSettings?: NotifyHandler;
|
|
5822
|
+
onNotifyShowProgress?: NotifyHandler;
|
|
5823
|
+
onNotifySupportSelection?: NotifyHandler;
|
|
5824
|
+
onNotifyTrackPrintStatus?: NotifyHandler;
|
|
5825
|
+
onNotifyUnit?: NotifyHandler;
|
|
5826
|
+
onNotifyUseFullPage?: NotifyHandler;
|
|
5827
|
+
}
|
|
5828
|
+
/** Collects the settings of a print dialog in a system-independent way. */
|
|
5829
|
+
export interface GtkPrintSettingsProps extends GObjectProps {
|
|
5830
|
+
}
|
|
3711
5831
|
/** A print dialog for platforms which don’t provide a native print dialog, like Unix. */
|
|
3712
|
-
export interface GtkPrintUnixDialogProps extends GtkDialogProps, GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
5832
|
+
export interface GtkPrintUnixDialogProps extends GtkDialogProps, GtkWindowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
3713
5833
|
/** The current page in the document. */
|
|
3714
5834
|
currentPage?: number;
|
|
3715
5835
|
'current-page'?: number;
|
|
@@ -3720,8 +5840,8 @@ export interface GtkPrintUnixDialogProps extends GtkDialogProps, GtkWindowProps,
|
|
|
3720
5840
|
hasSelection?: boolean;
|
|
3721
5841
|
'has-selection'?: boolean;
|
|
3722
5842
|
/** Capabilities the application can handle. */
|
|
3723
|
-
manualCapabilities?: number;
|
|
3724
|
-
'manual-capabilities'?: number;
|
|
5843
|
+
manualCapabilities?: GtkPrintCapabilitiesNickSet | number;
|
|
5844
|
+
'manual-capabilities'?: GtkPrintCapabilitiesNickSet | number;
|
|
3725
5845
|
/** The `GtkPageSetup` object to use. */
|
|
3726
5846
|
pageSetup?: Gtk.PageSetup;
|
|
3727
5847
|
'page-setup'?: Gtk.PageSetup;
|
|
@@ -3739,8 +5859,27 @@ export interface GtkPrintUnixDialogProps extends GtkDialogProps, GtkWindowProps,
|
|
|
3739
5859
|
onNotifyPrintSettings?: NotifyHandler;
|
|
3740
5860
|
onNotifySupportSelection?: NotifyHandler;
|
|
3741
5861
|
}
|
|
5862
|
+
/** Represents a printer. */
|
|
5863
|
+
export interface GtkPrinterProps extends GObjectProps {
|
|
5864
|
+
/** %TRUE if this printer can accept PDF. */
|
|
5865
|
+
acceptsPdf?: boolean;
|
|
5866
|
+
'accepts-pdf'?: boolean;
|
|
5867
|
+
/** %TRUE if this printer can accept PostScript. */
|
|
5868
|
+
acceptsPs?: boolean;
|
|
5869
|
+
'accepts-ps'?: boolean;
|
|
5870
|
+
/** %FALSE if this represents a real hardware device. */
|
|
5871
|
+
isVirtual?: boolean;
|
|
5872
|
+
'is-virtual'?: boolean;
|
|
5873
|
+
/** The name of the printer. */
|
|
5874
|
+
name?: string;
|
|
5875
|
+
onDetailsAcquired?: Gtk.Printer.SignalSignatures['details-acquired'];
|
|
5876
|
+
onNotifyAcceptsPdf?: NotifyHandler;
|
|
5877
|
+
onNotifyAcceptsPs?: NotifyHandler;
|
|
5878
|
+
onNotifyIsVirtual?: NotifyHandler;
|
|
5879
|
+
onNotifyName?: NotifyHandler;
|
|
5880
|
+
}
|
|
3742
5881
|
/** Displays the progress of a long-running operation. */
|
|
3743
|
-
export interface GtkProgressBarProps extends GtkWidgetProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
5882
|
+
export interface GtkProgressBarProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
3744
5883
|
/** The preferred place to ellipsize the string. */
|
|
3745
5884
|
ellipsize?: PangoEllipsizeModeNick | Pango.EllipsizeMode;
|
|
3746
5885
|
/** The fraction of total work that has been completed. */
|
|
@@ -3762,8 +5901,11 @@ export interface GtkProgressBarProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
3762
5901
|
onNotifyShowText?: NotifyHandler;
|
|
3763
5902
|
onNotifyText?: NotifyHandler;
|
|
3764
5903
|
}
|
|
5904
|
+
/** A `GObject` property value in a `GtkExpression`. */
|
|
5905
|
+
export interface GtkPropertyExpressionProps extends GtkExpressionProps {
|
|
5906
|
+
}
|
|
3765
5907
|
/** Base class for widgets which visualize an adjustment. */
|
|
3766
|
-
export interface GtkRangeProps extends GtkWidgetProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
5908
|
+
export interface GtkRangeProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
3767
5909
|
/** The adjustment that is controlled by the range. */
|
|
3768
5910
|
adjustment?: Gtk.Adjustment;
|
|
3769
5911
|
/** The fill level (e.g. */
|
|
@@ -3791,8 +5933,15 @@ export interface GtkRangeProps extends GtkWidgetProps, GtkAccessibleProps, GtkAc
|
|
|
3791
5933
|
onNotifyRoundDigits?: NotifyHandler;
|
|
3792
5934
|
onNotifyShowFillLevel?: NotifyHandler;
|
|
3793
5935
|
}
|
|
5936
|
+
/** Manages and looks up recently used files. */
|
|
5937
|
+
export interface GtkRecentManagerProps extends GObjectProps {
|
|
5938
|
+
/** The full path to the file to be used to store and read the recently used resources list */
|
|
5939
|
+
filename?: string;
|
|
5940
|
+
onChanged?: Gtk.RecentManager.SignalSignatures['changed'];
|
|
5941
|
+
onNotifyFilename?: NotifyHandler;
|
|
5942
|
+
}
|
|
3794
5943
|
/** Animates the transition of its child from invisible to visible. */
|
|
3795
|
-
export interface GtkRevealerProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
5944
|
+
export interface GtkRevealerProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3796
5945
|
/** The child widget. */
|
|
3797
5946
|
child?: Gtk.Widget | null;
|
|
3798
5947
|
/** Whether the revealer should reveal the child. */
|
|
@@ -3813,7 +5962,7 @@ export interface GtkRevealerProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
3813
5962
|
export interface GtkRootProps {
|
|
3814
5963
|
}
|
|
3815
5964
|
/** Provides a button which pops up a scale widget. */
|
|
3816
|
-
export interface GtkScaleButtonProps extends GtkWidgetProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
5965
|
+
export interface GtkScaleButtonProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
3817
5966
|
/** The `GtkAdjustment` that is used as the model. */
|
|
3818
5967
|
adjustment?: Gtk.Adjustment;
|
|
3819
5968
|
/** If the scale button has a frame. */
|
|
@@ -3832,7 +5981,7 @@ export interface GtkScaleButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
3832
5981
|
onNotifyValue?: NotifyHandler;
|
|
3833
5982
|
}
|
|
3834
5983
|
/** Allows to select a numeric value with a slider control. */
|
|
3835
|
-
export interface GtkScaleProps extends GtkRangeProps, GtkWidgetProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
5984
|
+
export interface GtkScaleProps extends GtkRangeProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
3836
5985
|
/** The number of decimal places that are displayed in the value. */
|
|
3837
5986
|
digits?: number;
|
|
3838
5987
|
/** Whether the current value is displayed as a string next to the slider. */
|
|
@@ -3867,13 +6016,13 @@ export interface GtkScrollableProps {
|
|
|
3867
6016
|
onNotifyVscrollPolicy?: NotifyHandler;
|
|
3868
6017
|
}
|
|
3869
6018
|
/** Shows a horizontal or vertical scrollbar. */
|
|
3870
|
-
export interface GtkScrollbarProps extends GtkWidgetProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
6019
|
+
export interface GtkScrollbarProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
3871
6020
|
/** The `GtkAdjustment` controlled by this scrollbar. */
|
|
3872
6021
|
adjustment?: Gtk.Adjustment;
|
|
3873
6022
|
onNotifyAdjustment?: NotifyHandler;
|
|
3874
6023
|
}
|
|
3875
6024
|
/** Makes its child scrollable. */
|
|
3876
|
-
export interface GtkScrolledWindowProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
6025
|
+
export interface GtkScrolledWindowProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3877
6026
|
/** The child widget. */
|
|
3878
6027
|
child?: Gtk.Widget | null;
|
|
3879
6028
|
/** The `GtkAdjustment` for the horizontal position. */
|
|
@@ -3937,7 +6086,7 @@ export interface GtkScrolledWindowProps extends GtkWidgetProps, GtkAccessiblePro
|
|
|
3937
6086
|
onNotifyWindowPlacement?: NotifyHandler;
|
|
3938
6087
|
}
|
|
3939
6088
|
/** Reveals a search entry when search is started. */
|
|
3940
|
-
export interface GtkSearchBarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
6089
|
+
export interface GtkSearchBarProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3941
6090
|
/** The child widget. */
|
|
3942
6091
|
child?: Gtk.Widget | null;
|
|
3943
6092
|
/** The key capture widget. */
|
|
@@ -3955,13 +6104,13 @@ export interface GtkSearchBarProps extends GtkWidgetProps, GtkAccessibleProps, G
|
|
|
3955
6104
|
onNotifyShowCloseButton?: NotifyHandler;
|
|
3956
6105
|
}
|
|
3957
6106
|
/** A single-line text entry widget for use as a search entry. */
|
|
3958
|
-
export interface GtkSearchEntryProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
6107
|
+
export interface GtkSearchEntryProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
3959
6108
|
/** Whether to activate the default widget when Enter is pressed. */
|
|
3960
6109
|
activatesDefault?: boolean;
|
|
3961
6110
|
'activates-default'?: boolean;
|
|
3962
6111
|
/** The hints about input for the `GtkSearchEntry` used to alter the behaviour of input methods. */
|
|
3963
|
-
inputHints?: number;
|
|
3964
|
-
'input-hints'?: number;
|
|
6112
|
+
inputHints?: GtkInputHintsNickSet | number;
|
|
6113
|
+
'input-hints'?: GtkInputHintsNickSet | number;
|
|
3965
6114
|
/** The purpose for the `GtkSearchEntry` input used to alter the behaviour of input methods. */
|
|
3966
6115
|
inputPurpose?: GtkInputPurposeNick | Gtk.InputPurpose;
|
|
3967
6116
|
'input-purpose'?: GtkInputPurposeNick | Gtk.InputPurpose;
|
|
@@ -3987,11 +6136,280 @@ export interface GtkSearchEntryProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
3987
6136
|
onNotifyPlaceholderText?: NotifyHandler;
|
|
3988
6137
|
onNotifySearchDelay?: NotifyHandler;
|
|
3989
6138
|
}
|
|
6139
|
+
/** An interface that adds support for sections to list models. */
|
|
6140
|
+
export interface GtkSectionModelProps {
|
|
6141
|
+
onSectionsChanged?: Gtk.SectionModel.SignalSignatures['sections-changed'];
|
|
6142
|
+
}
|
|
6143
|
+
/** A list model that presents the selection from a `GtkSelectionModel`. */
|
|
6144
|
+
export interface GtkSelectionFilterModelProps extends GObjectProps, GListModelProps {
|
|
6145
|
+
/** The model being filtered. */
|
|
6146
|
+
model?: Gtk.SelectionModel | null;
|
|
6147
|
+
onNotifyModel?: NotifyHandler;
|
|
6148
|
+
}
|
|
6149
|
+
/** An interface that adds support for selection to list models. */
|
|
6150
|
+
export interface GtkSelectionModelProps {
|
|
6151
|
+
onSelectionChanged?: Gtk.SelectionModel.SignalSignatures['selection-changed'];
|
|
6152
|
+
}
|
|
3990
6153
|
/** Draws a horizontal or vertical line to separate other widgets. */
|
|
3991
|
-
export interface GtkSeparatorProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
6154
|
+
export interface GtkSeparatorProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
6155
|
+
}
|
|
6156
|
+
/** Provides a mechanism to share global settings between applications. */
|
|
6157
|
+
export interface GtkSettingsProps extends GObjectProps, GtkStyleProviderProps {
|
|
6158
|
+
/** Whether buttons in dialogs should use the alternative button order. */
|
|
6159
|
+
gtkAlternativeButtonOrder?: boolean;
|
|
6160
|
+
'gtk-alternative-button-order'?: boolean;
|
|
6161
|
+
/** Controls the direction of the sort indicators in sorted list and tree views. */
|
|
6162
|
+
gtkAlternativeSortArrows?: boolean;
|
|
6163
|
+
'gtk-alternative-sort-arrows'?: boolean;
|
|
6164
|
+
/**
|
|
6165
|
+
* Whether the application prefers to use a dark theme.
|
|
6166
|
+
* @deprecated
|
|
6167
|
+
*/
|
|
6168
|
+
gtkApplicationPreferDarkTheme?: boolean;
|
|
6169
|
+
'gtk-application-prefer-dark-theme'?: boolean;
|
|
6170
|
+
/** The aspect ratio of the text caret. */
|
|
6171
|
+
gtkCursorAspectRatio?: number;
|
|
6172
|
+
'gtk-cursor-aspect-ratio'?: number;
|
|
6173
|
+
/** Whether the cursor should blink. */
|
|
6174
|
+
gtkCursorBlink?: boolean;
|
|
6175
|
+
'gtk-cursor-blink'?: boolean;
|
|
6176
|
+
/** Length of the cursor blink cycle, in milliseconds. */
|
|
6177
|
+
gtkCursorBlinkTime?: number;
|
|
6178
|
+
'gtk-cursor-blink-time'?: number;
|
|
6179
|
+
/** Time after which the cursor stops blinking, in seconds. */
|
|
6180
|
+
gtkCursorBlinkTimeout?: number;
|
|
6181
|
+
'gtk-cursor-blink-timeout'?: number;
|
|
6182
|
+
/** Name of the cursor theme to use. */
|
|
6183
|
+
gtkCursorThemeName?: string;
|
|
6184
|
+
'gtk-cursor-theme-name'?: string;
|
|
6185
|
+
/** The size to use for cursors. */
|
|
6186
|
+
gtkCursorThemeSize?: number;
|
|
6187
|
+
'gtk-cursor-theme-size'?: number;
|
|
6188
|
+
/** Determines which buttons should be put in the titlebar of client-side decorated windows, and whether they should be placed on the left or right. */
|
|
6189
|
+
gtkDecorationLayout?: string;
|
|
6190
|
+
'gtk-decoration-layout'?: string;
|
|
6191
|
+
/** Whether builtin GTK dialogs such as the file chooser, the color chooser or the font chooser will use a header bar at the top to show action widgets, or an action area at the bottom. */
|
|
6192
|
+
gtkDialogsUseHeader?: boolean;
|
|
6193
|
+
'gtk-dialogs-use-header'?: boolean;
|
|
6194
|
+
/** The number of pixels the cursor can move before dragging. */
|
|
6195
|
+
gtkDndDragThreshold?: number;
|
|
6196
|
+
'gtk-dnd-drag-threshold'?: number;
|
|
6197
|
+
/** The maximum distance allowed between two clicks for them to be considered a double click, in pixels. */
|
|
6198
|
+
gtkDoubleClickDistance?: number;
|
|
6199
|
+
'gtk-double-click-distance'?: number;
|
|
6200
|
+
/** The maximum time to allow between two clicks for them to be considered a double click, in milliseconds. */
|
|
6201
|
+
gtkDoubleClickTime?: number;
|
|
6202
|
+
'gtk-double-click-time'?: number;
|
|
6203
|
+
/** Whether menu items should have visible accelerators which can be activated. */
|
|
6204
|
+
gtkEnableAccels?: boolean;
|
|
6205
|
+
'gtk-enable-accels'?: boolean;
|
|
6206
|
+
/** Whether to enable toolkit-wide animations. */
|
|
6207
|
+
gtkEnableAnimations?: boolean;
|
|
6208
|
+
'gtk-enable-animations'?: boolean;
|
|
6209
|
+
/** Whether to play any event sounds at all. */
|
|
6210
|
+
gtkEnableEventSounds?: boolean;
|
|
6211
|
+
'gtk-enable-event-sounds'?: boolean;
|
|
6212
|
+
/** Whether to play event sounds as feedback to user input. */
|
|
6213
|
+
gtkEnableInputFeedbackSounds?: boolean;
|
|
6214
|
+
'gtk-enable-input-feedback-sounds'?: boolean;
|
|
6215
|
+
/** Whether a middle click on a mouse should paste the 'PRIMARY' clipboard content at the cursor location. */
|
|
6216
|
+
gtkEnablePrimaryPaste?: boolean;
|
|
6217
|
+
'gtk-enable-primary-paste'?: boolean;
|
|
6218
|
+
/** How long to show the last input character in hidden entries. */
|
|
6219
|
+
gtkEntryPasswordHintTimeout?: number;
|
|
6220
|
+
'gtk-entry-password-hint-timeout'?: number;
|
|
6221
|
+
/** Whether to select the contents of an entry when it is focused. */
|
|
6222
|
+
gtkEntrySelectOnFocus?: boolean;
|
|
6223
|
+
'gtk-entry-select-on-focus'?: boolean;
|
|
6224
|
+
/** When %TRUE, keyboard navigation and other input-related errors will cause a beep. */
|
|
6225
|
+
gtkErrorBell?: boolean;
|
|
6226
|
+
'gtk-error-bell'?: boolean;
|
|
6227
|
+
/** The default font to use. */
|
|
6228
|
+
gtkFontName?: string;
|
|
6229
|
+
'gtk-font-name'?: string;
|
|
6230
|
+
/** How GTK font rendering is set up. */
|
|
6231
|
+
gtkFontRendering?: GtkFontRenderingNick | Gtk.FontRendering;
|
|
6232
|
+
'gtk-font-rendering'?: GtkFontRenderingNick | Gtk.FontRendering;
|
|
6233
|
+
/** Timestamp of the current fontconfig configuration. */
|
|
6234
|
+
gtkFontconfigTimestamp?: number;
|
|
6235
|
+
'gtk-fontconfig-timestamp'?: number;
|
|
6236
|
+
/** Whether hinting should be applied to font metrics. */
|
|
6237
|
+
gtkHintFontMetrics?: boolean;
|
|
6238
|
+
'gtk-hint-font-metrics'?: boolean;
|
|
6239
|
+
/** Name of the icon theme to use. */
|
|
6240
|
+
gtkIconThemeName?: string;
|
|
6241
|
+
'gtk-icon-theme-name'?: string;
|
|
6242
|
+
/** Which IM (input method) module should be used by default. */
|
|
6243
|
+
gtkImModule?: string;
|
|
6244
|
+
'gtk-im-module'?: string;
|
|
6245
|
+
/** The color scheme used for rendering the user interface. */
|
|
6246
|
+
gtkInterfaceColorScheme?: GtkInterfaceColorSchemeNick | Gtk.InterfaceColorScheme;
|
|
6247
|
+
'gtk-interface-color-scheme'?: GtkInterfaceColorSchemeNick | Gtk.InterfaceColorScheme;
|
|
6248
|
+
/** The level of contrast to use for the user interface. */
|
|
6249
|
+
gtkInterfaceContrast?: GtkInterfaceContrastNick | Gtk.InterfaceContrast;
|
|
6250
|
+
'gtk-interface-contrast'?: GtkInterfaceContrastNick | Gtk.InterfaceContrast;
|
|
6251
|
+
/** Whether animations should be reduced to essential motions. */
|
|
6252
|
+
gtkInterfaceReducedMotion?: GtkReducedMotionNick | Gtk.ReducedMotion;
|
|
6253
|
+
'gtk-interface-reduced-motion'?: GtkReducedMotionNick | Gtk.ReducedMotion;
|
|
6254
|
+
/** Time in seconds that the focus is visible when using keyboard navigation. */
|
|
6255
|
+
gtkKeyboardFocusVisibleTimeout?: number;
|
|
6256
|
+
'gtk-keyboard-focus-visible-timeout'?: number;
|
|
6257
|
+
/** Whether GTK should make sure that text can be navigated with a caret, even if it is not editable. */
|
|
6258
|
+
gtkKeynavUseCaret?: boolean;
|
|
6259
|
+
'gtk-keynav-use-caret'?: boolean;
|
|
6260
|
+
/** Whether to select the contents of a selectable label when it is focused. */
|
|
6261
|
+
gtkLabelSelectOnFocus?: boolean;
|
|
6262
|
+
'gtk-label-select-on-focus'?: boolean;
|
|
6263
|
+
/** The time for a button or touch press to be considered a “long press”. */
|
|
6264
|
+
gtkLongPressTime?: number;
|
|
6265
|
+
'gtk-long-press-time'?: number;
|
|
6266
|
+
/** Whether scrolled windows may use overlaid scrolling indicators. */
|
|
6267
|
+
gtkOverlayScrolling?: boolean;
|
|
6268
|
+
'gtk-overlay-scrolling'?: boolean;
|
|
6269
|
+
/** If the value of this setting is %TRUE, clicking the primary button in a `GtkRange` trough will move the slider, and hence set the range’s value, to the point that you clicked. */
|
|
6270
|
+
gtkPrimaryButtonWarpsSlider?: boolean;
|
|
6271
|
+
'gtk-primary-button-warps-slider'?: boolean;
|
|
6272
|
+
/** A comma-separated list of print backends to use in the print dialog. */
|
|
6273
|
+
gtkPrintBackends?: string;
|
|
6274
|
+
'gtk-print-backends'?: string;
|
|
6275
|
+
/** A command to run for displaying the print preview. */
|
|
6276
|
+
gtkPrintPreviewCommand?: string;
|
|
6277
|
+
'gtk-print-preview-command'?: string;
|
|
6278
|
+
/** Whether GTK should keep track of items inside the recently used resources list. */
|
|
6279
|
+
gtkRecentFilesEnabled?: boolean;
|
|
6280
|
+
'gtk-recent-files-enabled'?: boolean;
|
|
6281
|
+
/** The maximum age, in days, of the items inside the recently used resources list. */
|
|
6282
|
+
gtkRecentFilesMaxAge?: number;
|
|
6283
|
+
'gtk-recent-files-max-age'?: number;
|
|
6284
|
+
/**
|
|
6285
|
+
* Set to %TRUE if the desktop environment is displaying the app menu, %FALSE if the app should display it itself.
|
|
6286
|
+
* @deprecated
|
|
6287
|
+
*/
|
|
6288
|
+
gtkShellShowsAppMenu?: boolean;
|
|
6289
|
+
'gtk-shell-shows-app-menu'?: boolean;
|
|
6290
|
+
/**
|
|
6291
|
+
* Set to %TRUE if the desktop environment is displaying the desktop folder, %FALSE if not.
|
|
6292
|
+
* @deprecated
|
|
6293
|
+
*/
|
|
6294
|
+
gtkShellShowsDesktop?: boolean;
|
|
6295
|
+
'gtk-shell-shows-desktop'?: boolean;
|
|
6296
|
+
/**
|
|
6297
|
+
* Set to %TRUE if the desktop environment is displaying the menubar, %FALSE if the app should display it itself.
|
|
6298
|
+
* @deprecated
|
|
6299
|
+
*/
|
|
6300
|
+
gtkShellShowsMenubar?: boolean;
|
|
6301
|
+
'gtk-shell-shows-menubar'?: boolean;
|
|
6302
|
+
/** When %TRUE, widgets like switches include shapes to indicate their on/off state. */
|
|
6303
|
+
gtkShowStatusShapes?: boolean;
|
|
6304
|
+
'gtk-show-status-shapes'?: boolean;
|
|
6305
|
+
/** The XDG sound theme to use for event sounds. */
|
|
6306
|
+
gtkSoundThemeName?: string;
|
|
6307
|
+
'gtk-sound-theme-name'?: string;
|
|
6308
|
+
/** Whether two cursors should be displayed for mixed left-to-right and right-to-left text. */
|
|
6309
|
+
gtkSplitCursor?: boolean;
|
|
6310
|
+
'gtk-split-cursor'?: boolean;
|
|
6311
|
+
/** Name of the theme to load. */
|
|
6312
|
+
gtkThemeName?: string;
|
|
6313
|
+
'gtk-theme-name'?: string;
|
|
6314
|
+
/** Determines the action to take when a double-click occurs on the titlebar of client-side decorated windows. */
|
|
6315
|
+
gtkTitlebarDoubleClick?: string;
|
|
6316
|
+
'gtk-titlebar-double-click'?: string;
|
|
6317
|
+
/** Determines the action to take when a middle-click occurs on the titlebar of client-side decorated windows. */
|
|
6318
|
+
gtkTitlebarMiddleClick?: string;
|
|
6319
|
+
'gtk-titlebar-middle-click'?: string;
|
|
6320
|
+
/** Determines the action to take when a right-click occurs on the titlebar of client-side decorated windows. */
|
|
6321
|
+
gtkTitlebarRightClick?: string;
|
|
6322
|
+
'gtk-titlebar-right-click'?: string;
|
|
6323
|
+
/** Whether to antialias fonts. */
|
|
6324
|
+
gtkXftAntialias?: number;
|
|
6325
|
+
'gtk-xft-antialias'?: number;
|
|
6326
|
+
/** The font resolution, in 1024 * dots/inch. */
|
|
6327
|
+
gtkXftDpi?: number;
|
|
6328
|
+
'gtk-xft-dpi'?: number;
|
|
6329
|
+
/** Whether to enable font hinting. */
|
|
6330
|
+
gtkXftHinting?: number;
|
|
6331
|
+
'gtk-xft-hinting'?: number;
|
|
6332
|
+
/** What degree of font hinting to use. */
|
|
6333
|
+
gtkXftHintstyle?: string;
|
|
6334
|
+
'gtk-xft-hintstyle'?: string;
|
|
6335
|
+
/** The type of subpixel antialiasing to use. */
|
|
6336
|
+
gtkXftRgba?: string;
|
|
6337
|
+
'gtk-xft-rgba'?: string;
|
|
6338
|
+
onNotifyGtkAlternativeButtonOrder?: NotifyHandler;
|
|
6339
|
+
onNotifyGtkAlternativeSortArrows?: NotifyHandler;
|
|
6340
|
+
onNotifyGtkApplicationPreferDarkTheme?: NotifyHandler;
|
|
6341
|
+
onNotifyGtkCursorAspectRatio?: NotifyHandler;
|
|
6342
|
+
onNotifyGtkCursorBlink?: NotifyHandler;
|
|
6343
|
+
onNotifyGtkCursorBlinkTime?: NotifyHandler;
|
|
6344
|
+
onNotifyGtkCursorBlinkTimeout?: NotifyHandler;
|
|
6345
|
+
onNotifyGtkCursorThemeName?: NotifyHandler;
|
|
6346
|
+
onNotifyGtkCursorThemeSize?: NotifyHandler;
|
|
6347
|
+
onNotifyGtkDecorationLayout?: NotifyHandler;
|
|
6348
|
+
onNotifyGtkDialogsUseHeader?: NotifyHandler;
|
|
6349
|
+
onNotifyGtkDndDragThreshold?: NotifyHandler;
|
|
6350
|
+
onNotifyGtkDoubleClickDistance?: NotifyHandler;
|
|
6351
|
+
onNotifyGtkDoubleClickTime?: NotifyHandler;
|
|
6352
|
+
onNotifyGtkEnableAccels?: NotifyHandler;
|
|
6353
|
+
onNotifyGtkEnableAnimations?: NotifyHandler;
|
|
6354
|
+
onNotifyGtkEnableEventSounds?: NotifyHandler;
|
|
6355
|
+
onNotifyGtkEnableInputFeedbackSounds?: NotifyHandler;
|
|
6356
|
+
onNotifyGtkEnablePrimaryPaste?: NotifyHandler;
|
|
6357
|
+
onNotifyGtkEntryPasswordHintTimeout?: NotifyHandler;
|
|
6358
|
+
onNotifyGtkEntrySelectOnFocus?: NotifyHandler;
|
|
6359
|
+
onNotifyGtkErrorBell?: NotifyHandler;
|
|
6360
|
+
onNotifyGtkFontName?: NotifyHandler;
|
|
6361
|
+
onNotifyGtkFontRendering?: NotifyHandler;
|
|
6362
|
+
onNotifyGtkFontconfigTimestamp?: NotifyHandler;
|
|
6363
|
+
onNotifyGtkHintFontMetrics?: NotifyHandler;
|
|
6364
|
+
onNotifyGtkIconThemeName?: NotifyHandler;
|
|
6365
|
+
onNotifyGtkImModule?: NotifyHandler;
|
|
6366
|
+
onNotifyGtkInterfaceColorScheme?: NotifyHandler;
|
|
6367
|
+
onNotifyGtkInterfaceContrast?: NotifyHandler;
|
|
6368
|
+
onNotifyGtkInterfaceReducedMotion?: NotifyHandler;
|
|
6369
|
+
onNotifyGtkKeyboardFocusVisibleTimeout?: NotifyHandler;
|
|
6370
|
+
onNotifyGtkKeynavUseCaret?: NotifyHandler;
|
|
6371
|
+
onNotifyGtkLabelSelectOnFocus?: NotifyHandler;
|
|
6372
|
+
onNotifyGtkLongPressTime?: NotifyHandler;
|
|
6373
|
+
onNotifyGtkOverlayScrolling?: NotifyHandler;
|
|
6374
|
+
onNotifyGtkPrimaryButtonWarpsSlider?: NotifyHandler;
|
|
6375
|
+
onNotifyGtkPrintBackends?: NotifyHandler;
|
|
6376
|
+
onNotifyGtkPrintPreviewCommand?: NotifyHandler;
|
|
6377
|
+
onNotifyGtkRecentFilesEnabled?: NotifyHandler;
|
|
6378
|
+
onNotifyGtkRecentFilesMaxAge?: NotifyHandler;
|
|
6379
|
+
onNotifyGtkShellShowsAppMenu?: NotifyHandler;
|
|
6380
|
+
onNotifyGtkShellShowsDesktop?: NotifyHandler;
|
|
6381
|
+
onNotifyGtkShellShowsMenubar?: NotifyHandler;
|
|
6382
|
+
onNotifyGtkShowStatusShapes?: NotifyHandler;
|
|
6383
|
+
onNotifyGtkSoundThemeName?: NotifyHandler;
|
|
6384
|
+
onNotifyGtkSplitCursor?: NotifyHandler;
|
|
6385
|
+
onNotifyGtkThemeName?: NotifyHandler;
|
|
6386
|
+
onNotifyGtkTitlebarDoubleClick?: NotifyHandler;
|
|
6387
|
+
onNotifyGtkTitlebarMiddleClick?: NotifyHandler;
|
|
6388
|
+
onNotifyGtkTitlebarRightClick?: NotifyHandler;
|
|
6389
|
+
onNotifyGtkXftAntialias?: NotifyHandler;
|
|
6390
|
+
onNotifyGtkXftDpi?: NotifyHandler;
|
|
6391
|
+
onNotifyGtkXftHinting?: NotifyHandler;
|
|
6392
|
+
onNotifyGtkXftHintstyle?: NotifyHandler;
|
|
6393
|
+
onNotifyGtkXftRgba?: NotifyHandler;
|
|
6394
|
+
}
|
|
6395
|
+
/** Encodes an action that can be triggered by a keyboard shortcut. */
|
|
6396
|
+
export interface GtkShortcutActionProps {
|
|
6397
|
+
}
|
|
6398
|
+
/** Manages keyboard shortcuts and their activation. */
|
|
6399
|
+
export interface GtkShortcutControllerProps extends GtkEventControllerProps, GObjectProps, GListModelProps, GtkBuildableProps {
|
|
6400
|
+
/** The modifiers that need to be pressed to allow mnemonics activation. */
|
|
6401
|
+
mnemonicModifiers?: GdkModifierTypeNickSet | number;
|
|
6402
|
+
'mnemonic-modifiers'?: GdkModifierTypeNickSet | number;
|
|
6403
|
+
/** A list model to take shortcuts from. */
|
|
6404
|
+
model?: Gio.ListModel;
|
|
6405
|
+
/** What scope the shortcuts will be handled in. */
|
|
6406
|
+
scope?: GtkShortcutScopeNick | Gtk.ShortcutScope;
|
|
6407
|
+
onNotifyMnemonicModifiers?: NotifyHandler;
|
|
6408
|
+
onNotifyModel?: NotifyHandler;
|
|
6409
|
+
onNotifyScope?: NotifyHandler;
|
|
3992
6410
|
}
|
|
3993
6411
|
/** `GtkShortcutLabel` displays a single keyboard shortcut or gesture. */
|
|
3994
|
-
export interface GtkShortcutLabelProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
6412
|
+
export interface GtkShortcutLabelProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3995
6413
|
/**
|
|
3996
6414
|
* The accelerator that @self displays.
|
|
3997
6415
|
* @deprecated
|
|
@@ -4009,8 +6427,23 @@ export interface GtkShortcutLabelProps extends GtkWidgetProps, GtkAccessibleProp
|
|
|
4009
6427
|
/** An interface that is used to implement shortcut scopes. */
|
|
4010
6428
|
export interface GtkShortcutManagerProps {
|
|
4011
6429
|
}
|
|
6430
|
+
/** Describes a keyboard shortcut. */
|
|
6431
|
+
export interface GtkShortcutProps extends GObjectProps {
|
|
6432
|
+
/** The action that gets activated by this shortcut. */
|
|
6433
|
+
action?: Gtk.ShortcutAction | null;
|
|
6434
|
+
/** Arguments passed to activation. */
|
|
6435
|
+
arguments?: GLib.Variant | null;
|
|
6436
|
+
/** The trigger that triggers this shortcut. */
|
|
6437
|
+
trigger?: Gtk.ShortcutTrigger | null;
|
|
6438
|
+
onNotifyAction?: NotifyHandler;
|
|
6439
|
+
onNotifyArguments?: NotifyHandler;
|
|
6440
|
+
onNotifyTrigger?: NotifyHandler;
|
|
6441
|
+
}
|
|
6442
|
+
/** Tracks how a `GtkShortcut` can be activated. */
|
|
6443
|
+
export interface GtkShortcutTriggerProps {
|
|
6444
|
+
}
|
|
4012
6445
|
/** A `GtkShortcutsGroup` represents a group of related keyboard shortcuts or gestures. */
|
|
4013
|
-
export interface GtkShortcutsGroupProps extends GtkBoxProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
6446
|
+
export interface GtkShortcutsGroupProps extends GtkBoxProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
4014
6447
|
/**
|
|
4015
6448
|
* The size group for the accelerator portion of shortcuts in this group.
|
|
4016
6449
|
* @deprecated
|
|
@@ -4039,7 +6472,7 @@ export interface GtkShortcutsGroupProps extends GtkBoxProps, GtkWidgetProps, Gtk
|
|
|
4039
6472
|
onNotifyView?: NotifyHandler;
|
|
4040
6473
|
}
|
|
4041
6474
|
/** A `GtkShortcutsSection` collects all the keyboard shortcuts and gestures for a major application mode. */
|
|
4042
|
-
export interface GtkShortcutsSectionProps extends GtkBoxProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
6475
|
+
export interface GtkShortcutsSectionProps extends GtkBoxProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
4043
6476
|
/**
|
|
4044
6477
|
* The maximum number of lines to allow per column.
|
|
4045
6478
|
* @deprecated
|
|
@@ -4070,7 +6503,7 @@ export interface GtkShortcutsSectionProps extends GtkBoxProps, GtkWidgetProps, G
|
|
|
4070
6503
|
onNotifyViewName?: NotifyHandler;
|
|
4071
6504
|
}
|
|
4072
6505
|
/** A `GtkShortcutsShortcut` represents a single keyboard shortcut or gesture with a short text. */
|
|
4073
|
-
export interface GtkShortcutsShortcutProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
6506
|
+
export interface GtkShortcutsShortcutProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4074
6507
|
/**
|
|
4075
6508
|
* The size group for the accelerator portion of this shortcut.
|
|
4076
6509
|
* @deprecated
|
|
@@ -4145,7 +6578,7 @@ export interface GtkShortcutsShortcutProps extends GtkWidgetProps, GtkAccessible
|
|
|
4145
6578
|
onNotifyTitleSizeGroup?: NotifyHandler;
|
|
4146
6579
|
}
|
|
4147
6580
|
/** A `GtkShortcutsWindow` shows information about the keyboard shortcuts and gestures of an application. */
|
|
4148
|
-
export interface GtkShortcutsWindowProps extends GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
6581
|
+
export interface GtkShortcutsWindowProps extends GtkWindowProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
4149
6582
|
/**
|
|
4150
6583
|
* The name of the section to show.
|
|
4151
6584
|
* @deprecated
|
|
@@ -4163,8 +6596,79 @@ export interface GtkShortcutsWindowProps extends GtkWindowProps, GtkWidgetProps,
|
|
|
4163
6596
|
onNotifySectionName?: NotifyHandler;
|
|
4164
6597
|
onNotifyViewName?: NotifyHandler;
|
|
4165
6598
|
}
|
|
6599
|
+
/** Emits a signal on a widget. */
|
|
6600
|
+
export interface GtkSignalActionProps extends GtkShortcutActionProps, GObjectProps {
|
|
6601
|
+
/** The name of the signal to emit. */
|
|
6602
|
+
signalName?: string;
|
|
6603
|
+
'signal-name'?: string;
|
|
6604
|
+
onNotifySignalName?: NotifyHandler;
|
|
6605
|
+
}
|
|
6606
|
+
/** Emits signals to manage listitems. */
|
|
6607
|
+
export interface GtkSignalListItemFactoryProps extends GtkListItemFactoryProps, GObjectProps {
|
|
6608
|
+
onBind?: Gtk.SignalListItemFactory.SignalSignatures['bind'];
|
|
6609
|
+
onSetup?: Gtk.SignalListItemFactory.SignalSignatures['setup'];
|
|
6610
|
+
onTeardown?: Gtk.SignalListItemFactory.SignalSignatures['teardown'];
|
|
6611
|
+
onUnbind?: Gtk.SignalListItemFactory.SignalSignatures['unbind'];
|
|
6612
|
+
}
|
|
6613
|
+
/** A selection model that allows selecting a single item. */
|
|
6614
|
+
export interface GtkSingleSelectionProps extends GObjectProps, GListModelProps, GtkSectionModelProps, GtkSelectionModelProps {
|
|
6615
|
+
/** If the selection will always select an item. */
|
|
6616
|
+
autoselect?: boolean;
|
|
6617
|
+
/** If unselecting the selected item is allowed. */
|
|
6618
|
+
canUnselect?: boolean;
|
|
6619
|
+
'can-unselect'?: boolean;
|
|
6620
|
+
/** The model being managed. */
|
|
6621
|
+
model?: Gio.ListModel | null;
|
|
6622
|
+
/** Position of the selected item. */
|
|
6623
|
+
selected?: number;
|
|
6624
|
+
onNotifyAutoselect?: NotifyHandler;
|
|
6625
|
+
onNotifyCanUnselect?: NotifyHandler;
|
|
6626
|
+
onNotifyModel?: NotifyHandler;
|
|
6627
|
+
onNotifySelected?: NotifyHandler;
|
|
6628
|
+
}
|
|
6629
|
+
/** Groups widgets together so they all request the same size. */
|
|
6630
|
+
export interface GtkSizeGroupProps extends GObjectProps, GtkBuildableProps {
|
|
6631
|
+
/** The direction in which the size group affects requested sizes. */
|
|
6632
|
+
mode?: GtkSizeGroupModeNick | Gtk.SizeGroupMode;
|
|
6633
|
+
onNotifyMode?: NotifyHandler;
|
|
6634
|
+
}
|
|
6635
|
+
/** A list model that presents a slice of another model. */
|
|
6636
|
+
export interface GtkSliceListModelProps extends GObjectProps, GListModelProps, GtkSectionModelProps {
|
|
6637
|
+
/** Child model to take slice from. */
|
|
6638
|
+
model?: Gio.ListModel | null;
|
|
6639
|
+
/** Offset of slice. */
|
|
6640
|
+
offset?: number;
|
|
6641
|
+
/** Maximum size of slice. */
|
|
6642
|
+
size?: number;
|
|
6643
|
+
onNotifyModel?: NotifyHandler;
|
|
6644
|
+
onNotifyOffset?: NotifyHandler;
|
|
6645
|
+
onNotifySize?: NotifyHandler;
|
|
6646
|
+
}
|
|
6647
|
+
/** Assists in creating [class@Gsk.RenderNode]s for widgets. */
|
|
6648
|
+
export interface GtkSnapshotProps extends GObjectProps {
|
|
6649
|
+
}
|
|
6650
|
+
/** A list model that sorts the elements of another model. */
|
|
6651
|
+
export interface GtkSortListModelProps extends GObjectProps, GListModelProps, GtkSectionModelProps {
|
|
6652
|
+
/** If the model should sort items incrementally. */
|
|
6653
|
+
incremental?: boolean;
|
|
6654
|
+
/** The model being sorted. */
|
|
6655
|
+
model?: Gio.ListModel | null;
|
|
6656
|
+
/** The section sorter for this model, if one is set. */
|
|
6657
|
+
sectionSorter?: Gtk.Sorter | null;
|
|
6658
|
+
'section-sorter'?: Gtk.Sorter | null;
|
|
6659
|
+
/** The sorter for this model. */
|
|
6660
|
+
sorter?: Gtk.Sorter | null;
|
|
6661
|
+
onNotifyIncremental?: NotifyHandler;
|
|
6662
|
+
onNotifyModel?: NotifyHandler;
|
|
6663
|
+
onNotifySectionSorter?: NotifyHandler;
|
|
6664
|
+
onNotifySorter?: NotifyHandler;
|
|
6665
|
+
}
|
|
6666
|
+
/** Describes sorting criteria for a [class@Gtk.SortListModel]. */
|
|
6667
|
+
export interface GtkSorterProps extends GObjectProps {
|
|
6668
|
+
onChanged?: Gtk.Sorter.SignalSignatures['changed'];
|
|
6669
|
+
}
|
|
4166
6670
|
/** Allows to enter or change numeric values. */
|
|
4167
|
-
export interface GtkSpinButtonProps extends GtkWidgetProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkCellEditableProps, GtkConstraintTargetProps, GtkEditableProps, GtkOrientableProps {
|
|
6671
|
+
export interface GtkSpinButtonProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkCellEditableProps, GtkConstraintTargetProps, GtkEditableProps, GtkOrientableProps {
|
|
4168
6672
|
/** Whether to activate the default widget when the spin button is activated. */
|
|
4169
6673
|
activatesDefault?: boolean;
|
|
4170
6674
|
'activates-default'?: boolean;
|
|
@@ -4204,13 +6708,40 @@ export interface GtkSpinButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
4204
6708
|
onNotifyWrap?: NotifyHandler;
|
|
4205
6709
|
}
|
|
4206
6710
|
/** Displays an icon-size spinning animation. */
|
|
4207
|
-
export interface GtkSpinnerProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
6711
|
+
export interface GtkSpinnerProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4208
6712
|
/** Whether the spinner is spinning */
|
|
4209
6713
|
spinning?: boolean;
|
|
4210
6714
|
onNotifySpinning?: NotifyHandler;
|
|
4211
6715
|
}
|
|
6716
|
+
/** An auxiliary class used by `GtkStack`. */
|
|
6717
|
+
export interface GtkStackPageProps extends GObjectProps, GtkAccessibleProps {
|
|
6718
|
+
/** The child that this page is for. */
|
|
6719
|
+
child?: Gtk.Widget;
|
|
6720
|
+
/** The icon name of the child page. */
|
|
6721
|
+
iconName?: string | null;
|
|
6722
|
+
'icon-name'?: string | null;
|
|
6723
|
+
/** The name of the child page. */
|
|
6724
|
+
name?: string | null;
|
|
6725
|
+
/** Whether the page requires the user attention. */
|
|
6726
|
+
needsAttention?: boolean;
|
|
6727
|
+
'needs-attention'?: boolean;
|
|
6728
|
+
/** The title of the child page. */
|
|
6729
|
+
title?: string | null;
|
|
6730
|
+
/** If set, an underline in the title indicates a mnemonic. */
|
|
6731
|
+
useUnderline?: boolean;
|
|
6732
|
+
'use-underline'?: boolean;
|
|
6733
|
+
/** Whether this page is visible. */
|
|
6734
|
+
visible?: boolean;
|
|
6735
|
+
onNotifyChild?: NotifyHandler;
|
|
6736
|
+
onNotifyIconName?: NotifyHandler;
|
|
6737
|
+
onNotifyName?: NotifyHandler;
|
|
6738
|
+
onNotifyNeedsAttention?: NotifyHandler;
|
|
6739
|
+
onNotifyTitle?: NotifyHandler;
|
|
6740
|
+
onNotifyUseUnderline?: NotifyHandler;
|
|
6741
|
+
onNotifyVisible?: NotifyHandler;
|
|
6742
|
+
}
|
|
4212
6743
|
/** Shows one of its children at a time. */
|
|
4213
|
-
export interface GtkStackProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
6744
|
+
export interface GtkStackProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4214
6745
|
/** %TRUE if the stack allocates the same width for all children. */
|
|
4215
6746
|
hhomogeneous?: boolean;
|
|
4216
6747
|
/** Whether or not the size should smoothly change during the transition. */
|
|
@@ -4239,24 +6770,98 @@ export interface GtkStackProps extends GtkWidgetProps, GtkAccessibleProps, GtkBu
|
|
|
4239
6770
|
onNotifyVisibleChildName?: NotifyHandler;
|
|
4240
6771
|
}
|
|
4241
6772
|
/** Uses a sidebar to switch between `GtkStack` pages. */
|
|
4242
|
-
export interface GtkStackSidebarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
6773
|
+
export interface GtkStackSidebarProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4243
6774
|
/** The stack. */
|
|
4244
6775
|
stack?: Gtk.Stack | null;
|
|
4245
6776
|
onNotifyStack?: NotifyHandler;
|
|
4246
6777
|
}
|
|
4247
6778
|
/** Shows a row of buttons to switch between `GtkStack` pages. */
|
|
4248
|
-
export interface GtkStackSwitcherProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
6779
|
+
export interface GtkStackSwitcherProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
4249
6780
|
/** The stack. */
|
|
4250
6781
|
stack?: Gtk.Stack | null;
|
|
4251
6782
|
onNotifyStack?: NotifyHandler;
|
|
4252
6783
|
}
|
|
4253
6784
|
/** A `GtkStatusbar` widget is usually placed along the bottom of an application's main [class@Gtk.Window]. */
|
|
4254
|
-
export interface GtkStatusbarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
6785
|
+
export interface GtkStatusbarProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4255
6786
|
onTextPopped?: Gtk.Statusbar.SignalSignatures['text-popped'];
|
|
4256
6787
|
onTextPushed?: Gtk.Statusbar.SignalSignatures['text-pushed'];
|
|
4257
6788
|
}
|
|
6789
|
+
/** Determines whether to include items by comparing strings to a fixed search term. */
|
|
6790
|
+
export interface GtkStringFilterProps extends GtkFilterProps, GObjectProps {
|
|
6791
|
+
/** The expression to evaluate on each item to get a string to compare with. */
|
|
6792
|
+
expression?: Gtk.Expression | null;
|
|
6793
|
+
/** If matching is case sensitive. */
|
|
6794
|
+
ignoreCase?: boolean;
|
|
6795
|
+
'ignore-case'?: boolean;
|
|
6796
|
+
/** If exact matches are necessary or if substrings are allowed. */
|
|
6797
|
+
matchMode?: GtkStringFilterMatchModeNick | Gtk.StringFilterMatchMode;
|
|
6798
|
+
'match-mode'?: GtkStringFilterMatchModeNick | Gtk.StringFilterMatchMode;
|
|
6799
|
+
/** The search term. */
|
|
6800
|
+
search?: string | null;
|
|
6801
|
+
onNotifyExpression?: NotifyHandler;
|
|
6802
|
+
onNotifyIgnoreCase?: NotifyHandler;
|
|
6803
|
+
onNotifyMatchMode?: NotifyHandler;
|
|
6804
|
+
onNotifySearch?: NotifyHandler;
|
|
6805
|
+
}
|
|
6806
|
+
/** A list model that wraps an array of strings. */
|
|
6807
|
+
export interface GtkStringListProps extends GObjectProps, GListModelProps, GtkBuildableProps {
|
|
6808
|
+
/** The strings in the model. */
|
|
6809
|
+
strings?: string[];
|
|
6810
|
+
onNotifyStrings?: NotifyHandler;
|
|
6811
|
+
}
|
|
6812
|
+
/** The type of items in a `GtkStringList`. */
|
|
6813
|
+
export interface GtkStringObjectProps extends GObjectProps {
|
|
6814
|
+
}
|
|
6815
|
+
/** Sorts items by comparing strings. */
|
|
6816
|
+
export interface GtkStringSorterProps extends GtkSorterProps, GObjectProps {
|
|
6817
|
+
/** The collation method to use for sorting. */
|
|
6818
|
+
collation?: GtkCollationNick | Gtk.Collation;
|
|
6819
|
+
/** The expression to evaluate on item to get a string to compare with. */
|
|
6820
|
+
expression?: Gtk.Expression | null;
|
|
6821
|
+
/** If sorting is case sensitive. */
|
|
6822
|
+
ignoreCase?: boolean;
|
|
6823
|
+
'ignore-case'?: boolean;
|
|
6824
|
+
onNotifyCollation?: NotifyHandler;
|
|
6825
|
+
onNotifyExpression?: NotifyHandler;
|
|
6826
|
+
onNotifyIgnoreCase?: NotifyHandler;
|
|
6827
|
+
}
|
|
6828
|
+
/** `GtkStyleContext` stores styling information affecting a widget. */
|
|
6829
|
+
export interface GtkStyleContextProps extends GObjectProps {
|
|
6830
|
+
/** The display of the style context. */
|
|
6831
|
+
display?: Gdk.Display;
|
|
6832
|
+
onNotifyDisplay?: NotifyHandler;
|
|
6833
|
+
}
|
|
6834
|
+
/** An interface for style information used by [class@Gtk.StyleContext]. */
|
|
6835
|
+
export interface GtkStyleProviderProps {
|
|
6836
|
+
onGtkPrivateChanged?: Gtk.StyleProvider.SignalSignatures['gtk-private-changed'];
|
|
6837
|
+
}
|
|
6838
|
+
/** A paintable implementation that renders SVG, with animations. */
|
|
6839
|
+
export interface GtkSvgProps extends GObjectProps, GdkPaintableProps, GtkSymbolicPaintableProps {
|
|
6840
|
+
/** Enabled features for this paintable. */
|
|
6841
|
+
features?: GtkSvgFeaturesNickSet | number;
|
|
6842
|
+
/** Whether the rendering will be clipped to the bounds. */
|
|
6843
|
+
overflow?: GtkOverflowNick | Gtk.Overflow;
|
|
6844
|
+
/** Whether the paintable is currently animating its content. */
|
|
6845
|
+
playing?: boolean;
|
|
6846
|
+
/** Resource to load SVG data from. */
|
|
6847
|
+
resource?: string;
|
|
6848
|
+
/** The current state of the renderer. */
|
|
6849
|
+
state?: number;
|
|
6850
|
+
/** A CSS stylesheet to apply to the SVG. */
|
|
6851
|
+
stylesheet?: GLib.Bytes | null;
|
|
6852
|
+
/** If not set to -1, this value overrides the weight used when rendering the paintable. */
|
|
6853
|
+
weight?: number;
|
|
6854
|
+
onError?: Gtk.Svg.SignalSignatures['error'];
|
|
6855
|
+
onNotifyFeatures?: NotifyHandler;
|
|
6856
|
+
onNotifyOverflow?: NotifyHandler;
|
|
6857
|
+
onNotifyPlaying?: NotifyHandler;
|
|
6858
|
+
onNotifyResource?: NotifyHandler;
|
|
6859
|
+
onNotifyState?: NotifyHandler;
|
|
6860
|
+
onNotifyStylesheet?: NotifyHandler;
|
|
6861
|
+
onNotifyWeight?: NotifyHandler;
|
|
6862
|
+
}
|
|
4258
6863
|
/** A widget that renders SVG, with animations and event handling. */
|
|
4259
|
-
export interface GtkSvgWidgetProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
6864
|
+
export interface GtkSvgWidgetProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4260
6865
|
/** Resource to load SVG data from. */
|
|
4261
6866
|
resource?: string;
|
|
4262
6867
|
/** The current state of the renderer. */
|
|
@@ -4270,7 +6875,7 @@ export interface GtkSvgWidgetProps extends GtkWidgetProps, GtkAccessibleProps, G
|
|
|
4270
6875
|
onNotifyStylesheet?: NotifyHandler;
|
|
4271
6876
|
}
|
|
4272
6877
|
/** Shows a "light switch" that has two states: on or off. */
|
|
4273
|
-
export interface GtkSwitchProps extends GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
6878
|
+
export interface GtkSwitchProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4274
6879
|
/** Whether the `GtkSwitch` widget is in its on or off state. */
|
|
4275
6880
|
active?: boolean;
|
|
4276
6881
|
/** The backend state that is controlled by the switch. */
|
|
@@ -4280,8 +6885,53 @@ export interface GtkSwitchProps extends GtkWidgetProps, GtkAccessibleProps, GtkA
|
|
|
4280
6885
|
onNotifyActive?: NotifyHandler;
|
|
4281
6886
|
onNotifyState?: NotifyHandler;
|
|
4282
6887
|
}
|
|
6888
|
+
/** An interface that supports symbolic colors in paintables. */
|
|
6889
|
+
export interface GtkSymbolicPaintableProps {
|
|
6890
|
+
}
|
|
6891
|
+
/** Stores text and attributes for display in a `GtkTextView`. */
|
|
6892
|
+
export interface GtkTextBufferProps extends GObjectProps {
|
|
6893
|
+
/** Denotes if support for undoing and redoing changes to the buffer is allowed. */
|
|
6894
|
+
enableUndo?: boolean;
|
|
6895
|
+
'enable-undo'?: boolean;
|
|
6896
|
+
/** The GtkTextTagTable for the buffer. */
|
|
6897
|
+
tagTable?: Gtk.TextTagTable;
|
|
6898
|
+
'tag-table'?: Gtk.TextTagTable;
|
|
6899
|
+
/** The text content of the buffer. */
|
|
6900
|
+
text?: string;
|
|
6901
|
+
onApplyTag?: Gtk.TextBuffer.SignalSignatures['apply-tag'];
|
|
6902
|
+
onBeginUserAction?: Gtk.TextBuffer.SignalSignatures['begin-user-action'];
|
|
6903
|
+
onChanged?: Gtk.TextBuffer.SignalSignatures['changed'];
|
|
6904
|
+
onDeleteRange?: Gtk.TextBuffer.SignalSignatures['delete-range'];
|
|
6905
|
+
onEndUserAction?: Gtk.TextBuffer.SignalSignatures['end-user-action'];
|
|
6906
|
+
onInsertChildAnchor?: Gtk.TextBuffer.SignalSignatures['insert-child-anchor'];
|
|
6907
|
+
onInsertPaintable?: Gtk.TextBuffer.SignalSignatures['insert-paintable'];
|
|
6908
|
+
onInsertText?: Gtk.TextBuffer.SignalSignatures['insert-text'];
|
|
6909
|
+
onMarkDeleted?: Gtk.TextBuffer.SignalSignatures['mark-deleted'];
|
|
6910
|
+
onMarkSet?: Gtk.TextBuffer.SignalSignatures['mark-set'];
|
|
6911
|
+
onModifiedChanged?: Gtk.TextBuffer.SignalSignatures['modified-changed'];
|
|
6912
|
+
onPasteDone?: Gtk.TextBuffer.SignalSignatures['paste-done'];
|
|
6913
|
+
onRedo?: Gtk.TextBuffer.SignalSignatures['redo'];
|
|
6914
|
+
onRemoveTag?: Gtk.TextBuffer.SignalSignatures['remove-tag'];
|
|
6915
|
+
onUndo?: Gtk.TextBuffer.SignalSignatures['undo'];
|
|
6916
|
+
onNotifyEnableUndo?: NotifyHandler;
|
|
6917
|
+
onNotifyTagTable?: NotifyHandler;
|
|
6918
|
+
onNotifyText?: NotifyHandler;
|
|
6919
|
+
}
|
|
6920
|
+
/** Marks a spot in a `GtkTextBuffer` where child widgets can be “anchored”. */
|
|
6921
|
+
export interface GtkTextChildAnchorProps extends GObjectProps {
|
|
6922
|
+
}
|
|
6923
|
+
/** Marks a position in a `GtkTextbuffer` that is preserved across modifications. */
|
|
6924
|
+
export interface GtkTextMarkProps extends GObjectProps {
|
|
6925
|
+
/** Whether the mark has left gravity. */
|
|
6926
|
+
leftGravity?: boolean;
|
|
6927
|
+
'left-gravity'?: boolean;
|
|
6928
|
+
/** The name of the mark or %NULL if the mark is anonymous. */
|
|
6929
|
+
name?: string | null;
|
|
6930
|
+
onNotifyLeftGravity?: NotifyHandler;
|
|
6931
|
+
onNotifyName?: NotifyHandler;
|
|
6932
|
+
}
|
|
4283
6933
|
/** A single-line text entry. */
|
|
4284
|
-
export interface GtkTextProps extends GtkWidgetProps, GtkAccessibleProps, GtkAccessibleTextProps, GtkBuildableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
6934
|
+
export interface GtkTextProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkAccessibleTextProps, GtkBuildableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
4285
6935
|
/** Whether to activate the default widget when <kbd>Enter</kbd> is pressed. */
|
|
4286
6936
|
activatesDefault?: boolean;
|
|
4287
6937
|
'activates-default'?: boolean;
|
|
@@ -4299,8 +6949,8 @@ export interface GtkTextProps extends GtkWidgetProps, GtkAccessibleProps, GtkAcc
|
|
|
4299
6949
|
imModule?: string;
|
|
4300
6950
|
'im-module'?: string;
|
|
4301
6951
|
/** Additional hints that allow input methods to fine-tune their behaviour. */
|
|
4302
|
-
inputHints?: number;
|
|
4303
|
-
'input-hints'?: number;
|
|
6952
|
+
inputHints?: GtkInputHintsNickSet | number;
|
|
6953
|
+
'input-hints'?: GtkInputHintsNickSet | number;
|
|
4304
6954
|
/** The purpose of this text field. */
|
|
4305
6955
|
inputPurpose?: GtkInputPurposeNick | Gtk.InputPurpose;
|
|
4306
6956
|
'input-purpose'?: GtkInputPurposeNick | Gtk.InputPurpose;
|
|
@@ -4358,8 +7008,348 @@ export interface GtkTextProps extends GtkWidgetProps, GtkAccessibleProps, GtkAcc
|
|
|
4358
7008
|
onNotifyTruncateMultiline?: NotifyHandler;
|
|
4359
7009
|
onNotifyVisibility?: NotifyHandler;
|
|
4360
7010
|
}
|
|
7011
|
+
/** Can be applied to text contained in a `GtkTextBuffer`. */
|
|
7012
|
+
export interface GtkTextTagProps extends GObjectProps {
|
|
7013
|
+
/** Whether the margins accumulate or override each other. */
|
|
7014
|
+
accumulativeMargin?: boolean;
|
|
7015
|
+
'accumulative-margin'?: boolean;
|
|
7016
|
+
/** Whether breaks are allowed. */
|
|
7017
|
+
allowBreaks?: boolean;
|
|
7018
|
+
'allow-breaks'?: boolean;
|
|
7019
|
+
/** Whether the `allow-breaks` property is set. */
|
|
7020
|
+
allowBreaksSet?: boolean;
|
|
7021
|
+
'allow-breaks-set'?: boolean;
|
|
7022
|
+
/** Background color as a string. */
|
|
7023
|
+
background?: string;
|
|
7024
|
+
/** Whether the background color fills the entire line height or only the height of the tagged characters. */
|
|
7025
|
+
backgroundFullHeight?: boolean;
|
|
7026
|
+
'background-full-height'?: boolean;
|
|
7027
|
+
/** Whether the `background-full-height` property is set. */
|
|
7028
|
+
backgroundFullHeightSet?: boolean;
|
|
7029
|
+
'background-full-height-set'?: boolean;
|
|
7030
|
+
/** Background color as a `GdkRGBA`. */
|
|
7031
|
+
backgroundRgba?: Gdk.RGBA;
|
|
7032
|
+
'background-rgba'?: Gdk.RGBA;
|
|
7033
|
+
/** Whether the `background` property is set. */
|
|
7034
|
+
backgroundSet?: boolean;
|
|
7035
|
+
'background-set'?: boolean;
|
|
7036
|
+
/** Text direction, e.g. */
|
|
7037
|
+
direction?: GtkTextDirectionNick | Gtk.TextDirection;
|
|
7038
|
+
/** Whether the text can be modified by the user. */
|
|
7039
|
+
editable?: boolean;
|
|
7040
|
+
/** Whether the `editable` property is set. */
|
|
7041
|
+
editableSet?: boolean;
|
|
7042
|
+
'editable-set'?: boolean;
|
|
7043
|
+
/** Whether font fallback is enabled. */
|
|
7044
|
+
fallback?: boolean;
|
|
7045
|
+
/** Whether the `fallback` property is set. */
|
|
7046
|
+
fallbackSet?: boolean;
|
|
7047
|
+
'fallback-set'?: boolean;
|
|
7048
|
+
/** Name of the font family, e.g. */
|
|
7049
|
+
family?: string;
|
|
7050
|
+
/** Whether the `family` property is set. */
|
|
7051
|
+
familySet?: boolean;
|
|
7052
|
+
'family-set'?: boolean;
|
|
7053
|
+
/** Font description as string, e.g. */
|
|
7054
|
+
font?: string;
|
|
7055
|
+
/** Font description as a `PangoFontDescription`. */
|
|
7056
|
+
fontDesc?: Pango.FontDescription;
|
|
7057
|
+
'font-desc'?: Pango.FontDescription;
|
|
7058
|
+
/** OpenType font features, as a string. */
|
|
7059
|
+
fontFeatures?: string;
|
|
7060
|
+
'font-features'?: string;
|
|
7061
|
+
/** Whether the `font-features` property is set. */
|
|
7062
|
+
fontFeaturesSet?: boolean;
|
|
7063
|
+
'font-features-set'?: boolean;
|
|
7064
|
+
/** Foreground color as a string. */
|
|
7065
|
+
foreground?: string;
|
|
7066
|
+
/** Foreground color as a `GdkRGBA`. */
|
|
7067
|
+
foregroundRgba?: Gdk.RGBA;
|
|
7068
|
+
'foreground-rgba'?: Gdk.RGBA;
|
|
7069
|
+
/** Whether the `foreground` property is set. */
|
|
7070
|
+
foregroundSet?: boolean;
|
|
7071
|
+
'foreground-set'?: boolean;
|
|
7072
|
+
/** Amount to indent the paragraph, in pixels. */
|
|
7073
|
+
indent?: number;
|
|
7074
|
+
/** Whether the `indent` property is set. */
|
|
7075
|
+
indentSet?: boolean;
|
|
7076
|
+
'indent-set'?: boolean;
|
|
7077
|
+
/** Whether to insert hyphens at breaks. */
|
|
7078
|
+
insertHyphens?: boolean;
|
|
7079
|
+
'insert-hyphens'?: boolean;
|
|
7080
|
+
/** Whether the `insert-hyphens` property is set. */
|
|
7081
|
+
insertHyphensSet?: boolean;
|
|
7082
|
+
'insert-hyphens-set'?: boolean;
|
|
7083
|
+
/** Whether this text is hidden. */
|
|
7084
|
+
invisible?: boolean;
|
|
7085
|
+
/** Whether the `invisible` property is set. */
|
|
7086
|
+
invisibleSet?: boolean;
|
|
7087
|
+
'invisible-set'?: boolean;
|
|
7088
|
+
/** Left, right, or center justification. */
|
|
7089
|
+
justification?: GtkJustificationNick | Gtk.Justification;
|
|
7090
|
+
/** Whether the `justification` property is set. */
|
|
7091
|
+
justificationSet?: boolean;
|
|
7092
|
+
'justification-set'?: boolean;
|
|
7093
|
+
/** The language this text is in, as an ISO code. */
|
|
7094
|
+
language?: string;
|
|
7095
|
+
/** Whether the `language` property is set. */
|
|
7096
|
+
languageSet?: boolean;
|
|
7097
|
+
'language-set'?: boolean;
|
|
7098
|
+
/** Width of the left margin in pixels. */
|
|
7099
|
+
leftMargin?: number;
|
|
7100
|
+
'left-margin'?: number;
|
|
7101
|
+
/** Whether the `left-margin` property is set. */
|
|
7102
|
+
leftMarginSet?: boolean;
|
|
7103
|
+
'left-margin-set'?: boolean;
|
|
7104
|
+
/** Extra spacing between graphemes, in Pango units. */
|
|
7105
|
+
letterSpacing?: number;
|
|
7106
|
+
'letter-spacing'?: number;
|
|
7107
|
+
/** Whether the `letter-spacing` property is set. */
|
|
7108
|
+
letterSpacingSet?: boolean;
|
|
7109
|
+
'letter-spacing-set'?: boolean;
|
|
7110
|
+
/** Factor to scale line height by. */
|
|
7111
|
+
lineHeight?: number;
|
|
7112
|
+
'line-height'?: number;
|
|
7113
|
+
/** Whether the `line-height` property is set. */
|
|
7114
|
+
lineHeightSet?: boolean;
|
|
7115
|
+
'line-height-set'?: boolean;
|
|
7116
|
+
/** The name used to refer to the tag. */
|
|
7117
|
+
name?: string;
|
|
7118
|
+
/** Style of overline for this text. */
|
|
7119
|
+
overline?: PangoOverlineNick | Pango.Overline;
|
|
7120
|
+
/** This property modifies the color of overlines. */
|
|
7121
|
+
overlineRgba?: Gdk.RGBA;
|
|
7122
|
+
'overline-rgba'?: Gdk.RGBA;
|
|
7123
|
+
/** Whether the `overline-rgba` property is set. */
|
|
7124
|
+
overlineRgbaSet?: boolean;
|
|
7125
|
+
'overline-rgba-set'?: boolean;
|
|
7126
|
+
/** Whether the `overline` property is set. */
|
|
7127
|
+
overlineSet?: boolean;
|
|
7128
|
+
'overline-set'?: boolean;
|
|
7129
|
+
/** The paragraph background color as a string. */
|
|
7130
|
+
paragraphBackground?: string;
|
|
7131
|
+
'paragraph-background'?: string;
|
|
7132
|
+
/** The paragraph background color as a `GdkRGBA`. */
|
|
7133
|
+
paragraphBackgroundRgba?: Gdk.RGBA;
|
|
7134
|
+
'paragraph-background-rgba'?: Gdk.RGBA;
|
|
7135
|
+
/** Whether the `paragraph-background` property is set. */
|
|
7136
|
+
paragraphBackgroundSet?: boolean;
|
|
7137
|
+
'paragraph-background-set'?: boolean;
|
|
7138
|
+
/** Pixels of blank space above paragraphs. */
|
|
7139
|
+
pixelsAboveLines?: number;
|
|
7140
|
+
'pixels-above-lines'?: number;
|
|
7141
|
+
/** Whether the `pixels-above-lines` property is set. */
|
|
7142
|
+
pixelsAboveLinesSet?: boolean;
|
|
7143
|
+
'pixels-above-lines-set'?: boolean;
|
|
7144
|
+
/** Pixels of blank space below paragraphs. */
|
|
7145
|
+
pixelsBelowLines?: number;
|
|
7146
|
+
'pixels-below-lines'?: number;
|
|
7147
|
+
/** Whether the `pixels-below-lines` property is set. */
|
|
7148
|
+
pixelsBelowLinesSet?: boolean;
|
|
7149
|
+
'pixels-below-lines-set'?: boolean;
|
|
7150
|
+
/** Pixels of blank space between wrapped lines in a paragraph. */
|
|
7151
|
+
pixelsInsideWrap?: number;
|
|
7152
|
+
'pixels-inside-wrap'?: number;
|
|
7153
|
+
/** Whether the `pixels-inside-wrap` property is set. */
|
|
7154
|
+
pixelsInsideWrapSet?: boolean;
|
|
7155
|
+
'pixels-inside-wrap-set'?: boolean;
|
|
7156
|
+
/** Width of the right margin, in pixels. */
|
|
7157
|
+
rightMargin?: number;
|
|
7158
|
+
'right-margin'?: number;
|
|
7159
|
+
/** Whether the `right-margin` property is set. */
|
|
7160
|
+
rightMarginSet?: boolean;
|
|
7161
|
+
'right-margin-set'?: boolean;
|
|
7162
|
+
/** Offset of text above the baseline, in Pango units. */
|
|
7163
|
+
rise?: number;
|
|
7164
|
+
/** Whether the `rise` property is set. */
|
|
7165
|
+
riseSet?: boolean;
|
|
7166
|
+
'rise-set'?: boolean;
|
|
7167
|
+
/** Font size as a scale factor relative to the default font size. */
|
|
7168
|
+
scale?: number;
|
|
7169
|
+
/** Whether the `scale` property is set. */
|
|
7170
|
+
scaleSet?: boolean;
|
|
7171
|
+
'scale-set'?: boolean;
|
|
7172
|
+
/** Whether this tag represents a single sentence. */
|
|
7173
|
+
sentence?: boolean;
|
|
7174
|
+
/** Whether the `sentence` property is set. */
|
|
7175
|
+
sentenceSet?: boolean;
|
|
7176
|
+
'sentence-set'?: boolean;
|
|
7177
|
+
/** How to render invisible characters. */
|
|
7178
|
+
showSpaces?: PangoShowFlagsNickSet | number;
|
|
7179
|
+
'show-spaces'?: PangoShowFlagsNickSet | number;
|
|
7180
|
+
/** Whether the `show-spaces` property is set. */
|
|
7181
|
+
showSpacesSet?: boolean;
|
|
7182
|
+
'show-spaces-set'?: boolean;
|
|
7183
|
+
/** Font size in Pango units. */
|
|
7184
|
+
size?: number;
|
|
7185
|
+
/** Font size in points. */
|
|
7186
|
+
sizePoints?: number;
|
|
7187
|
+
'size-points'?: number;
|
|
7188
|
+
/** Whether the `size` property is set. */
|
|
7189
|
+
sizeSet?: boolean;
|
|
7190
|
+
'size-set'?: boolean;
|
|
7191
|
+
/** Font stretch as a `PangoStretch`, e.g. */
|
|
7192
|
+
stretch?: PangoStretchNick | Pango.Stretch;
|
|
7193
|
+
/** Whether the `stretch` property is set. */
|
|
7194
|
+
stretchSet?: boolean;
|
|
7195
|
+
'stretch-set'?: boolean;
|
|
7196
|
+
/** Whether to strike through the text. */
|
|
7197
|
+
strikethrough?: boolean;
|
|
7198
|
+
/** This property modifies the color of strikeouts. */
|
|
7199
|
+
strikethroughRgba?: Gdk.RGBA;
|
|
7200
|
+
'strikethrough-rgba'?: Gdk.RGBA;
|
|
7201
|
+
/** If the `strikethrough-rgba` property has been set. */
|
|
7202
|
+
strikethroughRgbaSet?: boolean;
|
|
7203
|
+
'strikethrough-rgba-set'?: boolean;
|
|
7204
|
+
/** Whether the `strikethrough` property is set. */
|
|
7205
|
+
strikethroughSet?: boolean;
|
|
7206
|
+
'strikethrough-set'?: boolean;
|
|
7207
|
+
/** Font style as a `PangoStyle`, e.g. */
|
|
7208
|
+
style?: PangoStyleNick | Pango.Style;
|
|
7209
|
+
/** Whether the `style` property is set. */
|
|
7210
|
+
styleSet?: boolean;
|
|
7211
|
+
'style-set'?: boolean;
|
|
7212
|
+
/** Custom tabs for this text. */
|
|
7213
|
+
tabs?: Pango.TabArray;
|
|
7214
|
+
/** Whether the `tabs` property is set. */
|
|
7215
|
+
tabsSet?: boolean;
|
|
7216
|
+
'tabs-set'?: boolean;
|
|
7217
|
+
/** How to transform the text for display. */
|
|
7218
|
+
textTransform?: PangoTextTransformNick | Pango.TextTransform;
|
|
7219
|
+
'text-transform'?: PangoTextTransformNick | Pango.TextTransform;
|
|
7220
|
+
/** Whether the `text-transform` property is set. */
|
|
7221
|
+
textTransformSet?: boolean;
|
|
7222
|
+
'text-transform-set'?: boolean;
|
|
7223
|
+
/** Style of underline for this text. */
|
|
7224
|
+
underline?: PangoUnderlineNick | Pango.Underline;
|
|
7225
|
+
/** This property modifies the color of underlines. */
|
|
7226
|
+
underlineRgba?: Gdk.RGBA;
|
|
7227
|
+
'underline-rgba'?: Gdk.RGBA;
|
|
7228
|
+
/** If the `underline-rgba` property has been set. */
|
|
7229
|
+
underlineRgbaSet?: boolean;
|
|
7230
|
+
'underline-rgba-set'?: boolean;
|
|
7231
|
+
/** Whether the `underline` property is set. */
|
|
7232
|
+
underlineSet?: boolean;
|
|
7233
|
+
'underline-set'?: boolean;
|
|
7234
|
+
/** Font variant as a `PangoVariant`, e.g. */
|
|
7235
|
+
variant?: PangoVariantNick | Pango.Variant;
|
|
7236
|
+
/** Whether the `variant` property is set. */
|
|
7237
|
+
variantSet?: boolean;
|
|
7238
|
+
'variant-set'?: boolean;
|
|
7239
|
+
/** Font weight as an integer. */
|
|
7240
|
+
weight?: number;
|
|
7241
|
+
/** Whether the `weight` property is set. */
|
|
7242
|
+
weightSet?: boolean;
|
|
7243
|
+
'weight-set'?: boolean;
|
|
7244
|
+
/** Whether this tag represents a single word. */
|
|
7245
|
+
word?: boolean;
|
|
7246
|
+
/** Whether the `word` property is set. */
|
|
7247
|
+
wordSet?: boolean;
|
|
7248
|
+
'word-set'?: boolean;
|
|
7249
|
+
/** Whether to wrap lines never, at word boundaries, or at character boundaries. */
|
|
7250
|
+
wrapMode?: GtkWrapModeNick | Gtk.WrapMode;
|
|
7251
|
+
'wrap-mode'?: GtkWrapModeNick | Gtk.WrapMode;
|
|
7252
|
+
/** Whether the `wrap-mode` property is set. */
|
|
7253
|
+
wrapModeSet?: boolean;
|
|
7254
|
+
'wrap-mode-set'?: boolean;
|
|
7255
|
+
onNotifyAccumulativeMargin?: NotifyHandler;
|
|
7256
|
+
onNotifyAllowBreaks?: NotifyHandler;
|
|
7257
|
+
onNotifyAllowBreaksSet?: NotifyHandler;
|
|
7258
|
+
onNotifyBackground?: NotifyHandler;
|
|
7259
|
+
onNotifyBackgroundFullHeight?: NotifyHandler;
|
|
7260
|
+
onNotifyBackgroundFullHeightSet?: NotifyHandler;
|
|
7261
|
+
onNotifyBackgroundRgba?: NotifyHandler;
|
|
7262
|
+
onNotifyBackgroundSet?: NotifyHandler;
|
|
7263
|
+
onNotifyDirection?: NotifyHandler;
|
|
7264
|
+
onNotifyEditable?: NotifyHandler;
|
|
7265
|
+
onNotifyEditableSet?: NotifyHandler;
|
|
7266
|
+
onNotifyFallback?: NotifyHandler;
|
|
7267
|
+
onNotifyFallbackSet?: NotifyHandler;
|
|
7268
|
+
onNotifyFamily?: NotifyHandler;
|
|
7269
|
+
onNotifyFamilySet?: NotifyHandler;
|
|
7270
|
+
onNotifyFont?: NotifyHandler;
|
|
7271
|
+
onNotifyFontDesc?: NotifyHandler;
|
|
7272
|
+
onNotifyFontFeatures?: NotifyHandler;
|
|
7273
|
+
onNotifyFontFeaturesSet?: NotifyHandler;
|
|
7274
|
+
onNotifyForeground?: NotifyHandler;
|
|
7275
|
+
onNotifyForegroundRgba?: NotifyHandler;
|
|
7276
|
+
onNotifyForegroundSet?: NotifyHandler;
|
|
7277
|
+
onNotifyIndent?: NotifyHandler;
|
|
7278
|
+
onNotifyIndentSet?: NotifyHandler;
|
|
7279
|
+
onNotifyInsertHyphens?: NotifyHandler;
|
|
7280
|
+
onNotifyInsertHyphensSet?: NotifyHandler;
|
|
7281
|
+
onNotifyInvisible?: NotifyHandler;
|
|
7282
|
+
onNotifyInvisibleSet?: NotifyHandler;
|
|
7283
|
+
onNotifyJustification?: NotifyHandler;
|
|
7284
|
+
onNotifyJustificationSet?: NotifyHandler;
|
|
7285
|
+
onNotifyLanguage?: NotifyHandler;
|
|
7286
|
+
onNotifyLanguageSet?: NotifyHandler;
|
|
7287
|
+
onNotifyLeftMargin?: NotifyHandler;
|
|
7288
|
+
onNotifyLeftMarginSet?: NotifyHandler;
|
|
7289
|
+
onNotifyLetterSpacing?: NotifyHandler;
|
|
7290
|
+
onNotifyLetterSpacingSet?: NotifyHandler;
|
|
7291
|
+
onNotifyLineHeight?: NotifyHandler;
|
|
7292
|
+
onNotifyLineHeightSet?: NotifyHandler;
|
|
7293
|
+
onNotifyName?: NotifyHandler;
|
|
7294
|
+
onNotifyOverline?: NotifyHandler;
|
|
7295
|
+
onNotifyOverlineRgba?: NotifyHandler;
|
|
7296
|
+
onNotifyOverlineRgbaSet?: NotifyHandler;
|
|
7297
|
+
onNotifyOverlineSet?: NotifyHandler;
|
|
7298
|
+
onNotifyParagraphBackground?: NotifyHandler;
|
|
7299
|
+
onNotifyParagraphBackgroundRgba?: NotifyHandler;
|
|
7300
|
+
onNotifyParagraphBackgroundSet?: NotifyHandler;
|
|
7301
|
+
onNotifyPixelsAboveLines?: NotifyHandler;
|
|
7302
|
+
onNotifyPixelsAboveLinesSet?: NotifyHandler;
|
|
7303
|
+
onNotifyPixelsBelowLines?: NotifyHandler;
|
|
7304
|
+
onNotifyPixelsBelowLinesSet?: NotifyHandler;
|
|
7305
|
+
onNotifyPixelsInsideWrap?: NotifyHandler;
|
|
7306
|
+
onNotifyPixelsInsideWrapSet?: NotifyHandler;
|
|
7307
|
+
onNotifyRightMargin?: NotifyHandler;
|
|
7308
|
+
onNotifyRightMarginSet?: NotifyHandler;
|
|
7309
|
+
onNotifyRise?: NotifyHandler;
|
|
7310
|
+
onNotifyRiseSet?: NotifyHandler;
|
|
7311
|
+
onNotifyScale?: NotifyHandler;
|
|
7312
|
+
onNotifyScaleSet?: NotifyHandler;
|
|
7313
|
+
onNotifySentence?: NotifyHandler;
|
|
7314
|
+
onNotifySentenceSet?: NotifyHandler;
|
|
7315
|
+
onNotifyShowSpaces?: NotifyHandler;
|
|
7316
|
+
onNotifyShowSpacesSet?: NotifyHandler;
|
|
7317
|
+
onNotifySize?: NotifyHandler;
|
|
7318
|
+
onNotifySizePoints?: NotifyHandler;
|
|
7319
|
+
onNotifySizeSet?: NotifyHandler;
|
|
7320
|
+
onNotifyStretch?: NotifyHandler;
|
|
7321
|
+
onNotifyStretchSet?: NotifyHandler;
|
|
7322
|
+
onNotifyStrikethrough?: NotifyHandler;
|
|
7323
|
+
onNotifyStrikethroughRgba?: NotifyHandler;
|
|
7324
|
+
onNotifyStrikethroughRgbaSet?: NotifyHandler;
|
|
7325
|
+
onNotifyStrikethroughSet?: NotifyHandler;
|
|
7326
|
+
onNotifyStyle?: NotifyHandler;
|
|
7327
|
+
onNotifyStyleSet?: NotifyHandler;
|
|
7328
|
+
onNotifyTabs?: NotifyHandler;
|
|
7329
|
+
onNotifyTabsSet?: NotifyHandler;
|
|
7330
|
+
onNotifyTextTransform?: NotifyHandler;
|
|
7331
|
+
onNotifyTextTransformSet?: NotifyHandler;
|
|
7332
|
+
onNotifyUnderline?: NotifyHandler;
|
|
7333
|
+
onNotifyUnderlineRgba?: NotifyHandler;
|
|
7334
|
+
onNotifyUnderlineRgbaSet?: NotifyHandler;
|
|
7335
|
+
onNotifyUnderlineSet?: NotifyHandler;
|
|
7336
|
+
onNotifyVariant?: NotifyHandler;
|
|
7337
|
+
onNotifyVariantSet?: NotifyHandler;
|
|
7338
|
+
onNotifyWeight?: NotifyHandler;
|
|
7339
|
+
onNotifyWeightSet?: NotifyHandler;
|
|
7340
|
+
onNotifyWord?: NotifyHandler;
|
|
7341
|
+
onNotifyWordSet?: NotifyHandler;
|
|
7342
|
+
onNotifyWrapMode?: NotifyHandler;
|
|
7343
|
+
onNotifyWrapModeSet?: NotifyHandler;
|
|
7344
|
+
}
|
|
7345
|
+
/** Collects the tags in a `GtkTextBuffer`. */
|
|
7346
|
+
export interface GtkTextTagTableProps extends GObjectProps, GtkBuildableProps {
|
|
7347
|
+
onTagAdded?: Gtk.TextTagTable.SignalSignatures['tag-added'];
|
|
7348
|
+
onTagChanged?: Gtk.TextTagTable.SignalSignatures['tag-changed'];
|
|
7349
|
+
onTagRemoved?: Gtk.TextTagTable.SignalSignatures['tag-removed'];
|
|
7350
|
+
}
|
|
4361
7351
|
/** Displays the contents of a [class@Gtk.TextBuffer]. */
|
|
4362
|
-
export interface GtkTextViewProps extends GtkWidgetProps, GtkAccessibleProps, GtkAccessibleTextProps, GtkBuildableProps, GtkConstraintTargetProps, GtkScrollableProps {
|
|
7352
|
+
export interface GtkTextViewProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkAccessibleTextProps, GtkBuildableProps, GtkConstraintTargetProps, GtkScrollableProps {
|
|
4363
7353
|
/** Whether Tab will result in a tab character being entered. */
|
|
4364
7354
|
acceptsTab?: boolean;
|
|
4365
7355
|
'accepts-tab'?: boolean;
|
|
@@ -4382,8 +7372,8 @@ export interface GtkTextViewProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
4382
7372
|
/** Amount to indent the paragraph, in pixels. */
|
|
4383
7373
|
indent?: number;
|
|
4384
7374
|
/** Additional hints (beyond [property@Gtk.TextView:input-purpose]) that allow input methods to fine-tune their behaviour. */
|
|
4385
|
-
inputHints?: number;
|
|
4386
|
-
'input-hints'?: number;
|
|
7375
|
+
inputHints?: GtkInputHintsNickSet | number;
|
|
7376
|
+
'input-hints'?: GtkInputHintsNickSet | number;
|
|
4387
7377
|
/** The purpose of this text field. */
|
|
4388
7378
|
inputPurpose?: GtkInputPurposeNick | Gtk.InputPurpose;
|
|
4389
7379
|
'input-purpose'?: GtkInputPurposeNick | Gtk.InputPurpose;
|
|
@@ -4454,7 +7444,7 @@ export interface GtkTextViewProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
4454
7444
|
onNotifyWrapMode?: NotifyHandler;
|
|
4455
7445
|
}
|
|
4456
7446
|
/** Shows a button which remains “pressed-in” when clicked. */
|
|
4457
|
-
export interface GtkToggleButtonProps extends GtkButtonProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
7447
|
+
export interface GtkToggleButtonProps extends GtkButtonProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4458
7448
|
/** If the toggle button should be pressed in. */
|
|
4459
7449
|
active?: boolean;
|
|
4460
7450
|
/** The toggle button whose group this widget belongs to. */
|
|
@@ -4463,8 +7453,17 @@ export interface GtkToggleButtonProps extends GtkButtonProps, GtkWidgetProps, Gt
|
|
|
4463
7453
|
onNotifyActive?: NotifyHandler;
|
|
4464
7454
|
onNotifyGroup?: NotifyHandler;
|
|
4465
7455
|
}
|
|
7456
|
+
/** Represents a widget tooltip. */
|
|
7457
|
+
export interface GtkTooltipProps extends GObjectProps {
|
|
7458
|
+
}
|
|
7459
|
+
/** Interface for Drag-and-Drop destinations in `GtkTreeView`. */
|
|
7460
|
+
export interface GtkTreeDragDestProps {
|
|
7461
|
+
}
|
|
7462
|
+
/** Interface for Drag-and-Drop destinations in `GtkTreeView`. */
|
|
7463
|
+
export interface GtkTreeDragSourceProps {
|
|
7464
|
+
}
|
|
4466
7465
|
/** Provides an expander for a tree-like list. */
|
|
4467
|
-
export interface GtkTreeExpanderProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
7466
|
+
export interface GtkTreeExpanderProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4468
7467
|
/** The child widget with the actual contents. */
|
|
4469
7468
|
child?: Gtk.Widget | null;
|
|
4470
7469
|
/** Whether the expander icon should be hidden in a GtkTreeListRow. */
|
|
@@ -4485,8 +7484,115 @@ export interface GtkTreeExpanderProps extends GtkWidgetProps, GtkAccessibleProps
|
|
|
4485
7484
|
onNotifyIndentForIcon?: NotifyHandler;
|
|
4486
7485
|
onNotifyListRow?: NotifyHandler;
|
|
4487
7486
|
}
|
|
7487
|
+
/** A list model that can create child models on demand. */
|
|
7488
|
+
export interface GtkTreeListModelProps extends GObjectProps, GListModelProps {
|
|
7489
|
+
/** If all rows should be expanded by default. */
|
|
7490
|
+
autoexpand?: boolean;
|
|
7491
|
+
/** Gets whether the model is in passthrough mode. */
|
|
7492
|
+
passthrough?: boolean;
|
|
7493
|
+
onNotifyAutoexpand?: NotifyHandler;
|
|
7494
|
+
onNotifyPassthrough?: NotifyHandler;
|
|
7495
|
+
}
|
|
7496
|
+
/** The type of item used by `GtkTreeListModel`. */
|
|
7497
|
+
export interface GtkTreeListRowProps extends GObjectProps {
|
|
7498
|
+
/** If this row is currently expanded. */
|
|
7499
|
+
expanded?: boolean;
|
|
7500
|
+
onNotifyExpanded?: NotifyHandler;
|
|
7501
|
+
}
|
|
7502
|
+
/** Applies a gives sorter to the levels in a tree. */
|
|
7503
|
+
export interface GtkTreeListRowSorterProps extends GtkSorterProps, GObjectProps {
|
|
7504
|
+
/** The underlying sorter */
|
|
7505
|
+
sorter?: Gtk.Sorter | null;
|
|
7506
|
+
onNotifySorter?: NotifyHandler;
|
|
7507
|
+
}
|
|
7508
|
+
/** A `GtkTreeModel` which hides parts of an underlying tree model A `GtkTreeModelFilter` is a tree model which wraps another tree model, and can do the following things: - Filter specific rows, based on… */
|
|
7509
|
+
export interface GtkTreeModelFilterProps extends GObjectProps, GtkTreeDragSourceProps, GtkTreeModelProps {
|
|
7510
|
+
/** The child model of the tree model filter. */
|
|
7511
|
+
childModel?: Gtk.TreeModel;
|
|
7512
|
+
'child-model'?: Gtk.TreeModel;
|
|
7513
|
+
/** The virtual root of the tree model filter. */
|
|
7514
|
+
virtualRoot?: Gtk.TreePath;
|
|
7515
|
+
'virtual-root'?: Gtk.TreePath;
|
|
7516
|
+
onNotifyChildModel?: NotifyHandler;
|
|
7517
|
+
onNotifyVirtualRoot?: NotifyHandler;
|
|
7518
|
+
}
|
|
7519
|
+
/** The tree interface used by GtkTreeView The `GtkTreeModel` interface defines a generic tree interface for use by the `GtkTreeView` widget. */
|
|
7520
|
+
export interface GtkTreeModelProps {
|
|
7521
|
+
onRowChanged?: Gtk.TreeModel.SignalSignatures['row-changed'];
|
|
7522
|
+
onRowDeleted?: Gtk.TreeModel.SignalSignatures['row-deleted'];
|
|
7523
|
+
onRowHasChildToggled?: Gtk.TreeModel.SignalSignatures['row-has-child-toggled'];
|
|
7524
|
+
onRowInserted?: Gtk.TreeModel.SignalSignatures['row-inserted'];
|
|
7525
|
+
onRowsReordered?: Gtk.TreeModel.SignalSignatures['rows-reordered'];
|
|
7526
|
+
}
|
|
7527
|
+
/** A GtkTreeModel which makes an underlying tree model sortable The `GtkTreeModelSort` is a model which implements the `GtkTreeSortable` interface. */
|
|
7528
|
+
export interface GtkTreeModelSortProps extends GObjectProps, GtkTreeDragSourceProps, GtkTreeModelProps, GtkTreeSortableProps {
|
|
7529
|
+
/** The model of the tree model sort. */
|
|
7530
|
+
model?: Gtk.TreeModel;
|
|
7531
|
+
onNotifyModel?: NotifyHandler;
|
|
7532
|
+
}
|
|
7533
|
+
/** The selection object for GtkTreeView The `GtkTreeSelection` object is a helper object to manage the selection for a `GtkTreeView` widget. */
|
|
7534
|
+
export interface GtkTreeSelectionProps extends GObjectProps {
|
|
7535
|
+
/** Selection mode. */
|
|
7536
|
+
mode?: GtkSelectionModeNick | Gtk.SelectionMode;
|
|
7537
|
+
onChanged?: Gtk.TreeSelection.SignalSignatures['changed'];
|
|
7538
|
+
onNotifyMode?: NotifyHandler;
|
|
7539
|
+
}
|
|
7540
|
+
/** The interface for sortable models used by GtkTreeView `GtkTreeSortable` is an interface to be implemented by tree models which support sorting. */
|
|
7541
|
+
export interface GtkTreeSortableProps {
|
|
7542
|
+
onSortColumnChanged?: Gtk.TreeSortable.SignalSignatures['sort-column-changed'];
|
|
7543
|
+
}
|
|
7544
|
+
/** A tree-like data structure that can be used with the [class@Gtk.TreeView]. */
|
|
7545
|
+
export interface GtkTreeStoreProps extends GObjectProps, GtkBuildableProps, GtkTreeDragDestProps, GtkTreeDragSourceProps, GtkTreeModelProps, GtkTreeSortableProps {
|
|
7546
|
+
}
|
|
7547
|
+
/** A visible column in a [class@Gtk.TreeView] widget The `GtkTreeViewColumn` object represents a visible column in a `GtkTreeView` widget. */
|
|
7548
|
+
export interface GtkTreeViewColumnProps extends GInitiallyUnownedProps, GObjectProps, GtkBuildableProps, GtkCellLayoutProps {
|
|
7549
|
+
alignment?: number;
|
|
7550
|
+
/** The `GtkCellArea` used to layout cell renderers for this column. */
|
|
7551
|
+
cellArea?: Gtk.CellArea;
|
|
7552
|
+
'cell-area'?: Gtk.CellArea;
|
|
7553
|
+
clickable?: boolean;
|
|
7554
|
+
expand?: boolean;
|
|
7555
|
+
fixedWidth?: number;
|
|
7556
|
+
'fixed-width'?: number;
|
|
7557
|
+
maxWidth?: number;
|
|
7558
|
+
'max-width'?: number;
|
|
7559
|
+
minWidth?: number;
|
|
7560
|
+
'min-width'?: number;
|
|
7561
|
+
reorderable?: boolean;
|
|
7562
|
+
resizable?: boolean;
|
|
7563
|
+
sizing?: GtkTreeViewColumnSizingNick | Gtk.TreeViewColumnSizing;
|
|
7564
|
+
/** Logical sort column ID this column sorts on when selected for sorting. */
|
|
7565
|
+
sortColumnId?: number;
|
|
7566
|
+
'sort-column-id'?: number;
|
|
7567
|
+
sortIndicator?: boolean;
|
|
7568
|
+
'sort-indicator'?: boolean;
|
|
7569
|
+
sortOrder?: GtkSortTypeNick | Gtk.SortType;
|
|
7570
|
+
'sort-order'?: GtkSortTypeNick | Gtk.SortType;
|
|
7571
|
+
spacing?: number;
|
|
7572
|
+
title?: string;
|
|
7573
|
+
visible?: boolean;
|
|
7574
|
+
widget?: Gtk.Widget | null;
|
|
7575
|
+
onClicked?: Gtk.TreeViewColumn.SignalSignatures['clicked'];
|
|
7576
|
+
onNotifyAlignment?: NotifyHandler;
|
|
7577
|
+
onNotifyCellArea?: NotifyHandler;
|
|
7578
|
+
onNotifyClickable?: NotifyHandler;
|
|
7579
|
+
onNotifyExpand?: NotifyHandler;
|
|
7580
|
+
onNotifyFixedWidth?: NotifyHandler;
|
|
7581
|
+
onNotifyMaxWidth?: NotifyHandler;
|
|
7582
|
+
onNotifyMinWidth?: NotifyHandler;
|
|
7583
|
+
onNotifyReorderable?: NotifyHandler;
|
|
7584
|
+
onNotifyResizable?: NotifyHandler;
|
|
7585
|
+
onNotifySizing?: NotifyHandler;
|
|
7586
|
+
onNotifySortColumnId?: NotifyHandler;
|
|
7587
|
+
onNotifySortIndicator?: NotifyHandler;
|
|
7588
|
+
onNotifySortOrder?: NotifyHandler;
|
|
7589
|
+
onNotifySpacing?: NotifyHandler;
|
|
7590
|
+
onNotifyTitle?: NotifyHandler;
|
|
7591
|
+
onNotifyVisible?: NotifyHandler;
|
|
7592
|
+
onNotifyWidget?: NotifyHandler;
|
|
7593
|
+
}
|
|
4488
7594
|
/** A widget for displaying both trees and lists <picture> <source srcset="list-and-tree-dark.png" media="(prefers-color-scheme: dark)"> <img alt="An example GtkTreeView" src="list-and-tree.png"> </pictu… */
|
|
4489
|
-
export interface GtkTreeViewProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkScrollableProps {
|
|
7595
|
+
export interface GtkTreeViewProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkScrollableProps {
|
|
4490
7596
|
/** The activate-on-single-click property specifies whether the "row-activated" signal will be emitted after a single click. */
|
|
4491
7597
|
activateOnSingleClick?: boolean;
|
|
4492
7598
|
'activate-on-single-click'?: boolean;
|
|
@@ -4558,8 +7664,17 @@ export interface GtkTreeViewProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
4558
7664
|
onNotifyShowExpanders?: NotifyHandler;
|
|
4559
7665
|
onNotifyTooltipColumn?: NotifyHandler;
|
|
4560
7666
|
}
|
|
7667
|
+
/** A `GtkExpression` that tries to evaluate each of its expressions until it succeeds. */
|
|
7668
|
+
export interface GtkTryExpressionProps extends GtkExpressionProps {
|
|
7669
|
+
}
|
|
7670
|
+
/** Asynchronous API to open a uri with an application. */
|
|
7671
|
+
export interface GtkUriLauncherProps extends GObjectProps {
|
|
7672
|
+
/** The uri to launch. */
|
|
7673
|
+
uri?: string | null;
|
|
7674
|
+
onNotifyUri?: NotifyHandler;
|
|
7675
|
+
}
|
|
4561
7676
|
/** Shows a `GtkMediaStream` with media controls. */
|
|
4562
|
-
export interface GtkVideoProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
7677
|
+
export interface GtkVideoProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4563
7678
|
/** If the video should automatically begin playing. */
|
|
4564
7679
|
autoplay?: boolean;
|
|
4565
7680
|
/** The file played by this video if the video is playing a file. */
|
|
@@ -4579,7 +7694,7 @@ export interface GtkVideoProps extends GtkWidgetProps, GtkAccessibleProps, GtkBu
|
|
|
4579
7694
|
onNotifyMediaStream?: NotifyHandler;
|
|
4580
7695
|
}
|
|
4581
7696
|
/** Implements scrollability for widgets that don't support scrolling on their own. */
|
|
4582
|
-
export interface GtkViewportProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkScrollableProps {
|
|
7697
|
+
export interface GtkViewportProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkScrollableProps {
|
|
4583
7698
|
/** The child widget. */
|
|
4584
7699
|
child?: Gtk.Widget | null;
|
|
4585
7700
|
/** Whether to scroll when the focus changes. */
|
|
@@ -4589,7 +7704,7 @@ export interface GtkViewportProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
4589
7704
|
onNotifyScrollToFocus?: NotifyHandler;
|
|
4590
7705
|
}
|
|
4591
7706
|
/** `GtkVolumeButton` is a `GtkScaleButton` subclass tailored for volume control. */
|
|
4592
|
-
export interface GtkVolumeButtonProps extends GtkScaleButtonProps, GtkWidgetProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
7707
|
+
export interface GtkVolumeButtonProps extends GtkScaleButtonProps, GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
4593
7708
|
/**
|
|
4594
7709
|
* Whether to use symbolic icons as the icons.
|
|
4595
7710
|
* @deprecated
|
|
@@ -4598,6 +7713,12 @@ export interface GtkVolumeButtonProps extends GtkScaleButtonProps, GtkWidgetProp
|
|
|
4598
7713
|
'use-symbolic'?: boolean;
|
|
4599
7714
|
onNotifyUseSymbolic?: NotifyHandler;
|
|
4600
7715
|
}
|
|
7716
|
+
/** A `GdkPaintable` that displays the contents of a widget. */
|
|
7717
|
+
export interface GtkWidgetPaintableProps extends GObjectProps, GdkPaintableProps {
|
|
7718
|
+
/** The observed widget or %NULL if none. */
|
|
7719
|
+
widget?: Gtk.Widget | null;
|
|
7720
|
+
onNotifyWidget?: NotifyHandler;
|
|
7721
|
+
}
|
|
4601
7722
|
/** The base class for all widgets. */
|
|
4602
7723
|
export interface GtkWidgetProps {
|
|
4603
7724
|
/** Whether the widget or any of its descendents can accept the input focus. */
|
|
@@ -4724,7 +7845,7 @@ export interface GtkWidgetProps {
|
|
|
4724
7845
|
onNotifyWidthRequest?: NotifyHandler;
|
|
4725
7846
|
}
|
|
4726
7847
|
/** Shows window frame controls. */
|
|
4727
|
-
export interface GtkWindowControlsProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
7848
|
+
export interface GtkWindowControlsProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4728
7849
|
/** The decoration layout for window buttons. */
|
|
4729
7850
|
decorationLayout?: string | null;
|
|
4730
7851
|
'decoration-layout'?: string | null;
|
|
@@ -4737,14 +7858,17 @@ export interface GtkWindowControlsProps extends GtkWidgetProps, GtkAccessiblePro
|
|
|
4737
7858
|
onNotifySide?: NotifyHandler;
|
|
4738
7859
|
onNotifyUseNativeControls?: NotifyHandler;
|
|
4739
7860
|
}
|
|
7861
|
+
/** Creates groups of windows that behave like separate applications. */
|
|
7862
|
+
export interface GtkWindowGroupProps extends GObjectProps {
|
|
7863
|
+
}
|
|
4740
7864
|
/** Implements titlebar functionality for a window. */
|
|
4741
|
-
export interface GtkWindowHandleProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
7865
|
+
export interface GtkWindowHandleProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4742
7866
|
/** The child widget. */
|
|
4743
7867
|
child?: Gtk.Widget | null;
|
|
4744
7868
|
onNotifyChild?: NotifyHandler;
|
|
4745
7869
|
}
|
|
4746
7870
|
/** A toplevel window which can contain other widgets. */
|
|
4747
|
-
export interface GtkWindowProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
7871
|
+
export interface GtkWindowProps extends GtkWidgetProps, GInitiallyUnownedProps, GObjectProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
4748
7872
|
/** The `GtkApplication` associated with the window. */
|
|
4749
7873
|
application?: Gtk.Application | null;
|
|
4750
7874
|
/** The child widget. */
|