@gjsify/gtk-host 0.45.0 → 0.46.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/lib/esm/conformance/diagnostics.js +1 -1
- package/lib/esm/conformance/index.js +1 -1
- package/lib/esm/descriptors/adw.js +1 -1
- package/lib/esm/generated/widgets.js +1 -1
- package/lib/esm/host.js +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/list/controller.js +1 -1
- package/lib/esm/policies.js +1 -1
- package/lib/esm/probe.js +1 -1
- package/lib/esm/props.js +1 -1
- package/lib/esm/registry.js +1 -1
- package/lib/esm/style/document.js +1 -0
- package/lib/esm/style/gtk-props.js +1 -1
- package/lib/esm/style/index.js +1 -1
- package/lib/esm/style/layout.js +1 -1
- package/lib/esm/style/paint.js +1 -1
- package/lib/esm/style/sheet.js +3 -3
- package/lib/esm/style/theme.js +3 -0
- package/lib/esm/style/tokens.js +1 -1
- package/lib/types/descriptors/index.d.ts +1 -1
- package/lib/types/generated/props.d.ts +611 -822
- package/lib/types/generated/widgets.d.ts +1 -1
- package/lib/types/generator/emit-types.d.mts +1 -1
- package/lib/types/generator/emit.d.mts +16 -6
- package/lib/types/generator/girs-vocabulary.d.mts +45 -0
- package/lib/types/generator/main.d.mts +16 -8
- package/lib/types/generator/model.d.mts +95 -0
- package/lib/types/generator/names.d.mts +19 -0
- package/lib/types/generator/vocabulary-dts.d.mts +47 -0
- package/lib/types/host.d.ts +1 -1
- package/lib/types/policies.d.ts +7 -1
- package/lib/types/props.d.ts +13 -1
- package/lib/types/registry.d.ts +1 -1
- package/lib/types/style/document.d.ts +22 -0
- package/lib/types/style/index.d.ts +6 -3
- package/lib/types/style/layout.d.ts +34 -0
- package/lib/types/style/sheet.d.ts +0 -5
- package/lib/types/style/theme.d.ts +158 -0
- package/lib/types/style/theme.spec.d.ts +2 -0
- package/lib/types/style/tokens.d.ts +76 -0
- package/lib/types/style/tokens.spec.d.ts +2 -0
- package/lib/types/types.d.ts +63 -0
- package/package.json +14 -15
- package/lib/types/generator/gir.d.mts +0 -190
- package/lib/types/generator/mini.fixture.d.mts +0 -30
- package/lib/types/generator/surface.d.mts +0 -62
- package/lib/types/generator/tsmap.d.mts +0 -73
|
@@ -1,14 +1,19 @@
|
|
|
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';
|
|
4
3
|
import type Gdk from '@girs/gdk-4.0';
|
|
5
4
|
import type Gio from '@girs/gio-2.0';
|
|
6
5
|
import type Gtk from '@girs/gtk-4.0';
|
|
7
6
|
import type Pango from '@girs/pango-1.0';
|
|
8
|
-
import type { NotifyHandler
|
|
7
|
+
import type { NotifyHandler } from '../attrs.js';
|
|
8
|
+
export type AdwAccentColorNick = 'blue' | 'teal' | 'green' | 'yellow' | 'orange' | 'red' | 'pink' | 'purple' | 'slate';
|
|
9
|
+
export type AdwAnimationStateNick = 'idle' | 'paused' | 'playing' | 'finished';
|
|
9
10
|
export type AdwBannerButtonStyleNick = 'default' | 'suggested';
|
|
11
|
+
export type AdwBreakpointConditionLengthTypeNick = 'min-width' | 'max-width' | 'min-height' | 'max-height';
|
|
12
|
+
export type AdwBreakpointConditionRatioTypeNick = 'min-aspect-ratio' | 'max-aspect-ratio';
|
|
10
13
|
export type AdwCenteringPolicyNick = 'loose' | 'strict';
|
|
14
|
+
export type AdwColorSchemeNick = 'default' | 'force-light' | 'prefer-light' | 'prefer-dark' | 'force-dark';
|
|
11
15
|
export type AdwDialogPresentationModeNick = 'auto' | 'floating' | 'bottom-sheet';
|
|
16
|
+
export type AdwEasingNick = 'linear' | 'ease-in-quad' | 'ease-out-quad' | 'ease-in-out-quad' | 'ease-in-cubic' | 'ease-out-cubic' | 'ease-in-out-cubic' | 'ease-in-quart' | 'ease-out-quart' | 'ease-in-out-quart' | 'ease-in-quint' | 'ease-out-quint' | 'ease-in-out-quint' | 'ease-in-sine' | 'ease-out-sine' | 'ease-in-out-sine' | 'ease-in-expo' | 'ease-out-expo' | 'ease-in-out-expo' | 'ease-in-circ' | 'ease-out-circ' | 'ease-in-out-circ' | 'ease-in-elastic' | 'ease-out-elastic' | 'ease-in-out-elastic' | 'ease-in-back' | 'ease-out-back' | 'ease-in-out-back' | 'ease-in-bounce' | 'ease-out-bounce' | 'ease-in-out-bounce' | 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out';
|
|
12
17
|
export type AdwFlapFoldPolicyNick = 'never' | 'always' | 'auto';
|
|
13
18
|
export type AdwFlapTransitionTypeNick = 'over' | 'under' | 'slide';
|
|
14
19
|
export type AdwFoldThresholdPolicyNick = 'minimum' | 'natural';
|
|
@@ -16,55 +21,124 @@ export type AdwInlineViewSwitcherDisplayModeNick = 'labels' | 'icons' | 'both';
|
|
|
16
21
|
export type AdwJustifyModeNick = 'none' | 'fill' | 'spread';
|
|
17
22
|
export type AdwLeafletTransitionTypeNick = 'over' | 'under' | 'slide';
|
|
18
23
|
export type AdwLengthUnitNick = 'px' | 'pt' | 'sp';
|
|
24
|
+
export type AdwNavigationDirectionNick = 'back' | 'forward';
|
|
19
25
|
export type AdwPackDirectionNick = 'start-to-end' | 'end-to-start';
|
|
26
|
+
export type AdwResponseAppearanceNick = 'default' | 'suggested' | 'destructive';
|
|
20
27
|
export type AdwSidebarModeNick = 'sidebar' | 'page';
|
|
21
28
|
export type AdwSqueezerTransitionTypeNick = 'none' | 'crossfade';
|
|
29
|
+
export type AdwToastPriorityNick = 'normal' | 'high';
|
|
22
30
|
export type AdwToolbarStyleNick = 'flat' | 'raised' | 'raised-border';
|
|
23
31
|
export type AdwViewSwitcherPolicyNick = 'narrow' | 'wide';
|
|
24
32
|
export type AdwWrapPolicyNick = 'minimum' | 'natural';
|
|
33
|
+
export type GtkAccessibleAnnouncementPriorityNick = 'low' | 'medium' | 'high';
|
|
34
|
+
export type GtkAccessibleAutocompleteNick = 'none' | 'inline' | 'list' | 'both';
|
|
35
|
+
export type GtkAccessibleInvalidStateNick = 'false' | 'true' | 'grammar' | 'spelling';
|
|
36
|
+
export type GtkAccessiblePlatformStateNick = 'focusable' | 'focused' | 'active';
|
|
37
|
+
export type GtkAccessiblePropertyNick = 'autocomplete' | 'description' | 'has-popup' | 'key-shortcuts' | 'label' | 'level' | 'modal' | 'multi-line' | 'multi-selectable' | 'orientation' | 'placeholder' | 'read-only' | 'required' | 'role-description' | 'sort' | 'value-max' | 'value-min' | 'value-now' | 'value-text' | 'help-text';
|
|
38
|
+
export type GtkAccessibleRelationNick = 'active-descendant' | 'col-count' | 'col-index' | 'col-index-text' | 'col-span' | 'controls' | 'described-by' | 'details' | 'error-message' | 'flow-to' | 'labelled-by' | 'owns' | 'pos-in-set' | 'row-count' | 'row-index' | 'row-index-text' | 'row-span' | 'set-size' | 'label-for' | 'description-for' | 'controlled-by' | 'details-for' | 'error-message-for' | 'flow-from';
|
|
25
39
|
export type GtkAccessibleRoleNick = 'alert' | 'alert-dialog' | 'banner' | 'button' | 'caption' | 'cell' | 'checkbox' | 'column-header' | 'combo-box' | 'command' | 'composite' | 'dialog' | 'document' | 'feed' | 'form' | 'generic' | 'grid' | 'grid-cell' | 'group' | 'heading' | 'img' | 'input' | 'label' | 'landmark' | 'legend' | 'link' | 'list' | 'list-box' | 'list-item' | 'log' | 'main' | 'marquee' | 'math' | 'meter' | 'menu' | 'menu-bar' | 'menu-item' | 'menu-item-checkbox' | 'menu-item-radio' | 'navigation' | 'none' | 'note' | 'option' | 'presentation' | 'progress-bar' | 'radio' | 'radio-group' | 'range' | 'region' | 'row' | 'row-group' | 'row-header' | 'scrollbar' | 'search' | 'search-box' | 'section' | 'section-head' | 'select' | 'separator' | 'slider' | 'spin-button' | 'status' | 'structure' | 'switch' | 'tab' | 'table' | 'tab-list' | 'tab-panel' | 'text-box' | 'time' | 'timer' | 'toolbar' | 'tooltip' | 'tree' | 'tree-grid' | 'tree-item' | 'widget' | 'window' | 'toggle-button' | 'application' | 'paragraph' | 'block-quote' | 'article' | 'comment' | 'terminal';
|
|
40
|
+
export type GtkAccessibleSortNick = 'none' | 'ascending' | 'descending' | 'other';
|
|
41
|
+
export type GtkAccessibleStateNick = 'busy' | 'checked' | 'disabled' | 'expanded' | 'hidden' | 'invalid' | 'pressed' | 'selected' | 'visited';
|
|
42
|
+
export type GtkAccessibleTextContentChangeNick = 'insert' | 'remove';
|
|
43
|
+
export type GtkAccessibleTextGranularityNick = 'character' | 'word' | 'sentence' | 'line' | 'paragraph';
|
|
44
|
+
export type GtkAccessibleTristateNick = 'false' | 'true' | 'mixed';
|
|
26
45
|
export type GtkAlignNick = 'fill' | 'start' | 'end' | 'center' | 'baseline-fill' | 'baseline' | 'baseline-center';
|
|
27
46
|
export type GtkArrowTypeNick = 'up' | 'down' | 'left' | 'right' | 'none';
|
|
47
|
+
export type GtkAssistantPageTypeNick = 'content' | 'intro' | 'confirm' | 'summary' | 'progress' | 'custom';
|
|
28
48
|
export type GtkBaselinePositionNick = 'top' | 'center' | 'bottom';
|
|
49
|
+
export type GtkBorderStyleNick = 'none' | 'hidden' | 'solid' | 'inset' | 'outset' | 'dotted' | 'dashed' | 'double' | 'groove' | 'ridge';
|
|
29
50
|
export type GtkButtonsTypeNick = 'none' | 'ok' | 'close' | 'cancel' | 'yes-no' | 'ok-cancel';
|
|
51
|
+
export type GtkCellRendererAccelModeNick = 'gtk' | 'other';
|
|
52
|
+
export type GtkCellRendererModeNick = 'inert' | 'activatable' | 'editable';
|
|
53
|
+
export type GtkCollationNick = 'none' | 'unicode' | 'filename';
|
|
54
|
+
export type GtkConstraintAttributeNick = 'none' | 'left' | 'right' | 'top' | 'bottom' | 'start' | 'end' | 'width' | 'height' | 'center-x' | 'center-y' | 'baseline';
|
|
55
|
+
export type GtkConstraintRelationNick = 'le' | 'eq' | 'ge';
|
|
56
|
+
export type GtkConstraintStrengthNick = 'required' | 'strong' | 'medium' | 'weak';
|
|
30
57
|
export type GtkContentFitNick = 'fill' | 'contain' | 'cover' | 'scale-down';
|
|
31
58
|
export type GtkCornerTypeNick = 'top-left' | 'bottom-left' | 'top-right' | 'bottom-right';
|
|
59
|
+
export type GtkDeleteTypeNick = 'chars' | 'word-ends' | 'words' | 'display-lines' | 'display-line-ends' | 'paragraph-ends' | 'paragraphs' | 'whitespace';
|
|
60
|
+
export type GtkDirectionTypeNick = 'tab-forward' | 'tab-backward' | 'up' | 'down' | 'left' | 'right';
|
|
61
|
+
export type GtkEditablePropertiesNick = 'prop-text' | 'prop-cursor-position' | 'prop-selection-bound' | 'prop-editable' | 'prop-width-chars' | 'prop-max-width-chars' | 'prop-xalign' | 'prop-enable-undo' | 'prop-complete-text' | 'prop-input-interceptor' | 'num-properties';
|
|
62
|
+
export type GtkEntryIconPositionNick = 'primary' | 'secondary';
|
|
63
|
+
export type GtkEventSequenceStateNick = 'none' | 'claimed' | 'denied';
|
|
32
64
|
export type GtkFileChooserActionNick = 'open' | 'save' | 'select-folder';
|
|
65
|
+
export type GtkFilterChangeNick = 'different' | 'less-strict' | 'more-strict' | 'different-rewatch' | 'less-strict-rewatch' | 'more-strict-rewatch';
|
|
66
|
+
export type GtkFilterMatchNick = 'some' | 'none' | 'all';
|
|
33
67
|
export type GtkFontLevelNick = 'family' | 'face' | 'font' | 'features';
|
|
68
|
+
export type GtkFontRenderingNick = 'automatic' | 'manual';
|
|
34
69
|
export type GtkGraphicsOffloadEnabledNick = 'enabled' | 'disabled';
|
|
35
70
|
export type GtkIconSizeNick = 'inherit' | 'normal' | 'large';
|
|
71
|
+
export type GtkIconViewDropPositionNick = 'no-drop' | 'drop-into' | 'drop-left' | 'drop-right' | 'drop-above' | 'drop-below';
|
|
72
|
+
export type GtkImageTypeNick = 'empty' | 'icon-name' | 'gicon' | 'paintable';
|
|
36
73
|
export type GtkInputPurposeNick = 'free-form' | 'alpha' | 'digits' | 'number' | 'phone' | 'url' | 'email' | 'name' | 'password' | 'pin' | 'terminal';
|
|
37
74
|
export type GtkInscriptionOverflowNick = 'clip' | 'ellipsize-start' | 'ellipsize-middle' | 'ellipsize-end';
|
|
75
|
+
export type GtkInterfaceColorSchemeNick = 'unsupported' | 'default' | 'dark' | 'light';
|
|
76
|
+
export type GtkInterfaceContrastNick = 'unsupported' | 'no-preference' | 'more' | 'less';
|
|
38
77
|
export type GtkJustificationNick = 'left' | 'right' | 'center' | 'fill';
|
|
39
78
|
export type GtkLevelBarModeNick = 'continuous' | 'discrete';
|
|
40
79
|
export type GtkLicenseNick = 'unknown' | 'custom' | 'gpl-2-0' | 'gpl-3-0' | 'lgpl-2-1' | 'lgpl-3-0' | 'bsd' | 'mit-x11' | 'artistic' | 'gpl-2-0-only' | 'gpl-3-0-only' | 'lgpl-2-1-only' | 'lgpl-3-0-only' | 'agpl-3-0' | 'agpl-3-0-only' | 'bsd-3' | 'apache-2-0' | 'mpl-2-0' | '0bsd';
|
|
41
80
|
export type GtkListTabBehaviorNick = 'all' | 'item' | 'cell';
|
|
42
81
|
export type GtkMessageTypeNick = 'info' | 'warning' | 'question' | 'error' | 'other';
|
|
82
|
+
export type GtkMovementStepNick = 'logical-positions' | 'visual-positions' | 'words' | 'display-lines' | 'display-line-ends' | 'paragraphs' | 'paragraph-ends' | 'pages' | 'buffer-ends' | 'horizontal-pages';
|
|
43
83
|
export type GtkNaturalWrapModeNick = 'inherit' | 'none' | 'word';
|
|
84
|
+
export type GtkNotebookTabNick = 'first' | 'last';
|
|
85
|
+
export type GtkNumberUpLayoutNick = 'lrtb' | 'lrbt' | 'rltb' | 'rlbt' | 'tblr' | 'tbrl' | 'btlr' | 'btrl';
|
|
86
|
+
export type GtkOrderingNick = 'smaller' | 'equal' | 'larger';
|
|
44
87
|
export type GtkOrientationNick = 'horizontal' | 'vertical';
|
|
45
88
|
export type GtkOverflowNick = 'visible' | 'hidden';
|
|
46
89
|
export type GtkPackTypeNick = 'start' | 'end';
|
|
90
|
+
export type GtkPadActionTypeNick = 'button' | 'ring' | 'strip' | 'dial';
|
|
91
|
+
export type GtkPageOrientationNick = 'portrait' | 'landscape' | 'reverse-portrait' | 'reverse-landscape';
|
|
92
|
+
export type GtkPageSetNick = 'all' | 'even' | 'odd';
|
|
93
|
+
export type GtkPanDirectionNick = 'left' | 'right' | 'up' | 'down';
|
|
47
94
|
export type GtkPolicyTypeNick = 'always' | 'automatic' | 'never' | 'external';
|
|
48
95
|
export type GtkPositionTypeNick = 'left' | 'right' | 'top' | 'bottom';
|
|
96
|
+
export type GtkPrintDuplexNick = 'simplex' | 'horizontal' | 'vertical';
|
|
97
|
+
export type GtkPrintOperationActionNick = 'print-dialog' | 'print' | 'preview' | 'export';
|
|
98
|
+
export type GtkPrintOperationResultNick = 'error' | 'apply' | 'cancel' | 'in-progress';
|
|
99
|
+
export type GtkPrintPagesNick = 'all' | 'current' | 'ranges' | 'selection';
|
|
100
|
+
export type GtkPrintQualityNick = 'low' | 'normal' | 'high' | 'draft';
|
|
101
|
+
export type GtkPrintStatusNick = 'initial' | 'preparing' | 'generating-data' | 'sending-data' | 'pending' | 'pending-issue' | 'printing' | 'finished' | 'finished-aborted';
|
|
102
|
+
export type GtkPropagationLimitNick = 'none' | 'same-native';
|
|
103
|
+
export type GtkPropagationPhaseNick = 'none' | 'capture' | 'bubble' | 'target';
|
|
104
|
+
export type GtkReducedMotionNick = 'no-preference' | 'reduce';
|
|
105
|
+
export type GtkResponseTypeNick = 'none' | 'reject' | 'accept' | 'delete-event' | 'ok' | 'cancel' | 'close' | 'yes' | 'no' | 'apply' | 'help';
|
|
49
106
|
export type GtkRevealerTransitionTypeNick = 'none' | 'crossfade' | 'slide-right' | 'slide-left' | 'slide-up' | 'slide-down' | 'swing-right' | 'swing-left' | 'swing-up' | 'swing-down' | 'fade-slide-right' | 'fade-slide-left' | 'fade-slide-up' | 'fade-slide-down';
|
|
107
|
+
export type GtkScrollStepNick = 'steps' | 'pages' | 'ends' | 'horizontal-steps' | 'horizontal-pages' | 'horizontal-ends';
|
|
108
|
+
export type GtkScrollTypeNick = 'none' | 'jump' | 'step-backward' | 'step-forward' | 'page-backward' | 'page-forward' | 'step-up' | 'step-down' | 'page-up' | 'page-down' | 'step-left' | 'step-right' | 'page-left' | 'page-right' | 'start' | 'end';
|
|
50
109
|
export type GtkScrollablePolicyNick = 'minimum' | 'natural';
|
|
51
110
|
export type GtkSelectionModeNick = 'none' | 'single' | 'browse' | 'multiple';
|
|
52
111
|
export type GtkSensitivityTypeNick = 'auto' | 'on' | 'off';
|
|
112
|
+
export type GtkShortcutScopeNick = 'local' | 'managed' | 'global';
|
|
53
113
|
export type GtkShortcutTypeNick = 'accelerator' | 'gesture-pinch' | 'gesture-stretch' | 'gesture-rotate-clockwise' | 'gesture-rotate-counterclockwise' | 'gesture-two-finger-swipe-left' | 'gesture-two-finger-swipe-right' | 'gesture' | 'gesture-swipe-left' | 'gesture-swipe-right';
|
|
114
|
+
export type GtkSizeGroupModeNick = 'none' | 'horizontal' | 'vertical' | 'both';
|
|
115
|
+
export type GtkSizeRequestModeNick = 'height-for-width' | 'width-for-height' | 'constant-size';
|
|
116
|
+
export type GtkSortTypeNick = 'ascending' | 'descending';
|
|
117
|
+
export type GtkSorterChangeNick = 'different' | 'inverted' | 'less-strict' | 'more-strict';
|
|
118
|
+
export type GtkSorterOrderNick = 'partial' | 'none' | 'total';
|
|
54
119
|
export type GtkSpinButtonUpdatePolicyNick = 'always' | 'if-valid';
|
|
120
|
+
export type GtkSpinTypeNick = 'step-forward' | 'step-backward' | 'page-forward' | 'page-backward' | 'home' | 'end' | 'user-defined';
|
|
55
121
|
export type GtkStackTransitionTypeNick = 'none' | 'crossfade' | 'slide-right' | 'slide-left' | 'slide-up' | 'slide-down' | 'slide-left-right' | 'slide-up-down' | 'over-up' | 'over-down' | 'over-left' | 'over-right' | 'under-up' | 'under-down' | 'under-left' | 'under-right' | 'over-up-down' | 'over-down-up' | 'over-left-right' | 'over-right-left' | 'rotate-left' | 'rotate-right' | 'rotate-left-right';
|
|
56
122
|
export type GtkStringFilterMatchModeNick = 'exact' | 'substring' | 'prefix';
|
|
123
|
+
export type GtkSymbolicColorNick = 'foreground' | 'error' | 'warning' | 'success' | 'accent';
|
|
124
|
+
export type GtkSystemSettingNick = 'dpi' | 'font-name' | 'font-config' | 'display' | 'icon-theme';
|
|
57
125
|
export type GtkTextDirectionNick = 'none' | 'ltr' | 'rtl';
|
|
126
|
+
export type GtkTextExtendSelectionNick = 'word' | 'line';
|
|
127
|
+
export type GtkTextViewLayerNick = 'below-text' | 'above-text';
|
|
128
|
+
export type GtkTextWindowTypeNick = 'widget' | 'text' | 'left' | 'right' | 'top' | 'bottom';
|
|
129
|
+
export type GtkTreeViewColumnSizingNick = 'grow-only' | 'autosize' | 'fixed';
|
|
130
|
+
export type GtkTreeViewDropPositionNick = 'before' | 'after' | 'into-or-before' | 'into-or-after';
|
|
58
131
|
export type GtkTreeViewGridLinesNick = 'none' | 'horizontal' | 'vertical' | 'both';
|
|
132
|
+
export type GtkUnitNick = 'none' | 'points' | 'inch' | 'mm';
|
|
59
133
|
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';
|
|
60
134
|
export type GtkWrapModeNick = 'none' | 'char' | 'word' | 'word-char';
|
|
61
135
|
export type PangoEllipsizeModeNick = 'none' | 'start' | 'middle' | 'end';
|
|
62
136
|
export type PangoWrapModeNick = 'word' | 'char' | 'word-char' | 'none';
|
|
63
137
|
/** A dialog showing information about the application. */
|
|
64
|
-
export interface AdwAboutDialogProps extends AdwDialogProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkShortcutManagerProps {
|
|
138
|
+
export interface AdwAboutDialogProps extends AdwDialogProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkShortcutManagerProps {
|
|
65
139
|
/** The path to the Appstream metadata resource. */
|
|
66
|
-
appdataResourcePath?: string;
|
|
67
|
-
'appdata-resource-path'?: string;
|
|
140
|
+
appdataResourcePath?: string | null;
|
|
141
|
+
'appdata-resource-path'?: string | null;
|
|
68
142
|
/** The name of the application icon. */
|
|
69
143
|
applicationIcon?: string;
|
|
70
144
|
'application-icon'?: string;
|
|
@@ -72,7 +146,7 @@ export interface AdwAboutDialogProps extends AdwDialogProps, GtkAccessibleProps,
|
|
|
72
146
|
applicationName?: string;
|
|
73
147
|
'application-name'?: string;
|
|
74
148
|
/** The list of artists of the application. */
|
|
75
|
-
artists?: string[];
|
|
149
|
+
artists?: string[] | null;
|
|
76
150
|
/** The comments about the application. */
|
|
77
151
|
comments?: string;
|
|
78
152
|
/** The copyright information. */
|
|
@@ -84,14 +158,14 @@ export interface AdwAboutDialogProps extends AdwDialogProps, GtkAccessibleProps,
|
|
|
84
158
|
debugInfoFilename?: string;
|
|
85
159
|
'debug-info-filename'?: string;
|
|
86
160
|
/** The list of designers of the application. */
|
|
87
|
-
designers?: string[];
|
|
161
|
+
designers?: string[] | null;
|
|
88
162
|
/** The developer name. */
|
|
89
163
|
developerName?: string;
|
|
90
164
|
'developer-name'?: string;
|
|
91
165
|
/** The list of developers of the application. */
|
|
92
|
-
developers?: string[];
|
|
166
|
+
developers?: string[] | null;
|
|
93
167
|
/** The list of documenters of the application. */
|
|
94
|
-
documenters?: string[];
|
|
168
|
+
documenters?: string[] | null;
|
|
95
169
|
/** The URL for the application's issue tracker. */
|
|
96
170
|
issueUrl?: string;
|
|
97
171
|
'issue-url'?: string;
|
|
@@ -100,6 +174,9 @@ export interface AdwAboutDialogProps extends AdwDialogProps, GtkAccessibleProps,
|
|
|
100
174
|
/** The license type. */
|
|
101
175
|
licenseType?: GtkLicenseNick | Gtk.License;
|
|
102
176
|
'license-type'?: GtkLicenseNick | Gtk.License;
|
|
177
|
+
/** The "Other apps" section title. */
|
|
178
|
+
otherAppsTitle?: string;
|
|
179
|
+
'other-apps-title'?: string;
|
|
103
180
|
/** The release notes of the application. */
|
|
104
181
|
releaseNotes?: string;
|
|
105
182
|
'release-notes'?: string;
|
|
@@ -116,8 +193,7 @@ export interface AdwAboutDialogProps extends AdwDialogProps, GtkAccessibleProps,
|
|
|
116
193
|
version?: string;
|
|
117
194
|
/** The URL of the application's website. */
|
|
118
195
|
website?: string;
|
|
119
|
-
|
|
120
|
-
onActivateLink?: (uri: string) => void;
|
|
196
|
+
onActivateLink?: Adw.AboutDialog.SignalSignatures['activate-link'];
|
|
121
197
|
onNotifyAppdataResourcePath?: NotifyHandler;
|
|
122
198
|
onNotifyApplicationIcon?: NotifyHandler;
|
|
123
199
|
onNotifyApplicationName?: NotifyHandler;
|
|
@@ -133,6 +209,7 @@ export interface AdwAboutDialogProps extends AdwDialogProps, GtkAccessibleProps,
|
|
|
133
209
|
onNotifyIssueUrl?: NotifyHandler;
|
|
134
210
|
onNotifyLicense?: NotifyHandler;
|
|
135
211
|
onNotifyLicenseType?: NotifyHandler;
|
|
212
|
+
onNotifyOtherAppsTitle?: NotifyHandler;
|
|
136
213
|
onNotifyReleaseNotes?: NotifyHandler;
|
|
137
214
|
onNotifyReleaseNotesVersion?: NotifyHandler;
|
|
138
215
|
onNotifySupportUrl?: NotifyHandler;
|
|
@@ -141,7 +218,7 @@ export interface AdwAboutDialogProps extends AdwDialogProps, GtkAccessibleProps,
|
|
|
141
218
|
onNotifyWebsite?: NotifyHandler;
|
|
142
219
|
}
|
|
143
220
|
/** A window showing information about the application. */
|
|
144
|
-
export interface AdwAboutWindowProps extends AdwWindowProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
221
|
+
export interface AdwAboutWindowProps extends AdwWindowProps, GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
145
222
|
/**
|
|
146
223
|
* The name of the application icon.
|
|
147
224
|
* @deprecated
|
|
@@ -158,7 +235,7 @@ export interface AdwAboutWindowProps extends AdwWindowProps, GtkAccessibleProps,
|
|
|
158
235
|
* The list of artists of the application.
|
|
159
236
|
* @deprecated
|
|
160
237
|
*/
|
|
161
|
-
artists?: string[];
|
|
238
|
+
artists?: string[] | null;
|
|
162
239
|
/**
|
|
163
240
|
* The comments about the application.
|
|
164
241
|
* @deprecated
|
|
@@ -185,7 +262,7 @@ export interface AdwAboutWindowProps extends AdwWindowProps, GtkAccessibleProps,
|
|
|
185
262
|
* The list of designers of the application.
|
|
186
263
|
* @deprecated
|
|
187
264
|
*/
|
|
188
|
-
designers?: string[];
|
|
265
|
+
designers?: string[] | null;
|
|
189
266
|
/**
|
|
190
267
|
* The developer name.
|
|
191
268
|
* @deprecated
|
|
@@ -196,12 +273,12 @@ export interface AdwAboutWindowProps extends AdwWindowProps, GtkAccessibleProps,
|
|
|
196
273
|
* The list of developers of the application.
|
|
197
274
|
* @deprecated
|
|
198
275
|
*/
|
|
199
|
-
developers?: string[];
|
|
276
|
+
developers?: string[] | null;
|
|
200
277
|
/**
|
|
201
278
|
* The list of documenters of the application.
|
|
202
279
|
* @deprecated
|
|
203
280
|
*/
|
|
204
|
-
documenters?: string[];
|
|
281
|
+
documenters?: string[] | null;
|
|
205
282
|
/**
|
|
206
283
|
* The URL for the application's issue tracker.
|
|
207
284
|
* @deprecated
|
|
@@ -253,11 +330,7 @@ export interface AdwAboutWindowProps extends AdwWindowProps, GtkAccessibleProps,
|
|
|
253
330
|
* @deprecated
|
|
254
331
|
*/
|
|
255
332
|
website?: string;
|
|
256
|
-
|
|
257
|
-
* Emitted when a URL is activated.
|
|
258
|
-
* @deprecated
|
|
259
|
-
*/
|
|
260
|
-
onActivateLink?: (uri: string) => void;
|
|
333
|
+
onActivateLink?: Adw.AboutWindow.SignalSignatures['activate-link'];
|
|
261
334
|
onNotifyApplicationIcon?: NotifyHandler;
|
|
262
335
|
onNotifyApplicationName?: NotifyHandler;
|
|
263
336
|
onNotifyArtists?: NotifyHandler;
|
|
@@ -280,7 +353,7 @@ export interface AdwAboutWindowProps extends AdwWindowProps, GtkAccessibleProps,
|
|
|
280
353
|
onNotifyWebsite?: NotifyHandler;
|
|
281
354
|
}
|
|
282
355
|
/** A [class@Gtk.ListBoxRow] used to present actions. */
|
|
283
|
-
export interface AdwActionRowProps extends AdwPreferencesRowProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
356
|
+
export interface AdwActionRowProps extends AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
284
357
|
/** The widget to activate when the row is activated. */
|
|
285
358
|
activatableWidget?: Gtk.Widget | null;
|
|
286
359
|
'activatable-widget'?: Gtk.Widget | null;
|
|
@@ -288,10 +361,10 @@ export interface AdwActionRowProps extends AdwPreferencesRowProps, GtkAccessible
|
|
|
288
361
|
* The icon name for this row.
|
|
289
362
|
* @deprecated
|
|
290
363
|
*/
|
|
291
|
-
iconName?: string;
|
|
292
|
-
'icon-name'?: string;
|
|
364
|
+
iconName?: string | null;
|
|
365
|
+
'icon-name'?: string | null;
|
|
293
366
|
/** The subtitle for this row. */
|
|
294
|
-
subtitle?: string;
|
|
367
|
+
subtitle?: string | null;
|
|
295
368
|
/** The number of lines at the end of which the subtitle label will be ellipsized. */
|
|
296
369
|
subtitleLines?: number;
|
|
297
370
|
'subtitle-lines'?: number;
|
|
@@ -301,8 +374,7 @@ export interface AdwActionRowProps extends AdwPreferencesRowProps, GtkAccessible
|
|
|
301
374
|
/** The number of lines at the end of which the title label will be ellipsized. */
|
|
302
375
|
titleLines?: number;
|
|
303
376
|
'title-lines'?: number;
|
|
304
|
-
|
|
305
|
-
onActivated?: () => void;
|
|
377
|
+
onActivated?: Adw.ActionRow.SignalSignatures['activated'];
|
|
306
378
|
onNotifyActivatableWidget?: NotifyHandler;
|
|
307
379
|
onNotifyIconName?: NotifyHandler;
|
|
308
380
|
onNotifySubtitle?: NotifyHandler;
|
|
@@ -311,7 +383,7 @@ export interface AdwActionRowProps extends AdwPreferencesRowProps, GtkAccessible
|
|
|
311
383
|
onNotifyTitleLines?: NotifyHandler;
|
|
312
384
|
}
|
|
313
385
|
/** A dialog presenting a message or a question. */
|
|
314
|
-
export interface AdwAlertDialogProps extends AdwDialogProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkShortcutManagerProps {
|
|
386
|
+
export interface AdwAlertDialogProps extends AdwDialogProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkShortcutManagerProps {
|
|
315
387
|
/** The body text of the dialog. */
|
|
316
388
|
body?: string;
|
|
317
389
|
/** Whether the body text includes Pango markup. */
|
|
@@ -321,21 +393,20 @@ export interface AdwAlertDialogProps extends AdwDialogProps, GtkAccessibleProps,
|
|
|
321
393
|
closeResponse?: string;
|
|
322
394
|
'close-response'?: string;
|
|
323
395
|
/** The response ID of the default response. */
|
|
324
|
-
defaultResponse?: string;
|
|
325
|
-
'default-response'?: string;
|
|
396
|
+
defaultResponse?: string | null;
|
|
397
|
+
'default-response'?: string | null;
|
|
326
398
|
/** The child widget. */
|
|
327
399
|
extraChild?: Gtk.Widget | null;
|
|
328
400
|
'extra-child'?: Gtk.Widget | null;
|
|
329
401
|
/** The heading of the dialog. */
|
|
330
|
-
heading?: string;
|
|
402
|
+
heading?: string | null;
|
|
331
403
|
/** Whether the heading includes Pango markup. */
|
|
332
404
|
headingUseMarkup?: boolean;
|
|
333
405
|
'heading-use-markup'?: boolean;
|
|
334
406
|
/** Whether to prefer horizontal button layout. */
|
|
335
407
|
preferWideLayout?: boolean;
|
|
336
408
|
'prefer-wide-layout'?: boolean;
|
|
337
|
-
|
|
338
|
-
onResponse?: (response: string) => void;
|
|
409
|
+
onResponse?: Adw.AlertDialog.SignalSignatures['response'];
|
|
339
410
|
onNotifyBody?: NotifyHandler;
|
|
340
411
|
onNotifyBodyUseMarkup?: NotifyHandler;
|
|
341
412
|
onNotifyCloseResponse?: NotifyHandler;
|
|
@@ -346,7 +417,7 @@ export interface AdwAlertDialogProps extends AdwDialogProps, GtkAccessibleProps,
|
|
|
346
417
|
onNotifyPreferWideLayout?: NotifyHandler;
|
|
347
418
|
}
|
|
348
419
|
/** A freeform application window. */
|
|
349
|
-
export interface AdwApplicationWindowProps extends GtkApplicationWindowProps,
|
|
420
|
+
export interface AdwApplicationWindowProps extends GtkApplicationWindowProps, GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
350
421
|
/** Whether adaptive preview is currently open. */
|
|
351
422
|
adaptivePreview?: boolean;
|
|
352
423
|
'adaptive-preview'?: boolean;
|
|
@@ -361,15 +432,15 @@ export interface AdwAvatarProps extends GtkWidgetProps, GtkAccessibleProps, GtkB
|
|
|
361
432
|
customImage?: Gdk.Paintable | null;
|
|
362
433
|
'custom-image'?: Gdk.Paintable | null;
|
|
363
434
|
/** The name of an icon to use as a fallback. */
|
|
364
|
-
iconName?: string;
|
|
365
|
-
'icon-name'?: string;
|
|
435
|
+
iconName?: string | null;
|
|
436
|
+
'icon-name'?: string | null;
|
|
366
437
|
/** Whether initials are used instead of an icon on the fallback avatar. */
|
|
367
438
|
showInitials?: boolean;
|
|
368
439
|
'show-initials'?: boolean;
|
|
369
440
|
/** The size of the avatar. */
|
|
370
441
|
size?: number;
|
|
371
442
|
/** Sets the text used to generate the fallback initials and color. */
|
|
372
|
-
text?: string;
|
|
443
|
+
text?: string | null;
|
|
373
444
|
onNotifyCustomImage?: NotifyHandler;
|
|
374
445
|
onNotifyIconName?: NotifyHandler;
|
|
375
446
|
onNotifyShowInitials?: NotifyHandler;
|
|
@@ -379,8 +450,8 @@ export interface AdwAvatarProps extends GtkWidgetProps, GtkAccessibleProps, GtkB
|
|
|
379
450
|
/** A bar with contextual information. */
|
|
380
451
|
export interface AdwBannerProps extends GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
381
452
|
/** The label to show on the button. */
|
|
382
|
-
buttonLabel?: string;
|
|
383
|
-
'button-label'?: string;
|
|
453
|
+
buttonLabel?: string | null;
|
|
454
|
+
'button-label'?: string | null;
|
|
384
455
|
/** The style class to use for the banner button. */
|
|
385
456
|
buttonStyle?: AdwBannerButtonStyleNick | Adw.BannerButtonStyle;
|
|
386
457
|
'button-style'?: AdwBannerButtonStyleNick | Adw.BannerButtonStyle;
|
|
@@ -391,8 +462,7 @@ export interface AdwBannerProps extends GtkWidgetProps, GtkAccessibleProps, GtkA
|
|
|
391
462
|
/** Whether to use Pango markup for the banner title. */
|
|
392
463
|
useMarkup?: boolean;
|
|
393
464
|
'use-markup'?: boolean;
|
|
394
|
-
|
|
395
|
-
onButtonClicked?: () => void;
|
|
465
|
+
onButtonClicked?: Adw.Banner.SignalSignatures['button-clicked'];
|
|
396
466
|
onNotifyButtonLabel?: NotifyHandler;
|
|
397
467
|
onNotifyButtonStyle?: NotifyHandler;
|
|
398
468
|
onNotifyRevealed?: NotifyHandler;
|
|
@@ -435,8 +505,7 @@ export interface AdwBottomSheetProps extends GtkWidgetProps, AdwSwipeableProps,
|
|
|
435
505
|
/** Whether to overlay a drag handle in the bottom sheet. */
|
|
436
506
|
showDragHandle?: boolean;
|
|
437
507
|
'show-drag-handle'?: boolean;
|
|
438
|
-
|
|
439
|
-
onCloseAttempt?: () => void;
|
|
508
|
+
onCloseAttempt?: Adw.BottomSheet.SignalSignatures['close-attempt'];
|
|
440
509
|
onNotifyAlign?: NotifyHandler;
|
|
441
510
|
onNotifyBottomBar?: NotifyHandler;
|
|
442
511
|
onNotifyCanClose?: NotifyHandler;
|
|
@@ -474,15 +543,14 @@ export interface AdwButtonContentProps extends GtkWidgetProps, GtkAccessibleProp
|
|
|
474
543
|
onNotifyUseUnderline?: NotifyHandler;
|
|
475
544
|
}
|
|
476
545
|
/** A [class@Gtk.ListBoxRow] that looks like a button. */
|
|
477
|
-
export interface AdwButtonRowProps extends AdwPreferencesRowProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
546
|
+
export interface AdwButtonRowProps extends AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
478
547
|
/** The icon name to show after the title. */
|
|
479
|
-
endIconName?: string;
|
|
480
|
-
'end-icon-name'?: string;
|
|
548
|
+
endIconName?: string | null;
|
|
549
|
+
'end-icon-name'?: string | null;
|
|
481
550
|
/** The icon name to show before the title. */
|
|
482
|
-
startIconName?: string;
|
|
483
|
-
'start-icon-name'?: string;
|
|
484
|
-
|
|
485
|
-
onActivated?: () => void;
|
|
551
|
+
startIconName?: string | null;
|
|
552
|
+
'start-icon-name'?: string | null;
|
|
553
|
+
onActivated?: Adw.ButtonRow.SignalSignatures['activated'];
|
|
486
554
|
onNotifyEndIconName?: NotifyHandler;
|
|
487
555
|
onNotifyStartIconName?: NotifyHandler;
|
|
488
556
|
}
|
|
@@ -515,12 +583,11 @@ export interface AdwCarouselProps extends GtkWidgetProps, AdwSwipeableProps, Gtk
|
|
|
515
583
|
revealDuration?: number;
|
|
516
584
|
'reveal-duration'?: number;
|
|
517
585
|
/** Scroll animation spring parameters. */
|
|
518
|
-
scrollParams?: Adw.SpringParams
|
|
519
|
-
'scroll-params'?: Adw.SpringParams
|
|
586
|
+
scrollParams?: Adw.SpringParams;
|
|
587
|
+
'scroll-params'?: Adw.SpringParams;
|
|
520
588
|
/** Spacing between pages in pixels. */
|
|
521
589
|
spacing?: number;
|
|
522
|
-
|
|
523
|
-
onPageChanged?: (index: number) => void;
|
|
590
|
+
onPageChanged?: Adw.Carousel.SignalSignatures['page-changed'];
|
|
524
591
|
onNotifyAllowLongSwipes?: NotifyHandler;
|
|
525
592
|
onNotifyAllowMouseDrag?: NotifyHandler;
|
|
526
593
|
onNotifyAllowScrollWheel?: NotifyHandler;
|
|
@@ -564,7 +631,7 @@ export interface AdwClampScrollableProps extends GtkWidgetProps, GtkAccessiblePr
|
|
|
564
631
|
onNotifyUnit?: NotifyHandler;
|
|
565
632
|
}
|
|
566
633
|
/** A [class@Gtk.ListBoxRow] used to choose from a list of items. */
|
|
567
|
-
export interface AdwComboRowProps extends AdwActionRowProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
634
|
+
export interface AdwComboRowProps extends AdwActionRowProps, AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
568
635
|
/** Whether to show a search entry in the popup. */
|
|
569
636
|
enableSearch?: boolean;
|
|
570
637
|
'enable-search'?: boolean;
|
|
@@ -625,10 +692,8 @@ export interface AdwDialogProps extends GtkWidgetProps, GtkAccessibleProps, GtkB
|
|
|
625
692
|
'presentation-mode'?: AdwDialogPresentationModeNick | Adw.DialogPresentationMode;
|
|
626
693
|
/** The title of the dialog. */
|
|
627
694
|
title?: string;
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
/** Emitted when the dialog is successfully closed. */
|
|
631
|
-
onClosed?: () => void;
|
|
695
|
+
onCloseAttempt?: Adw.Dialog.SignalSignatures['close-attempt'];
|
|
696
|
+
onClosed?: Adw.Dialog.SignalSignatures['closed'];
|
|
632
697
|
onNotifyCanClose?: NotifyHandler;
|
|
633
698
|
onNotifyChild?: NotifyHandler;
|
|
634
699
|
onNotifyContentHeight?: NotifyHandler;
|
|
@@ -640,7 +705,7 @@ export interface AdwDialogProps extends GtkWidgetProps, GtkAccessibleProps, GtkB
|
|
|
640
705
|
onNotifyTitle?: NotifyHandler;
|
|
641
706
|
}
|
|
642
707
|
/** A [class@Gtk.ListBoxRow] with an embedded text entry. */
|
|
643
|
-
export interface AdwEntryRowProps extends AdwPreferencesRowProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
708
|
+
export interface AdwEntryRowProps extends AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
644
709
|
/** Whether activating the embedded entry can activate the default widget. */
|
|
645
710
|
activatesDefault?: boolean;
|
|
646
711
|
'activates-default'?: boolean;
|
|
@@ -661,10 +726,8 @@ export interface AdwEntryRowProps extends AdwPreferencesRowProps, GtkAccessibleP
|
|
|
661
726
|
/** Whether to show the apply button. */
|
|
662
727
|
showApplyButton?: boolean;
|
|
663
728
|
'show-apply-button'?: boolean;
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
/** Emitted when the embedded entry is activated. */
|
|
667
|
-
onEntryActivated?: () => void;
|
|
729
|
+
onApply?: Adw.EntryRow.SignalSignatures['apply'];
|
|
730
|
+
onEntryActivated?: Adw.EntryRow.SignalSignatures['entry-activated'];
|
|
668
731
|
onNotifyActivatesDefault?: NotifyHandler;
|
|
669
732
|
onNotifyAttributes?: NotifyHandler;
|
|
670
733
|
onNotifyEnableEmojiCompletion?: NotifyHandler;
|
|
@@ -674,7 +737,7 @@ export interface AdwEntryRowProps extends AdwPreferencesRowProps, GtkAccessibleP
|
|
|
674
737
|
onNotifyShowApplyButton?: NotifyHandler;
|
|
675
738
|
}
|
|
676
739
|
/** A [class@Gtk.ListBoxRow] used to reveal widgets. */
|
|
677
|
-
export interface AdwExpanderRowProps extends AdwPreferencesRowProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
740
|
+
export interface AdwExpanderRowProps extends AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
678
741
|
/** Whether expansion is enabled. */
|
|
679
742
|
enableExpansion?: boolean;
|
|
680
743
|
'enable-expansion'?: boolean;
|
|
@@ -684,8 +747,8 @@ export interface AdwExpanderRowProps extends AdwPreferencesRowProps, GtkAccessib
|
|
|
684
747
|
* The icon name for this row.
|
|
685
748
|
* @deprecated
|
|
686
749
|
*/
|
|
687
|
-
iconName?: string;
|
|
688
|
-
'icon-name'?: string;
|
|
750
|
+
iconName?: string | null;
|
|
751
|
+
'icon-name'?: string | null;
|
|
689
752
|
/** Whether the switch enabling the expansion is visible. */
|
|
690
753
|
showEnableSwitch?: boolean;
|
|
691
754
|
'show-enable-switch'?: boolean;
|
|
@@ -761,8 +824,8 @@ export interface AdwFlapProps extends GtkWidgetProps, AdwSwipeableProps, GtkAcce
|
|
|
761
824
|
* The reveal animation spring parameters.
|
|
762
825
|
* @deprecated
|
|
763
826
|
*/
|
|
764
|
-
revealParams?: Adw.SpringParams
|
|
765
|
-
'reveal-params'?: Adw.SpringParams
|
|
827
|
+
revealParams?: Adw.SpringParams;
|
|
828
|
+
'reveal-params'?: Adw.SpringParams;
|
|
766
829
|
/**
|
|
767
830
|
* The separator widget.
|
|
768
831
|
* @deprecated
|
|
@@ -807,8 +870,8 @@ export interface AdwHeaderBarProps extends GtkWidgetProps, GtkAccessibleProps, G
|
|
|
807
870
|
centeringPolicy?: AdwCenteringPolicyNick | Adw.CenteringPolicy;
|
|
808
871
|
'centering-policy'?: AdwCenteringPolicyNick | Adw.CenteringPolicy;
|
|
809
872
|
/** The decoration layout for buttons. */
|
|
810
|
-
decorationLayout?: string;
|
|
811
|
-
'decoration-layout'?: string;
|
|
873
|
+
decorationLayout?: string | null;
|
|
874
|
+
'decoration-layout'?: string | null;
|
|
812
875
|
/** Whether the header bar can show the back button. */
|
|
813
876
|
showBackButton?: boolean;
|
|
814
877
|
'show-back-button'?: boolean;
|
|
@@ -879,8 +942,8 @@ export interface AdwLeafletProps extends GtkWidgetProps, AdwSwipeableProps, GtkA
|
|
|
879
942
|
* The child transition spring parameters.
|
|
880
943
|
* @deprecated
|
|
881
944
|
*/
|
|
882
|
-
childTransitionParams?: Adw.SpringParams
|
|
883
|
-
'child-transition-params'?: Adw.SpringParams
|
|
945
|
+
childTransitionParams?: Adw.SpringParams;
|
|
946
|
+
'child-transition-params'?: Adw.SpringParams;
|
|
884
947
|
/**
|
|
885
948
|
* Determines when the leaflet will fold.
|
|
886
949
|
* @deprecated
|
|
@@ -914,8 +977,8 @@ export interface AdwLeafletProps extends GtkWidgetProps, AdwSwipeableProps, GtkA
|
|
|
914
977
|
* The name of the widget currently visible when the leaflet is folded.
|
|
915
978
|
* @deprecated
|
|
916
979
|
*/
|
|
917
|
-
visibleChildName?: string;
|
|
918
|
-
'visible-child-name'?: string;
|
|
980
|
+
visibleChildName?: string | null;
|
|
981
|
+
'visible-child-name'?: string | null;
|
|
919
982
|
onNotifyCanNavigateBack?: NotifyHandler;
|
|
920
983
|
onNotifyCanNavigateForward?: NotifyHandler;
|
|
921
984
|
onNotifyCanUnfold?: NotifyHandler;
|
|
@@ -928,7 +991,7 @@ export interface AdwLeafletProps extends GtkWidgetProps, AdwSwipeableProps, GtkA
|
|
|
928
991
|
onNotifyVisibleChildName?: NotifyHandler;
|
|
929
992
|
}
|
|
930
993
|
/** A dialog presenting a message or a question. */
|
|
931
|
-
export interface AdwMessageDialogProps extends GtkWindowProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
994
|
+
export interface AdwMessageDialogProps extends GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
932
995
|
/**
|
|
933
996
|
* The body text of the dialog.
|
|
934
997
|
* @deprecated
|
|
@@ -950,8 +1013,8 @@ export interface AdwMessageDialogProps extends GtkWindowProps, GtkAccessibleProp
|
|
|
950
1013
|
* The response ID of the default response.
|
|
951
1014
|
* @deprecated
|
|
952
1015
|
*/
|
|
953
|
-
defaultResponse?: string;
|
|
954
|
-
'default-response'?: string;
|
|
1016
|
+
defaultResponse?: string | null;
|
|
1017
|
+
'default-response'?: string | null;
|
|
955
1018
|
/**
|
|
956
1019
|
* The child widget.
|
|
957
1020
|
* @deprecated
|
|
@@ -962,18 +1025,14 @@ export interface AdwMessageDialogProps extends GtkWindowProps, GtkAccessibleProp
|
|
|
962
1025
|
* The heading of the dialog.
|
|
963
1026
|
* @deprecated
|
|
964
1027
|
*/
|
|
965
|
-
heading?: string;
|
|
1028
|
+
heading?: string | null;
|
|
966
1029
|
/**
|
|
967
1030
|
* Whether the heading includes Pango markup.
|
|
968
1031
|
* @deprecated
|
|
969
1032
|
*/
|
|
970
1033
|
headingUseMarkup?: boolean;
|
|
971
1034
|
'heading-use-markup'?: boolean;
|
|
972
|
-
|
|
973
|
-
* This signal is emitted when the dialog is closed.
|
|
974
|
-
* @deprecated
|
|
975
|
-
*/
|
|
976
|
-
onResponse?: (response: string) => void;
|
|
1035
|
+
onResponse?: Adw.MessageDialog.SignalSignatures['response'];
|
|
977
1036
|
onNotifyBody?: NotifyHandler;
|
|
978
1037
|
onNotifyBodyUseMarkup?: NotifyHandler;
|
|
979
1038
|
onNotifyCloseResponse?: NotifyHandler;
|
|
@@ -987,8 +1046,8 @@ export interface AdwMultiLayoutViewProps extends GtkWidgetProps, GtkAccessiblePr
|
|
|
987
1046
|
/** The currently used layout. */
|
|
988
1047
|
layout?: Adw.Layout | null;
|
|
989
1048
|
/** The name of the currently used layout. */
|
|
990
|
-
layoutName?: string;
|
|
991
|
-
'layout-name'?: string;
|
|
1049
|
+
layoutName?: string | null;
|
|
1050
|
+
'layout-name'?: string | null;
|
|
992
1051
|
onNotifyLayout?: NotifyHandler;
|
|
993
1052
|
onNotifyLayoutName?: NotifyHandler;
|
|
994
1053
|
}
|
|
@@ -1000,17 +1059,13 @@ export interface AdwNavigationPageProps extends GtkWidgetProps, GtkAccessiblePro
|
|
|
1000
1059
|
/** The child widget. */
|
|
1001
1060
|
child?: Gtk.Widget | null;
|
|
1002
1061
|
/** The page tag. */
|
|
1003
|
-
tag?: string;
|
|
1062
|
+
tag?: string | null;
|
|
1004
1063
|
/** The page title. */
|
|
1005
1064
|
title?: string;
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
/** Emitted when the page shows at the beginning of the navigation view transition. */
|
|
1011
|
-
onShowing?: () => void;
|
|
1012
|
-
/** Emitted when the navigation view transition has been completed and the page is fully shown. */
|
|
1013
|
-
onShown?: () => void;
|
|
1065
|
+
onHidden?: Adw.NavigationPage.SignalSignatures['hidden'];
|
|
1066
|
+
onHiding?: Adw.NavigationPage.SignalSignatures['hiding'];
|
|
1067
|
+
onShowing?: Adw.NavigationPage.SignalSignatures['showing'];
|
|
1068
|
+
onShown?: Adw.NavigationPage.SignalSignatures['shown'];
|
|
1014
1069
|
onNotifyCanPop?: NotifyHandler;
|
|
1015
1070
|
onNotifyChild?: NotifyHandler;
|
|
1016
1071
|
onNotifyTag?: NotifyHandler;
|
|
@@ -1064,14 +1119,10 @@ export interface AdwNavigationViewProps extends GtkWidgetProps, AdwSwipeableProp
|
|
|
1064
1119
|
'pop-on-escape'?: boolean;
|
|
1065
1120
|
/** Whether the view is vertically homogeneous. */
|
|
1066
1121
|
vhomogeneous?: boolean;
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
/** Emitted after a page has been pushed to the navigation stack. */
|
|
1072
|
-
onPushed?: () => void;
|
|
1073
|
-
/** Emitted after the navigation stack has been replaced. */
|
|
1074
|
-
onReplaced?: () => void;
|
|
1122
|
+
onGetNextPage?: Adw.NavigationView.SignalSignatures['get-next-page'];
|
|
1123
|
+
onPopped?: Adw.NavigationView.SignalSignatures['popped'];
|
|
1124
|
+
onPushed?: Adw.NavigationView.SignalSignatures['pushed'];
|
|
1125
|
+
onReplaced?: Adw.NavigationView.SignalSignatures['replaced'];
|
|
1075
1126
|
onNotifyAnimateTransitions?: NotifyHandler;
|
|
1076
1127
|
onNotifyHhomogeneous?: NotifyHandler;
|
|
1077
1128
|
onNotifyPopOnEscape?: NotifyHandler;
|
|
@@ -1126,10 +1177,10 @@ export interface AdwOverlaySplitViewProps extends GtkWidgetProps, AdwSwipeablePr
|
|
|
1126
1177
|
onNotifySidebarWidthUnit?: NotifyHandler;
|
|
1127
1178
|
}
|
|
1128
1179
|
/** A [class@EntryRow] tailored for entering secrets. */
|
|
1129
|
-
export interface AdwPasswordEntryRowProps extends AdwEntryRowProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
1180
|
+
export interface AdwPasswordEntryRowProps extends AdwEntryRowProps, AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
1130
1181
|
}
|
|
1131
1182
|
/** A dialog showing application's preferences. */
|
|
1132
|
-
export interface AdwPreferencesDialogProps extends AdwDialogProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkShortcutManagerProps {
|
|
1183
|
+
export interface AdwPreferencesDialogProps extends AdwDialogProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkShortcutManagerProps {
|
|
1133
1184
|
/** Whether search is enabled. */
|
|
1134
1185
|
searchEnabled?: boolean;
|
|
1135
1186
|
'search-enabled'?: boolean;
|
|
@@ -1137,8 +1188,8 @@ export interface AdwPreferencesDialogProps extends AdwDialogProps, GtkAccessible
|
|
|
1137
1188
|
visiblePage?: Gtk.Widget | null;
|
|
1138
1189
|
'visible-page'?: Gtk.Widget | null;
|
|
1139
1190
|
/** The name of the currently visible page. */
|
|
1140
|
-
visiblePageName?: string;
|
|
1141
|
-
'visible-page-name'?: string;
|
|
1191
|
+
visiblePageName?: string | null;
|
|
1192
|
+
'visible-page-name'?: string | null;
|
|
1142
1193
|
onNotifySearchEnabled?: NotifyHandler;
|
|
1143
1194
|
onNotifyVisiblePage?: NotifyHandler;
|
|
1144
1195
|
onNotifyVisiblePageName?: NotifyHandler;
|
|
@@ -1146,7 +1197,7 @@ export interface AdwPreferencesDialogProps extends AdwDialogProps, GtkAccessible
|
|
|
1146
1197
|
/** A group of preference rows. */
|
|
1147
1198
|
export interface AdwPreferencesGroupProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1148
1199
|
/** The description for this group of preferences. */
|
|
1149
|
-
description?: string;
|
|
1200
|
+
description?: string | null;
|
|
1150
1201
|
/** The header suffix widget. */
|
|
1151
1202
|
headerSuffix?: Gtk.Widget | null;
|
|
1152
1203
|
'header-suffix'?: Gtk.Widget | null;
|
|
@@ -1161,7 +1212,7 @@ export interface AdwPreferencesGroupProps extends GtkWidgetProps, GtkAccessibleP
|
|
|
1161
1212
|
onNotifyTitle?: NotifyHandler;
|
|
1162
1213
|
}
|
|
1163
1214
|
/** A page from [class@PreferencesDialog]. */
|
|
1164
|
-
export interface AdwPreferencesPageProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1215
|
+
export interface AdwPreferencesPageProps extends Omit<GtkWidgetProps, 'name'>, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1165
1216
|
/** A [class@Banner] displayed at the top of the page. */
|
|
1166
1217
|
banner?: Adw.Banner | null;
|
|
1167
1218
|
/** The description to be displayed at the top of the page. */
|
|
@@ -1170,10 +1221,10 @@ export interface AdwPreferencesPageProps extends GtkWidgetProps, GtkAccessiblePr
|
|
|
1170
1221
|
descriptionCentered?: boolean;
|
|
1171
1222
|
'description-centered'?: boolean;
|
|
1172
1223
|
/** The icon name for this page. */
|
|
1173
|
-
iconName?: string;
|
|
1174
|
-
'icon-name'?: string;
|
|
1224
|
+
iconName?: string | null;
|
|
1225
|
+
'icon-name'?: string | null;
|
|
1175
1226
|
/** The name of this page. */
|
|
1176
|
-
name?: string;
|
|
1227
|
+
name?: string | null;
|
|
1177
1228
|
/** The title for this page. */
|
|
1178
1229
|
title?: string;
|
|
1179
1230
|
/** Whether an embedded underline in the title indicates a mnemonic. */
|
|
@@ -1188,7 +1239,7 @@ export interface AdwPreferencesPageProps extends GtkWidgetProps, GtkAccessiblePr
|
|
|
1188
1239
|
onNotifyUseUnderline?: NotifyHandler;
|
|
1189
1240
|
}
|
|
1190
1241
|
/** A [class@Gtk.ListBoxRow] used to present preferences. */
|
|
1191
|
-
export interface AdwPreferencesRowProps extends GtkListBoxRowProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1242
|
+
export interface AdwPreferencesRowProps extends GtkListBoxRowProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1192
1243
|
/** The title of the preference represented by this row. */
|
|
1193
1244
|
title?: string;
|
|
1194
1245
|
/** Whether the user can copy the title from the label. */
|
|
@@ -1206,7 +1257,7 @@ export interface AdwPreferencesRowProps extends GtkListBoxRowProps, GtkAccessibl
|
|
|
1206
1257
|
onNotifyUseUnderline?: NotifyHandler;
|
|
1207
1258
|
}
|
|
1208
1259
|
/** A window to present an application's preferences. */
|
|
1209
|
-
export interface AdwPreferencesWindowProps extends AdwWindowProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
1260
|
+
export interface AdwPreferencesWindowProps extends AdwWindowProps, GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
1210
1261
|
/**
|
|
1211
1262
|
* Whether gestures and shortcuts for closing subpages are enabled.
|
|
1212
1263
|
* @deprecated
|
|
@@ -1229,8 +1280,8 @@ export interface AdwPreferencesWindowProps extends AdwWindowProps, GtkAccessible
|
|
|
1229
1280
|
* The name of the currently visible page.
|
|
1230
1281
|
* @deprecated
|
|
1231
1282
|
*/
|
|
1232
|
-
visiblePageName?: string;
|
|
1233
|
-
'visible-page-name'?: string;
|
|
1283
|
+
visiblePageName?: string | null;
|
|
1284
|
+
'visible-page-name'?: string | null;
|
|
1234
1285
|
onNotifyCanNavigateBack?: NotifyHandler;
|
|
1235
1286
|
onNotifySearchEnabled?: NotifyHandler;
|
|
1236
1287
|
onNotifyVisiblePage?: NotifyHandler;
|
|
@@ -1247,7 +1298,7 @@ export interface AdwShortcutLabelProps extends GtkWidgetProps, GtkAccessibleProp
|
|
|
1247
1298
|
onNotifyDisabledText?: NotifyHandler;
|
|
1248
1299
|
}
|
|
1249
1300
|
/** A dialog that displays application's keyboard shortcuts. */
|
|
1250
|
-
export interface AdwShortcutsDialogProps extends AdwDialogProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkShortcutManagerProps {
|
|
1301
|
+
export interface AdwShortcutsDialogProps extends AdwDialogProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkShortcutManagerProps {
|
|
1251
1302
|
}
|
|
1252
1303
|
/** Adaptive sidebar widget. */
|
|
1253
1304
|
export interface AdwSidebarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
@@ -1263,29 +1314,30 @@ export interface AdwSidebarProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
1263
1314
|
mode?: AdwSidebarModeNick | Adw.SidebarMode;
|
|
1264
1315
|
/** The placeholder widget. */
|
|
1265
1316
|
placeholder?: Gtk.Widget | null;
|
|
1317
|
+
/** A widget to be displayed before the sidebar items. */
|
|
1318
|
+
prefix?: Gtk.Widget | null;
|
|
1266
1319
|
/** The index of the currently selected item. */
|
|
1267
1320
|
selected?: number;
|
|
1268
|
-
/**
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
onDrop?:
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
onDropValueLoaded?: (index: number, value: GObject.Value) => void;
|
|
1276
|
-
/** Emitted when a context menu is opened or closed for @item. */
|
|
1277
|
-
onSetupMenu?: (item: Adw.SidebarItem) => void;
|
|
1321
|
+
/** A widget to be displayed after the sidebar items. */
|
|
1322
|
+
suffix?: Gtk.Widget | null;
|
|
1323
|
+
onActivated?: Adw.Sidebar.SignalSignatures['activated'];
|
|
1324
|
+
onDrop?: Adw.Sidebar.SignalSignatures['drop'];
|
|
1325
|
+
onDropEnter?: Adw.Sidebar.SignalSignatures['drop-enter'];
|
|
1326
|
+
onDropValueLoaded?: Adw.Sidebar.SignalSignatures['drop-value-loaded'];
|
|
1327
|
+
onSetupMenu?: Adw.Sidebar.SignalSignatures['setup-menu'];
|
|
1278
1328
|
onNotifyDropPreload?: NotifyHandler;
|
|
1279
1329
|
onNotifyFilter?: NotifyHandler;
|
|
1280
1330
|
onNotifyMenuModel?: NotifyHandler;
|
|
1281
1331
|
onNotifyMode?: NotifyHandler;
|
|
1282
1332
|
onNotifyPlaceholder?: NotifyHandler;
|
|
1333
|
+
onNotifyPrefix?: NotifyHandler;
|
|
1283
1334
|
onNotifySelected?: NotifyHandler;
|
|
1335
|
+
onNotifySuffix?: NotifyHandler;
|
|
1284
1336
|
}
|
|
1285
1337
|
/** An [class@ActionRow] with an embedded spin button. */
|
|
1286
|
-
export interface AdwSpinRowProps extends AdwActionRowProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
1338
|
+
export interface AdwSpinRowProps extends AdwActionRowProps, AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
1287
1339
|
/** The adjustment that holds the value of the spin row. */
|
|
1288
|
-
adjustment?: Gtk.Adjustment
|
|
1340
|
+
adjustment?: Gtk.Adjustment;
|
|
1289
1341
|
/** The acceleration rate when you hold down a button or key. */
|
|
1290
1342
|
climbRate?: number;
|
|
1291
1343
|
'climb-rate'?: number;
|
|
@@ -1303,12 +1355,9 @@ export interface AdwSpinRowProps extends AdwActionRowProps, GtkAccessibleProps,
|
|
|
1303
1355
|
value?: number;
|
|
1304
1356
|
/** Whether the spin row should wrap upon reaching its limits. */
|
|
1305
1357
|
wrap?: boolean;
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
onOutput?: () => void;
|
|
1310
|
-
/** Emitted right after the spinbutton wraps. */
|
|
1311
|
-
onWrapped?: () => void;
|
|
1358
|
+
onInput?: Adw.SpinRow.SignalSignatures['input'];
|
|
1359
|
+
onOutput?: Adw.SpinRow.SignalSignatures['output'];
|
|
1360
|
+
onWrapped?: Adw.SpinRow.SignalSignatures['wrapped'];
|
|
1312
1361
|
onNotifyAdjustment?: NotifyHandler;
|
|
1313
1362
|
onNotifyClimbRate?: NotifyHandler;
|
|
1314
1363
|
onNotifyDigits?: NotifyHandler;
|
|
@@ -1334,10 +1383,10 @@ export interface AdwSplitButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
1334
1383
|
dropdownTooltip?: string;
|
|
1335
1384
|
'dropdown-tooltip'?: string;
|
|
1336
1385
|
/** The name of the icon used to automatically populate the button. */
|
|
1337
|
-
iconName?: string;
|
|
1338
|
-
'icon-name'?: string;
|
|
1386
|
+
iconName?: string | null;
|
|
1387
|
+
'icon-name'?: string | null;
|
|
1339
1388
|
/** The label for the button. */
|
|
1340
|
-
label?: string;
|
|
1389
|
+
label?: string | null;
|
|
1341
1390
|
/** The `GMenuModel` from which the popup will be created. */
|
|
1342
1391
|
menuModel?: Gio.MenuModel | null;
|
|
1343
1392
|
'menu-model'?: Gio.MenuModel | null;
|
|
@@ -1346,10 +1395,8 @@ export interface AdwSplitButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
1346
1395
|
/** Whether an underline in the text indicates a mnemonic. */
|
|
1347
1396
|
useUnderline?: boolean;
|
|
1348
1397
|
'use-underline'?: boolean;
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
/** Emitted when the button has been activated (pressed and released). */
|
|
1352
|
-
onClicked?: () => void;
|
|
1398
|
+
onActivate?: Adw.SplitButton.SignalSignatures['activate'];
|
|
1399
|
+
onClicked?: Adw.SplitButton.SignalSignatures['clicked'];
|
|
1353
1400
|
onNotifyCanShrink?: NotifyHandler;
|
|
1354
1401
|
onNotifyChild?: NotifyHandler;
|
|
1355
1402
|
onNotifyDirection?: NotifyHandler;
|
|
@@ -1421,10 +1468,10 @@ export interface AdwStatusPageProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
1421
1468
|
/** The child widget. */
|
|
1422
1469
|
child?: Gtk.Widget | null;
|
|
1423
1470
|
/** The description markup to be displayed below the title. */
|
|
1424
|
-
description?: string;
|
|
1471
|
+
description?: string | null;
|
|
1425
1472
|
/** The name of the icon to be used. */
|
|
1426
|
-
iconName?: string;
|
|
1427
|
-
'icon-name'?: string;
|
|
1473
|
+
iconName?: string | null;
|
|
1474
|
+
'icon-name'?: string | null;
|
|
1428
1475
|
/** The paintable to be used. */
|
|
1429
1476
|
paintable?: Gdk.Paintable | null;
|
|
1430
1477
|
/** The title to be displayed below the icon. */
|
|
@@ -1436,10 +1483,10 @@ export interface AdwStatusPageProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
1436
1483
|
onNotifyTitle?: NotifyHandler;
|
|
1437
1484
|
}
|
|
1438
1485
|
/** An interface for swipeable widgets. */
|
|
1439
|
-
export interface AdwSwipeableProps
|
|
1486
|
+
export interface AdwSwipeableProps {
|
|
1440
1487
|
}
|
|
1441
1488
|
/** A [class@Gtk.ListBoxRow] used to represent two states. */
|
|
1442
|
-
export interface AdwSwitchRowProps extends AdwActionRowProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1489
|
+
export interface AdwSwitchRowProps extends AdwActionRowProps, AdwPreferencesRowProps, GtkListBoxRowProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1443
1490
|
/** Whether the switch row is in the "on" or "off" position. */
|
|
1444
1491
|
active?: boolean;
|
|
1445
1492
|
onNotifyActive?: NotifyHandler;
|
|
@@ -1464,10 +1511,8 @@ export interface AdwTabBarProps extends GtkWidgetProps, GtkAccessibleProps, GtkB
|
|
|
1464
1511
|
'start-action-widget'?: Gtk.Widget | null;
|
|
1465
1512
|
/** The tab view the tab bar controls. */
|
|
1466
1513
|
view?: Adw.TabView | null;
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
/** Emitted when the dropped content is preloaded. */
|
|
1470
|
-
onExtraDragValue?: (page: Adw.TabPage, value: GObject.Value) => void;
|
|
1514
|
+
onExtraDragDrop?: Adw.TabBar.SignalSignatures['extra-drag-drop'];
|
|
1515
|
+
onExtraDragValue?: Adw.TabBar.SignalSignatures['extra-drag-value'];
|
|
1471
1516
|
onNotifyAutohide?: NotifyHandler;
|
|
1472
1517
|
onNotifyEndActionWidget?: NotifyHandler;
|
|
1473
1518
|
onNotifyExpandTabs?: NotifyHandler;
|
|
@@ -1480,10 +1525,8 @@ export interface AdwTabBarProps extends GtkWidgetProps, GtkAccessibleProps, GtkB
|
|
|
1480
1525
|
export interface AdwTabButtonProps extends GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1481
1526
|
/** The view the tab button displays. */
|
|
1482
1527
|
view?: Adw.TabView | null;
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
/** Emitted when the button has been activated (pressed and released). */
|
|
1486
|
-
onClicked?: () => void;
|
|
1528
|
+
onActivate?: Adw.TabButton.SignalSignatures['activate'];
|
|
1529
|
+
onClicked?: Adw.TabButton.SignalSignatures['clicked'];
|
|
1487
1530
|
onNotifyView?: NotifyHandler;
|
|
1488
1531
|
}
|
|
1489
1532
|
/** A tab overview for [class@TabView]. */
|
|
@@ -1514,12 +1557,9 @@ export interface AdwTabOverviewProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
1514
1557
|
'show-start-title-buttons'?: boolean;
|
|
1515
1558
|
/** The tab view the overview controls. */
|
|
1516
1559
|
view?: Adw.TabView | null;
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
onExtraDragDrop?: (page: Adw.TabPage, value: GObject.Value) => void;
|
|
1521
|
-
/** Emitted when the dropped content is preloaded. */
|
|
1522
|
-
onExtraDragValue?: (page: Adw.TabPage, value: GObject.Value) => void;
|
|
1560
|
+
onCreateTab?: Adw.TabOverview.SignalSignatures['create-tab'];
|
|
1561
|
+
onExtraDragDrop?: Adw.TabOverview.SignalSignatures['extra-drag-drop'];
|
|
1562
|
+
onExtraDragValue?: Adw.TabOverview.SignalSignatures['extra-drag-value'];
|
|
1523
1563
|
onNotifyChild?: NotifyHandler;
|
|
1524
1564
|
onNotifyEnableNewTab?: NotifyHandler;
|
|
1525
1565
|
onNotifyEnableSearch?: NotifyHandler;
|
|
@@ -1534,8 +1574,8 @@ export interface AdwTabOverviewProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
1534
1574
|
/** A dynamic tabbed container. */
|
|
1535
1575
|
export interface AdwTabViewProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1536
1576
|
/** Default page icon. */
|
|
1537
|
-
defaultIcon?: Gio.Icon
|
|
1538
|
-
'default-icon'?: Gio.Icon
|
|
1577
|
+
defaultIcon?: Gio.Icon;
|
|
1578
|
+
'default-icon'?: Gio.Icon;
|
|
1539
1579
|
/** Tab context menu model. */
|
|
1540
1580
|
menuModel?: Gio.MenuModel | null;
|
|
1541
1581
|
'menu-model'?: Gio.MenuModel | null;
|
|
@@ -1544,20 +1584,13 @@ export interface AdwTabViewProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
1544
1584
|
'selected-page'?: Adw.TabPage | null;
|
|
1545
1585
|
/** The enabled shortcuts. */
|
|
1546
1586
|
shortcuts?: number;
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
onPageAttached?: (page: Adw.TabPage, position: number) => void;
|
|
1555
|
-
/** Emitted when a page has been removed or transferred to another view. */
|
|
1556
|
-
onPageDetached?: (page: Adw.TabPage, position: number) => void;
|
|
1557
|
-
/** Emitted after @page has been reordered to @position. */
|
|
1558
|
-
onPageReordered?: (page: Adw.TabPage, position: number) => void;
|
|
1559
|
-
/** Emitted when a context menu is opened or closed for @page. */
|
|
1560
|
-
onSetupMenu?: (page: Adw.TabPage) => void;
|
|
1587
|
+
onClosePage?: Adw.TabView.SignalSignatures['close-page'];
|
|
1588
|
+
onCreateWindow?: Adw.TabView.SignalSignatures['create-window'];
|
|
1589
|
+
onIndicatorActivated?: Adw.TabView.SignalSignatures['indicator-activated'];
|
|
1590
|
+
onPageAttached?: Adw.TabView.SignalSignatures['page-attached'];
|
|
1591
|
+
onPageDetached?: Adw.TabView.SignalSignatures['page-detached'];
|
|
1592
|
+
onPageReordered?: Adw.TabView.SignalSignatures['page-reordered'];
|
|
1593
|
+
onSetupMenu?: Adw.TabView.SignalSignatures['setup-menu'];
|
|
1561
1594
|
onNotifyDefaultIcon?: NotifyHandler;
|
|
1562
1595
|
onNotifyMenuModel?: NotifyHandler;
|
|
1563
1596
|
onNotifySelectedPage?: NotifyHandler;
|
|
@@ -1574,8 +1607,8 @@ export interface AdwToggleGroupProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
1574
1607
|
/** The index of the active toggle. */
|
|
1575
1608
|
active?: number;
|
|
1576
1609
|
/** The name of the active toggle. */
|
|
1577
|
-
activeName?: string;
|
|
1578
|
-
'active-name'?: string;
|
|
1610
|
+
activeName?: string | null;
|
|
1611
|
+
'active-name'?: string | null;
|
|
1579
1612
|
/** Whether the toggles can be smaller than the natural size of their contents. */
|
|
1580
1613
|
canShrink?: boolean;
|
|
1581
1614
|
'can-shrink'?: boolean;
|
|
@@ -1587,7 +1620,7 @@ export interface AdwToggleGroupProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
1587
1620
|
onNotifyHomogeneous?: NotifyHandler;
|
|
1588
1621
|
}
|
|
1589
1622
|
/** A toggle within [class@ToggleGroup]. */
|
|
1590
|
-
export interface AdwToggleProps
|
|
1623
|
+
export interface AdwToggleProps {
|
|
1591
1624
|
/** The toggle child. */
|
|
1592
1625
|
child?: Gtk.Widget | null;
|
|
1593
1626
|
/** The description of the toggle. */
|
|
@@ -1595,10 +1628,10 @@ export interface AdwToggleProps extends GObjectProps {
|
|
|
1595
1628
|
/** Whether this toggle is enabled. */
|
|
1596
1629
|
enabled?: boolean;
|
|
1597
1630
|
/** The toggle icon name. */
|
|
1598
|
-
iconName?: string;
|
|
1599
|
-
'icon-name'?: string;
|
|
1631
|
+
iconName?: string | null;
|
|
1632
|
+
'icon-name'?: string | null;
|
|
1600
1633
|
/** The toggle label. */
|
|
1601
|
-
label?: string;
|
|
1634
|
+
label?: string | null;
|
|
1602
1635
|
/** The toggle name. */
|
|
1603
1636
|
name?: string;
|
|
1604
1637
|
/** The tooltip of the toggle. */
|
|
@@ -1661,8 +1694,8 @@ export interface AdwViewStackProps extends GtkWidgetProps, GtkAccessibleProps, G
|
|
|
1661
1694
|
visibleChild?: Gtk.Widget | null;
|
|
1662
1695
|
'visible-child'?: Gtk.Widget | null;
|
|
1663
1696
|
/** The name of the widget currently visible in the stack. */
|
|
1664
|
-
visibleChildName?: string;
|
|
1665
|
-
'visible-child-name'?: string;
|
|
1697
|
+
visibleChildName?: string | null;
|
|
1698
|
+
'visible-child-name'?: string | null;
|
|
1666
1699
|
onNotifyEnableTransitions?: NotifyHandler;
|
|
1667
1700
|
onNotifyHhomogeneous?: NotifyHandler;
|
|
1668
1701
|
onNotifyTransitionDuration?: NotifyHandler;
|
|
@@ -1696,14 +1729,19 @@ export interface AdwViewSwitcherSidebarProps extends GtkWidgetProps, GtkAccessib
|
|
|
1696
1729
|
mode?: AdwSidebarModeNick | Adw.SidebarMode;
|
|
1697
1730
|
/** The placeholder widget. */
|
|
1698
1731
|
placeholder?: Gtk.Widget | null;
|
|
1732
|
+
/** A widget to be displayed before the sidebar items. */
|
|
1733
|
+
prefix?: Gtk.Widget | null;
|
|
1699
1734
|
/** The stack the sidebar controls. */
|
|
1700
1735
|
stack?: Adw.ViewStack | null;
|
|
1701
|
-
/**
|
|
1702
|
-
|
|
1736
|
+
/** A widget to be displayed after the sidebar items. */
|
|
1737
|
+
suffix?: Gtk.Widget | null;
|
|
1738
|
+
onActivated?: Adw.ViewSwitcherSidebar.SignalSignatures['activated'];
|
|
1703
1739
|
onNotifyFilter?: NotifyHandler;
|
|
1704
1740
|
onNotifyMode?: NotifyHandler;
|
|
1705
1741
|
onNotifyPlaceholder?: NotifyHandler;
|
|
1742
|
+
onNotifyPrefix?: NotifyHandler;
|
|
1706
1743
|
onNotifyStack?: NotifyHandler;
|
|
1744
|
+
onNotifySuffix?: NotifyHandler;
|
|
1707
1745
|
}
|
|
1708
1746
|
/** A view switcher title. */
|
|
1709
1747
|
export interface AdwViewSwitcherTitleProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
@@ -1734,7 +1772,7 @@ export interface AdwViewSwitcherTitleProps extends GtkWidgetProps, GtkAccessible
|
|
|
1734
1772
|
onNotifyViewSwitcherEnabled?: NotifyHandler;
|
|
1735
1773
|
}
|
|
1736
1774
|
/** A freeform window. */
|
|
1737
|
-
export interface AdwWindowProps extends GtkWindowProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
1775
|
+
export interface AdwWindowProps extends GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
1738
1776
|
/** Whether adaptive preview is currently open. */
|
|
1739
1777
|
adaptivePreview?: boolean;
|
|
1740
1778
|
'adaptive-preview'?: boolean;
|
|
@@ -1805,71 +1843,48 @@ export interface AdwWrapBoxProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
1805
1843
|
onNotifyWrapPolicy?: NotifyHandler;
|
|
1806
1844
|
onNotifyWrapReverse?: NotifyHandler;
|
|
1807
1845
|
}
|
|
1808
|
-
/** `GActionGroup` represents a group of actions. */
|
|
1809
|
-
export interface GActionGroupProps {
|
|
1810
|
-
/** Signals that a new action was just added to the group. */
|
|
1811
|
-
onActionAdded?: (action_name: string) => void;
|
|
1812
|
-
/** Signals that the enabled status of the named action has changed. */
|
|
1813
|
-
onActionEnabledChanged?: (action_name: string, enabled: boolean) => void;
|
|
1814
|
-
/** Signals that an action is just about to be removed from the group. */
|
|
1815
|
-
onActionRemoved?: (action_name: string) => void;
|
|
1816
|
-
/** Signals that the state of the named action has changed. */
|
|
1817
|
-
onActionStateChanged?: (action_name: string, value: GLib.Variant) => void;
|
|
1818
|
-
}
|
|
1819
|
-
/** `GActionMap` is an interface for action containers. */
|
|
1820
|
-
export interface GActionMapProps {
|
|
1821
|
-
}
|
|
1822
|
-
/** A type for objects that have an initially floating reference. */
|
|
1823
|
-
export interface GInitiallyUnownedProps extends GObjectProps {
|
|
1824
|
-
}
|
|
1825
|
-
/** The base object type. */
|
|
1826
|
-
export interface GObjectProps {
|
|
1827
|
-
/** The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al. */
|
|
1828
|
-
onNotify?: (pspec: GObject.ParamSpec) => void;
|
|
1829
|
-
}
|
|
1830
1846
|
/** Displays information about a program. */
|
|
1831
|
-
export interface GtkAboutDialogProps extends GtkWindowProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
1847
|
+
export interface GtkAboutDialogProps extends GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
1832
1848
|
/** The people who contributed artwork to the program. */
|
|
1833
1849
|
artists?: string[];
|
|
1834
1850
|
/** The authors of the program. */
|
|
1835
1851
|
authors?: string[];
|
|
1836
1852
|
/** Comments about the program. */
|
|
1837
|
-
comments?: string;
|
|
1853
|
+
comments?: string | null;
|
|
1838
1854
|
/** Copyright information for the program. */
|
|
1839
|
-
copyright?: string;
|
|
1855
|
+
copyright?: string | null;
|
|
1840
1856
|
/** The people documenting the program. */
|
|
1841
1857
|
documenters?: string[];
|
|
1842
1858
|
/** The license of the program, as free-form text. */
|
|
1843
|
-
license?: string;
|
|
1859
|
+
license?: string | null;
|
|
1844
1860
|
/** The license of the program. */
|
|
1845
1861
|
licenseType?: GtkLicenseNick | Gtk.License;
|
|
1846
1862
|
'license-type'?: GtkLicenseNick | Gtk.License;
|
|
1847
1863
|
/** A logo for the about box. */
|
|
1848
1864
|
logo?: Gdk.Paintable | null;
|
|
1849
1865
|
/** A named icon to use as the logo for the about box. */
|
|
1850
|
-
logoIconName?: string;
|
|
1851
|
-
'logo-icon-name'?: string;
|
|
1866
|
+
logoIconName?: string | null;
|
|
1867
|
+
'logo-icon-name'?: string | null;
|
|
1852
1868
|
/** The name of the program. */
|
|
1853
|
-
programName?: string;
|
|
1854
|
-
'program-name'?: string;
|
|
1869
|
+
programName?: string | null;
|
|
1870
|
+
'program-name'?: string | null;
|
|
1855
1871
|
/** Information about the system on which the program is running. */
|
|
1856
|
-
systemInformation?: string;
|
|
1857
|
-
'system-information'?: string;
|
|
1872
|
+
systemInformation?: string | null;
|
|
1873
|
+
'system-information'?: string | null;
|
|
1858
1874
|
/** Credits to the translators. */
|
|
1859
|
-
translatorCredits?: string;
|
|
1860
|
-
'translator-credits'?: string;
|
|
1875
|
+
translatorCredits?: string | null;
|
|
1876
|
+
'translator-credits'?: string | null;
|
|
1861
1877
|
/** The version of the program. */
|
|
1862
|
-
version?: string;
|
|
1878
|
+
version?: string | null;
|
|
1863
1879
|
/** The URL for the link to the website of the program. */
|
|
1864
|
-
website?: string;
|
|
1880
|
+
website?: string | null;
|
|
1865
1881
|
/** The label for the link to the website of the program. */
|
|
1866
|
-
websiteLabel?: string;
|
|
1867
|
-
'website-label'?: string;
|
|
1882
|
+
websiteLabel?: string | null;
|
|
1883
|
+
'website-label'?: string | null;
|
|
1868
1884
|
/** Whether to wrap the text in the license dialog. */
|
|
1869
1885
|
wrapLicense?: boolean;
|
|
1870
1886
|
'wrap-license'?: boolean;
|
|
1871
|
-
|
|
1872
|
-
onActivateLink?: (uri: string) => void;
|
|
1887
|
+
onActivateLink?: Gtk.AboutDialog.SignalSignatures['activate-link'];
|
|
1873
1888
|
onNotifyArtists?: NotifyHandler;
|
|
1874
1889
|
onNotifyAuthors?: NotifyHandler;
|
|
1875
1890
|
onNotifyComments?: NotifyHandler;
|
|
@@ -1888,7 +1903,7 @@ export interface GtkAboutDialogProps extends GtkWindowProps, GtkAccessibleProps,
|
|
|
1888
1903
|
onNotifyWrapLicense?: NotifyHandler;
|
|
1889
1904
|
}
|
|
1890
1905
|
/** An interface for accessible objects containing links. */
|
|
1891
|
-
export interface GtkAccessibleHypertextProps
|
|
1906
|
+
export interface GtkAccessibleHypertextProps {
|
|
1892
1907
|
}
|
|
1893
1908
|
/** An interface for describing UI elements for Assistive Technologies. */
|
|
1894
1909
|
export interface GtkAccessibleProps {
|
|
@@ -1898,10 +1913,10 @@ export interface GtkAccessibleProps {
|
|
|
1898
1913
|
onNotifyAccessibleRole?: NotifyHandler;
|
|
1899
1914
|
}
|
|
1900
1915
|
/** An interface for accessible objects containing a numeric value. */
|
|
1901
|
-
export interface GtkAccessibleRangeProps
|
|
1916
|
+
export interface GtkAccessibleRangeProps {
|
|
1902
1917
|
}
|
|
1903
1918
|
/** An interface for accessible objects containing formatted text. */
|
|
1904
|
-
export interface GtkAccessibleTextProps
|
|
1919
|
+
export interface GtkAccessibleTextProps {
|
|
1905
1920
|
}
|
|
1906
1921
|
/** Presents contextual actions. */
|
|
1907
1922
|
export interface GtkActionBarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
@@ -1910,20 +1925,20 @@ export interface GtkActionBarProps extends GtkWidgetProps, GtkAccessibleProps, G
|
|
|
1910
1925
|
onNotifyRevealed?: NotifyHandler;
|
|
1911
1926
|
}
|
|
1912
1927
|
/** Provides a way to associate widgets with actions. */
|
|
1913
|
-
export interface GtkActionableProps
|
|
1928
|
+
export interface GtkActionableProps {
|
|
1914
1929
|
/** The name of the action with which this widget should be associated. */
|
|
1915
|
-
actionName?: string;
|
|
1916
|
-
'action-name'?: string;
|
|
1930
|
+
actionName?: string | null;
|
|
1931
|
+
'action-name'?: string | null;
|
|
1917
1932
|
/** The target value of the actionable widget's action. */
|
|
1918
|
-
actionTarget?: GLib.Variant
|
|
1919
|
-
'action-target'?: GLib.Variant
|
|
1933
|
+
actionTarget?: GLib.Variant;
|
|
1934
|
+
'action-target'?: GLib.Variant;
|
|
1920
1935
|
onNotifyActionName?: NotifyHandler;
|
|
1921
1936
|
onNotifyActionTarget?: NotifyHandler;
|
|
1922
1937
|
}
|
|
1923
1938
|
/** The `GtkAppChooserButton` lets the user select an application. */
|
|
1924
1939
|
export interface GtkAppChooserButtonProps extends GtkWidgetProps, GtkAccessibleProps, GtkAppChooserProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1925
1940
|
/** The text to show at the top of the dialog that can be opened from the button. */
|
|
1926
|
-
heading?: string;
|
|
1941
|
+
heading?: string | null;
|
|
1927
1942
|
/** Whether the app chooser dialog should be modal. */
|
|
1928
1943
|
modal?: boolean;
|
|
1929
1944
|
/** Determines whether the dropdown menu shows the default application on top for the provided content type. */
|
|
@@ -1932,28 +1947,25 @@ export interface GtkAppChooserButtonProps extends GtkWidgetProps, GtkAccessibleP
|
|
|
1932
1947
|
/** Determines whether the dropdown menu shows an item to open a `GtkAppChooserDialog`. */
|
|
1933
1948
|
showDialogItem?: boolean;
|
|
1934
1949
|
'show-dialog-item'?: boolean;
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
onChanged?: () => void;
|
|
1939
|
-
/** Emitted when a custom item is activated. */
|
|
1940
|
-
onCustomItemActivated?: (item_name: string) => void;
|
|
1950
|
+
onActivate?: Gtk.AppChooserButton.SignalSignatures['activate'];
|
|
1951
|
+
onChanged?: Gtk.AppChooserButton.SignalSignatures['changed'];
|
|
1952
|
+
onCustomItemActivated?: Gtk.AppChooserButton.SignalSignatures['custom-item-activated'];
|
|
1941
1953
|
onNotifyHeading?: NotifyHandler;
|
|
1942
1954
|
onNotifyModal?: NotifyHandler;
|
|
1943
1955
|
onNotifyShowDefaultItem?: NotifyHandler;
|
|
1944
1956
|
onNotifyShowDialogItem?: NotifyHandler;
|
|
1945
1957
|
}
|
|
1946
1958
|
/** `GtkAppChooserDialog` shows a `GtkAppChooserWidget` inside a `GtkDialog`. */
|
|
1947
|
-
export interface GtkAppChooserDialogProps extends GtkDialogProps, GtkAccessibleProps, GtkAppChooserProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
1959
|
+
export interface GtkAppChooserDialogProps extends GtkDialogProps, GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkAppChooserProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
1948
1960
|
/** The GFile used by the `GtkAppChooserDialog`. */
|
|
1949
|
-
gfile?: Gio.File
|
|
1961
|
+
gfile?: Gio.File;
|
|
1950
1962
|
/** The text to show at the top of the dialog. */
|
|
1951
|
-
heading?: string;
|
|
1963
|
+
heading?: string | null;
|
|
1952
1964
|
onNotifyGfile?: NotifyHandler;
|
|
1953
1965
|
onNotifyHeading?: NotifyHandler;
|
|
1954
1966
|
}
|
|
1955
1967
|
/** `GtkAppChooser` is an interface for widgets which allow the user to choose an application. */
|
|
1956
|
-
export interface GtkAppChooserProps
|
|
1968
|
+
export interface GtkAppChooserProps {
|
|
1957
1969
|
/** The content type of the `GtkAppChooser` object. */
|
|
1958
1970
|
contentType?: string;
|
|
1959
1971
|
'content-type'?: string;
|
|
@@ -1962,8 +1974,8 @@ export interface GtkAppChooserProps extends GtkWidgetProps {
|
|
|
1962
1974
|
/** `GtkAppChooserWidget` is a widget for selecting applications. */
|
|
1963
1975
|
export interface GtkAppChooserWidgetProps extends GtkWidgetProps, GtkAccessibleProps, GtkAppChooserProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1964
1976
|
/** The text that appears in the widget when there are no applications for the given content type. */
|
|
1965
|
-
defaultText?: string;
|
|
1966
|
-
'default-text'?: string;
|
|
1977
|
+
defaultText?: string | null;
|
|
1978
|
+
'default-text'?: string | null;
|
|
1967
1979
|
/** If %TRUE, the app chooser presents all applications in a single list, without subsections for default, recommended or related applications. */
|
|
1968
1980
|
showAll?: boolean;
|
|
1969
1981
|
'show-all'?: boolean;
|
|
@@ -1979,10 +1991,8 @@ export interface GtkAppChooserWidgetProps extends GtkWidgetProps, GtkAccessibleP
|
|
|
1979
1991
|
/** Determines whether the app chooser should show a section for recommended applications. */
|
|
1980
1992
|
showRecommended?: boolean;
|
|
1981
1993
|
'show-recommended'?: boolean;
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
/** Emitted when an application item is selected from the widget's list. */
|
|
1985
|
-
onApplicationSelected?: (application: Gio.AppInfo) => void;
|
|
1994
|
+
onApplicationActivated?: Gtk.AppChooserWidget.SignalSignatures['application-activated'];
|
|
1995
|
+
onApplicationSelected?: Gtk.AppChooserWidget.SignalSignatures['application-selected'];
|
|
1986
1996
|
onNotifyDefaultText?: NotifyHandler;
|
|
1987
1997
|
onNotifyShowAll?: NotifyHandler;
|
|
1988
1998
|
onNotifyShowDefault?: NotifyHandler;
|
|
@@ -1991,12 +2001,10 @@ export interface GtkAppChooserWidgetProps extends GtkWidgetProps, GtkAccessibleP
|
|
|
1991
2001
|
onNotifyShowRecommended?: NotifyHandler;
|
|
1992
2002
|
}
|
|
1993
2003
|
/** A `GtkWindow` subclass that integrates with `GtkApplication`. */
|
|
1994
|
-
export interface GtkApplicationWindowProps extends GtkWindowProps,
|
|
2004
|
+
export interface GtkApplicationWindowProps extends GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
1995
2005
|
/** If this property is true, the window will display a menubar unless it is shown by the desktop shell. */
|
|
1996
2006
|
showMenubar?: boolean;
|
|
1997
2007
|
'show-menubar'?: boolean;
|
|
1998
|
-
/** The handler for this signal should persist any application-specific state of @window into @dict. */
|
|
1999
|
-
onSaveState?: (dict: GLib.VariantDict) => void;
|
|
2000
2008
|
onNotifyShowMenubar?: NotifyHandler;
|
|
2001
2009
|
}
|
|
2002
2010
|
/** Preserves the aspect ratio of its child. */
|
|
@@ -2019,38 +2027,18 @@ export interface GtkAspectFrameProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
2019
2027
|
onNotifyYalign?: NotifyHandler;
|
|
2020
2028
|
}
|
|
2021
2029
|
/** `GtkAssistant` is used to represent a complex as a series of steps. */
|
|
2022
|
-
export interface GtkAssistantProps extends GtkWindowProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
2030
|
+
export interface GtkAssistantProps extends GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
2023
2031
|
/**
|
|
2024
2032
|
* %TRUE if the assistant uses a `GtkHeaderBar` for action buttons instead of the action-area.
|
|
2025
2033
|
* @deprecated
|
|
2026
2034
|
*/
|
|
2027
2035
|
useHeaderBar?: number;
|
|
2028
2036
|
'use-header-bar'?: number;
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
/**
|
|
2035
|
-
* Emitted when then the cancel button is clicked.
|
|
2036
|
-
* @deprecated
|
|
2037
|
-
*/
|
|
2038
|
-
onCancel?: () => void;
|
|
2039
|
-
/**
|
|
2040
|
-
* Emitted either when the close button of a summary page is clicked, or when the apply button in the last page in the flow (of type %GTK_ASSISTANT_PAGE_CONFIRM) is clicked.
|
|
2041
|
-
* @deprecated
|
|
2042
|
-
*/
|
|
2043
|
-
onClose?: () => void;
|
|
2044
|
-
/**
|
|
2045
|
-
* The action signal for the Escape binding.
|
|
2046
|
-
* @deprecated
|
|
2047
|
-
*/
|
|
2048
|
-
onEscape?: () => void;
|
|
2049
|
-
/**
|
|
2050
|
-
* Emitted when a new page is set as the assistant's current page, before making the new page visible.
|
|
2051
|
-
* @deprecated
|
|
2052
|
-
*/
|
|
2053
|
-
onPrepare?: (page: Gtk.Widget) => void;
|
|
2037
|
+
onApply?: Gtk.Assistant.SignalSignatures['apply'];
|
|
2038
|
+
onCancel?: Gtk.Assistant.SignalSignatures['cancel'];
|
|
2039
|
+
onClose?: Gtk.Assistant.SignalSignatures['close'];
|
|
2040
|
+
onEscape?: Gtk.Assistant.SignalSignatures['escape'];
|
|
2041
|
+
onPrepare?: Gtk.Assistant.SignalSignatures['prepare'];
|
|
2054
2042
|
onNotifyUseHeaderBar?: NotifyHandler;
|
|
2055
2043
|
}
|
|
2056
2044
|
/** Arranges child widgets into a single row or column. */
|
|
@@ -2084,17 +2072,15 @@ export interface GtkButtonProps extends GtkWidgetProps, GtkAccessibleProps, GtkA
|
|
|
2084
2072
|
hasFrame?: boolean;
|
|
2085
2073
|
'has-frame'?: boolean;
|
|
2086
2074
|
/** The name of the icon used to automatically populate the button. */
|
|
2087
|
-
iconName?: string;
|
|
2088
|
-
'icon-name'?: string;
|
|
2075
|
+
iconName?: string | null;
|
|
2076
|
+
'icon-name'?: string | null;
|
|
2089
2077
|
/** Text of the label inside the button, if the button contains a label widget. */
|
|
2090
|
-
label?: string;
|
|
2078
|
+
label?: string | null;
|
|
2091
2079
|
/** If set, an underline in the text indicates that the following character is to be used as mnemonic. */
|
|
2092
2080
|
useUnderline?: boolean;
|
|
2093
2081
|
'use-underline'?: boolean;
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
/** Emitted when the button has been activated (pressed and released). */
|
|
2097
|
-
onClicked?: () => void;
|
|
2082
|
+
onActivate?: Gtk.Button.SignalSignatures['activate'];
|
|
2083
|
+
onClicked?: Gtk.Button.SignalSignatures['clicked'];
|
|
2098
2084
|
onNotifyCanShrink?: NotifyHandler;
|
|
2099
2085
|
onNotifyChild?: NotifyHandler;
|
|
2100
2086
|
onNotifyHasFrame?: NotifyHandler;
|
|
@@ -2105,7 +2091,7 @@ export interface GtkButtonProps extends GtkWidgetProps, GtkAccessibleProps, GtkA
|
|
|
2105
2091
|
/** Displays a Gregorian calendar, one month at a time. */
|
|
2106
2092
|
export interface GtkCalendarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2107
2093
|
/** The selected date. */
|
|
2108
|
-
date?: GLib.DateTime
|
|
2094
|
+
date?: GLib.DateTime;
|
|
2109
2095
|
/**
|
|
2110
2096
|
* The selected day (as a number between 1 and 31).
|
|
2111
2097
|
* @deprecated
|
|
@@ -2130,16 +2116,11 @@ export interface GtkCalendarProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
2130
2116
|
* @deprecated
|
|
2131
2117
|
*/
|
|
2132
2118
|
year?: number;
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
onNextYear?: () => void;
|
|
2139
|
-
/** Emitted when the user switches to the previous month. */
|
|
2140
|
-
onPrevMonth?: () => void;
|
|
2141
|
-
/** Emitted when user switches to the previous year. */
|
|
2142
|
-
onPrevYear?: () => void;
|
|
2119
|
+
onDaySelected?: Gtk.Calendar.SignalSignatures['day-selected'];
|
|
2120
|
+
onNextMonth?: Gtk.Calendar.SignalSignatures['next-month'];
|
|
2121
|
+
onNextYear?: Gtk.Calendar.SignalSignatures['next-year'];
|
|
2122
|
+
onPrevMonth?: Gtk.Calendar.SignalSignatures['prev-month'];
|
|
2123
|
+
onPrevYear?: Gtk.Calendar.SignalSignatures['prev-year'];
|
|
2143
2124
|
onNotifyDate?: NotifyHandler;
|
|
2144
2125
|
onNotifyDay?: NotifyHandler;
|
|
2145
2126
|
onNotifyMonth?: NotifyHandler;
|
|
@@ -2149,14 +2130,12 @@ export interface GtkCalendarProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
2149
2130
|
onNotifyYear?: NotifyHandler;
|
|
2150
2131
|
}
|
|
2151
2132
|
/** 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. */
|
|
2152
|
-
export interface GtkCellEditableProps
|
|
2133
|
+
export interface GtkCellEditableProps {
|
|
2153
2134
|
/** Indicates whether editing on the cell has been canceled. */
|
|
2154
2135
|
editingCanceled?: boolean;
|
|
2155
2136
|
'editing-canceled'?: boolean;
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
/** This signal is meant to indicate that the cell is finished editing, and the @cell_editable widget is being removed and may subsequently be destroyed. */
|
|
2159
|
-
onRemoveWidget?: () => void;
|
|
2137
|
+
onEditingDone?: Gtk.CellEditable.SignalSignatures['editing-done'];
|
|
2138
|
+
onRemoveWidget?: Gtk.CellEditable.SignalSignatures['remove-widget'];
|
|
2160
2139
|
onNotifyEditingCanceled?: NotifyHandler;
|
|
2161
2140
|
}
|
|
2162
2141
|
/** 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… */
|
|
@@ -2165,11 +2144,11 @@ export interface GtkCellLayoutProps {
|
|
|
2165
2144
|
/** A widget displaying a single row of a GtkTreeModel A `GtkCellView` displays a single row of a `GtkTreeModel` using a `GtkCellArea` and `GtkCellAreaContext`. */
|
|
2166
2145
|
export interface GtkCellViewProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkCellLayoutProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
2167
2146
|
/** 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. */
|
|
2168
|
-
cellArea?: Gtk.CellArea
|
|
2169
|
-
'cell-area'?: Gtk.CellArea
|
|
2147
|
+
cellArea?: Gtk.CellArea;
|
|
2148
|
+
'cell-area'?: Gtk.CellArea;
|
|
2170
2149
|
/** The `GtkCellAreaContext` used to compute the geometry of the cell view. */
|
|
2171
|
-
cellAreaContext?: Gtk.CellAreaContext
|
|
2172
|
-
'cell-area-context'?: Gtk.CellAreaContext
|
|
2150
|
+
cellAreaContext?: Gtk.CellAreaContext;
|
|
2151
|
+
'cell-area-context'?: Gtk.CellAreaContext;
|
|
2173
2152
|
/** Whether all cells should be draw as sensitive for this view regardless of the actual cell properties (used to make menus with submenus appear sensitive when the items in submenus might be insensitive… */
|
|
2174
2153
|
drawSensitive?: boolean;
|
|
2175
2154
|
'draw-sensitive'?: boolean;
|
|
@@ -2214,18 +2193,16 @@ export interface GtkCheckButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
2214
2193
|
/** The child widget. */
|
|
2215
2194
|
child?: Gtk.Widget | null;
|
|
2216
2195
|
/** The check button whose group this widget belongs to. */
|
|
2217
|
-
group?: Gtk.CheckButton
|
|
2196
|
+
group?: Gtk.CheckButton;
|
|
2218
2197
|
/** If the check button is in an “in between” state. */
|
|
2219
2198
|
inconsistent?: boolean;
|
|
2220
2199
|
/** Text of the label inside the check button, if it contains a label widget. */
|
|
2221
|
-
label?: string;
|
|
2200
|
+
label?: string | null;
|
|
2222
2201
|
/** If set, an underline in the text indicates that the following character is to be used as mnemonic. */
|
|
2223
2202
|
useUnderline?: boolean;
|
|
2224
2203
|
'use-underline'?: boolean;
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
/** Emitted when the buttons's [property@Gtk.CheckButton:active] property changes. */
|
|
2228
|
-
onToggled?: () => void;
|
|
2204
|
+
onActivate?: Gtk.CheckButton.SignalSignatures['activate'];
|
|
2205
|
+
onToggled?: Gtk.CheckButton.SignalSignatures['toggled'];
|
|
2229
2206
|
onNotifyActive?: NotifyHandler;
|
|
2230
2207
|
onNotifyChild?: NotifyHandler;
|
|
2231
2208
|
onNotifyGroup?: NotifyHandler;
|
|
@@ -2242,16 +2219,14 @@ export interface GtkColorButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
2242
2219
|
'show-editor'?: boolean;
|
|
2243
2220
|
/** The title of the color chooser dialog */
|
|
2244
2221
|
title?: string;
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
/** Emitted when the user selects a color. */
|
|
2248
|
-
onColorSet?: () => void;
|
|
2222
|
+
onActivate?: Gtk.ColorButton.SignalSignatures['activate'];
|
|
2223
|
+
onColorSet?: Gtk.ColorButton.SignalSignatures['color-set'];
|
|
2249
2224
|
onNotifyModal?: NotifyHandler;
|
|
2250
2225
|
onNotifyShowEditor?: NotifyHandler;
|
|
2251
2226
|
onNotifyTitle?: NotifyHandler;
|
|
2252
2227
|
}
|
|
2253
2228
|
/** A dialog for choosing a color. */
|
|
2254
|
-
export interface GtkColorChooserDialogProps extends GtkDialogProps, GtkAccessibleProps, GtkBuildableProps, GtkColorChooserProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
2229
|
+
export interface GtkColorChooserDialogProps extends GtkDialogProps, GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkColorChooserProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
2255
2230
|
/** Whether the color chooser dialog is showing the single-color editor. */
|
|
2256
2231
|
showEditor?: boolean;
|
|
2257
2232
|
'show-editor'?: boolean;
|
|
@@ -2263,18 +2238,14 @@ export interface GtkColorChooserProps {
|
|
|
2263
2238
|
* The currently selected color, as a `GdkRGBA` struct.
|
|
2264
2239
|
* @deprecated
|
|
2265
2240
|
*/
|
|
2266
|
-
rgba?: Gdk.RGBA
|
|
2241
|
+
rgba?: Gdk.RGBA;
|
|
2267
2242
|
/**
|
|
2268
2243
|
* Whether colors may have alpha (translucency).
|
|
2269
2244
|
* @deprecated
|
|
2270
2245
|
*/
|
|
2271
2246
|
useAlpha?: boolean;
|
|
2272
2247
|
'use-alpha'?: boolean;
|
|
2273
|
-
|
|
2274
|
-
* Emitted when a color is activated from the color chooser.
|
|
2275
|
-
* @deprecated
|
|
2276
|
-
*/
|
|
2277
|
-
onColorActivated?: (color: Gdk.RGBA) => void;
|
|
2248
|
+
onColorActivated?: Gtk.ColorChooser.SignalSignatures['color-activated'];
|
|
2278
2249
|
onNotifyRgba?: NotifyHandler;
|
|
2279
2250
|
onNotifyUseAlpha?: NotifyHandler;
|
|
2280
2251
|
}
|
|
@@ -2290,9 +2261,8 @@ export interface GtkColorDialogButtonProps extends GtkWidgetProps, GtkAccessible
|
|
|
2290
2261
|
/** The `GtkColorDialog` that contains parameters for the color chooser dialog. */
|
|
2291
2262
|
dialog?: Gtk.ColorDialog | null;
|
|
2292
2263
|
/** The selected color. */
|
|
2293
|
-
rgba?: Gdk.RGBA
|
|
2294
|
-
|
|
2295
|
-
onActivate?: () => void;
|
|
2264
|
+
rgba?: Gdk.RGBA;
|
|
2265
|
+
onActivate?: Gtk.ColorDialogButton.SignalSignatures['activate'];
|
|
2296
2266
|
onNotifyDialog?: NotifyHandler;
|
|
2297
2267
|
onNotifyRgba?: NotifyHandler;
|
|
2298
2268
|
}
|
|
@@ -2332,8 +2302,7 @@ export interface GtkColumnViewProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
2332
2302
|
/** Behavior of the <kbd>Tab</kbd> key */
|
|
2333
2303
|
tabBehavior?: GtkListTabBehaviorNick | Gtk.ListTabBehavior;
|
|
2334
2304
|
'tab-behavior'?: GtkListTabBehaviorNick | Gtk.ListTabBehavior;
|
|
2335
|
-
|
|
2336
|
-
onActivate?: (position: number) => void;
|
|
2305
|
+
onActivate?: Gtk.ColumnView.SignalSignatures['activate'];
|
|
2337
2306
|
onNotifyEnableRubberband?: NotifyHandler;
|
|
2338
2307
|
onNotifyHeaderFactory?: NotifyHandler;
|
|
2339
2308
|
onNotifyModel?: NotifyHandler;
|
|
@@ -2349,8 +2318,8 @@ export interface GtkComboBoxProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
2349
2318
|
/** The item which is currently active. */
|
|
2350
2319
|
active?: number;
|
|
2351
2320
|
/** The value of the ID column of the active row. */
|
|
2352
|
-
activeId?: string;
|
|
2353
|
-
'active-id'?: string;
|
|
2321
|
+
activeId?: string | null;
|
|
2322
|
+
'active-id'?: string | null;
|
|
2354
2323
|
/** Whether the dropdown button is sensitive when the model is empty. */
|
|
2355
2324
|
buttonSensitivity?: GtkSensitivityTypeNick | Gtk.SensitivityType;
|
|
2356
2325
|
'button-sensitivity'?: GtkSensitivityTypeNick | Gtk.SensitivityType;
|
|
@@ -2373,18 +2342,12 @@ export interface GtkComboBoxProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
2373
2342
|
/** Whether the popup's width should be a fixed width matching the allocated width of the combo box. */
|
|
2374
2343
|
popupFixedWidth?: boolean;
|
|
2375
2344
|
'popup-fixed-width'?: boolean;
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
/** Emitted to move the active selection. */
|
|
2383
|
-
onMoveActive?: (scroll_type: Gtk.ScrollType) => void;
|
|
2384
|
-
/** Emitted to popdown the combo box list. */
|
|
2385
|
-
onPopdown?: () => void;
|
|
2386
|
-
/** Emitted to popup the combo box list. */
|
|
2387
|
-
onPopup?: () => void;
|
|
2345
|
+
onActivate?: Gtk.ComboBox.SignalSignatures['activate'];
|
|
2346
|
+
onChanged?: Gtk.ComboBox.SignalSignatures['changed'];
|
|
2347
|
+
onFormatEntryText?: Gtk.ComboBox.SignalSignatures['format-entry-text'];
|
|
2348
|
+
onMoveActive?: Gtk.ComboBox.SignalSignatures['move-active'];
|
|
2349
|
+
onPopdown?: Gtk.ComboBox.SignalSignatures['popdown'];
|
|
2350
|
+
onPopup?: Gtk.ComboBox.SignalSignatures['popup'];
|
|
2388
2351
|
onNotifyActive?: NotifyHandler;
|
|
2389
2352
|
onNotifyActiveId?: NotifyHandler;
|
|
2390
2353
|
onNotifyButtonSensitivity?: NotifyHandler;
|
|
@@ -2397,29 +2360,21 @@ export interface GtkComboBoxProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
2397
2360
|
onNotifyPopupFixedWidth?: NotifyHandler;
|
|
2398
2361
|
}
|
|
2399
2362
|
/** A `GtkComboBoxText` is a simple variant of `GtkComboBox` for text-only use cases. */
|
|
2400
|
-
export interface GtkComboBoxTextProps extends GtkComboBoxProps, GtkAccessibleProps, GtkBuildableProps, GtkCellEditableProps, GtkCellLayoutProps, GtkConstraintTargetProps {
|
|
2363
|
+
export interface GtkComboBoxTextProps extends GtkComboBoxProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkCellEditableProps, GtkCellLayoutProps, GtkConstraintTargetProps {
|
|
2401
2364
|
}
|
|
2402
2365
|
/** Makes it possible to use an object as source or target in a [class@Gtk.Constraint]. */
|
|
2403
2366
|
export interface GtkConstraintTargetProps {
|
|
2404
2367
|
}
|
|
2405
2368
|
/** Dialogs are a convenient way to prompt the user for a small amount of input. */
|
|
2406
|
-
export interface GtkDialogProps extends GtkWindowProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
2369
|
+
export interface GtkDialogProps extends GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
2407
2370
|
/**
|
|
2408
2371
|
* %TRUE if the dialog uses a headerbar for action buttons instead of the action-area.
|
|
2409
2372
|
* @deprecated
|
|
2410
2373
|
*/
|
|
2411
2374
|
useHeaderBar?: number;
|
|
2412
2375
|
'use-header-bar'?: number;
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
* @deprecated
|
|
2416
|
-
*/
|
|
2417
|
-
onClose?: () => void;
|
|
2418
|
-
/**
|
|
2419
|
-
* Emitted when an action widget is clicked.
|
|
2420
|
-
* @deprecated
|
|
2421
|
-
*/
|
|
2422
|
-
onResponse?: (response_id: Gtk.ResponseType) => void;
|
|
2376
|
+
onClose?: Gtk.Dialog.SignalSignatures['close'];
|
|
2377
|
+
onResponse?: Gtk.Dialog.SignalSignatures['response'];
|
|
2423
2378
|
onNotifyUseHeaderBar?: NotifyHandler;
|
|
2424
2379
|
}
|
|
2425
2380
|
/** A `GtkRoot` implementation for drag icons. */
|
|
@@ -2436,8 +2391,7 @@ export interface GtkDrawingAreaProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
2436
2391
|
/** The content width. */
|
|
2437
2392
|
contentWidth?: number;
|
|
2438
2393
|
'content-width'?: number;
|
|
2439
|
-
|
|
2440
|
-
onResize?: (width: number, height: number) => void;
|
|
2394
|
+
onResize?: Gtk.DrawingArea.SignalSignatures['resize'];
|
|
2441
2395
|
onNotifyContentHeight?: NotifyHandler;
|
|
2442
2396
|
onNotifyContentWidth?: NotifyHandler;
|
|
2443
2397
|
}
|
|
@@ -2466,8 +2420,7 @@ export interface GtkDropDownProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
2466
2420
|
/** Whether to show an arrow within the GtkDropDown widget. */
|
|
2467
2421
|
showArrow?: boolean;
|
|
2468
2422
|
'show-arrow'?: boolean;
|
|
2469
|
-
|
|
2470
|
-
onActivate?: () => void;
|
|
2423
|
+
onActivate?: Gtk.DropDown.SignalSignatures['activate'];
|
|
2471
2424
|
onNotifyEnableSearch?: NotifyHandler;
|
|
2472
2425
|
onNotifyExpression?: NotifyHandler;
|
|
2473
2426
|
onNotifyFactory?: NotifyHandler;
|
|
@@ -2485,12 +2438,15 @@ export interface GtkEditableLabelProps extends GtkWidgetProps, GtkAccessibleProp
|
|
|
2485
2438
|
onNotifyEditing?: NotifyHandler;
|
|
2486
2439
|
}
|
|
2487
2440
|
/** Interface for single-line text editing widgets. */
|
|
2488
|
-
export interface GtkEditableProps
|
|
2441
|
+
export interface GtkEditableProps {
|
|
2489
2442
|
/** Whether the entry contents can be edited. */
|
|
2490
2443
|
editable?: boolean;
|
|
2491
2444
|
/** If undo/redo should be enabled for the editable. */
|
|
2492
2445
|
enableUndo?: boolean;
|
|
2493
2446
|
'enable-undo'?: boolean;
|
|
2447
|
+
/** The widget used to intercept input for this editable */
|
|
2448
|
+
inputInterceptor?: Gtk.Widget | null;
|
|
2449
|
+
'input-interceptor'?: Gtk.Widget | null;
|
|
2494
2450
|
/** The desired maximum width of the entry, in characters. */
|
|
2495
2451
|
maxWidthChars?: number;
|
|
2496
2452
|
'max-width-chars'?: number;
|
|
@@ -2501,23 +2457,21 @@ export interface GtkEditableProps extends GtkWidgetProps {
|
|
|
2501
2457
|
'width-chars'?: number;
|
|
2502
2458
|
/** The horizontal alignment, from 0 (left) to 1 (right). */
|
|
2503
2459
|
xalign?: number;
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
/** Emitted when text is inserted into the widget by the user. */
|
|
2509
|
-
onInsertText?: (text: string, length: number, position: OutParam) => void;
|
|
2460
|
+
onChanged?: Gtk.Editable.SignalSignatures['changed'];
|
|
2461
|
+
onDeleteText?: Gtk.Editable.SignalSignatures['delete-text'];
|
|
2462
|
+
onInputIntercepted?: Gtk.Editable.SignalSignatures['input-intercepted'];
|
|
2463
|
+
onInsertText?: Gtk.Editable.SignalSignatures['insert-text'];
|
|
2510
2464
|
onNotifyEditable?: NotifyHandler;
|
|
2511
2465
|
onNotifyEnableUndo?: NotifyHandler;
|
|
2466
|
+
onNotifyInputInterceptor?: NotifyHandler;
|
|
2512
2467
|
onNotifyMaxWidthChars?: NotifyHandler;
|
|
2513
2468
|
onNotifyText?: NotifyHandler;
|
|
2514
2469
|
onNotifyWidthChars?: NotifyHandler;
|
|
2515
2470
|
onNotifyXalign?: NotifyHandler;
|
|
2516
2471
|
}
|
|
2517
2472
|
/** Used by text widgets to let users insert Emoji characters. */
|
|
2518
|
-
export interface GtkEmojiChooserProps extends GtkPopoverProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkShortcutManagerProps {
|
|
2519
|
-
|
|
2520
|
-
onEmojiPicked?: (text: string) => void;
|
|
2473
|
+
export interface GtkEmojiChooserProps extends GtkPopoverProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkShortcutManagerProps {
|
|
2474
|
+
onEmojiPicked?: Gtk.EmojiChooser.SignalSignatures['emoji-picked'];
|
|
2521
2475
|
}
|
|
2522
2476
|
/** A single-line text entry widget. */
|
|
2523
2477
|
export interface GtkEntryProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkCellEditableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
@@ -2527,7 +2481,7 @@ export interface GtkEntryProps extends GtkWidgetProps, GtkAccessibleProps, GtkBu
|
|
|
2527
2481
|
/** A list of Pango attributes to apply to the text of the entry. */
|
|
2528
2482
|
attributes?: Pango.AttrList | null;
|
|
2529
2483
|
/** The buffer object which actually stores the text. */
|
|
2530
|
-
buffer?: Gtk.EntryBuffer
|
|
2484
|
+
buffer?: Gtk.EntryBuffer;
|
|
2531
2485
|
/**
|
|
2532
2486
|
* The auxiliary completion object to use with the entry.
|
|
2533
2487
|
* @deprecated
|
|
@@ -2570,20 +2524,20 @@ export interface GtkEntryProps extends GtkWidgetProps, GtkAccessibleProps, GtkBu
|
|
|
2570
2524
|
overwriteMode?: boolean;
|
|
2571
2525
|
'overwrite-mode'?: boolean;
|
|
2572
2526
|
/** The text that will be displayed in the `GtkEntry` when it is empty and unfocused. */
|
|
2573
|
-
placeholderText?: string;
|
|
2574
|
-
'placeholder-text'?: string;
|
|
2527
|
+
placeholderText?: string | null;
|
|
2528
|
+
'placeholder-text'?: string | null;
|
|
2575
2529
|
/** Whether the primary icon is activatable. */
|
|
2576
2530
|
primaryIconActivatable?: boolean;
|
|
2577
2531
|
'primary-icon-activatable'?: boolean;
|
|
2578
2532
|
/** The `GIcon` to use for the primary icon for the entry. */
|
|
2579
|
-
primaryIconGicon?: Gio.Icon
|
|
2580
|
-
'primary-icon-gicon'?: Gio.Icon
|
|
2533
|
+
primaryIconGicon?: Gio.Icon;
|
|
2534
|
+
'primary-icon-gicon'?: Gio.Icon;
|
|
2581
2535
|
/** The icon name to use for the primary icon for the entry. */
|
|
2582
2536
|
primaryIconName?: string;
|
|
2583
2537
|
'primary-icon-name'?: string;
|
|
2584
2538
|
/** A `GdkPaintable` to use as the primary icon for the entry. */
|
|
2585
|
-
primaryIconPaintable?: Gdk.Paintable
|
|
2586
|
-
'primary-icon-paintable'?: Gdk.Paintable
|
|
2539
|
+
primaryIconPaintable?: Gdk.Paintable;
|
|
2540
|
+
'primary-icon-paintable'?: Gdk.Paintable;
|
|
2587
2541
|
/** Whether the primary icon is sensitive. */
|
|
2588
2542
|
primaryIconSensitive?: boolean;
|
|
2589
2543
|
'primary-icon-sensitive'?: boolean;
|
|
@@ -2603,14 +2557,14 @@ export interface GtkEntryProps extends GtkWidgetProps, GtkAccessibleProps, GtkBu
|
|
|
2603
2557
|
secondaryIconActivatable?: boolean;
|
|
2604
2558
|
'secondary-icon-activatable'?: boolean;
|
|
2605
2559
|
/** The `GIcon` to use for the secondary icon for the entry. */
|
|
2606
|
-
secondaryIconGicon?: Gio.Icon
|
|
2607
|
-
'secondary-icon-gicon'?: Gio.Icon
|
|
2560
|
+
secondaryIconGicon?: Gio.Icon;
|
|
2561
|
+
'secondary-icon-gicon'?: Gio.Icon;
|
|
2608
2562
|
/** The icon name to use for the secondary icon for the entry. */
|
|
2609
2563
|
secondaryIconName?: string;
|
|
2610
2564
|
'secondary-icon-name'?: string;
|
|
2611
2565
|
/** A `GdkPaintable` to use as the secondary icon for the entry. */
|
|
2612
|
-
secondaryIconPaintable?: Gdk.Paintable
|
|
2613
|
-
'secondary-icon-paintable'?: Gdk.Paintable
|
|
2566
|
+
secondaryIconPaintable?: Gdk.Paintable;
|
|
2567
|
+
'secondary-icon-paintable'?: Gdk.Paintable;
|
|
2614
2568
|
/** Whether the secondary icon is sensitive. */
|
|
2615
2569
|
secondaryIconSensitive?: boolean;
|
|
2616
2570
|
'secondary-icon-sensitive'?: boolean;
|
|
@@ -2630,12 +2584,9 @@ export interface GtkEntryProps extends GtkWidgetProps, GtkAccessibleProps, GtkBu
|
|
|
2630
2584
|
'truncate-multiline'?: boolean;
|
|
2631
2585
|
/** Whether the entry should show the “invisible char” instead of the actual text (“password mode”). */
|
|
2632
2586
|
visibility?: boolean;
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
onIconPress?: (icon_pos: Gtk.EntryIconPosition) => void;
|
|
2637
|
-
/** Emitted on the button release from a mouse click over an activatable icon. */
|
|
2638
|
-
onIconRelease?: (icon_pos: Gtk.EntryIconPosition) => void;
|
|
2587
|
+
onActivate?: Gtk.Entry.SignalSignatures['activate'];
|
|
2588
|
+
onIconPress?: Gtk.Entry.SignalSignatures['icon-press'];
|
|
2589
|
+
onIconRelease?: Gtk.Entry.SignalSignatures['icon-release'];
|
|
2639
2590
|
onNotifyActivatesDefault?: NotifyHandler;
|
|
2640
2591
|
onNotifyAttributes?: NotifyHandler;
|
|
2641
2592
|
onNotifyBuffer?: NotifyHandler;
|
|
@@ -2681,7 +2632,7 @@ export interface GtkExpanderProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
2681
2632
|
/** Whether the expander has been opened to reveal the child. */
|
|
2682
2633
|
expanded?: boolean;
|
|
2683
2634
|
/** The text of the expanders label. */
|
|
2684
|
-
label?: string;
|
|
2635
|
+
label?: string | null;
|
|
2685
2636
|
/** A widget to display instead of the usual expander label. */
|
|
2686
2637
|
labelWidget?: Gtk.Widget | null;
|
|
2687
2638
|
'label-widget'?: Gtk.Widget | null;
|
|
@@ -2694,8 +2645,7 @@ export interface GtkExpanderProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
2694
2645
|
/** Whether an underline in the text indicates a mnemonic. */
|
|
2695
2646
|
useUnderline?: boolean;
|
|
2696
2647
|
'use-underline'?: boolean;
|
|
2697
|
-
|
|
2698
|
-
onActivate?: () => void;
|
|
2648
|
+
onActivate?: Gtk.Expander.SignalSignatures['activate'];
|
|
2699
2649
|
onNotifyChild?: NotifyHandler;
|
|
2700
2650
|
onNotifyExpanded?: NotifyHandler;
|
|
2701
2651
|
onNotifyLabel?: NotifyHandler;
|
|
@@ -2705,7 +2655,7 @@ export interface GtkExpanderProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
2705
2655
|
onNotifyUseUnderline?: NotifyHandler;
|
|
2706
2656
|
}
|
|
2707
2657
|
/** `GtkFileChooserDialog` is a dialog suitable for use with “File Open” or “File Save” commands. */
|
|
2708
|
-
export interface GtkFileChooserDialogProps extends GtkDialogProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkFileChooserProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
2658
|
+
export interface GtkFileChooserDialogProps extends GtkDialogProps, GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkFileChooserProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
2709
2659
|
}
|
|
2710
2660
|
/** `GtkFileChooser` is an interface that can be implemented by file selection widgets. */
|
|
2711
2661
|
export interface GtkFileChooserProps {
|
|
@@ -2741,30 +2691,18 @@ export interface GtkFileChooserWidgetProps extends GtkWidgetProps, GtkAccessible
|
|
|
2741
2691
|
/** Whether search mode is enabled. */
|
|
2742
2692
|
searchMode?: boolean;
|
|
2743
2693
|
'search-mode'?: boolean;
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
/** Emitted when the user asks for it. */
|
|
2757
|
-
onPlacesShortcut?: () => void;
|
|
2758
|
-
/** Emitted when the user asks for it. */
|
|
2759
|
-
onQuickBookmark?: (bookmark_index: number) => void;
|
|
2760
|
-
/** Emitted when the user asks for it. */
|
|
2761
|
-
onRecentShortcut?: () => void;
|
|
2762
|
-
/** Emitted when the user asks for it. */
|
|
2763
|
-
onSearchShortcut?: () => void;
|
|
2764
|
-
/** Emitted when the user asks for it. */
|
|
2765
|
-
onShowHidden?: () => void;
|
|
2766
|
-
/** Emitted when the user asks for it. */
|
|
2767
|
-
onUpFolder?: () => void;
|
|
2694
|
+
onDesktopFolder?: Gtk.FileChooserWidget.SignalSignatures['desktop-folder'];
|
|
2695
|
+
onDownFolder?: Gtk.FileChooserWidget.SignalSignatures['down-folder'];
|
|
2696
|
+
onHomeFolder?: Gtk.FileChooserWidget.SignalSignatures['home-folder'];
|
|
2697
|
+
onLocationPopup?: Gtk.FileChooserWidget.SignalSignatures['location-popup'];
|
|
2698
|
+
onLocationPopupOnPaste?: Gtk.FileChooserWidget.SignalSignatures['location-popup-on-paste'];
|
|
2699
|
+
onLocationTogglePopup?: Gtk.FileChooserWidget.SignalSignatures['location-toggle-popup'];
|
|
2700
|
+
onPlacesShortcut?: Gtk.FileChooserWidget.SignalSignatures['places-shortcut'];
|
|
2701
|
+
onQuickBookmark?: Gtk.FileChooserWidget.SignalSignatures['quick-bookmark'];
|
|
2702
|
+
onRecentShortcut?: Gtk.FileChooserWidget.SignalSignatures['recent-shortcut'];
|
|
2703
|
+
onSearchShortcut?: Gtk.FileChooserWidget.SignalSignatures['search-shortcut'];
|
|
2704
|
+
onShowHidden?: Gtk.FileChooserWidget.SignalSignatures['show-hidden'];
|
|
2705
|
+
onUpFolder?: Gtk.FileChooserWidget.SignalSignatures['up-folder'];
|
|
2768
2706
|
onNotifySearchMode?: NotifyHandler;
|
|
2769
2707
|
}
|
|
2770
2708
|
/** Places its child widgets at fixed positions and with fixed sizes. */
|
|
@@ -2774,8 +2712,7 @@ export interface GtkFixedProps extends GtkWidgetProps, GtkAccessibleProps, GtkBu
|
|
|
2774
2712
|
export interface GtkFlowBoxChildProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2775
2713
|
/** The child widget. */
|
|
2776
2714
|
child?: Gtk.Widget | null;
|
|
2777
|
-
|
|
2778
|
-
onActivate?: () => void;
|
|
2715
|
+
onActivate?: Gtk.FlowBoxChild.SignalSignatures['activate'];
|
|
2779
2716
|
onNotifyChild?: NotifyHandler;
|
|
2780
2717
|
}
|
|
2781
2718
|
/** Puts child widgets in a reflowing grid. */
|
|
@@ -2803,20 +2740,13 @@ export interface GtkFlowBoxProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
2803
2740
|
/** The selection mode used by the flow box. */
|
|
2804
2741
|
selectionMode?: GtkSelectionModeNick | Gtk.SelectionMode;
|
|
2805
2742
|
'selection-mode'?: GtkSelectionModeNick | Gtk.SelectionMode;
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
onSelectAll?: () => void;
|
|
2814
|
-
/** Emitted when the set of selected children changes. */
|
|
2815
|
-
onSelectedChildrenChanged?: () => void;
|
|
2816
|
-
/** Emitted to toggle the selection of the child that has the focus. */
|
|
2817
|
-
onToggleCursorChild?: () => void;
|
|
2818
|
-
/** Emitted to unselect all children of the box, if the selection mode permits it. */
|
|
2819
|
-
onUnselectAll?: () => void;
|
|
2743
|
+
onActivateCursorChild?: Gtk.FlowBox.SignalSignatures['activate-cursor-child'];
|
|
2744
|
+
onChildActivated?: Gtk.FlowBox.SignalSignatures['child-activated'];
|
|
2745
|
+
onMoveCursor?: Gtk.FlowBox.SignalSignatures['move-cursor'];
|
|
2746
|
+
onSelectAll?: Gtk.FlowBox.SignalSignatures['select-all'];
|
|
2747
|
+
onSelectedChildrenChanged?: Gtk.FlowBox.SignalSignatures['selected-children-changed'];
|
|
2748
|
+
onToggleCursorChild?: Gtk.FlowBox.SignalSignatures['toggle-cursor-child'];
|
|
2749
|
+
onUnselectAll?: Gtk.FlowBox.SignalSignatures['unselect-all'];
|
|
2820
2750
|
onNotifyAcceptUnpairedRelease?: NotifyHandler;
|
|
2821
2751
|
onNotifyActivateOnSingleClick?: NotifyHandler;
|
|
2822
2752
|
onNotifyColumnSpacing?: NotifyHandler;
|
|
@@ -2838,17 +2768,15 @@ export interface GtkFontButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
2838
2768
|
/** Whether the buttons label will use the selected font size. */
|
|
2839
2769
|
useSize?: boolean;
|
|
2840
2770
|
'use-size'?: boolean;
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
/** Emitted when the user selects a font. */
|
|
2844
|
-
onFontSet?: () => void;
|
|
2771
|
+
onActivate?: Gtk.FontButton.SignalSignatures['activate'];
|
|
2772
|
+
onFontSet?: Gtk.FontButton.SignalSignatures['font-set'];
|
|
2845
2773
|
onNotifyModal?: NotifyHandler;
|
|
2846
2774
|
onNotifyTitle?: NotifyHandler;
|
|
2847
2775
|
onNotifyUseFont?: NotifyHandler;
|
|
2848
2776
|
onNotifyUseSize?: NotifyHandler;
|
|
2849
2777
|
}
|
|
2850
2778
|
/** The `GtkFontChooserDialog` widget is a dialog for selecting a font. */
|
|
2851
|
-
export interface GtkFontChooserDialogProps extends GtkDialogProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkFontChooserProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
2779
|
+
export interface GtkFontChooserDialogProps extends GtkDialogProps, GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkFontChooserProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
2852
2780
|
}
|
|
2853
2781
|
/** `GtkFontChooser` is an interface that can be implemented by widgets for choosing fonts. */
|
|
2854
2782
|
export interface GtkFontChooserProps {
|
|
@@ -2856,7 +2784,7 @@ export interface GtkFontChooserProps {
|
|
|
2856
2784
|
* The font description as a string, e.g.
|
|
2857
2785
|
* @deprecated
|
|
2858
2786
|
*/
|
|
2859
|
-
font?: string;
|
|
2787
|
+
font?: string | null;
|
|
2860
2788
|
/**
|
|
2861
2789
|
* The font description as a `PangoFontDescription`.
|
|
2862
2790
|
* @deprecated
|
|
@@ -2885,11 +2813,7 @@ export interface GtkFontChooserProps {
|
|
|
2885
2813
|
*/
|
|
2886
2814
|
showPreviewEntry?: boolean;
|
|
2887
2815
|
'show-preview-entry'?: boolean;
|
|
2888
|
-
|
|
2889
|
-
* Emitted when a font is activated.
|
|
2890
|
-
* @deprecated
|
|
2891
|
-
*/
|
|
2892
|
-
onFontActivated?: (fontname: string) => void;
|
|
2816
|
+
onFontActivated?: Gtk.FontChooser.SignalSignatures['font-activated'];
|
|
2893
2817
|
onNotifyFont?: NotifyHandler;
|
|
2894
2818
|
onNotifyFontDesc?: NotifyHandler;
|
|
2895
2819
|
onNotifyLanguage?: NotifyHandler;
|
|
@@ -2908,8 +2832,8 @@ export interface GtkFontDialogButtonProps extends GtkWidgetProps, GtkAccessibleP
|
|
|
2908
2832
|
fontDesc?: Pango.FontDescription | null;
|
|
2909
2833
|
'font-desc'?: Pango.FontDescription | null;
|
|
2910
2834
|
/** The selected font features. */
|
|
2911
|
-
fontFeatures?: string;
|
|
2912
|
-
'font-features'?: string;
|
|
2835
|
+
fontFeatures?: string | null;
|
|
2836
|
+
'font-features'?: string | null;
|
|
2913
2837
|
/** The selected language for font features. */
|
|
2914
2838
|
language?: Pango.Language | null;
|
|
2915
2839
|
/** The level of detail for the font chooser dialog. */
|
|
@@ -2920,8 +2844,7 @@ export interface GtkFontDialogButtonProps extends GtkWidgetProps, GtkAccessibleP
|
|
|
2920
2844
|
/** Whether the buttons label will use the selected font size. */
|
|
2921
2845
|
useSize?: boolean;
|
|
2922
2846
|
'use-size'?: boolean;
|
|
2923
|
-
|
|
2924
|
-
onActivate?: () => void;
|
|
2847
|
+
onActivate?: Gtk.FontDialogButton.SignalSignatures['activate'];
|
|
2925
2848
|
onNotifyDialog?: NotifyHandler;
|
|
2926
2849
|
onNotifyFontDesc?: NotifyHandler;
|
|
2927
2850
|
onNotifyFontFeatures?: NotifyHandler;
|
|
@@ -2935,7 +2858,7 @@ export interface GtkFrameProps extends GtkWidgetProps, GtkAccessibleProps, GtkBu
|
|
|
2935
2858
|
/** The child widget. */
|
|
2936
2859
|
child?: Gtk.Widget | null;
|
|
2937
2860
|
/** Text of the frame's label. */
|
|
2938
|
-
label?: string;
|
|
2861
|
+
label?: string | null;
|
|
2939
2862
|
/** Widget to display in place of the usual frame label. */
|
|
2940
2863
|
labelWidget?: Gtk.Widget | null;
|
|
2941
2864
|
'label-widget'?: Gtk.Widget | null;
|
|
@@ -2967,12 +2890,9 @@ export interface GtkGLAreaProps extends GtkWidgetProps, GtkAccessibleProps, GtkB
|
|
|
2967
2890
|
*/
|
|
2968
2891
|
useEs?: boolean;
|
|
2969
2892
|
'use-es'?: boolean;
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
onRender?: (context: Gdk.GLContext) => void;
|
|
2974
|
-
/** Emitted once when the widget is realized, and then each time the widget is changed while realized. */
|
|
2975
|
-
onResize?: (width: number, height: number) => void;
|
|
2893
|
+
onCreateContext?: Gtk.GLArea.SignalSignatures['create-context'];
|
|
2894
|
+
onRender?: Gtk.GLArea.SignalSignatures['render'];
|
|
2895
|
+
onResize?: Gtk.GLArea.SignalSignatures['resize'];
|
|
2976
2896
|
onNotifyAllowedApis?: NotifyHandler;
|
|
2977
2897
|
onNotifyAutoRender?: NotifyHandler;
|
|
2978
2898
|
onNotifyHasDepthBuffer?: NotifyHandler;
|
|
@@ -3016,7 +2936,7 @@ export interface GtkGridProps extends GtkWidgetProps, GtkAccessibleProps, GtkBui
|
|
|
3016
2936
|
onNotifyRowSpacing?: NotifyHandler;
|
|
3017
2937
|
}
|
|
3018
2938
|
/** Presents a large dynamic grid of items. */
|
|
3019
|
-
export interface GtkGridViewProps extends GtkListBaseProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps, GtkScrollableProps {
|
|
2939
|
+
export interface GtkGridViewProps extends GtkListBaseProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps, GtkScrollableProps {
|
|
3020
2940
|
/** Allow rubberband selection. */
|
|
3021
2941
|
enableRubberband?: boolean;
|
|
3022
2942
|
'enable-rubberband'?: boolean;
|
|
@@ -3036,8 +2956,7 @@ export interface GtkGridViewProps extends GtkListBaseProps, GtkAccessibleProps,
|
|
|
3036
2956
|
/** Behavior of the <kbd>Tab</kbd> key */
|
|
3037
2957
|
tabBehavior?: GtkListTabBehaviorNick | Gtk.ListTabBehavior;
|
|
3038
2958
|
'tab-behavior'?: GtkListTabBehaviorNick | Gtk.ListTabBehavior;
|
|
3039
|
-
|
|
3040
|
-
onActivate?: (position: number) => void;
|
|
2959
|
+
onActivate?: Gtk.GridView.SignalSignatures['activate'];
|
|
3041
2960
|
onNotifyEnableRubberband?: NotifyHandler;
|
|
3042
2961
|
onNotifyFactory?: NotifyHandler;
|
|
3043
2962
|
onNotifyMaxColumns?: NotifyHandler;
|
|
@@ -3049,8 +2968,8 @@ export interface GtkGridViewProps extends GtkListBaseProps, GtkAccessibleProps,
|
|
|
3049
2968
|
/** Creates a custom titlebar for a window. */
|
|
3050
2969
|
export interface GtkHeaderBarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3051
2970
|
/** The decoration layout for buttons. */
|
|
3052
|
-
decorationLayout?: string;
|
|
3053
|
-
'decoration-layout'?: string;
|
|
2971
|
+
decorationLayout?: string | null;
|
|
2972
|
+
'decoration-layout'?: string | null;
|
|
3054
2973
|
/** Whether to show title buttons like close, minimize, maximize. */
|
|
3055
2974
|
showTitleButtons?: boolean;
|
|
3056
2975
|
'show-title-buttons'?: boolean;
|
|
@@ -3071,8 +2990,8 @@ export interface GtkIconViewProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
3071
2990
|
activateOnSingleClick?: boolean;
|
|
3072
2991
|
'activate-on-single-click'?: boolean;
|
|
3073
2992
|
/** The `GtkCellArea` used to layout cell renderers for this view. */
|
|
3074
|
-
cellArea?: Gtk.CellArea
|
|
3075
|
-
'cell-area'?: Gtk.CellArea
|
|
2993
|
+
cellArea?: Gtk.CellArea;
|
|
2994
|
+
'cell-area'?: Gtk.CellArea;
|
|
3076
2995
|
/** The column-spacing property specifies the space which is inserted between the columns of the icon view. */
|
|
3077
2996
|
columnSpacing?: number;
|
|
3078
2997
|
'column-spacing'?: number;
|
|
@@ -3113,22 +3032,14 @@ export interface GtkIconViewProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
3113
3032
|
/** The column of the icon view model which is being used for displaying tooltips on it's rows. */
|
|
3114
3033
|
tooltipColumn?: number;
|
|
3115
3034
|
'tooltip-column'?: number;
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
/** A [keybinding signal][class@Gtk.SignalAction] which gets emitted when the user selects the item that is currently focused. */
|
|
3125
|
-
onSelectCursorItem?: () => void;
|
|
3126
|
-
/** The ::selection-changed signal is emitted when the selection (i.e. */
|
|
3127
|
-
onSelectionChanged?: () => void;
|
|
3128
|
-
/** A [keybinding signal][class@Gtk.SignalAction] which gets emitted when the user toggles whether the currently focused item is selected or not. */
|
|
3129
|
-
onToggleCursorItem?: () => void;
|
|
3130
|
-
/** A [keybinding signal][class@Gtk.SignalAction] which gets emitted when the user unselects all items. */
|
|
3131
|
-
onUnselectAll?: () => void;
|
|
3035
|
+
onActivateCursorItem?: Gtk.IconView.SignalSignatures['activate-cursor-item'];
|
|
3036
|
+
onItemActivated?: Gtk.IconView.SignalSignatures['item-activated'];
|
|
3037
|
+
onMoveCursor?: Gtk.IconView.SignalSignatures['move-cursor'];
|
|
3038
|
+
onSelectAll?: Gtk.IconView.SignalSignatures['select-all'];
|
|
3039
|
+
onSelectCursorItem?: Gtk.IconView.SignalSignatures['select-cursor-item'];
|
|
3040
|
+
onSelectionChanged?: Gtk.IconView.SignalSignatures['selection-changed'];
|
|
3041
|
+
onToggleCursorItem?: Gtk.IconView.SignalSignatures['toggle-cursor-item'];
|
|
3042
|
+
onUnselectAll?: Gtk.IconView.SignalSignatures['unselect-all'];
|
|
3132
3043
|
onNotifyActivateOnSingleClick?: NotifyHandler;
|
|
3133
3044
|
onNotifyCellArea?: NotifyHandler;
|
|
3134
3045
|
onNotifyColumnSpacing?: NotifyHandler;
|
|
@@ -3154,8 +3065,8 @@ export interface GtkImageProps extends GtkWidgetProps, GtkAccessibleProps, GtkBu
|
|
|
3154
3065
|
/** The `GIcon` displayed in the GtkImage. */
|
|
3155
3066
|
gicon?: Gio.Icon | null;
|
|
3156
3067
|
/** The name of the icon in the icon theme. */
|
|
3157
|
-
iconName?: string;
|
|
3158
|
-
'icon-name'?: string;
|
|
3068
|
+
iconName?: string | null;
|
|
3069
|
+
'icon-name'?: string | null;
|
|
3159
3070
|
/** The symbolic size to display icons at. */
|
|
3160
3071
|
iconSize?: GtkIconSizeNick | Gtk.IconSize;
|
|
3161
3072
|
'icon-size'?: GtkIconSizeNick | Gtk.IconSize;
|
|
@@ -3188,10 +3099,8 @@ export interface GtkInfoBarProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
3188
3099
|
/** Whether to include a standard close button. */
|
|
3189
3100
|
showCloseButton?: boolean;
|
|
3190
3101
|
'show-close-button'?: boolean;
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
/** Emitted when an action widget is clicked. */
|
|
3194
|
-
onResponse?: (response_id: Gtk.ResponseType) => void;
|
|
3102
|
+
onClose?: Gtk.InfoBar.SignalSignatures['close'];
|
|
3103
|
+
onResponse?: Gtk.InfoBar.SignalSignatures['response'];
|
|
3195
3104
|
onNotifyMessageType?: NotifyHandler;
|
|
3196
3105
|
onNotifyRevealed?: NotifyHandler;
|
|
3197
3106
|
onNotifyShowCloseButton?: NotifyHandler;
|
|
@@ -3215,7 +3124,7 @@ export interface GtkInscriptionProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
3215
3124
|
natLines?: number;
|
|
3216
3125
|
'nat-lines'?: number;
|
|
3217
3126
|
/** The displayed text. */
|
|
3218
|
-
text?: string;
|
|
3127
|
+
text?: string | null;
|
|
3219
3128
|
/** The overflow method to use for the text. */
|
|
3220
3129
|
textOverflow?: GtkInscriptionOverflowNick | Gtk.InscriptionOverflow;
|
|
3221
3130
|
'text-overflow'?: GtkInscriptionOverflowNick | Gtk.InscriptionOverflow;
|
|
@@ -3287,14 +3196,10 @@ export interface GtkLabelProps extends GtkWidgetProps, GtkAccessibleProps, GtkAc
|
|
|
3287
3196
|
xalign?: number;
|
|
3288
3197
|
/** The vertical alignment of the label text inside its size allocation. */
|
|
3289
3198
|
yalign?: number;
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
/** Gets emitted to copy the selection to the clipboard. */
|
|
3295
|
-
onCopyClipboard?: () => void;
|
|
3296
|
-
/** Gets emitted when the user initiates a cursor movement. */
|
|
3297
|
-
onMoveCursor?: (step: Gtk.MovementStep, count: number, extend_selection: boolean) => void;
|
|
3199
|
+
onActivateCurrentLink?: Gtk.Label.SignalSignatures['activate-current-link'];
|
|
3200
|
+
onActivateLink?: Gtk.Label.SignalSignatures['activate-link'];
|
|
3201
|
+
onCopyClipboard?: Gtk.Label.SignalSignatures['copy-clipboard'];
|
|
3202
|
+
onMoveCursor?: Gtk.Label.SignalSignatures['move-cursor'];
|
|
3298
3203
|
onNotifyAttributes?: NotifyHandler;
|
|
3299
3204
|
onNotifyEllipsize?: NotifyHandler;
|
|
3300
3205
|
onNotifyExtraMenu?: NotifyHandler;
|
|
@@ -3329,8 +3234,7 @@ export interface GtkLevelBarProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
3329
3234
|
mode?: GtkLevelBarModeNick | Gtk.LevelBarMode;
|
|
3330
3235
|
/** Determines the currently filled value of the level bar. */
|
|
3331
3236
|
value?: number;
|
|
3332
|
-
|
|
3333
|
-
onOffsetChanged?: (name: string) => void;
|
|
3237
|
+
onOffsetChanged?: Gtk.LevelBar.SignalSignatures['offset-changed'];
|
|
3334
3238
|
onNotifyInverted?: NotifyHandler;
|
|
3335
3239
|
onNotifyMaxValue?: NotifyHandler;
|
|
3336
3240
|
onNotifyMinValue?: NotifyHandler;
|
|
@@ -3338,18 +3242,17 @@ export interface GtkLevelBarProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
3338
3242
|
onNotifyValue?: NotifyHandler;
|
|
3339
3243
|
}
|
|
3340
3244
|
/** A button with a hyperlink. */
|
|
3341
|
-
export interface GtkLinkButtonProps extends GtkButtonProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3245
|
+
export interface GtkLinkButtonProps extends GtkButtonProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3342
3246
|
/** The URI bound to this button. */
|
|
3343
3247
|
uri?: string;
|
|
3344
3248
|
/** The 'visited' state of this button. */
|
|
3345
3249
|
visited?: boolean;
|
|
3346
|
-
|
|
3347
|
-
onActivateLink?: () => void;
|
|
3250
|
+
onActivateLink?: Gtk.LinkButton.SignalSignatures['activate-link'];
|
|
3348
3251
|
onNotifyUri?: NotifyHandler;
|
|
3349
3252
|
onNotifyVisited?: NotifyHandler;
|
|
3350
3253
|
}
|
|
3351
3254
|
/** The abstract base class for GTK's list widgets. */
|
|
3352
|
-
export interface GtkListBaseProps
|
|
3255
|
+
export interface GtkListBaseProps {
|
|
3353
3256
|
/** The orientation of the list. */
|
|
3354
3257
|
orientation?: GtkOrientationNick | Gtk.Orientation;
|
|
3355
3258
|
onNotifyOrientation?: NotifyHandler;
|
|
@@ -3371,22 +3274,14 @@ export interface GtkListBoxProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
3371
3274
|
/** Behavior of the <kbd>Tab</kbd> key */
|
|
3372
3275
|
tabBehavior?: GtkListTabBehaviorNick | Gtk.ListTabBehavior;
|
|
3373
3276
|
'tab-behavior'?: GtkListTabBehaviorNick | Gtk.ListTabBehavior;
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
/** Emitted to select all children of the box, if the selection mode permits it. */
|
|
3383
|
-
onSelectAll?: () => void;
|
|
3384
|
-
/** Emitted when the set of selected rows changes. */
|
|
3385
|
-
onSelectedRowsChanged?: () => void;
|
|
3386
|
-
/** Emitted when the cursor row is toggled. */
|
|
3387
|
-
onToggleCursorRow?: () => void;
|
|
3388
|
-
/** Emitted to unselect all children of the box, if the selection mode permits it. */
|
|
3389
|
-
onUnselectAll?: () => void;
|
|
3277
|
+
onActivateCursorRow?: Gtk.ListBox.SignalSignatures['activate-cursor-row'];
|
|
3278
|
+
onMoveCursor?: Gtk.ListBox.SignalSignatures['move-cursor'];
|
|
3279
|
+
onRowActivated?: Gtk.ListBox.SignalSignatures['row-activated'];
|
|
3280
|
+
onRowSelected?: Gtk.ListBox.SignalSignatures['row-selected'];
|
|
3281
|
+
onSelectAll?: Gtk.ListBox.SignalSignatures['select-all'];
|
|
3282
|
+
onSelectedRowsChanged?: Gtk.ListBox.SignalSignatures['selected-rows-changed'];
|
|
3283
|
+
onToggleCursorRow?: Gtk.ListBox.SignalSignatures['toggle-cursor-row'];
|
|
3284
|
+
onUnselectAll?: Gtk.ListBox.SignalSignatures['unselect-all'];
|
|
3390
3285
|
onNotifyAcceptUnpairedRelease?: NotifyHandler;
|
|
3391
3286
|
onNotifyActivateOnSingleClick?: NotifyHandler;
|
|
3392
3287
|
onNotifySelectionMode?: NotifyHandler;
|
|
@@ -3401,20 +3296,19 @@ export interface GtkListBoxRowProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
3401
3296
|
child?: Gtk.Widget | null;
|
|
3402
3297
|
/** Determines whether this row can be selected. */
|
|
3403
3298
|
selectable?: boolean;
|
|
3404
|
-
|
|
3405
|
-
onActivate?: () => void;
|
|
3299
|
+
onActivate?: Gtk.ListBoxRow.SignalSignatures['activate'];
|
|
3406
3300
|
onNotifyActivatable?: NotifyHandler;
|
|
3407
3301
|
onNotifyChild?: NotifyHandler;
|
|
3408
3302
|
onNotifySelectable?: NotifyHandler;
|
|
3409
3303
|
}
|
|
3410
3304
|
/** Used by list widgets to represent the headers they display. */
|
|
3411
|
-
export interface GtkListHeaderProps
|
|
3305
|
+
export interface GtkListHeaderProps {
|
|
3412
3306
|
/** Widget used for display. */
|
|
3413
3307
|
child?: Gtk.Widget | null;
|
|
3414
3308
|
onNotifyChild?: NotifyHandler;
|
|
3415
3309
|
}
|
|
3416
3310
|
/** Used by list widgets to represent items in a [iface@Gio.ListModel]. */
|
|
3417
|
-
export interface GtkListItemProps
|
|
3311
|
+
export interface GtkListItemProps {
|
|
3418
3312
|
/** The accessible description to set on the listitem. */
|
|
3419
3313
|
accessibleDescription?: string;
|
|
3420
3314
|
'accessible-description'?: string;
|
|
@@ -3437,7 +3331,7 @@ export interface GtkListItemProps extends GObjectProps {
|
|
|
3437
3331
|
onNotifySelectable?: NotifyHandler;
|
|
3438
3332
|
}
|
|
3439
3333
|
/** Presents a large dynamic list of items. */
|
|
3440
|
-
export interface GtkListViewProps extends GtkListBaseProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps, GtkScrollableProps {
|
|
3334
|
+
export interface GtkListViewProps extends GtkListBaseProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps, GtkScrollableProps {
|
|
3441
3335
|
/** Allow rubberband selection. */
|
|
3442
3336
|
enableRubberband?: boolean;
|
|
3443
3337
|
'enable-rubberband'?: boolean;
|
|
@@ -3457,8 +3351,7 @@ export interface GtkListViewProps extends GtkListBaseProps, GtkAccessibleProps,
|
|
|
3457
3351
|
/** Behavior of the <kbd>Tab</kbd> key */
|
|
3458
3352
|
tabBehavior?: GtkListTabBehaviorNick | Gtk.ListTabBehavior;
|
|
3459
3353
|
'tab-behavior'?: GtkListTabBehaviorNick | Gtk.ListTabBehavior;
|
|
3460
|
-
|
|
3461
|
-
onActivate?: (position: number) => void;
|
|
3354
|
+
onActivate?: Gtk.ListView.SignalSignatures['activate'];
|
|
3462
3355
|
onNotifyEnableRubberband?: NotifyHandler;
|
|
3463
3356
|
onNotifyFactory?: NotifyHandler;
|
|
3464
3357
|
onNotifyHeaderFactory?: NotifyHandler;
|
|
@@ -3468,7 +3361,7 @@ export interface GtkListViewProps extends GtkListBaseProps, GtkAccessibleProps,
|
|
|
3468
3361
|
onNotifyTabBehavior?: NotifyHandler;
|
|
3469
3362
|
}
|
|
3470
3363
|
/** `GtkLockButton` is a widget to obtain and revoke authorizations needed to operate the controls. */
|
|
3471
|
-
export interface GtkLockButtonProps extends GtkButtonProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3364
|
+
export interface GtkLockButtonProps extends GtkButtonProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3472
3365
|
/**
|
|
3473
3366
|
* The `GPermission object controlling this button.
|
|
3474
3367
|
* @deprecated
|
|
@@ -3536,10 +3429,10 @@ export interface GtkMenuButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
3536
3429
|
hasFrame?: boolean;
|
|
3537
3430
|
'has-frame'?: boolean;
|
|
3538
3431
|
/** The name of the icon used to automatically populate the button. */
|
|
3539
|
-
iconName?: string;
|
|
3540
|
-
'icon-name'?: string;
|
|
3432
|
+
iconName?: string | null;
|
|
3433
|
+
'icon-name'?: string | null;
|
|
3541
3434
|
/** The label for the button. */
|
|
3542
|
-
label?: string;
|
|
3435
|
+
label?: string | null;
|
|
3543
3436
|
/** The `GMenuModel` from which the popup will be created. */
|
|
3544
3437
|
menuModel?: Gio.MenuModel | null;
|
|
3545
3438
|
'menu-model'?: Gio.MenuModel | null;
|
|
@@ -3550,8 +3443,7 @@ export interface GtkMenuButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
3550
3443
|
/** If set an underscore in the text indicates a mnemonic. */
|
|
3551
3444
|
useUnderline?: boolean;
|
|
3552
3445
|
'use-underline'?: boolean;
|
|
3553
|
-
|
|
3554
|
-
onActivate?: () => void;
|
|
3446
|
+
onActivate?: Gtk.MenuButton.SignalSignatures['activate'];
|
|
3555
3447
|
onNotifyActive?: NotifyHandler;
|
|
3556
3448
|
onNotifyAlwaysShowArrow?: NotifyHandler;
|
|
3557
3449
|
onNotifyCanShrink?: NotifyHandler;
|
|
@@ -3566,7 +3458,7 @@ export interface GtkMenuButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
3566
3458
|
onNotifyUseUnderline?: NotifyHandler;
|
|
3567
3459
|
}
|
|
3568
3460
|
/** `GtkMessageDialog` presents a dialog with some message text. */
|
|
3569
|
-
export interface GtkMessageDialogProps extends GtkDialogProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
3461
|
+
export interface GtkMessageDialogProps extends GtkDialogProps, GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
3570
3462
|
/** Set of buttons to display on the dialog. */
|
|
3571
3463
|
buttons?: GtkButtonsTypeNick | Gtk.ButtonsType;
|
|
3572
3464
|
/** The type of the message. */
|
|
@@ -3591,7 +3483,7 @@ export interface GtkMessageDialogProps extends GtkDialogProps, GtkAccessibleProp
|
|
|
3591
3483
|
onNotifyUseMarkup?: NotifyHandler;
|
|
3592
3484
|
}
|
|
3593
3485
|
/** An interface for widgets that have their own [class@Gdk.Surface]. */
|
|
3594
|
-
export interface GtkNativeProps
|
|
3486
|
+
export interface GtkNativeProps {
|
|
3595
3487
|
}
|
|
3596
3488
|
/** Switches between children using tabs. */
|
|
3597
3489
|
export interface GtkNotebookProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
@@ -3599,8 +3491,8 @@ export interface GtkNotebookProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
3599
3491
|
enablePopup?: boolean;
|
|
3600
3492
|
'enable-popup'?: boolean;
|
|
3601
3493
|
/** Group name for tab drag and drop. */
|
|
3602
|
-
groupName?: string;
|
|
3603
|
-
'group-name'?: string;
|
|
3494
|
+
groupName?: string | null;
|
|
3495
|
+
'group-name'?: string | null;
|
|
3604
3496
|
/** The index of the current page. */
|
|
3605
3497
|
page?: number;
|
|
3606
3498
|
/** If %TRUE, scroll arrows are added if there are too many pages to fit. */
|
|
@@ -3614,26 +3506,16 @@ export interface GtkNotebookProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
3614
3506
|
/** Which side of the notebook holds the tabs. */
|
|
3615
3507
|
tabPos?: GtkPositionTypeNick | Gtk.PositionType;
|
|
3616
3508
|
'tab-pos'?: GtkPositionTypeNick | Gtk.PositionType;
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
/** the ::page-removed signal is emitted in the notebook right after a page is removed from the notebook. */
|
|
3628
|
-
onPageRemoved?: (child: Gtk.Widget, page_num: number) => void;
|
|
3629
|
-
/** the ::page-reordered signal is emitted in the notebook right after a page has been reordered. */
|
|
3630
|
-
onPageReordered?: (child: Gtk.Widget, page_num: number) => void;
|
|
3631
|
-
/** Emitted when the tab should be reordered. */
|
|
3632
|
-
onReorderTab?: (direction: Gtk.DirectionType, move_to_last: boolean) => void;
|
|
3633
|
-
/** Emitted when a page should be selected. */
|
|
3634
|
-
onSelectPage?: (move_focus: boolean) => void;
|
|
3635
|
-
/** Emitted when the user or a function changes the current page. */
|
|
3636
|
-
onSwitchPage?: (page: Gtk.Widget, page_num: number) => void;
|
|
3509
|
+
onChangeCurrentPage?: Gtk.Notebook.SignalSignatures['change-current-page'];
|
|
3510
|
+
onCreateWindow?: Gtk.Notebook.SignalSignatures['create-window'];
|
|
3511
|
+
onFocusTab?: Gtk.Notebook.SignalSignatures['focus-tab'];
|
|
3512
|
+
onMoveFocusOut?: Gtk.Notebook.SignalSignatures['move-focus-out'];
|
|
3513
|
+
onPageAdded?: Gtk.Notebook.SignalSignatures['page-added'];
|
|
3514
|
+
onPageRemoved?: Gtk.Notebook.SignalSignatures['page-removed'];
|
|
3515
|
+
onPageReordered?: Gtk.Notebook.SignalSignatures['page-reordered'];
|
|
3516
|
+
onReorderTab?: Gtk.Notebook.SignalSignatures['reorder-tab'];
|
|
3517
|
+
onSelectPage?: Gtk.Notebook.SignalSignatures['select-page'];
|
|
3518
|
+
onSwitchPage?: Gtk.Notebook.SignalSignatures['switch-page'];
|
|
3637
3519
|
onNotifyEnablePopup?: NotifyHandler;
|
|
3638
3520
|
onNotifyGroupName?: NotifyHandler;
|
|
3639
3521
|
onNotifyPage?: NotifyHandler;
|
|
@@ -3652,12 +3534,11 @@ export interface GtkOrientableProps {
|
|
|
3652
3534
|
export interface GtkOverlayProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3653
3535
|
/** The main child widget. */
|
|
3654
3536
|
child?: Gtk.Widget | null;
|
|
3655
|
-
|
|
3656
|
-
onGetChildPosition?: (widget: Gtk.Widget, allocation: Gdk.Rectangle) => void;
|
|
3537
|
+
onGetChildPosition?: Gtk.Overlay.SignalSignatures['get-child-position'];
|
|
3657
3538
|
onNotifyChild?: NotifyHandler;
|
|
3658
3539
|
}
|
|
3659
3540
|
/** Presents a page setup dialog for platforms which don’t provide a native page setup dialog, like Unix. */
|
|
3660
|
-
export interface GtkPageSetupUnixDialogProps extends GtkDialogProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
3541
|
+
export interface GtkPageSetupUnixDialogProps extends GtkDialogProps, GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
3661
3542
|
}
|
|
3662
3543
|
/** Arranges its children in two panes, horizontally or vertically. */
|
|
3663
3544
|
export interface GtkPanedProps extends GtkWidgetProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
@@ -3687,18 +3568,12 @@ export interface GtkPanedProps extends GtkWidgetProps, GtkAccessibleProps, GtkAc
|
|
|
3687
3568
|
/** Whether the `GtkPaned` should provide a stronger visual separation. */
|
|
3688
3569
|
wideHandle?: boolean;
|
|
3689
3570
|
'wide-handle'?: boolean;
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
/** Emitted to cycle whether the paned should grab focus to allow the user to change position of the handle by using key bindings. */
|
|
3697
|
-
onCycleHandleFocus?: (reversed: boolean) => void;
|
|
3698
|
-
/** Emitted to move the handle with key bindings. */
|
|
3699
|
-
onMoveHandle?: (scroll_type: Gtk.ScrollType) => void;
|
|
3700
|
-
/** Emitted to accept the current position of the handle and then move focus to the next widget in the focus chain. */
|
|
3701
|
-
onToggleHandleFocus?: () => void;
|
|
3571
|
+
onAcceptPosition?: Gtk.Paned.SignalSignatures['accept-position'];
|
|
3572
|
+
onCancelPosition?: Gtk.Paned.SignalSignatures['cancel-position'];
|
|
3573
|
+
onCycleChildFocus?: Gtk.Paned.SignalSignatures['cycle-child-focus'];
|
|
3574
|
+
onCycleHandleFocus?: Gtk.Paned.SignalSignatures['cycle-handle-focus'];
|
|
3575
|
+
onMoveHandle?: Gtk.Paned.SignalSignatures['move-handle'];
|
|
3576
|
+
onToggleHandleFocus?: Gtk.Paned.SignalSignatures['toggle-handle-focus'];
|
|
3702
3577
|
onNotifyEndChild?: NotifyHandler;
|
|
3703
3578
|
onNotifyPosition?: NotifyHandler;
|
|
3704
3579
|
onNotifyPositionSet?: NotifyHandler;
|
|
@@ -3723,8 +3598,7 @@ export interface GtkPasswordEntryProps extends GtkWidgetProps, GtkAccessibleProp
|
|
|
3723
3598
|
/** Whether to show an icon for revealing the content. */
|
|
3724
3599
|
showPeekIcon?: boolean;
|
|
3725
3600
|
'show-peek-icon'?: boolean;
|
|
3726
|
-
|
|
3727
|
-
onActivate?: () => void;
|
|
3601
|
+
onActivate?: Gtk.PasswordEntry.SignalSignatures['activate'];
|
|
3728
3602
|
onNotifyActivatesDefault?: NotifyHandler;
|
|
3729
3603
|
onNotifyExtraMenu?: NotifyHandler;
|
|
3730
3604
|
onNotifyPlaceholderText?: NotifyHandler;
|
|
@@ -3733,8 +3607,8 @@ export interface GtkPasswordEntryProps extends GtkWidgetProps, GtkAccessibleProp
|
|
|
3733
3607
|
/** Displays a `GdkPaintable`. */
|
|
3734
3608
|
export interface GtkPictureProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3735
3609
|
/** The alternative textual description for the picture. */
|
|
3736
|
-
alternativeText?: string;
|
|
3737
|
-
'alternative-text'?: string;
|
|
3610
|
+
alternativeText?: string | null;
|
|
3611
|
+
'alternative-text'?: string | null;
|
|
3738
3612
|
/** If the `GtkPicture` can be made smaller than the natural size of its contents. */
|
|
3739
3613
|
canShrink?: boolean;
|
|
3740
3614
|
'can-shrink'?: boolean;
|
|
@@ -3787,7 +3661,7 @@ export interface GtkPopoverMenuBarProps extends GtkWidgetProps, GtkAccessiblePro
|
|
|
3787
3661
|
onNotifyMenuModel?: NotifyHandler;
|
|
3788
3662
|
}
|
|
3789
3663
|
/** A subclass of `GtkPopover` that implements menu behavior. */
|
|
3790
|
-
export interface GtkPopoverMenuProps extends GtkPopoverProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkShortcutManagerProps {
|
|
3664
|
+
export interface GtkPopoverMenuProps extends GtkPopoverProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkShortcutManagerProps {
|
|
3791
3665
|
/** The flags that @popover uses to create/display a menu from its model. */
|
|
3792
3666
|
flags?: number;
|
|
3793
3667
|
/** The model from which the menu is made. */
|
|
@@ -3810,8 +3684,8 @@ export interface GtkPopoverProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
3810
3684
|
/** The child widget. */
|
|
3811
3685
|
child?: Gtk.Widget | null;
|
|
3812
3686
|
/** The default widget inside the popover. */
|
|
3813
|
-
defaultWidget?: Gtk.Widget
|
|
3814
|
-
'default-widget'?: Gtk.Widget
|
|
3687
|
+
defaultWidget?: Gtk.Widget;
|
|
3688
|
+
'default-widget'?: Gtk.Widget;
|
|
3815
3689
|
/** Whether to draw an arrow. */
|
|
3816
3690
|
hasArrow?: boolean;
|
|
3817
3691
|
'has-arrow'?: boolean;
|
|
@@ -3819,14 +3693,12 @@ export interface GtkPopoverProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
3819
3693
|
mnemonicsVisible?: boolean;
|
|
3820
3694
|
'mnemonics-visible'?: boolean;
|
|
3821
3695
|
/** Rectangle in the parent widget that the popover points to. */
|
|
3822
|
-
pointingTo?: Gdk.Rectangle
|
|
3823
|
-
'pointing-to'?: Gdk.Rectangle
|
|
3696
|
+
pointingTo?: Gdk.Rectangle;
|
|
3697
|
+
'pointing-to'?: Gdk.Rectangle;
|
|
3824
3698
|
/** How to place the popover, relative to its parent. */
|
|
3825
3699
|
position?: GtkPositionTypeNick | Gtk.PositionType;
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
/** Emitted when the popover is closed. */
|
|
3829
|
-
onClosed?: () => void;
|
|
3700
|
+
onActivateDefault?: Gtk.Popover.SignalSignatures['activate-default'];
|
|
3701
|
+
onClosed?: Gtk.Popover.SignalSignatures['closed'];
|
|
3830
3702
|
onNotifyAutohide?: NotifyHandler;
|
|
3831
3703
|
onNotifyCascadePopdown?: NotifyHandler;
|
|
3832
3704
|
onNotifyChild?: NotifyHandler;
|
|
@@ -3837,7 +3709,7 @@ export interface GtkPopoverProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
3837
3709
|
onNotifyPosition?: NotifyHandler;
|
|
3838
3710
|
}
|
|
3839
3711
|
/** A print dialog for platforms which don’t provide a native print dialog, like Unix. */
|
|
3840
|
-
export interface GtkPrintUnixDialogProps extends GtkDialogProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
3712
|
+
export interface GtkPrintUnixDialogProps extends GtkDialogProps, GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
3841
3713
|
/** The current page in the document. */
|
|
3842
3714
|
currentPage?: number;
|
|
3843
3715
|
'current-page'?: number;
|
|
@@ -3851,11 +3723,11 @@ export interface GtkPrintUnixDialogProps extends GtkDialogProps, GtkAccessiblePr
|
|
|
3851
3723
|
manualCapabilities?: number;
|
|
3852
3724
|
'manual-capabilities'?: number;
|
|
3853
3725
|
/** The `GtkPageSetup` object to use. */
|
|
3854
|
-
pageSetup?: Gtk.PageSetup
|
|
3855
|
-
'page-setup'?: Gtk.PageSetup
|
|
3726
|
+
pageSetup?: Gtk.PageSetup;
|
|
3727
|
+
'page-setup'?: Gtk.PageSetup;
|
|
3856
3728
|
/** The `GtkPrintSettings` object used for this dialog. */
|
|
3857
|
-
printSettings?: Gtk.PrintSettings
|
|
3858
|
-
'print-settings'?: Gtk.PrintSettings
|
|
3729
|
+
printSettings?: Gtk.PrintSettings;
|
|
3730
|
+
'print-settings'?: Gtk.PrintSettings;
|
|
3859
3731
|
/** Whether the dialog supports selection. */
|
|
3860
3732
|
supportSelection?: boolean;
|
|
3861
3733
|
'support-selection'?: boolean;
|
|
@@ -3882,7 +3754,7 @@ export interface GtkProgressBarProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
3882
3754
|
showText?: boolean;
|
|
3883
3755
|
'show-text'?: boolean;
|
|
3884
3756
|
/** Text to be displayed in the progress bar. */
|
|
3885
|
-
text?: string;
|
|
3757
|
+
text?: string | null;
|
|
3886
3758
|
onNotifyEllipsize?: NotifyHandler;
|
|
3887
3759
|
onNotifyFraction?: NotifyHandler;
|
|
3888
3760
|
onNotifyInverted?: NotifyHandler;
|
|
@@ -3893,7 +3765,7 @@ export interface GtkProgressBarProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
3893
3765
|
/** Base class for widgets which visualize an adjustment. */
|
|
3894
3766
|
export interface GtkRangeProps extends GtkWidgetProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
3895
3767
|
/** The adjustment that is controlled by the range. */
|
|
3896
|
-
adjustment?: Gtk.Adjustment
|
|
3768
|
+
adjustment?: Gtk.Adjustment;
|
|
3897
3769
|
/** The fill level (e.g. */
|
|
3898
3770
|
fillLevel?: number;
|
|
3899
3771
|
'fill-level'?: number;
|
|
@@ -3908,14 +3780,10 @@ export interface GtkRangeProps extends GtkWidgetProps, GtkAccessibleProps, GtkAc
|
|
|
3908
3780
|
/** Controls whether fill level indicator graphics are displayed on the trough. */
|
|
3909
3781
|
showFillLevel?: boolean;
|
|
3910
3782
|
'show-fill-level'?: boolean;
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
/** Virtual function that moves the slider. */
|
|
3916
|
-
onMoveSlider?: (step: Gtk.ScrollType) => void;
|
|
3917
|
-
/** Emitted when the range value changes. */
|
|
3918
|
-
onValueChanged?: () => void;
|
|
3783
|
+
onAdjustBounds?: Gtk.Range.SignalSignatures['adjust-bounds'];
|
|
3784
|
+
onChangeValue?: Gtk.Range.SignalSignatures['change-value'];
|
|
3785
|
+
onMoveSlider?: Gtk.Range.SignalSignatures['move-slider'];
|
|
3786
|
+
onValueChanged?: Gtk.Range.SignalSignatures['value-changed'];
|
|
3919
3787
|
onNotifyAdjustment?: NotifyHandler;
|
|
3920
3788
|
onNotifyFillLevel?: NotifyHandler;
|
|
3921
3789
|
onNotifyInverted?: NotifyHandler;
|
|
@@ -3942,12 +3810,12 @@ export interface GtkRevealerProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
3942
3810
|
onNotifyTransitionType?: NotifyHandler;
|
|
3943
3811
|
}
|
|
3944
3812
|
/** An interface for widgets that can act as the root of a widget hierarchy. */
|
|
3945
|
-
export interface GtkRootProps
|
|
3813
|
+
export interface GtkRootProps {
|
|
3946
3814
|
}
|
|
3947
3815
|
/** Provides a button which pops up a scale widget. */
|
|
3948
3816
|
export interface GtkScaleButtonProps extends GtkWidgetProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
3949
3817
|
/** The `GtkAdjustment` that is used as the model. */
|
|
3950
|
-
adjustment?: Gtk.Adjustment
|
|
3818
|
+
adjustment?: Gtk.Adjustment;
|
|
3951
3819
|
/** If the scale button has a frame. */
|
|
3952
3820
|
hasFrame?: boolean;
|
|
3953
3821
|
'has-frame'?: boolean;
|
|
@@ -3955,19 +3823,16 @@ export interface GtkScaleButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
3955
3823
|
icons?: string[];
|
|
3956
3824
|
/** The value of the scale. */
|
|
3957
3825
|
value?: number;
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
onPopup?: () => void;
|
|
3962
|
-
/** Emitted when the value field has changed. */
|
|
3963
|
-
onValueChanged?: (value: number) => void;
|
|
3826
|
+
onPopdown?: Gtk.ScaleButton.SignalSignatures['popdown'];
|
|
3827
|
+
onPopup?: Gtk.ScaleButton.SignalSignatures['popup'];
|
|
3828
|
+
onValueChanged?: Gtk.ScaleButton.SignalSignatures['value-changed'];
|
|
3964
3829
|
onNotifyAdjustment?: NotifyHandler;
|
|
3965
3830
|
onNotifyHasFrame?: NotifyHandler;
|
|
3966
3831
|
onNotifyIcons?: NotifyHandler;
|
|
3967
3832
|
onNotifyValue?: NotifyHandler;
|
|
3968
3833
|
}
|
|
3969
3834
|
/** Allows to select a numeric value with a slider control. */
|
|
3970
|
-
export interface GtkScaleProps extends GtkRangeProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
3835
|
+
export interface GtkScaleProps extends GtkRangeProps, GtkWidgetProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
3971
3836
|
/** The number of decimal places that are displayed in the value. */
|
|
3972
3837
|
digits?: number;
|
|
3973
3838
|
/** Whether the current value is displayed as a string next to the slider. */
|
|
@@ -4004,7 +3869,7 @@ export interface GtkScrollableProps {
|
|
|
4004
3869
|
/** Shows a horizontal or vertical scrollbar. */
|
|
4005
3870
|
export interface GtkScrollbarProps extends GtkWidgetProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
4006
3871
|
/** The `GtkAdjustment` controlled by this scrollbar. */
|
|
4007
|
-
adjustment?: Gtk.Adjustment
|
|
3872
|
+
adjustment?: Gtk.Adjustment;
|
|
4008
3873
|
onNotifyAdjustment?: NotifyHandler;
|
|
4009
3874
|
}
|
|
4010
3875
|
/** Makes its child scrollable. */
|
|
@@ -4012,7 +3877,7 @@ export interface GtkScrolledWindowProps extends GtkWidgetProps, GtkAccessiblePro
|
|
|
4012
3877
|
/** The child widget. */
|
|
4013
3878
|
child?: Gtk.Widget | null;
|
|
4014
3879
|
/** The `GtkAdjustment` for the horizontal position. */
|
|
4015
|
-
hadjustment?: Gtk.Adjustment
|
|
3880
|
+
hadjustment?: Gtk.Adjustment;
|
|
4016
3881
|
/** Whether to draw a frame around the contents. */
|
|
4017
3882
|
hasFrame?: boolean;
|
|
4018
3883
|
'has-frame'?: boolean;
|
|
@@ -4044,21 +3909,17 @@ export interface GtkScrolledWindowProps extends GtkWidgetProps, GtkAccessiblePro
|
|
|
4044
3909
|
propagateNaturalWidth?: boolean;
|
|
4045
3910
|
'propagate-natural-width'?: boolean;
|
|
4046
3911
|
/** The `GtkAdjustment` for the vertical position. */
|
|
4047
|
-
vadjustment?: Gtk.Adjustment
|
|
3912
|
+
vadjustment?: Gtk.Adjustment;
|
|
4048
3913
|
/** When the vertical scrollbar is displayed. */
|
|
4049
3914
|
vscrollbarPolicy?: GtkPolicyTypeNick | Gtk.PolicyType;
|
|
4050
3915
|
'vscrollbar-policy'?: GtkPolicyTypeNick | Gtk.PolicyType;
|
|
4051
3916
|
/** Where the contents are located with respect to the scrollbars. */
|
|
4052
3917
|
windowPlacement?: GtkCornerTypeNick | Gtk.CornerType;
|
|
4053
3918
|
'window-placement'?: GtkCornerTypeNick | Gtk.CornerType;
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
/** Emitted when focus is moved away from the scrolled window by a keybinding. */
|
|
4059
|
-
onMoveFocusOut?: (direction_type: Gtk.DirectionType) => void;
|
|
4060
|
-
/** Emitted when a keybinding that scrolls is pressed. */
|
|
4061
|
-
onScrollChild?: (scroll: Gtk.ScrollType, horizontal: boolean) => void;
|
|
3919
|
+
onEdgeOvershot?: Gtk.ScrolledWindow.SignalSignatures['edge-overshot'];
|
|
3920
|
+
onEdgeReached?: Gtk.ScrolledWindow.SignalSignatures['edge-reached'];
|
|
3921
|
+
onMoveFocusOut?: Gtk.ScrolledWindow.SignalSignatures['move-focus-out'];
|
|
3922
|
+
onScrollChild?: Gtk.ScrolledWindow.SignalSignatures['scroll-child'];
|
|
4062
3923
|
onNotifyChild?: NotifyHandler;
|
|
4063
3924
|
onNotifyHadjustment?: NotifyHandler;
|
|
4064
3925
|
onNotifyHasFrame?: NotifyHandler;
|
|
@@ -4108,23 +3969,17 @@ export interface GtkSearchEntryProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
4108
3969
|
keyCaptureWidget?: Gtk.Widget | null;
|
|
4109
3970
|
'key-capture-widget'?: Gtk.Widget | null;
|
|
4110
3971
|
/** The text that will be displayed in the `GtkSearchEntry` when it is empty and unfocused. */
|
|
4111
|
-
placeholderText?: string;
|
|
4112
|
-
'placeholder-text'?: string;
|
|
3972
|
+
placeholderText?: string | null;
|
|
3973
|
+
'placeholder-text'?: string | null;
|
|
4113
3974
|
/** The delay in milliseconds from last keypress to the search changed signal. */
|
|
4114
3975
|
searchDelay?: number;
|
|
4115
3976
|
'search-delay'?: number;
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
/** Emitted with a delay. */
|
|
4123
|
-
onSearchChanged?: () => void;
|
|
4124
|
-
/** Emitted when the user initiated a search on the entry. */
|
|
4125
|
-
onSearchStarted?: () => void;
|
|
4126
|
-
/** Emitted when the user stops a search via keyboard input. */
|
|
4127
|
-
onStopSearch?: () => void;
|
|
3977
|
+
onActivate?: Gtk.SearchEntry.SignalSignatures['activate'];
|
|
3978
|
+
onNextMatch?: Gtk.SearchEntry.SignalSignatures['next-match'];
|
|
3979
|
+
onPreviousMatch?: Gtk.SearchEntry.SignalSignatures['previous-match'];
|
|
3980
|
+
onSearchChanged?: Gtk.SearchEntry.SignalSignatures['search-changed'];
|
|
3981
|
+
onSearchStarted?: Gtk.SearchEntry.SignalSignatures['search-started'];
|
|
3982
|
+
onStopSearch?: Gtk.SearchEntry.SignalSignatures['stop-search'];
|
|
4128
3983
|
onNotifyActivatesDefault?: NotifyHandler;
|
|
4129
3984
|
onNotifyInputHints?: NotifyHandler;
|
|
4130
3985
|
onNotifyInputPurpose?: NotifyHandler;
|
|
@@ -4141,13 +3996,13 @@ export interface GtkShortcutLabelProps extends GtkWidgetProps, GtkAccessibleProp
|
|
|
4141
3996
|
* The accelerator that @self displays.
|
|
4142
3997
|
* @deprecated
|
|
4143
3998
|
*/
|
|
4144
|
-
accelerator?: string;
|
|
3999
|
+
accelerator?: string | null;
|
|
4145
4000
|
/**
|
|
4146
4001
|
* The text that is displayed when no accelerator is set.
|
|
4147
4002
|
* @deprecated
|
|
4148
4003
|
*/
|
|
4149
|
-
disabledText?: string;
|
|
4150
|
-
'disabled-text'?: string;
|
|
4004
|
+
disabledText?: string | null;
|
|
4005
|
+
'disabled-text'?: string | null;
|
|
4151
4006
|
onNotifyAccelerator?: NotifyHandler;
|
|
4152
4007
|
onNotifyDisabledText?: NotifyHandler;
|
|
4153
4008
|
}
|
|
@@ -4155,13 +4010,13 @@ export interface GtkShortcutLabelProps extends GtkWidgetProps, GtkAccessibleProp
|
|
|
4155
4010
|
export interface GtkShortcutManagerProps {
|
|
4156
4011
|
}
|
|
4157
4012
|
/** A `GtkShortcutsGroup` represents a group of related keyboard shortcuts or gestures. */
|
|
4158
|
-
export interface GtkShortcutsGroupProps extends GtkBoxProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
4013
|
+
export interface GtkShortcutsGroupProps extends GtkBoxProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
4159
4014
|
/**
|
|
4160
4015
|
* The size group for the accelerator portion of shortcuts in this group.
|
|
4161
4016
|
* @deprecated
|
|
4162
4017
|
*/
|
|
4163
|
-
accelSizeGroup?: Gtk.SizeGroup
|
|
4164
|
-
'accel-size-group'?: Gtk.SizeGroup
|
|
4018
|
+
accelSizeGroup?: Gtk.SizeGroup;
|
|
4019
|
+
'accel-size-group'?: Gtk.SizeGroup;
|
|
4165
4020
|
/**
|
|
4166
4021
|
* The title for this group of shortcuts.
|
|
4167
4022
|
* @deprecated
|
|
@@ -4171,8 +4026,8 @@ export interface GtkShortcutsGroupProps extends GtkBoxProps, GtkAccessibleProps,
|
|
|
4171
4026
|
* The size group for the textual portion of shortcuts in this group.
|
|
4172
4027
|
* @deprecated
|
|
4173
4028
|
*/
|
|
4174
|
-
titleSizeGroup?: Gtk.SizeGroup
|
|
4175
|
-
'title-size-group'?: Gtk.SizeGroup
|
|
4029
|
+
titleSizeGroup?: Gtk.SizeGroup;
|
|
4030
|
+
'title-size-group'?: Gtk.SizeGroup;
|
|
4176
4031
|
/**
|
|
4177
4032
|
* An optional view that the shortcuts in this group are relevant for.
|
|
4178
4033
|
* @deprecated
|
|
@@ -4184,7 +4039,7 @@ export interface GtkShortcutsGroupProps extends GtkBoxProps, GtkAccessibleProps,
|
|
|
4184
4039
|
onNotifyView?: NotifyHandler;
|
|
4185
4040
|
}
|
|
4186
4041
|
/** A `GtkShortcutsSection` collects all the keyboard shortcuts and gestures for a major application mode. */
|
|
4187
|
-
export interface GtkShortcutsSectionProps extends GtkBoxProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
4042
|
+
export interface GtkShortcutsSectionProps extends GtkBoxProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
4188
4043
|
/**
|
|
4189
4044
|
* The maximum number of lines to allow per column.
|
|
4190
4045
|
* @deprecated
|
|
@@ -4208,11 +4063,7 @@ export interface GtkShortcutsSectionProps extends GtkBoxProps, GtkAccessibleProp
|
|
|
4208
4063
|
*/
|
|
4209
4064
|
viewName?: string;
|
|
4210
4065
|
'view-name'?: string;
|
|
4211
|
-
|
|
4212
|
-
* Emitted when we change the current page.
|
|
4213
|
-
* @deprecated
|
|
4214
|
-
*/
|
|
4215
|
-
onChangeCurrentPage?: (offset: number) => void;
|
|
4066
|
+
onChangeCurrentPage?: Gtk.ShortcutsSection.SignalSignatures['change-current-page'];
|
|
4216
4067
|
onNotifyMaxHeight?: NotifyHandler;
|
|
4217
4068
|
onNotifySectionName?: NotifyHandler;
|
|
4218
4069
|
onNotifyTitle?: NotifyHandler;
|
|
@@ -4224,8 +4075,8 @@ export interface GtkShortcutsShortcutProps extends GtkWidgetProps, GtkAccessible
|
|
|
4224
4075
|
* The size group for the accelerator portion of this shortcut.
|
|
4225
4076
|
* @deprecated
|
|
4226
4077
|
*/
|
|
4227
|
-
accelSizeGroup?: Gtk.SizeGroup
|
|
4228
|
-
'accel-size-group'?: Gtk.SizeGroup
|
|
4078
|
+
accelSizeGroup?: Gtk.SizeGroup;
|
|
4079
|
+
'accel-size-group'?: Gtk.SizeGroup;
|
|
4229
4080
|
/**
|
|
4230
4081
|
* The accelerator(s) represented by this object.
|
|
4231
4082
|
* @deprecated
|
|
@@ -4246,7 +4097,7 @@ export interface GtkShortcutsShortcutProps extends GtkWidgetProps, GtkAccessible
|
|
|
4246
4097
|
* An icon to represent the shortcut or gesture.
|
|
4247
4098
|
* @deprecated
|
|
4248
4099
|
*/
|
|
4249
|
-
icon?: Gio.Icon
|
|
4100
|
+
icon?: Gio.Icon;
|
|
4250
4101
|
/**
|
|
4251
4102
|
* %TRUE if an icon has been set.
|
|
4252
4103
|
* @deprecated
|
|
@@ -4279,8 +4130,8 @@ export interface GtkShortcutsShortcutProps extends GtkWidgetProps, GtkAccessible
|
|
|
4279
4130
|
* The size group for the textual portion of this shortcut.
|
|
4280
4131
|
* @deprecated
|
|
4281
4132
|
*/
|
|
4282
|
-
titleSizeGroup?: Gtk.SizeGroup
|
|
4283
|
-
'title-size-group'?: Gtk.SizeGroup
|
|
4133
|
+
titleSizeGroup?: Gtk.SizeGroup;
|
|
4134
|
+
'title-size-group'?: Gtk.SizeGroup;
|
|
4284
4135
|
onNotifyAccelSizeGroup?: NotifyHandler;
|
|
4285
4136
|
onNotifyAccelerator?: NotifyHandler;
|
|
4286
4137
|
onNotifyActionName?: NotifyHandler;
|
|
@@ -4294,7 +4145,7 @@ export interface GtkShortcutsShortcutProps extends GtkWidgetProps, GtkAccessible
|
|
|
4294
4145
|
onNotifyTitleSizeGroup?: NotifyHandler;
|
|
4295
4146
|
}
|
|
4296
4147
|
/** A `GtkShortcutsWindow` shows information about the keyboard shortcuts and gestures of an application. */
|
|
4297
|
-
export interface GtkShortcutsWindowProps extends GtkWindowProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
4148
|
+
export interface GtkShortcutsWindowProps extends GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
4298
4149
|
/**
|
|
4299
4150
|
* The name of the section to show.
|
|
4300
4151
|
* @deprecated
|
|
@@ -4307,16 +4158,8 @@ export interface GtkShortcutsWindowProps extends GtkWindowProps, GtkAccessiblePr
|
|
|
4307
4158
|
*/
|
|
4308
4159
|
viewName?: string;
|
|
4309
4160
|
'view-name'?: string;
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
* @deprecated
|
|
4313
|
-
*/
|
|
4314
|
-
onClose?: () => void;
|
|
4315
|
-
/**
|
|
4316
|
-
* Emitted when the user uses a keybinding to start a search.
|
|
4317
|
-
* @deprecated
|
|
4318
|
-
*/
|
|
4319
|
-
onSearch?: () => void;
|
|
4161
|
+
onClose?: Gtk.ShortcutsWindow.SignalSignatures['close'];
|
|
4162
|
+
onSearch?: Gtk.ShortcutsWindow.SignalSignatures['search'];
|
|
4320
4163
|
onNotifySectionName?: NotifyHandler;
|
|
4321
4164
|
onNotifyViewName?: NotifyHandler;
|
|
4322
4165
|
}
|
|
@@ -4326,7 +4169,7 @@ export interface GtkSpinButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
4326
4169
|
activatesDefault?: boolean;
|
|
4327
4170
|
'activates-default'?: boolean;
|
|
4328
4171
|
/** The adjustment that holds the value of the spin button. */
|
|
4329
|
-
adjustment?: Gtk.Adjustment
|
|
4172
|
+
adjustment?: Gtk.Adjustment;
|
|
4330
4173
|
/** The acceleration rate when you hold down a button or key. */
|
|
4331
4174
|
climbRate?: number;
|
|
4332
4175
|
'climb-rate'?: number;
|
|
@@ -4344,18 +4187,12 @@ export interface GtkSpinButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
4344
4187
|
value?: number;
|
|
4345
4188
|
/** Whether a spin button should wrap upon reaching its limits. */
|
|
4346
4189
|
wrap?: boolean;
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
/** Emitted to tweak the formatting of the value for display. */
|
|
4354
|
-
onOutput?: () => void;
|
|
4355
|
-
/** Emitted when the value is changed. */
|
|
4356
|
-
onValueChanged?: () => void;
|
|
4357
|
-
/** Emitted right after the spinbutton wraps from its maximum to its minimum value or vice-versa. */
|
|
4358
|
-
onWrapped?: () => void;
|
|
4190
|
+
onActivate?: Gtk.SpinButton.SignalSignatures['activate'];
|
|
4191
|
+
onChangeValue?: Gtk.SpinButton.SignalSignatures['change-value'];
|
|
4192
|
+
onInput?: Gtk.SpinButton.SignalSignatures['input'];
|
|
4193
|
+
onOutput?: Gtk.SpinButton.SignalSignatures['output'];
|
|
4194
|
+
onValueChanged?: Gtk.SpinButton.SignalSignatures['value-changed'];
|
|
4195
|
+
onWrapped?: Gtk.SpinButton.SignalSignatures['wrapped'];
|
|
4359
4196
|
onNotifyActivatesDefault?: NotifyHandler;
|
|
4360
4197
|
onNotifyAdjustment?: NotifyHandler;
|
|
4361
4198
|
onNotifyClimbRate?: NotifyHandler;
|
|
@@ -4391,8 +4228,8 @@ export interface GtkStackProps extends GtkWidgetProps, GtkAccessibleProps, GtkBu
|
|
|
4391
4228
|
visibleChild?: Gtk.Widget | null;
|
|
4392
4229
|
'visible-child'?: Gtk.Widget | null;
|
|
4393
4230
|
/** The name of the widget currently visible in the stack. */
|
|
4394
|
-
visibleChildName?: string;
|
|
4395
|
-
'visible-child-name'?: string;
|
|
4231
|
+
visibleChildName?: string | null;
|
|
4232
|
+
'visible-child-name'?: string | null;
|
|
4396
4233
|
onNotifyHhomogeneous?: NotifyHandler;
|
|
4397
4234
|
onNotifyInterpolateSize?: NotifyHandler;
|
|
4398
4235
|
onNotifyTransitionDuration?: NotifyHandler;
|
|
@@ -4415,16 +4252,22 @@ export interface GtkStackSwitcherProps extends GtkWidgetProps, GtkAccessibleProp
|
|
|
4415
4252
|
}
|
|
4416
4253
|
/** A `GtkStatusbar` widget is usually placed along the bottom of an application's main [class@Gtk.Window]. */
|
|
4417
4254
|
export interface GtkStatusbarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
/**
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4255
|
+
onTextPopped?: Gtk.Statusbar.SignalSignatures['text-popped'];
|
|
4256
|
+
onTextPushed?: Gtk.Statusbar.SignalSignatures['text-pushed'];
|
|
4257
|
+
}
|
|
4258
|
+
/** A widget that renders SVG, with animations and event handling. */
|
|
4259
|
+
export interface GtkSvgWidgetProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4260
|
+
/** Resource to load SVG data from. */
|
|
4261
|
+
resource?: string;
|
|
4262
|
+
/** The current state of the renderer. */
|
|
4263
|
+
state?: number;
|
|
4264
|
+
/** A CSS stylesheet to apply to the SVG. */
|
|
4265
|
+
stylesheet?: GLib.Bytes | null;
|
|
4266
|
+
onActivate?: Gtk.SvgWidget.SignalSignatures['activate'];
|
|
4267
|
+
onError?: Gtk.SvgWidget.SignalSignatures['error'];
|
|
4268
|
+
onNotifyResource?: NotifyHandler;
|
|
4269
|
+
onNotifyState?: NotifyHandler;
|
|
4270
|
+
onNotifyStylesheet?: NotifyHandler;
|
|
4428
4271
|
}
|
|
4429
4272
|
/** Shows a "light switch" that has two states: on or off. */
|
|
4430
4273
|
export interface GtkSwitchProps extends GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
@@ -4432,10 +4275,8 @@ export interface GtkSwitchProps extends GtkWidgetProps, GtkAccessibleProps, GtkA
|
|
|
4432
4275
|
active?: boolean;
|
|
4433
4276
|
/** The backend state that is controlled by the switch. */
|
|
4434
4277
|
state?: boolean;
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
/** Emitted to change the underlying state. */
|
|
4438
|
-
onStateSet?: (state: boolean) => void;
|
|
4278
|
+
onActivate?: Gtk.Switch.SignalSignatures['activate'];
|
|
4279
|
+
onStateSet?: Gtk.Switch.SignalSignatures['state-set'];
|
|
4439
4280
|
onNotifyActive?: NotifyHandler;
|
|
4440
4281
|
onNotifyState?: NotifyHandler;
|
|
4441
4282
|
}
|
|
@@ -4447,7 +4288,7 @@ export interface GtkTextProps extends GtkWidgetProps, GtkAccessibleProps, GtkAcc
|
|
|
4447
4288
|
/** A list of Pango attributes to apply to the text. */
|
|
4448
4289
|
attributes?: Pango.AttrList | null;
|
|
4449
4290
|
/** The `GtkEntryBuffer` object which stores the text. */
|
|
4450
|
-
buffer?: Gtk.EntryBuffer
|
|
4291
|
+
buffer?: Gtk.EntryBuffer;
|
|
4451
4292
|
/** Whether to suggest Emoji replacements. */
|
|
4452
4293
|
enableEmojiCompletion?: boolean;
|
|
4453
4294
|
'enable-emoji-completion'?: boolean;
|
|
@@ -4476,8 +4317,8 @@ export interface GtkTextProps extends GtkWidgetProps, GtkAccessibleProps, GtkAcc
|
|
|
4476
4317
|
overwriteMode?: boolean;
|
|
4477
4318
|
'overwrite-mode'?: boolean;
|
|
4478
4319
|
/** The text that will be displayed in the `GtkText` when it is empty and unfocused. */
|
|
4479
|
-
placeholderText?: string;
|
|
4480
|
-
'placeholder-text'?: string;
|
|
4320
|
+
placeholderText?: string | null;
|
|
4321
|
+
'placeholder-text'?: string | null;
|
|
4481
4322
|
/** Whether the widget should grow and shrink with the content. */
|
|
4482
4323
|
propagateTextWidth?: boolean;
|
|
4483
4324
|
'propagate-text-width'?: boolean;
|
|
@@ -4488,28 +4329,17 @@ export interface GtkTextProps extends GtkWidgetProps, GtkAccessibleProps, GtkAcc
|
|
|
4488
4329
|
'truncate-multiline'?: boolean;
|
|
4489
4330
|
/** If false, the text is masked with the “invisible char”. */
|
|
4490
4331
|
visibility?: boolean;
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
onInsertAtCursor?: (string: string) => void;
|
|
4503
|
-
/** Emitted to present the Emoji chooser. */
|
|
4504
|
-
onInsertEmoji?: () => void;
|
|
4505
|
-
/** Emitted when the user initiates a cursor movement. */
|
|
4506
|
-
onMoveCursor?: (step: Gtk.MovementStep, count: number, extend: boolean) => void;
|
|
4507
|
-
/** Emitted to paste the contents of the clipboard. */
|
|
4508
|
-
onPasteClipboard?: () => void;
|
|
4509
|
-
/** Emitted when the preedit text changes. */
|
|
4510
|
-
onPreeditChanged?: (preedit: string) => void;
|
|
4511
|
-
/** Emitted to toggle the overwrite mode. */
|
|
4512
|
-
onToggleOverwrite?: () => void;
|
|
4332
|
+
onActivate?: Gtk.Text.SignalSignatures['activate'];
|
|
4333
|
+
onBackspace?: Gtk.Text.SignalSignatures['backspace'];
|
|
4334
|
+
onCopyClipboard?: Gtk.Text.SignalSignatures['copy-clipboard'];
|
|
4335
|
+
onCutClipboard?: Gtk.Text.SignalSignatures['cut-clipboard'];
|
|
4336
|
+
onDeleteFromCursor?: Gtk.Text.SignalSignatures['delete-from-cursor'];
|
|
4337
|
+
onInsertAtCursor?: Gtk.Text.SignalSignatures['insert-at-cursor'];
|
|
4338
|
+
onInsertEmoji?: Gtk.Text.SignalSignatures['insert-emoji'];
|
|
4339
|
+
onMoveCursor?: Gtk.Text.SignalSignatures['move-cursor'];
|
|
4340
|
+
onPasteClipboard?: Gtk.Text.SignalSignatures['paste-clipboard'];
|
|
4341
|
+
onPreeditChanged?: Gtk.Text.SignalSignatures['preedit-changed'];
|
|
4342
|
+
onToggleOverwrite?: Gtk.Text.SignalSignatures['toggle-overwrite'];
|
|
4513
4343
|
onNotifyActivatesDefault?: NotifyHandler;
|
|
4514
4344
|
onNotifyAttributes?: NotifyHandler;
|
|
4515
4345
|
onNotifyBuffer?: NotifyHandler;
|
|
@@ -4537,7 +4367,7 @@ export interface GtkTextViewProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
4537
4367
|
bottomMargin?: number;
|
|
4538
4368
|
'bottom-margin'?: number;
|
|
4539
4369
|
/** The buffer which is displayed. */
|
|
4540
|
-
buffer?: Gtk.TextBuffer
|
|
4370
|
+
buffer?: Gtk.TextBuffer;
|
|
4541
4371
|
/** If the insertion cursor is shown. */
|
|
4542
4372
|
cursorVisible?: boolean;
|
|
4543
4373
|
'cursor-visible'?: boolean;
|
|
@@ -4586,36 +4416,21 @@ export interface GtkTextViewProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
4586
4416
|
/** Whether to wrap lines never, at word boundaries, or at character boundaries. */
|
|
4587
4417
|
wrapMode?: GtkWrapModeNick | Gtk.WrapMode;
|
|
4588
4418
|
'wrap-mode'?: GtkWrapModeNick | Gtk.WrapMode;
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
onMoveCursor?: (step: Gtk.MovementStep, count: number, extend_selection: boolean) => void;
|
|
4605
|
-
/** Gets emitted to move the viewport. */
|
|
4606
|
-
onMoveViewport?: (step: Gtk.ScrollStep, count: number) => void;
|
|
4607
|
-
/** Gets emitted to paste the contents of the clipboard into the text view. */
|
|
4608
|
-
onPasteClipboard?: () => void;
|
|
4609
|
-
/** Emitted when preedit text of the active IM changes. */
|
|
4610
|
-
onPreeditChanged?: (preedit: string) => void;
|
|
4611
|
-
/** Gets emitted to select or unselect the complete contents of the text view. */
|
|
4612
|
-
onSelectAll?: (select: boolean) => void;
|
|
4613
|
-
/** Gets emitted when the user initiates settings the "anchor" mark. */
|
|
4614
|
-
onSetAnchor?: () => void;
|
|
4615
|
-
/** Gets emitted to toggle the `cursor-visible` property. */
|
|
4616
|
-
onToggleCursorVisible?: () => void;
|
|
4617
|
-
/** Gets emitted to toggle the overwrite mode of the text view. */
|
|
4618
|
-
onToggleOverwrite?: () => void;
|
|
4419
|
+
onBackspace?: Gtk.TextView.SignalSignatures['backspace'];
|
|
4420
|
+
onCopyClipboard?: Gtk.TextView.SignalSignatures['copy-clipboard'];
|
|
4421
|
+
onCutClipboard?: Gtk.TextView.SignalSignatures['cut-clipboard'];
|
|
4422
|
+
onDeleteFromCursor?: Gtk.TextView.SignalSignatures['delete-from-cursor'];
|
|
4423
|
+
onExtendSelection?: Gtk.TextView.SignalSignatures['extend-selection'];
|
|
4424
|
+
onInsertAtCursor?: Gtk.TextView.SignalSignatures['insert-at-cursor'];
|
|
4425
|
+
onInsertEmoji?: Gtk.TextView.SignalSignatures['insert-emoji'];
|
|
4426
|
+
onMoveCursor?: Gtk.TextView.SignalSignatures['move-cursor'];
|
|
4427
|
+
onMoveViewport?: Gtk.TextView.SignalSignatures['move-viewport'];
|
|
4428
|
+
onPasteClipboard?: Gtk.TextView.SignalSignatures['paste-clipboard'];
|
|
4429
|
+
onPreeditChanged?: Gtk.TextView.SignalSignatures['preedit-changed'];
|
|
4430
|
+
onSelectAll?: Gtk.TextView.SignalSignatures['select-all'];
|
|
4431
|
+
onSetAnchor?: Gtk.TextView.SignalSignatures['set-anchor'];
|
|
4432
|
+
onToggleCursorVisible?: Gtk.TextView.SignalSignatures['toggle-cursor-visible'];
|
|
4433
|
+
onToggleOverwrite?: Gtk.TextView.SignalSignatures['toggle-overwrite'];
|
|
4619
4434
|
onNotifyAcceptsTab?: NotifyHandler;
|
|
4620
4435
|
onNotifyBottomMargin?: NotifyHandler;
|
|
4621
4436
|
onNotifyBuffer?: NotifyHandler;
|
|
@@ -4639,13 +4454,12 @@ export interface GtkTextViewProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
4639
4454
|
onNotifyWrapMode?: NotifyHandler;
|
|
4640
4455
|
}
|
|
4641
4456
|
/** Shows a button which remains “pressed-in” when clicked. */
|
|
4642
|
-
export interface GtkToggleButtonProps extends GtkButtonProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4457
|
+
export interface GtkToggleButtonProps extends GtkButtonProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4643
4458
|
/** If the toggle button should be pressed in. */
|
|
4644
4459
|
active?: boolean;
|
|
4645
4460
|
/** The toggle button whose group this widget belongs to. */
|
|
4646
|
-
group?: Gtk.ToggleButton
|
|
4647
|
-
|
|
4648
|
-
onToggled?: () => void;
|
|
4461
|
+
group?: Gtk.ToggleButton;
|
|
4462
|
+
onToggled?: Gtk.ToggleButton.SignalSignatures['toggled'];
|
|
4649
4463
|
onNotifyActive?: NotifyHandler;
|
|
4650
4464
|
onNotifyGroup?: NotifyHandler;
|
|
4651
4465
|
}
|
|
@@ -4711,29 +4525,21 @@ export interface GtkTreeViewProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
4711
4525
|
'show-expanders'?: boolean;
|
|
4712
4526
|
tooltipColumn?: number;
|
|
4713
4527
|
'tooltip-column'?: number;
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
onSelectCursorRow?: (object: boolean) => void;
|
|
4730
|
-
onStartInteractiveSearch?: () => void;
|
|
4731
|
-
/** The given row is about to be collapsed (hide its children nodes). */
|
|
4732
|
-
onTestCollapseRow?: (iter: Gtk.TreeIter, path: Gtk.TreePath) => void;
|
|
4733
|
-
/** The given row is about to be expanded (show its children nodes). */
|
|
4734
|
-
onTestExpandRow?: (iter: Gtk.TreeIter, path: Gtk.TreePath) => void;
|
|
4735
|
-
onToggleCursorRow?: () => void;
|
|
4736
|
-
onUnselectAll?: () => void;
|
|
4528
|
+
onColumnsChanged?: Gtk.TreeView.SignalSignatures['columns-changed'];
|
|
4529
|
+
onCursorChanged?: Gtk.TreeView.SignalSignatures['cursor-changed'];
|
|
4530
|
+
onExpandCollapseCursorRow?: Gtk.TreeView.SignalSignatures['expand-collapse-cursor-row'];
|
|
4531
|
+
onMoveCursor?: Gtk.TreeView.SignalSignatures['move-cursor'];
|
|
4532
|
+
onRowActivated?: Gtk.TreeView.SignalSignatures['row-activated'];
|
|
4533
|
+
onRowCollapsed?: Gtk.TreeView.SignalSignatures['row-collapsed'];
|
|
4534
|
+
onRowExpanded?: Gtk.TreeView.SignalSignatures['row-expanded'];
|
|
4535
|
+
onSelectAll?: Gtk.TreeView.SignalSignatures['select-all'];
|
|
4536
|
+
onSelectCursorParent?: Gtk.TreeView.SignalSignatures['select-cursor-parent'];
|
|
4537
|
+
onSelectCursorRow?: Gtk.TreeView.SignalSignatures['select-cursor-row'];
|
|
4538
|
+
onStartInteractiveSearch?: Gtk.TreeView.SignalSignatures['start-interactive-search'];
|
|
4539
|
+
onTestCollapseRow?: Gtk.TreeView.SignalSignatures['test-collapse-row'];
|
|
4540
|
+
onTestExpandRow?: Gtk.TreeView.SignalSignatures['test-expand-row'];
|
|
4541
|
+
onToggleCursorRow?: Gtk.TreeView.SignalSignatures['toggle-cursor-row'];
|
|
4542
|
+
onUnselectAll?: Gtk.TreeView.SignalSignatures['unselect-all'];
|
|
4737
4543
|
onNotifyActivateOnSingleClick?: NotifyHandler;
|
|
4738
4544
|
onNotifyEnableGridLines?: NotifyHandler;
|
|
4739
4545
|
onNotifyEnableSearch?: NotifyHandler;
|
|
@@ -4783,7 +4589,7 @@ export interface GtkViewportProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
4783
4589
|
onNotifyScrollToFocus?: NotifyHandler;
|
|
4784
4590
|
}
|
|
4785
4591
|
/** `GtkVolumeButton` is a `GtkScaleButton` subclass tailored for volume control. */
|
|
4786
|
-
export interface GtkVolumeButtonProps extends GtkScaleButtonProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
4592
|
+
export interface GtkVolumeButtonProps extends GtkScaleButtonProps, GtkWidgetProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
4787
4593
|
/**
|
|
4788
4594
|
* Whether to use symbolic icons as the icons.
|
|
4789
4595
|
* @deprecated
|
|
@@ -4793,7 +4599,7 @@ export interface GtkVolumeButtonProps extends GtkScaleButtonProps, GtkAccessible
|
|
|
4793
4599
|
onNotifyUseSymbolic?: NotifyHandler;
|
|
4794
4600
|
}
|
|
4795
4601
|
/** The base class for all widgets. */
|
|
4796
|
-
export interface GtkWidgetProps
|
|
4602
|
+
export interface GtkWidgetProps {
|
|
4797
4603
|
/** Whether the widget or any of its descendents can accept the input focus. */
|
|
4798
4604
|
canFocus?: boolean;
|
|
4799
4605
|
'can-focus'?: boolean;
|
|
@@ -4856,11 +4662,11 @@ export interface GtkWidgetProps extends GInitiallyUnownedProps, GtkAccessiblePro
|
|
|
4856
4662
|
/** Whether the widget responds to input. */
|
|
4857
4663
|
sensitive?: boolean;
|
|
4858
4664
|
/** Sets the text of tooltip to be the given string, which is marked up with Pango markup. */
|
|
4859
|
-
tooltipMarkup?: string;
|
|
4860
|
-
'tooltip-markup'?: string;
|
|
4665
|
+
tooltipMarkup?: string | null;
|
|
4666
|
+
'tooltip-markup'?: string | null;
|
|
4861
4667
|
/** Sets the text of tooltip to be the given string. */
|
|
4862
|
-
tooltipText?: string;
|
|
4863
|
-
'tooltip-text'?: string;
|
|
4668
|
+
tooltipText?: string | null;
|
|
4669
|
+
'tooltip-text'?: string | null;
|
|
4864
4670
|
/** How to distribute vertical space if widget gets extra space. */
|
|
4865
4671
|
valign?: GtkAlignNick | Gtk.Align;
|
|
4866
4672
|
/** Whether to expand vertically. */
|
|
@@ -4873,32 +4679,19 @@ export interface GtkWidgetProps extends GInitiallyUnownedProps, GtkAccessiblePro
|
|
|
4873
4679
|
/** Overrides for width request of the widget. */
|
|
4874
4680
|
widthRequest?: number;
|
|
4875
4681
|
'width-request'?: number;
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
onMoveFocus?: (direction: Gtk.DirectionType) => void;
|
|
4890
|
-
/** Emitted when the widget’s tooltip is about to be shown. */
|
|
4891
|
-
onQueryTooltip?: (x: number, y: number, keyboard_mode: boolean, tooltip: Gtk.Tooltip) => void;
|
|
4892
|
-
/** Emitted when @widget is associated with a `GdkSurface`. */
|
|
4893
|
-
onRealize?: () => void;
|
|
4894
|
-
/** Emitted when @widget is shown. */
|
|
4895
|
-
onShow?: () => void;
|
|
4896
|
-
/** Emitted when the widget state changes. */
|
|
4897
|
-
onStateFlagsChanged?: (flags: number) => void;
|
|
4898
|
-
/** Emitted when @widget is going to be unmapped. */
|
|
4899
|
-
onUnmap?: () => void;
|
|
4900
|
-
/** Emitted when the `GdkSurface` associated with @widget is destroyed. */
|
|
4901
|
-
onUnrealize?: () => void;
|
|
4682
|
+
onDestroy?: Gtk.Widget.SignalSignatures['destroy'];
|
|
4683
|
+
onDirectionChanged?: Gtk.Widget.SignalSignatures['direction-changed'];
|
|
4684
|
+
onHide?: Gtk.Widget.SignalSignatures['hide'];
|
|
4685
|
+
onKeynavFailed?: Gtk.Widget.SignalSignatures['keynav-failed'];
|
|
4686
|
+
onMap?: Gtk.Widget.SignalSignatures['map'];
|
|
4687
|
+
onMnemonicActivate?: Gtk.Widget.SignalSignatures['mnemonic-activate'];
|
|
4688
|
+
onMoveFocus?: Gtk.Widget.SignalSignatures['move-focus'];
|
|
4689
|
+
onQueryTooltip?: Gtk.Widget.SignalSignatures['query-tooltip'];
|
|
4690
|
+
onRealize?: Gtk.Widget.SignalSignatures['realize'];
|
|
4691
|
+
onShow?: Gtk.Widget.SignalSignatures['show'];
|
|
4692
|
+
onStateFlagsChanged?: Gtk.Widget.SignalSignatures['state-flags-changed'];
|
|
4693
|
+
onUnmap?: Gtk.Widget.SignalSignatures['unmap'];
|
|
4694
|
+
onUnrealize?: Gtk.Widget.SignalSignatures['unrealize'];
|
|
4902
4695
|
onNotifyCanFocus?: NotifyHandler;
|
|
4903
4696
|
onNotifyCanTarget?: NotifyHandler;
|
|
4904
4697
|
onNotifyCssClasses?: NotifyHandler;
|
|
@@ -4933,8 +4726,8 @@ export interface GtkWidgetProps extends GInitiallyUnownedProps, GtkAccessiblePro
|
|
|
4933
4726
|
/** Shows window frame controls. */
|
|
4934
4727
|
export interface GtkWindowControlsProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4935
4728
|
/** The decoration layout for window buttons. */
|
|
4936
|
-
decorationLayout?: string;
|
|
4937
|
-
'decoration-layout'?: string;
|
|
4729
|
+
decorationLayout?: string | null;
|
|
4730
|
+
'decoration-layout'?: string | null;
|
|
4938
4731
|
/** Whether the widget shows start or end side of the decoration layout. */
|
|
4939
4732
|
side?: GtkPackTypeNick | Gtk.PackType;
|
|
4940
4733
|
/** Whether to show platform native close/minimize/maximize buttons. */
|
|
@@ -4973,7 +4766,7 @@ export interface GtkWindowProps extends GtkWidgetProps, GtkAccessibleProps, GtkB
|
|
|
4973
4766
|
destroyWithParent?: boolean;
|
|
4974
4767
|
'destroy-with-parent'?: boolean;
|
|
4975
4768
|
/** The display that will display this window. */
|
|
4976
|
-
display?: Gdk.Display
|
|
4769
|
+
display?: Gdk.Display;
|
|
4977
4770
|
/** Whether 'focus rectangles' are currently visible in this window. */
|
|
4978
4771
|
focusVisible?: boolean;
|
|
4979
4772
|
'focus-visible'?: boolean;
|
|
@@ -4991,8 +4784,8 @@ export interface GtkWindowProps extends GtkWidgetProps, GtkAccessibleProps, GtkB
|
|
|
4991
4784
|
hideOnClose?: boolean;
|
|
4992
4785
|
'hide-on-close'?: boolean;
|
|
4993
4786
|
/** Specifies the name of the themed icon to use as the window icon. */
|
|
4994
|
-
iconName?: string;
|
|
4995
|
-
'icon-name'?: string;
|
|
4787
|
+
iconName?: string | null;
|
|
4788
|
+
'icon-name'?: string | null;
|
|
4996
4789
|
/** Whether the window is maximized. */
|
|
4997
4790
|
maximized?: boolean;
|
|
4998
4791
|
/** Whether mnemonics are currently visible in this window. */
|
|
@@ -5006,25 +4799,18 @@ export interface GtkWindowProps extends GtkWidgetProps, GtkAccessibleProps, GtkB
|
|
|
5006
4799
|
startupId?: string;
|
|
5007
4800
|
'startup-id'?: string;
|
|
5008
4801
|
/** The title of the window. */
|
|
5009
|
-
title?: string;
|
|
4802
|
+
title?: string | null;
|
|
5010
4803
|
/** The titlebar widget. */
|
|
5011
4804
|
titlebar?: Gtk.Widget | null;
|
|
5012
4805
|
/** The transient parent of the window. */
|
|
5013
4806
|
transientFor?: Gtk.Window | null;
|
|
5014
4807
|
'transient-for'?: Gtk.Window | null;
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
/** Emitted when the user enables or disables interactive debugging. */
|
|
5022
|
-
onEnableDebugging?: (toggle: boolean) => void;
|
|
5023
|
-
/**
|
|
5024
|
-
* Emitted when the set of accelerators or mnemonics that are associated with the window changes.
|
|
5025
|
-
* @deprecated
|
|
5026
|
-
*/
|
|
5027
|
-
onKeysChanged?: () => void;
|
|
4808
|
+
onActivateDefault?: Gtk.Window.SignalSignatures['activate-default'];
|
|
4809
|
+
onActivateFocus?: Gtk.Window.SignalSignatures['activate-focus'];
|
|
4810
|
+
onCloseRequest?: Gtk.Window.SignalSignatures['close-request'];
|
|
4811
|
+
onEnableDebugging?: Gtk.Window.SignalSignatures['enable-debugging'];
|
|
4812
|
+
onForceClose?: Gtk.Window.SignalSignatures['force-close'];
|
|
4813
|
+
onKeysChanged?: Gtk.Window.SignalSignatures['keys-changed'];
|
|
5028
4814
|
onNotifyApplication?: NotifyHandler;
|
|
5029
4815
|
onNotifyChild?: NotifyHandler;
|
|
5030
4816
|
onNotifyDecorated?: NotifyHandler;
|
|
@@ -5208,6 +4994,7 @@ export interface WidgetPropsByTag {
|
|
|
5208
4994
|
'gtk-stack-sidebar': GtkStackSidebarProps;
|
|
5209
4995
|
'gtk-stack-switcher': GtkStackSwitcherProps;
|
|
5210
4996
|
'gtk-statusbar': GtkStatusbarProps;
|
|
4997
|
+
'gtk-svg-widget': GtkSvgWidgetProps;
|
|
5211
4998
|
'gtk-switch': GtkSwitchProps;
|
|
5212
4999
|
'gtk-text': GtkTextProps;
|
|
5213
5000
|
'gtk-text-view': GtkTextViewProps;
|
|
@@ -5379,6 +5166,7 @@ export interface WidgetPropsByGType {
|
|
|
5379
5166
|
GtkStackSidebar: GtkStackSidebarProps;
|
|
5380
5167
|
GtkStackSwitcher: GtkStackSwitcherProps;
|
|
5381
5168
|
GtkStatusbar: GtkStatusbarProps;
|
|
5169
|
+
GtkSvgWidget: GtkSvgWidgetProps;
|
|
5382
5170
|
GtkSwitch: GtkSwitchProps;
|
|
5383
5171
|
GtkText: GtkTextProps;
|
|
5384
5172
|
GtkTextView: GtkTextViewProps;
|
|
@@ -5395,7 +5183,7 @@ export interface WidgetPropsByGType {
|
|
|
5395
5183
|
/**
|
|
5396
5184
|
* Kebab keys for the widgets Volar's camelize cannot reach from their GType name.
|
|
5397
5185
|
*
|
|
5398
|
-
* 1 of
|
|
5186
|
+
* 1 of 169. Generated, not curated: any future GType with two adjacent
|
|
5399
5187
|
* capitals lands here by itself instead of becoming a bug report.
|
|
5400
5188
|
*/
|
|
5401
5189
|
export interface WidgetPropsVueAliases {
|
|
@@ -5567,6 +5355,7 @@ export interface WidgetClassByTag {
|
|
|
5567
5355
|
'gtk-stack-sidebar': Gtk.StackSidebar;
|
|
5568
5356
|
'gtk-stack-switcher': Gtk.StackSwitcher;
|
|
5569
5357
|
'gtk-statusbar': Gtk.Statusbar;
|
|
5358
|
+
'gtk-svg-widget': Gtk.SvgWidget;
|
|
5570
5359
|
'gtk-switch': Gtk.Switch;
|
|
5571
5360
|
'gtk-text': Gtk.Text;
|
|
5572
5361
|
'gtk-text-view': Gtk.TextView;
|