@gjsify/gtk-host 0.44.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/README.md +50 -4
- package/lib/esm/adapters/solid.js +1 -1
- package/lib/esm/conformance/diagnostics.js +1 -1
- package/lib/esm/conformance/index.js +2 -2
- package/lib/esm/descriptors/adw.js +1 -1
- package/lib/esm/descriptors/gtk.js +1 -1
- package/lib/esm/errors.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 -0
- package/lib/esm/list/index.js +1 -0
- package/lib/esm/list/scroll.js +1 -0
- 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/signals.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/adapters/solid.d.ts +35 -0
- package/lib/types/conformance/diagnostics.d.ts +1 -1
- package/lib/types/descriptors/index.d.ts +3 -3
- package/lib/types/errors.d.ts +10 -0
- package/lib/types/generated/props.d.ts +684 -816
- package/lib/types/generated/widgets.d.ts +1 -1
- package/lib/types/generator/emit-types.d.mts +2 -2
- 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 +3 -3
- package/lib/types/index.d.ts +1 -1
- package/lib/types/list/controller.d.ts +112 -0
- package/lib/types/list/index.d.ts +2 -0
- package/lib/types/list/list.spec.d.ts +2 -0
- package/lib/types/list/scroll.d.ts +26 -0
- package/lib/types/policies.d.ts +18 -1
- package/lib/types/probe.d.ts +49 -0
- package/lib/types/probe.spec.d.ts +2 -0
- package/lib/types/props.d.ts +13 -1
- package/lib/types/registry.d.ts +1 -1
- package/lib/types/signals.d.ts +3 -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 +84 -4
- package/package.json +22 -16
- package/lib/types/generator/gir.d.mts +0 -164
- 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;
|
|
@@ -1586,6 +1619,35 @@ export interface AdwToggleGroupProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
1586
1619
|
onNotifyCanShrink?: NotifyHandler;
|
|
1587
1620
|
onNotifyHomogeneous?: NotifyHandler;
|
|
1588
1621
|
}
|
|
1622
|
+
/** A toggle within [class@ToggleGroup]. */
|
|
1623
|
+
export interface AdwToggleProps {
|
|
1624
|
+
/** The toggle child. */
|
|
1625
|
+
child?: Gtk.Widget | null;
|
|
1626
|
+
/** The description of the toggle. */
|
|
1627
|
+
description?: string;
|
|
1628
|
+
/** Whether this toggle is enabled. */
|
|
1629
|
+
enabled?: boolean;
|
|
1630
|
+
/** The toggle icon name. */
|
|
1631
|
+
iconName?: string | null;
|
|
1632
|
+
'icon-name'?: string | null;
|
|
1633
|
+
/** The toggle label. */
|
|
1634
|
+
label?: string | null;
|
|
1635
|
+
/** The toggle name. */
|
|
1636
|
+
name?: string;
|
|
1637
|
+
/** The tooltip of the toggle. */
|
|
1638
|
+
tooltip?: string;
|
|
1639
|
+
/** Whether an embedded underline in the label indicates a mnemonic. */
|
|
1640
|
+
useUnderline?: boolean;
|
|
1641
|
+
'use-underline'?: boolean;
|
|
1642
|
+
onNotifyChild?: NotifyHandler;
|
|
1643
|
+
onNotifyDescription?: NotifyHandler;
|
|
1644
|
+
onNotifyEnabled?: NotifyHandler;
|
|
1645
|
+
onNotifyIconName?: NotifyHandler;
|
|
1646
|
+
onNotifyLabel?: NotifyHandler;
|
|
1647
|
+
onNotifyName?: NotifyHandler;
|
|
1648
|
+
onNotifyTooltip?: NotifyHandler;
|
|
1649
|
+
onNotifyUseUnderline?: NotifyHandler;
|
|
1650
|
+
}
|
|
1589
1651
|
/** A widget containing a page, as well as top and/or bottom bars. */
|
|
1590
1652
|
export interface AdwToolbarViewProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1591
1653
|
/** Appearance of the bottom bars. */
|
|
@@ -1632,8 +1694,8 @@ export interface AdwViewStackProps extends GtkWidgetProps, GtkAccessibleProps, G
|
|
|
1632
1694
|
visibleChild?: Gtk.Widget | null;
|
|
1633
1695
|
'visible-child'?: Gtk.Widget | null;
|
|
1634
1696
|
/** The name of the widget currently visible in the stack. */
|
|
1635
|
-
visibleChildName?: string;
|
|
1636
|
-
'visible-child-name'?: string;
|
|
1697
|
+
visibleChildName?: string | null;
|
|
1698
|
+
'visible-child-name'?: string | null;
|
|
1637
1699
|
onNotifyEnableTransitions?: NotifyHandler;
|
|
1638
1700
|
onNotifyHhomogeneous?: NotifyHandler;
|
|
1639
1701
|
onNotifyTransitionDuration?: NotifyHandler;
|
|
@@ -1667,14 +1729,19 @@ export interface AdwViewSwitcherSidebarProps extends GtkWidgetProps, GtkAccessib
|
|
|
1667
1729
|
mode?: AdwSidebarModeNick | Adw.SidebarMode;
|
|
1668
1730
|
/** The placeholder widget. */
|
|
1669
1731
|
placeholder?: Gtk.Widget | null;
|
|
1732
|
+
/** A widget to be displayed before the sidebar items. */
|
|
1733
|
+
prefix?: Gtk.Widget | null;
|
|
1670
1734
|
/** The stack the sidebar controls. */
|
|
1671
1735
|
stack?: Adw.ViewStack | null;
|
|
1672
|
-
/**
|
|
1673
|
-
|
|
1736
|
+
/** A widget to be displayed after the sidebar items. */
|
|
1737
|
+
suffix?: Gtk.Widget | null;
|
|
1738
|
+
onActivated?: Adw.ViewSwitcherSidebar.SignalSignatures['activated'];
|
|
1674
1739
|
onNotifyFilter?: NotifyHandler;
|
|
1675
1740
|
onNotifyMode?: NotifyHandler;
|
|
1676
1741
|
onNotifyPlaceholder?: NotifyHandler;
|
|
1742
|
+
onNotifyPrefix?: NotifyHandler;
|
|
1677
1743
|
onNotifyStack?: NotifyHandler;
|
|
1744
|
+
onNotifySuffix?: NotifyHandler;
|
|
1678
1745
|
}
|
|
1679
1746
|
/** A view switcher title. */
|
|
1680
1747
|
export interface AdwViewSwitcherTitleProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
@@ -1705,7 +1772,7 @@ export interface AdwViewSwitcherTitleProps extends GtkWidgetProps, GtkAccessible
|
|
|
1705
1772
|
onNotifyViewSwitcherEnabled?: NotifyHandler;
|
|
1706
1773
|
}
|
|
1707
1774
|
/** A freeform window. */
|
|
1708
|
-
export interface AdwWindowProps extends GtkWindowProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
1775
|
+
export interface AdwWindowProps extends GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
1709
1776
|
/** Whether adaptive preview is currently open. */
|
|
1710
1777
|
adaptivePreview?: boolean;
|
|
1711
1778
|
'adaptive-preview'?: boolean;
|
|
@@ -1776,71 +1843,48 @@ export interface AdwWrapBoxProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
1776
1843
|
onNotifyWrapPolicy?: NotifyHandler;
|
|
1777
1844
|
onNotifyWrapReverse?: NotifyHandler;
|
|
1778
1845
|
}
|
|
1779
|
-
/** `GActionGroup` represents a group of actions. */
|
|
1780
|
-
export interface GActionGroupProps {
|
|
1781
|
-
/** Signals that a new action was just added to the group. */
|
|
1782
|
-
onActionAdded?: (action_name: string) => void;
|
|
1783
|
-
/** Signals that the enabled status of the named action has changed. */
|
|
1784
|
-
onActionEnabledChanged?: (action_name: string, enabled: boolean) => void;
|
|
1785
|
-
/** Signals that an action is just about to be removed from the group. */
|
|
1786
|
-
onActionRemoved?: (action_name: string) => void;
|
|
1787
|
-
/** Signals that the state of the named action has changed. */
|
|
1788
|
-
onActionStateChanged?: (action_name: string, value: GLib.Variant) => void;
|
|
1789
|
-
}
|
|
1790
|
-
/** `GActionMap` is an interface for action containers. */
|
|
1791
|
-
export interface GActionMapProps {
|
|
1792
|
-
}
|
|
1793
|
-
/** A type for objects that have an initially floating reference. */
|
|
1794
|
-
export interface GInitiallyUnownedProps extends GObjectProps {
|
|
1795
|
-
}
|
|
1796
|
-
/** The base object type. */
|
|
1797
|
-
export interface GObjectProps {
|
|
1798
|
-
/** 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. */
|
|
1799
|
-
onNotify?: (pspec: GObject.ParamSpec) => void;
|
|
1800
|
-
}
|
|
1801
1846
|
/** Displays information about a program. */
|
|
1802
|
-
export interface GtkAboutDialogProps extends GtkWindowProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
1847
|
+
export interface GtkAboutDialogProps extends GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
1803
1848
|
/** The people who contributed artwork to the program. */
|
|
1804
1849
|
artists?: string[];
|
|
1805
1850
|
/** The authors of the program. */
|
|
1806
1851
|
authors?: string[];
|
|
1807
1852
|
/** Comments about the program. */
|
|
1808
|
-
comments?: string;
|
|
1853
|
+
comments?: string | null;
|
|
1809
1854
|
/** Copyright information for the program. */
|
|
1810
|
-
copyright?: string;
|
|
1855
|
+
copyright?: string | null;
|
|
1811
1856
|
/** The people documenting the program. */
|
|
1812
1857
|
documenters?: string[];
|
|
1813
1858
|
/** The license of the program, as free-form text. */
|
|
1814
|
-
license?: string;
|
|
1859
|
+
license?: string | null;
|
|
1815
1860
|
/** The license of the program. */
|
|
1816
1861
|
licenseType?: GtkLicenseNick | Gtk.License;
|
|
1817
1862
|
'license-type'?: GtkLicenseNick | Gtk.License;
|
|
1818
1863
|
/** A logo for the about box. */
|
|
1819
1864
|
logo?: Gdk.Paintable | null;
|
|
1820
1865
|
/** A named icon to use as the logo for the about box. */
|
|
1821
|
-
logoIconName?: string;
|
|
1822
|
-
'logo-icon-name'?: string;
|
|
1866
|
+
logoIconName?: string | null;
|
|
1867
|
+
'logo-icon-name'?: string | null;
|
|
1823
1868
|
/** The name of the program. */
|
|
1824
|
-
programName?: string;
|
|
1825
|
-
'program-name'?: string;
|
|
1869
|
+
programName?: string | null;
|
|
1870
|
+
'program-name'?: string | null;
|
|
1826
1871
|
/** Information about the system on which the program is running. */
|
|
1827
|
-
systemInformation?: string;
|
|
1828
|
-
'system-information'?: string;
|
|
1872
|
+
systemInformation?: string | null;
|
|
1873
|
+
'system-information'?: string | null;
|
|
1829
1874
|
/** Credits to the translators. */
|
|
1830
|
-
translatorCredits?: string;
|
|
1831
|
-
'translator-credits'?: string;
|
|
1875
|
+
translatorCredits?: string | null;
|
|
1876
|
+
'translator-credits'?: string | null;
|
|
1832
1877
|
/** The version of the program. */
|
|
1833
|
-
version?: string;
|
|
1878
|
+
version?: string | null;
|
|
1834
1879
|
/** The URL for the link to the website of the program. */
|
|
1835
|
-
website?: string;
|
|
1880
|
+
website?: string | null;
|
|
1836
1881
|
/** The label for the link to the website of the program. */
|
|
1837
|
-
websiteLabel?: string;
|
|
1838
|
-
'website-label'?: string;
|
|
1882
|
+
websiteLabel?: string | null;
|
|
1883
|
+
'website-label'?: string | null;
|
|
1839
1884
|
/** Whether to wrap the text in the license dialog. */
|
|
1840
1885
|
wrapLicense?: boolean;
|
|
1841
1886
|
'wrap-license'?: boolean;
|
|
1842
|
-
|
|
1843
|
-
onActivateLink?: (uri: string) => void;
|
|
1887
|
+
onActivateLink?: Gtk.AboutDialog.SignalSignatures['activate-link'];
|
|
1844
1888
|
onNotifyArtists?: NotifyHandler;
|
|
1845
1889
|
onNotifyAuthors?: NotifyHandler;
|
|
1846
1890
|
onNotifyComments?: NotifyHandler;
|
|
@@ -1859,7 +1903,7 @@ export interface GtkAboutDialogProps extends GtkWindowProps, GtkAccessibleProps,
|
|
|
1859
1903
|
onNotifyWrapLicense?: NotifyHandler;
|
|
1860
1904
|
}
|
|
1861
1905
|
/** An interface for accessible objects containing links. */
|
|
1862
|
-
export interface GtkAccessibleHypertextProps
|
|
1906
|
+
export interface GtkAccessibleHypertextProps {
|
|
1863
1907
|
}
|
|
1864
1908
|
/** An interface for describing UI elements for Assistive Technologies. */
|
|
1865
1909
|
export interface GtkAccessibleProps {
|
|
@@ -1869,10 +1913,10 @@ export interface GtkAccessibleProps {
|
|
|
1869
1913
|
onNotifyAccessibleRole?: NotifyHandler;
|
|
1870
1914
|
}
|
|
1871
1915
|
/** An interface for accessible objects containing a numeric value. */
|
|
1872
|
-
export interface GtkAccessibleRangeProps
|
|
1916
|
+
export interface GtkAccessibleRangeProps {
|
|
1873
1917
|
}
|
|
1874
1918
|
/** An interface for accessible objects containing formatted text. */
|
|
1875
|
-
export interface GtkAccessibleTextProps
|
|
1919
|
+
export interface GtkAccessibleTextProps {
|
|
1876
1920
|
}
|
|
1877
1921
|
/** Presents contextual actions. */
|
|
1878
1922
|
export interface GtkActionBarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
@@ -1881,20 +1925,20 @@ export interface GtkActionBarProps extends GtkWidgetProps, GtkAccessibleProps, G
|
|
|
1881
1925
|
onNotifyRevealed?: NotifyHandler;
|
|
1882
1926
|
}
|
|
1883
1927
|
/** Provides a way to associate widgets with actions. */
|
|
1884
|
-
export interface GtkActionableProps
|
|
1928
|
+
export interface GtkActionableProps {
|
|
1885
1929
|
/** The name of the action with which this widget should be associated. */
|
|
1886
|
-
actionName?: string;
|
|
1887
|
-
'action-name'?: string;
|
|
1930
|
+
actionName?: string | null;
|
|
1931
|
+
'action-name'?: string | null;
|
|
1888
1932
|
/** The target value of the actionable widget's action. */
|
|
1889
|
-
actionTarget?: GLib.Variant
|
|
1890
|
-
'action-target'?: GLib.Variant
|
|
1933
|
+
actionTarget?: GLib.Variant;
|
|
1934
|
+
'action-target'?: GLib.Variant;
|
|
1891
1935
|
onNotifyActionName?: NotifyHandler;
|
|
1892
1936
|
onNotifyActionTarget?: NotifyHandler;
|
|
1893
1937
|
}
|
|
1894
1938
|
/** The `GtkAppChooserButton` lets the user select an application. */
|
|
1895
1939
|
export interface GtkAppChooserButtonProps extends GtkWidgetProps, GtkAccessibleProps, GtkAppChooserProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1896
1940
|
/** The text to show at the top of the dialog that can be opened from the button. */
|
|
1897
|
-
heading?: string;
|
|
1941
|
+
heading?: string | null;
|
|
1898
1942
|
/** Whether the app chooser dialog should be modal. */
|
|
1899
1943
|
modal?: boolean;
|
|
1900
1944
|
/** Determines whether the dropdown menu shows the default application on top for the provided content type. */
|
|
@@ -1903,28 +1947,25 @@ export interface GtkAppChooserButtonProps extends GtkWidgetProps, GtkAccessibleP
|
|
|
1903
1947
|
/** Determines whether the dropdown menu shows an item to open a `GtkAppChooserDialog`. */
|
|
1904
1948
|
showDialogItem?: boolean;
|
|
1905
1949
|
'show-dialog-item'?: boolean;
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
onChanged?: () => void;
|
|
1910
|
-
/** Emitted when a custom item is activated. */
|
|
1911
|
-
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'];
|
|
1912
1953
|
onNotifyHeading?: NotifyHandler;
|
|
1913
1954
|
onNotifyModal?: NotifyHandler;
|
|
1914
1955
|
onNotifyShowDefaultItem?: NotifyHandler;
|
|
1915
1956
|
onNotifyShowDialogItem?: NotifyHandler;
|
|
1916
1957
|
}
|
|
1917
1958
|
/** `GtkAppChooserDialog` shows a `GtkAppChooserWidget` inside a `GtkDialog`. */
|
|
1918
|
-
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 {
|
|
1919
1960
|
/** The GFile used by the `GtkAppChooserDialog`. */
|
|
1920
|
-
gfile?: Gio.File
|
|
1961
|
+
gfile?: Gio.File;
|
|
1921
1962
|
/** The text to show at the top of the dialog. */
|
|
1922
|
-
heading?: string;
|
|
1963
|
+
heading?: string | null;
|
|
1923
1964
|
onNotifyGfile?: NotifyHandler;
|
|
1924
1965
|
onNotifyHeading?: NotifyHandler;
|
|
1925
1966
|
}
|
|
1926
1967
|
/** `GtkAppChooser` is an interface for widgets which allow the user to choose an application. */
|
|
1927
|
-
export interface GtkAppChooserProps
|
|
1968
|
+
export interface GtkAppChooserProps {
|
|
1928
1969
|
/** The content type of the `GtkAppChooser` object. */
|
|
1929
1970
|
contentType?: string;
|
|
1930
1971
|
'content-type'?: string;
|
|
@@ -1933,8 +1974,8 @@ export interface GtkAppChooserProps extends GtkWidgetProps {
|
|
|
1933
1974
|
/** `GtkAppChooserWidget` is a widget for selecting applications. */
|
|
1934
1975
|
export interface GtkAppChooserWidgetProps extends GtkWidgetProps, GtkAccessibleProps, GtkAppChooserProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
1935
1976
|
/** The text that appears in the widget when there are no applications for the given content type. */
|
|
1936
|
-
defaultText?: string;
|
|
1937
|
-
'default-text'?: string;
|
|
1977
|
+
defaultText?: string | null;
|
|
1978
|
+
'default-text'?: string | null;
|
|
1938
1979
|
/** If %TRUE, the app chooser presents all applications in a single list, without subsections for default, recommended or related applications. */
|
|
1939
1980
|
showAll?: boolean;
|
|
1940
1981
|
'show-all'?: boolean;
|
|
@@ -1950,10 +1991,8 @@ export interface GtkAppChooserWidgetProps extends GtkWidgetProps, GtkAccessibleP
|
|
|
1950
1991
|
/** Determines whether the app chooser should show a section for recommended applications. */
|
|
1951
1992
|
showRecommended?: boolean;
|
|
1952
1993
|
'show-recommended'?: boolean;
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
/** Emitted when an application item is selected from the widget's list. */
|
|
1956
|
-
onApplicationSelected?: (application: Gio.AppInfo) => void;
|
|
1994
|
+
onApplicationActivated?: Gtk.AppChooserWidget.SignalSignatures['application-activated'];
|
|
1995
|
+
onApplicationSelected?: Gtk.AppChooserWidget.SignalSignatures['application-selected'];
|
|
1957
1996
|
onNotifyDefaultText?: NotifyHandler;
|
|
1958
1997
|
onNotifyShowAll?: NotifyHandler;
|
|
1959
1998
|
onNotifyShowDefault?: NotifyHandler;
|
|
@@ -1962,12 +2001,10 @@ export interface GtkAppChooserWidgetProps extends GtkWidgetProps, GtkAccessibleP
|
|
|
1962
2001
|
onNotifyShowRecommended?: NotifyHandler;
|
|
1963
2002
|
}
|
|
1964
2003
|
/** A `GtkWindow` subclass that integrates with `GtkApplication`. */
|
|
1965
|
-
export interface GtkApplicationWindowProps extends GtkWindowProps,
|
|
2004
|
+
export interface GtkApplicationWindowProps extends GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
1966
2005
|
/** If this property is true, the window will display a menubar unless it is shown by the desktop shell. */
|
|
1967
2006
|
showMenubar?: boolean;
|
|
1968
2007
|
'show-menubar'?: boolean;
|
|
1969
|
-
/** The handler for this signal should persist any application-specific state of @window into @dict. */
|
|
1970
|
-
onSaveState?: (dict: GLib.VariantDict) => void;
|
|
1971
2008
|
onNotifyShowMenubar?: NotifyHandler;
|
|
1972
2009
|
}
|
|
1973
2010
|
/** Preserves the aspect ratio of its child. */
|
|
@@ -1990,38 +2027,18 @@ export interface GtkAspectFrameProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
1990
2027
|
onNotifyYalign?: NotifyHandler;
|
|
1991
2028
|
}
|
|
1992
2029
|
/** `GtkAssistant` is used to represent a complex as a series of steps. */
|
|
1993
|
-
export interface GtkAssistantProps extends GtkWindowProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
2030
|
+
export interface GtkAssistantProps extends GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
1994
2031
|
/**
|
|
1995
2032
|
* %TRUE if the assistant uses a `GtkHeaderBar` for action buttons instead of the action-area.
|
|
1996
2033
|
* @deprecated
|
|
1997
2034
|
*/
|
|
1998
2035
|
useHeaderBar?: number;
|
|
1999
2036
|
'use-header-bar'?: number;
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
/**
|
|
2006
|
-
* Emitted when then the cancel button is clicked.
|
|
2007
|
-
* @deprecated
|
|
2008
|
-
*/
|
|
2009
|
-
onCancel?: () => void;
|
|
2010
|
-
/**
|
|
2011
|
-
* 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.
|
|
2012
|
-
* @deprecated
|
|
2013
|
-
*/
|
|
2014
|
-
onClose?: () => void;
|
|
2015
|
-
/**
|
|
2016
|
-
* The action signal for the Escape binding.
|
|
2017
|
-
* @deprecated
|
|
2018
|
-
*/
|
|
2019
|
-
onEscape?: () => void;
|
|
2020
|
-
/**
|
|
2021
|
-
* Emitted when a new page is set as the assistant's current page, before making the new page visible.
|
|
2022
|
-
* @deprecated
|
|
2023
|
-
*/
|
|
2024
|
-
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'];
|
|
2025
2042
|
onNotifyUseHeaderBar?: NotifyHandler;
|
|
2026
2043
|
}
|
|
2027
2044
|
/** Arranges child widgets into a single row or column. */
|
|
@@ -2055,17 +2072,15 @@ export interface GtkButtonProps extends GtkWidgetProps, GtkAccessibleProps, GtkA
|
|
|
2055
2072
|
hasFrame?: boolean;
|
|
2056
2073
|
'has-frame'?: boolean;
|
|
2057
2074
|
/** The name of the icon used to automatically populate the button. */
|
|
2058
|
-
iconName?: string;
|
|
2059
|
-
'icon-name'?: string;
|
|
2075
|
+
iconName?: string | null;
|
|
2076
|
+
'icon-name'?: string | null;
|
|
2060
2077
|
/** Text of the label inside the button, if the button contains a label widget. */
|
|
2061
|
-
label?: string;
|
|
2078
|
+
label?: string | null;
|
|
2062
2079
|
/** If set, an underline in the text indicates that the following character is to be used as mnemonic. */
|
|
2063
2080
|
useUnderline?: boolean;
|
|
2064
2081
|
'use-underline'?: boolean;
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
/** Emitted when the button has been activated (pressed and released). */
|
|
2068
|
-
onClicked?: () => void;
|
|
2082
|
+
onActivate?: Gtk.Button.SignalSignatures['activate'];
|
|
2083
|
+
onClicked?: Gtk.Button.SignalSignatures['clicked'];
|
|
2069
2084
|
onNotifyCanShrink?: NotifyHandler;
|
|
2070
2085
|
onNotifyChild?: NotifyHandler;
|
|
2071
2086
|
onNotifyHasFrame?: NotifyHandler;
|
|
@@ -2076,7 +2091,7 @@ export interface GtkButtonProps extends GtkWidgetProps, GtkAccessibleProps, GtkA
|
|
|
2076
2091
|
/** Displays a Gregorian calendar, one month at a time. */
|
|
2077
2092
|
export interface GtkCalendarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2078
2093
|
/** The selected date. */
|
|
2079
|
-
date?: GLib.DateTime
|
|
2094
|
+
date?: GLib.DateTime;
|
|
2080
2095
|
/**
|
|
2081
2096
|
* The selected day (as a number between 1 and 31).
|
|
2082
2097
|
* @deprecated
|
|
@@ -2101,16 +2116,11 @@ export interface GtkCalendarProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
2101
2116
|
* @deprecated
|
|
2102
2117
|
*/
|
|
2103
2118
|
year?: number;
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
onNextYear?: () => void;
|
|
2110
|
-
/** Emitted when the user switches to the previous month. */
|
|
2111
|
-
onPrevMonth?: () => void;
|
|
2112
|
-
/** Emitted when user switches to the previous year. */
|
|
2113
|
-
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'];
|
|
2114
2124
|
onNotifyDate?: NotifyHandler;
|
|
2115
2125
|
onNotifyDay?: NotifyHandler;
|
|
2116
2126
|
onNotifyMonth?: NotifyHandler;
|
|
@@ -2120,14 +2130,12 @@ export interface GtkCalendarProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
2120
2130
|
onNotifyYear?: NotifyHandler;
|
|
2121
2131
|
}
|
|
2122
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. */
|
|
2123
|
-
export interface GtkCellEditableProps
|
|
2133
|
+
export interface GtkCellEditableProps {
|
|
2124
2134
|
/** Indicates whether editing on the cell has been canceled. */
|
|
2125
2135
|
editingCanceled?: boolean;
|
|
2126
2136
|
'editing-canceled'?: boolean;
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
/** 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. */
|
|
2130
|
-
onRemoveWidget?: () => void;
|
|
2137
|
+
onEditingDone?: Gtk.CellEditable.SignalSignatures['editing-done'];
|
|
2138
|
+
onRemoveWidget?: Gtk.CellEditable.SignalSignatures['remove-widget'];
|
|
2131
2139
|
onNotifyEditingCanceled?: NotifyHandler;
|
|
2132
2140
|
}
|
|
2133
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… */
|
|
@@ -2136,11 +2144,11 @@ export interface GtkCellLayoutProps {
|
|
|
2136
2144
|
/** A widget displaying a single row of a GtkTreeModel A `GtkCellView` displays a single row of a `GtkTreeModel` using a `GtkCellArea` and `GtkCellAreaContext`. */
|
|
2137
2145
|
export interface GtkCellViewProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkCellLayoutProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
2138
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. */
|
|
2139
|
-
cellArea?: Gtk.CellArea
|
|
2140
|
-
'cell-area'?: Gtk.CellArea
|
|
2147
|
+
cellArea?: Gtk.CellArea;
|
|
2148
|
+
'cell-area'?: Gtk.CellArea;
|
|
2141
2149
|
/** The `GtkCellAreaContext` used to compute the geometry of the cell view. */
|
|
2142
|
-
cellAreaContext?: Gtk.CellAreaContext
|
|
2143
|
-
'cell-area-context'?: Gtk.CellAreaContext
|
|
2150
|
+
cellAreaContext?: Gtk.CellAreaContext;
|
|
2151
|
+
'cell-area-context'?: Gtk.CellAreaContext;
|
|
2144
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… */
|
|
2145
2153
|
drawSensitive?: boolean;
|
|
2146
2154
|
'draw-sensitive'?: boolean;
|
|
@@ -2185,18 +2193,16 @@ export interface GtkCheckButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
2185
2193
|
/** The child widget. */
|
|
2186
2194
|
child?: Gtk.Widget | null;
|
|
2187
2195
|
/** The check button whose group this widget belongs to. */
|
|
2188
|
-
group?: Gtk.CheckButton
|
|
2196
|
+
group?: Gtk.CheckButton;
|
|
2189
2197
|
/** If the check button is in an “in between” state. */
|
|
2190
2198
|
inconsistent?: boolean;
|
|
2191
2199
|
/** Text of the label inside the check button, if it contains a label widget. */
|
|
2192
|
-
label?: string;
|
|
2200
|
+
label?: string | null;
|
|
2193
2201
|
/** If set, an underline in the text indicates that the following character is to be used as mnemonic. */
|
|
2194
2202
|
useUnderline?: boolean;
|
|
2195
2203
|
'use-underline'?: boolean;
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
/** Emitted when the buttons's [property@Gtk.CheckButton:active] property changes. */
|
|
2199
|
-
onToggled?: () => void;
|
|
2204
|
+
onActivate?: Gtk.CheckButton.SignalSignatures['activate'];
|
|
2205
|
+
onToggled?: Gtk.CheckButton.SignalSignatures['toggled'];
|
|
2200
2206
|
onNotifyActive?: NotifyHandler;
|
|
2201
2207
|
onNotifyChild?: NotifyHandler;
|
|
2202
2208
|
onNotifyGroup?: NotifyHandler;
|
|
@@ -2213,16 +2219,14 @@ export interface GtkColorButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
2213
2219
|
'show-editor'?: boolean;
|
|
2214
2220
|
/** The title of the color chooser dialog */
|
|
2215
2221
|
title?: string;
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
/** Emitted when the user selects a color. */
|
|
2219
|
-
onColorSet?: () => void;
|
|
2222
|
+
onActivate?: Gtk.ColorButton.SignalSignatures['activate'];
|
|
2223
|
+
onColorSet?: Gtk.ColorButton.SignalSignatures['color-set'];
|
|
2220
2224
|
onNotifyModal?: NotifyHandler;
|
|
2221
2225
|
onNotifyShowEditor?: NotifyHandler;
|
|
2222
2226
|
onNotifyTitle?: NotifyHandler;
|
|
2223
2227
|
}
|
|
2224
2228
|
/** A dialog for choosing a color. */
|
|
2225
|
-
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 {
|
|
2226
2230
|
/** Whether the color chooser dialog is showing the single-color editor. */
|
|
2227
2231
|
showEditor?: boolean;
|
|
2228
2232
|
'show-editor'?: boolean;
|
|
@@ -2234,18 +2238,14 @@ export interface GtkColorChooserProps {
|
|
|
2234
2238
|
* The currently selected color, as a `GdkRGBA` struct.
|
|
2235
2239
|
* @deprecated
|
|
2236
2240
|
*/
|
|
2237
|
-
rgba?: Gdk.RGBA
|
|
2241
|
+
rgba?: Gdk.RGBA;
|
|
2238
2242
|
/**
|
|
2239
2243
|
* Whether colors may have alpha (translucency).
|
|
2240
2244
|
* @deprecated
|
|
2241
2245
|
*/
|
|
2242
2246
|
useAlpha?: boolean;
|
|
2243
2247
|
'use-alpha'?: boolean;
|
|
2244
|
-
|
|
2245
|
-
* Emitted when a color is activated from the color chooser.
|
|
2246
|
-
* @deprecated
|
|
2247
|
-
*/
|
|
2248
|
-
onColorActivated?: (color: Gdk.RGBA) => void;
|
|
2248
|
+
onColorActivated?: Gtk.ColorChooser.SignalSignatures['color-activated'];
|
|
2249
2249
|
onNotifyRgba?: NotifyHandler;
|
|
2250
2250
|
onNotifyUseAlpha?: NotifyHandler;
|
|
2251
2251
|
}
|
|
@@ -2261,12 +2261,20 @@ export interface GtkColorDialogButtonProps extends GtkWidgetProps, GtkAccessible
|
|
|
2261
2261
|
/** The `GtkColorDialog` that contains parameters for the color chooser dialog. */
|
|
2262
2262
|
dialog?: Gtk.ColorDialog | null;
|
|
2263
2263
|
/** The selected color. */
|
|
2264
|
-
rgba?: Gdk.RGBA
|
|
2265
|
-
|
|
2266
|
-
onActivate?: () => void;
|
|
2264
|
+
rgba?: Gdk.RGBA;
|
|
2265
|
+
onActivate?: Gtk.ColorDialogButton.SignalSignatures['activate'];
|
|
2267
2266
|
onNotifyDialog?: NotifyHandler;
|
|
2268
2267
|
onNotifyRgba?: NotifyHandler;
|
|
2269
2268
|
}
|
|
2269
|
+
/** Represents items in a cell in [class@Gtk.ColumnView]. */
|
|
2270
|
+
export interface GtkColumnViewCellProps extends GtkListItemProps {
|
|
2271
|
+
/** Widget used for display. */
|
|
2272
|
+
child?: Gtk.Widget | null;
|
|
2273
|
+
/** If the item can be focused with the keyboard. */
|
|
2274
|
+
focusable?: boolean;
|
|
2275
|
+
onNotifyChild?: NotifyHandler;
|
|
2276
|
+
onNotifyFocusable?: NotifyHandler;
|
|
2277
|
+
}
|
|
2270
2278
|
/** Presents a large dynamic list of items using multiple columns with headers. */
|
|
2271
2279
|
export interface GtkColumnViewProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkScrollableProps {
|
|
2272
2280
|
/** Allow rubberband selection. */
|
|
@@ -2294,8 +2302,7 @@ export interface GtkColumnViewProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
2294
2302
|
/** Behavior of the <kbd>Tab</kbd> key */
|
|
2295
2303
|
tabBehavior?: GtkListTabBehaviorNick | Gtk.ListTabBehavior;
|
|
2296
2304
|
'tab-behavior'?: GtkListTabBehaviorNick | Gtk.ListTabBehavior;
|
|
2297
|
-
|
|
2298
|
-
onActivate?: (position: number) => void;
|
|
2305
|
+
onActivate?: Gtk.ColumnView.SignalSignatures['activate'];
|
|
2299
2306
|
onNotifyEnableRubberband?: NotifyHandler;
|
|
2300
2307
|
onNotifyHeaderFactory?: NotifyHandler;
|
|
2301
2308
|
onNotifyModel?: NotifyHandler;
|
|
@@ -2311,8 +2318,8 @@ export interface GtkComboBoxProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
2311
2318
|
/** The item which is currently active. */
|
|
2312
2319
|
active?: number;
|
|
2313
2320
|
/** The value of the ID column of the active row. */
|
|
2314
|
-
activeId?: string;
|
|
2315
|
-
'active-id'?: string;
|
|
2321
|
+
activeId?: string | null;
|
|
2322
|
+
'active-id'?: string | null;
|
|
2316
2323
|
/** Whether the dropdown button is sensitive when the model is empty. */
|
|
2317
2324
|
buttonSensitivity?: GtkSensitivityTypeNick | Gtk.SensitivityType;
|
|
2318
2325
|
'button-sensitivity'?: GtkSensitivityTypeNick | Gtk.SensitivityType;
|
|
@@ -2335,18 +2342,12 @@ export interface GtkComboBoxProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
2335
2342
|
/** Whether the popup's width should be a fixed width matching the allocated width of the combo box. */
|
|
2336
2343
|
popupFixedWidth?: boolean;
|
|
2337
2344
|
'popup-fixed-width'?: boolean;
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
/** Emitted to move the active selection. */
|
|
2345
|
-
onMoveActive?: (scroll_type: Gtk.ScrollType) => void;
|
|
2346
|
-
/** Emitted to popdown the combo box list. */
|
|
2347
|
-
onPopdown?: () => void;
|
|
2348
|
-
/** Emitted to popup the combo box list. */
|
|
2349
|
-
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'];
|
|
2350
2351
|
onNotifyActive?: NotifyHandler;
|
|
2351
2352
|
onNotifyActiveId?: NotifyHandler;
|
|
2352
2353
|
onNotifyButtonSensitivity?: NotifyHandler;
|
|
@@ -2359,29 +2360,21 @@ export interface GtkComboBoxProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
2359
2360
|
onNotifyPopupFixedWidth?: NotifyHandler;
|
|
2360
2361
|
}
|
|
2361
2362
|
/** A `GtkComboBoxText` is a simple variant of `GtkComboBox` for text-only use cases. */
|
|
2362
|
-
export interface GtkComboBoxTextProps extends GtkComboBoxProps, GtkAccessibleProps, GtkBuildableProps, GtkCellEditableProps, GtkCellLayoutProps, GtkConstraintTargetProps {
|
|
2363
|
+
export interface GtkComboBoxTextProps extends GtkComboBoxProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkCellEditableProps, GtkCellLayoutProps, GtkConstraintTargetProps {
|
|
2363
2364
|
}
|
|
2364
2365
|
/** Makes it possible to use an object as source or target in a [class@Gtk.Constraint]. */
|
|
2365
2366
|
export interface GtkConstraintTargetProps {
|
|
2366
2367
|
}
|
|
2367
2368
|
/** Dialogs are a convenient way to prompt the user for a small amount of input. */
|
|
2368
|
-
export interface GtkDialogProps extends GtkWindowProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
2369
|
+
export interface GtkDialogProps extends GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
2369
2370
|
/**
|
|
2370
2371
|
* %TRUE if the dialog uses a headerbar for action buttons instead of the action-area.
|
|
2371
2372
|
* @deprecated
|
|
2372
2373
|
*/
|
|
2373
2374
|
useHeaderBar?: number;
|
|
2374
2375
|
'use-header-bar'?: number;
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
* @deprecated
|
|
2378
|
-
*/
|
|
2379
|
-
onClose?: () => void;
|
|
2380
|
-
/**
|
|
2381
|
-
* Emitted when an action widget is clicked.
|
|
2382
|
-
* @deprecated
|
|
2383
|
-
*/
|
|
2384
|
-
onResponse?: (response_id: Gtk.ResponseType) => void;
|
|
2376
|
+
onClose?: Gtk.Dialog.SignalSignatures['close'];
|
|
2377
|
+
onResponse?: Gtk.Dialog.SignalSignatures['response'];
|
|
2385
2378
|
onNotifyUseHeaderBar?: NotifyHandler;
|
|
2386
2379
|
}
|
|
2387
2380
|
/** A `GtkRoot` implementation for drag icons. */
|
|
@@ -2398,8 +2391,7 @@ export interface GtkDrawingAreaProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
2398
2391
|
/** The content width. */
|
|
2399
2392
|
contentWidth?: number;
|
|
2400
2393
|
'content-width'?: number;
|
|
2401
|
-
|
|
2402
|
-
onResize?: (width: number, height: number) => void;
|
|
2394
|
+
onResize?: Gtk.DrawingArea.SignalSignatures['resize'];
|
|
2403
2395
|
onNotifyContentHeight?: NotifyHandler;
|
|
2404
2396
|
onNotifyContentWidth?: NotifyHandler;
|
|
2405
2397
|
}
|
|
@@ -2428,8 +2420,7 @@ export interface GtkDropDownProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
2428
2420
|
/** Whether to show an arrow within the GtkDropDown widget. */
|
|
2429
2421
|
showArrow?: boolean;
|
|
2430
2422
|
'show-arrow'?: boolean;
|
|
2431
|
-
|
|
2432
|
-
onActivate?: () => void;
|
|
2423
|
+
onActivate?: Gtk.DropDown.SignalSignatures['activate'];
|
|
2433
2424
|
onNotifyEnableSearch?: NotifyHandler;
|
|
2434
2425
|
onNotifyExpression?: NotifyHandler;
|
|
2435
2426
|
onNotifyFactory?: NotifyHandler;
|
|
@@ -2447,12 +2438,15 @@ export interface GtkEditableLabelProps extends GtkWidgetProps, GtkAccessibleProp
|
|
|
2447
2438
|
onNotifyEditing?: NotifyHandler;
|
|
2448
2439
|
}
|
|
2449
2440
|
/** Interface for single-line text editing widgets. */
|
|
2450
|
-
export interface GtkEditableProps
|
|
2441
|
+
export interface GtkEditableProps {
|
|
2451
2442
|
/** Whether the entry contents can be edited. */
|
|
2452
2443
|
editable?: boolean;
|
|
2453
2444
|
/** If undo/redo should be enabled for the editable. */
|
|
2454
2445
|
enableUndo?: boolean;
|
|
2455
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;
|
|
2456
2450
|
/** The desired maximum width of the entry, in characters. */
|
|
2457
2451
|
maxWidthChars?: number;
|
|
2458
2452
|
'max-width-chars'?: number;
|
|
@@ -2463,23 +2457,21 @@ export interface GtkEditableProps extends GtkWidgetProps {
|
|
|
2463
2457
|
'width-chars'?: number;
|
|
2464
2458
|
/** The horizontal alignment, from 0 (left) to 1 (right). */
|
|
2465
2459
|
xalign?: number;
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
/** Emitted when text is inserted into the widget by the user. */
|
|
2471
|
-
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'];
|
|
2472
2464
|
onNotifyEditable?: NotifyHandler;
|
|
2473
2465
|
onNotifyEnableUndo?: NotifyHandler;
|
|
2466
|
+
onNotifyInputInterceptor?: NotifyHandler;
|
|
2474
2467
|
onNotifyMaxWidthChars?: NotifyHandler;
|
|
2475
2468
|
onNotifyText?: NotifyHandler;
|
|
2476
2469
|
onNotifyWidthChars?: NotifyHandler;
|
|
2477
2470
|
onNotifyXalign?: NotifyHandler;
|
|
2478
2471
|
}
|
|
2479
2472
|
/** Used by text widgets to let users insert Emoji characters. */
|
|
2480
|
-
export interface GtkEmojiChooserProps extends GtkPopoverProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkShortcutManagerProps {
|
|
2481
|
-
|
|
2482
|
-
onEmojiPicked?: (text: string) => void;
|
|
2473
|
+
export interface GtkEmojiChooserProps extends GtkPopoverProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkShortcutManagerProps {
|
|
2474
|
+
onEmojiPicked?: Gtk.EmojiChooser.SignalSignatures['emoji-picked'];
|
|
2483
2475
|
}
|
|
2484
2476
|
/** A single-line text entry widget. */
|
|
2485
2477
|
export interface GtkEntryProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkCellEditableProps, GtkConstraintTargetProps, GtkEditableProps {
|
|
@@ -2489,7 +2481,7 @@ export interface GtkEntryProps extends GtkWidgetProps, GtkAccessibleProps, GtkBu
|
|
|
2489
2481
|
/** A list of Pango attributes to apply to the text of the entry. */
|
|
2490
2482
|
attributes?: Pango.AttrList | null;
|
|
2491
2483
|
/** The buffer object which actually stores the text. */
|
|
2492
|
-
buffer?: Gtk.EntryBuffer
|
|
2484
|
+
buffer?: Gtk.EntryBuffer;
|
|
2493
2485
|
/**
|
|
2494
2486
|
* The auxiliary completion object to use with the entry.
|
|
2495
2487
|
* @deprecated
|
|
@@ -2532,20 +2524,20 @@ export interface GtkEntryProps extends GtkWidgetProps, GtkAccessibleProps, GtkBu
|
|
|
2532
2524
|
overwriteMode?: boolean;
|
|
2533
2525
|
'overwrite-mode'?: boolean;
|
|
2534
2526
|
/** The text that will be displayed in the `GtkEntry` when it is empty and unfocused. */
|
|
2535
|
-
placeholderText?: string;
|
|
2536
|
-
'placeholder-text'?: string;
|
|
2527
|
+
placeholderText?: string | null;
|
|
2528
|
+
'placeholder-text'?: string | null;
|
|
2537
2529
|
/** Whether the primary icon is activatable. */
|
|
2538
2530
|
primaryIconActivatable?: boolean;
|
|
2539
2531
|
'primary-icon-activatable'?: boolean;
|
|
2540
2532
|
/** The `GIcon` to use for the primary icon for the entry. */
|
|
2541
|
-
primaryIconGicon?: Gio.Icon
|
|
2542
|
-
'primary-icon-gicon'?: Gio.Icon
|
|
2533
|
+
primaryIconGicon?: Gio.Icon;
|
|
2534
|
+
'primary-icon-gicon'?: Gio.Icon;
|
|
2543
2535
|
/** The icon name to use for the primary icon for the entry. */
|
|
2544
2536
|
primaryIconName?: string;
|
|
2545
2537
|
'primary-icon-name'?: string;
|
|
2546
2538
|
/** A `GdkPaintable` to use as the primary icon for the entry. */
|
|
2547
|
-
primaryIconPaintable?: Gdk.Paintable
|
|
2548
|
-
'primary-icon-paintable'?: Gdk.Paintable
|
|
2539
|
+
primaryIconPaintable?: Gdk.Paintable;
|
|
2540
|
+
'primary-icon-paintable'?: Gdk.Paintable;
|
|
2549
2541
|
/** Whether the primary icon is sensitive. */
|
|
2550
2542
|
primaryIconSensitive?: boolean;
|
|
2551
2543
|
'primary-icon-sensitive'?: boolean;
|
|
@@ -2565,14 +2557,14 @@ export interface GtkEntryProps extends GtkWidgetProps, GtkAccessibleProps, GtkBu
|
|
|
2565
2557
|
secondaryIconActivatable?: boolean;
|
|
2566
2558
|
'secondary-icon-activatable'?: boolean;
|
|
2567
2559
|
/** The `GIcon` to use for the secondary icon for the entry. */
|
|
2568
|
-
secondaryIconGicon?: Gio.Icon
|
|
2569
|
-
'secondary-icon-gicon'?: Gio.Icon
|
|
2560
|
+
secondaryIconGicon?: Gio.Icon;
|
|
2561
|
+
'secondary-icon-gicon'?: Gio.Icon;
|
|
2570
2562
|
/** The icon name to use for the secondary icon for the entry. */
|
|
2571
2563
|
secondaryIconName?: string;
|
|
2572
2564
|
'secondary-icon-name'?: string;
|
|
2573
2565
|
/** A `GdkPaintable` to use as the secondary icon for the entry. */
|
|
2574
|
-
secondaryIconPaintable?: Gdk.Paintable
|
|
2575
|
-
'secondary-icon-paintable'?: Gdk.Paintable
|
|
2566
|
+
secondaryIconPaintable?: Gdk.Paintable;
|
|
2567
|
+
'secondary-icon-paintable'?: Gdk.Paintable;
|
|
2576
2568
|
/** Whether the secondary icon is sensitive. */
|
|
2577
2569
|
secondaryIconSensitive?: boolean;
|
|
2578
2570
|
'secondary-icon-sensitive'?: boolean;
|
|
@@ -2592,12 +2584,9 @@ export interface GtkEntryProps extends GtkWidgetProps, GtkAccessibleProps, GtkBu
|
|
|
2592
2584
|
'truncate-multiline'?: boolean;
|
|
2593
2585
|
/** Whether the entry should show the “invisible char” instead of the actual text (“password mode”). */
|
|
2594
2586
|
visibility?: boolean;
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
onIconPress?: (icon_pos: Gtk.EntryIconPosition) => void;
|
|
2599
|
-
/** Emitted on the button release from a mouse click over an activatable icon. */
|
|
2600
|
-
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'];
|
|
2601
2590
|
onNotifyActivatesDefault?: NotifyHandler;
|
|
2602
2591
|
onNotifyAttributes?: NotifyHandler;
|
|
2603
2592
|
onNotifyBuffer?: NotifyHandler;
|
|
@@ -2643,7 +2632,7 @@ export interface GtkExpanderProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
2643
2632
|
/** Whether the expander has been opened to reveal the child. */
|
|
2644
2633
|
expanded?: boolean;
|
|
2645
2634
|
/** The text of the expanders label. */
|
|
2646
|
-
label?: string;
|
|
2635
|
+
label?: string | null;
|
|
2647
2636
|
/** A widget to display instead of the usual expander label. */
|
|
2648
2637
|
labelWidget?: Gtk.Widget | null;
|
|
2649
2638
|
'label-widget'?: Gtk.Widget | null;
|
|
@@ -2656,8 +2645,7 @@ export interface GtkExpanderProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
2656
2645
|
/** Whether an underline in the text indicates a mnemonic. */
|
|
2657
2646
|
useUnderline?: boolean;
|
|
2658
2647
|
'use-underline'?: boolean;
|
|
2659
|
-
|
|
2660
|
-
onActivate?: () => void;
|
|
2648
|
+
onActivate?: Gtk.Expander.SignalSignatures['activate'];
|
|
2661
2649
|
onNotifyChild?: NotifyHandler;
|
|
2662
2650
|
onNotifyExpanded?: NotifyHandler;
|
|
2663
2651
|
onNotifyLabel?: NotifyHandler;
|
|
@@ -2667,7 +2655,7 @@ export interface GtkExpanderProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
2667
2655
|
onNotifyUseUnderline?: NotifyHandler;
|
|
2668
2656
|
}
|
|
2669
2657
|
/** `GtkFileChooserDialog` is a dialog suitable for use with “File Open” or “File Save” commands. */
|
|
2670
|
-
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 {
|
|
2671
2659
|
}
|
|
2672
2660
|
/** `GtkFileChooser` is an interface that can be implemented by file selection widgets. */
|
|
2673
2661
|
export interface GtkFileChooserProps {
|
|
@@ -2703,30 +2691,18 @@ export interface GtkFileChooserWidgetProps extends GtkWidgetProps, GtkAccessible
|
|
|
2703
2691
|
/** Whether search mode is enabled. */
|
|
2704
2692
|
searchMode?: boolean;
|
|
2705
2693
|
'search-mode'?: boolean;
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
/** Emitted when the user asks for it. */
|
|
2719
|
-
onPlacesShortcut?: () => void;
|
|
2720
|
-
/** Emitted when the user asks for it. */
|
|
2721
|
-
onQuickBookmark?: (bookmark_index: number) => void;
|
|
2722
|
-
/** Emitted when the user asks for it. */
|
|
2723
|
-
onRecentShortcut?: () => void;
|
|
2724
|
-
/** Emitted when the user asks for it. */
|
|
2725
|
-
onSearchShortcut?: () => void;
|
|
2726
|
-
/** Emitted when the user asks for it. */
|
|
2727
|
-
onShowHidden?: () => void;
|
|
2728
|
-
/** Emitted when the user asks for it. */
|
|
2729
|
-
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'];
|
|
2730
2706
|
onNotifySearchMode?: NotifyHandler;
|
|
2731
2707
|
}
|
|
2732
2708
|
/** Places its child widgets at fixed positions and with fixed sizes. */
|
|
@@ -2736,8 +2712,7 @@ export interface GtkFixedProps extends GtkWidgetProps, GtkAccessibleProps, GtkBu
|
|
|
2736
2712
|
export interface GtkFlowBoxChildProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
2737
2713
|
/** The child widget. */
|
|
2738
2714
|
child?: Gtk.Widget | null;
|
|
2739
|
-
|
|
2740
|
-
onActivate?: () => void;
|
|
2715
|
+
onActivate?: Gtk.FlowBoxChild.SignalSignatures['activate'];
|
|
2741
2716
|
onNotifyChild?: NotifyHandler;
|
|
2742
2717
|
}
|
|
2743
2718
|
/** Puts child widgets in a reflowing grid. */
|
|
@@ -2765,20 +2740,13 @@ export interface GtkFlowBoxProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
2765
2740
|
/** The selection mode used by the flow box. */
|
|
2766
2741
|
selectionMode?: GtkSelectionModeNick | Gtk.SelectionMode;
|
|
2767
2742
|
'selection-mode'?: GtkSelectionModeNick | Gtk.SelectionMode;
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
onSelectAll?: () => void;
|
|
2776
|
-
/** Emitted when the set of selected children changes. */
|
|
2777
|
-
onSelectedChildrenChanged?: () => void;
|
|
2778
|
-
/** Emitted to toggle the selection of the child that has the focus. */
|
|
2779
|
-
onToggleCursorChild?: () => void;
|
|
2780
|
-
/** Emitted to unselect all children of the box, if the selection mode permits it. */
|
|
2781
|
-
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'];
|
|
2782
2750
|
onNotifyAcceptUnpairedRelease?: NotifyHandler;
|
|
2783
2751
|
onNotifyActivateOnSingleClick?: NotifyHandler;
|
|
2784
2752
|
onNotifyColumnSpacing?: NotifyHandler;
|
|
@@ -2800,17 +2768,15 @@ export interface GtkFontButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
2800
2768
|
/** Whether the buttons label will use the selected font size. */
|
|
2801
2769
|
useSize?: boolean;
|
|
2802
2770
|
'use-size'?: boolean;
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
/** Emitted when the user selects a font. */
|
|
2806
|
-
onFontSet?: () => void;
|
|
2771
|
+
onActivate?: Gtk.FontButton.SignalSignatures['activate'];
|
|
2772
|
+
onFontSet?: Gtk.FontButton.SignalSignatures['font-set'];
|
|
2807
2773
|
onNotifyModal?: NotifyHandler;
|
|
2808
2774
|
onNotifyTitle?: NotifyHandler;
|
|
2809
2775
|
onNotifyUseFont?: NotifyHandler;
|
|
2810
2776
|
onNotifyUseSize?: NotifyHandler;
|
|
2811
2777
|
}
|
|
2812
2778
|
/** The `GtkFontChooserDialog` widget is a dialog for selecting a font. */
|
|
2813
|
-
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 {
|
|
2814
2780
|
}
|
|
2815
2781
|
/** `GtkFontChooser` is an interface that can be implemented by widgets for choosing fonts. */
|
|
2816
2782
|
export interface GtkFontChooserProps {
|
|
@@ -2818,7 +2784,7 @@ export interface GtkFontChooserProps {
|
|
|
2818
2784
|
* The font description as a string, e.g.
|
|
2819
2785
|
* @deprecated
|
|
2820
2786
|
*/
|
|
2821
|
-
font?: string;
|
|
2787
|
+
font?: string | null;
|
|
2822
2788
|
/**
|
|
2823
2789
|
* The font description as a `PangoFontDescription`.
|
|
2824
2790
|
* @deprecated
|
|
@@ -2847,11 +2813,7 @@ export interface GtkFontChooserProps {
|
|
|
2847
2813
|
*/
|
|
2848
2814
|
showPreviewEntry?: boolean;
|
|
2849
2815
|
'show-preview-entry'?: boolean;
|
|
2850
|
-
|
|
2851
|
-
* Emitted when a font is activated.
|
|
2852
|
-
* @deprecated
|
|
2853
|
-
*/
|
|
2854
|
-
onFontActivated?: (fontname: string) => void;
|
|
2816
|
+
onFontActivated?: Gtk.FontChooser.SignalSignatures['font-activated'];
|
|
2855
2817
|
onNotifyFont?: NotifyHandler;
|
|
2856
2818
|
onNotifyFontDesc?: NotifyHandler;
|
|
2857
2819
|
onNotifyLanguage?: NotifyHandler;
|
|
@@ -2870,8 +2832,8 @@ export interface GtkFontDialogButtonProps extends GtkWidgetProps, GtkAccessibleP
|
|
|
2870
2832
|
fontDesc?: Pango.FontDescription | null;
|
|
2871
2833
|
'font-desc'?: Pango.FontDescription | null;
|
|
2872
2834
|
/** The selected font features. */
|
|
2873
|
-
fontFeatures?: string;
|
|
2874
|
-
'font-features'?: string;
|
|
2835
|
+
fontFeatures?: string | null;
|
|
2836
|
+
'font-features'?: string | null;
|
|
2875
2837
|
/** The selected language for font features. */
|
|
2876
2838
|
language?: Pango.Language | null;
|
|
2877
2839
|
/** The level of detail for the font chooser dialog. */
|
|
@@ -2882,8 +2844,7 @@ export interface GtkFontDialogButtonProps extends GtkWidgetProps, GtkAccessibleP
|
|
|
2882
2844
|
/** Whether the buttons label will use the selected font size. */
|
|
2883
2845
|
useSize?: boolean;
|
|
2884
2846
|
'use-size'?: boolean;
|
|
2885
|
-
|
|
2886
|
-
onActivate?: () => void;
|
|
2847
|
+
onActivate?: Gtk.FontDialogButton.SignalSignatures['activate'];
|
|
2887
2848
|
onNotifyDialog?: NotifyHandler;
|
|
2888
2849
|
onNotifyFontDesc?: NotifyHandler;
|
|
2889
2850
|
onNotifyFontFeatures?: NotifyHandler;
|
|
@@ -2897,7 +2858,7 @@ export interface GtkFrameProps extends GtkWidgetProps, GtkAccessibleProps, GtkBu
|
|
|
2897
2858
|
/** The child widget. */
|
|
2898
2859
|
child?: Gtk.Widget | null;
|
|
2899
2860
|
/** Text of the frame's label. */
|
|
2900
|
-
label?: string;
|
|
2861
|
+
label?: string | null;
|
|
2901
2862
|
/** Widget to display in place of the usual frame label. */
|
|
2902
2863
|
labelWidget?: Gtk.Widget | null;
|
|
2903
2864
|
'label-widget'?: Gtk.Widget | null;
|
|
@@ -2929,12 +2890,9 @@ export interface GtkGLAreaProps extends GtkWidgetProps, GtkAccessibleProps, GtkB
|
|
|
2929
2890
|
*/
|
|
2930
2891
|
useEs?: boolean;
|
|
2931
2892
|
'use-es'?: boolean;
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
onRender?: (context: Gdk.GLContext) => void;
|
|
2936
|
-
/** Emitted once when the widget is realized, and then each time the widget is changed while realized. */
|
|
2937
|
-
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'];
|
|
2938
2896
|
onNotifyAllowedApis?: NotifyHandler;
|
|
2939
2897
|
onNotifyAutoRender?: NotifyHandler;
|
|
2940
2898
|
onNotifyHasDepthBuffer?: NotifyHandler;
|
|
@@ -2978,7 +2936,7 @@ export interface GtkGridProps extends GtkWidgetProps, GtkAccessibleProps, GtkBui
|
|
|
2978
2936
|
onNotifyRowSpacing?: NotifyHandler;
|
|
2979
2937
|
}
|
|
2980
2938
|
/** Presents a large dynamic grid of items. */
|
|
2981
|
-
export interface GtkGridViewProps extends GtkListBaseProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps, GtkScrollableProps {
|
|
2939
|
+
export interface GtkGridViewProps extends GtkListBaseProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps, GtkScrollableProps {
|
|
2982
2940
|
/** Allow rubberband selection. */
|
|
2983
2941
|
enableRubberband?: boolean;
|
|
2984
2942
|
'enable-rubberband'?: boolean;
|
|
@@ -2998,8 +2956,7 @@ export interface GtkGridViewProps extends GtkListBaseProps, GtkAccessibleProps,
|
|
|
2998
2956
|
/** Behavior of the <kbd>Tab</kbd> key */
|
|
2999
2957
|
tabBehavior?: GtkListTabBehaviorNick | Gtk.ListTabBehavior;
|
|
3000
2958
|
'tab-behavior'?: GtkListTabBehaviorNick | Gtk.ListTabBehavior;
|
|
3001
|
-
|
|
3002
|
-
onActivate?: (position: number) => void;
|
|
2959
|
+
onActivate?: Gtk.GridView.SignalSignatures['activate'];
|
|
3003
2960
|
onNotifyEnableRubberband?: NotifyHandler;
|
|
3004
2961
|
onNotifyFactory?: NotifyHandler;
|
|
3005
2962
|
onNotifyMaxColumns?: NotifyHandler;
|
|
@@ -3011,8 +2968,8 @@ export interface GtkGridViewProps extends GtkListBaseProps, GtkAccessibleProps,
|
|
|
3011
2968
|
/** Creates a custom titlebar for a window. */
|
|
3012
2969
|
export interface GtkHeaderBarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3013
2970
|
/** The decoration layout for buttons. */
|
|
3014
|
-
decorationLayout?: string;
|
|
3015
|
-
'decoration-layout'?: string;
|
|
2971
|
+
decorationLayout?: string | null;
|
|
2972
|
+
'decoration-layout'?: string | null;
|
|
3016
2973
|
/** Whether to show title buttons like close, minimize, maximize. */
|
|
3017
2974
|
showTitleButtons?: boolean;
|
|
3018
2975
|
'show-title-buttons'?: boolean;
|
|
@@ -3033,8 +2990,8 @@ export interface GtkIconViewProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
3033
2990
|
activateOnSingleClick?: boolean;
|
|
3034
2991
|
'activate-on-single-click'?: boolean;
|
|
3035
2992
|
/** The `GtkCellArea` used to layout cell renderers for this view. */
|
|
3036
|
-
cellArea?: Gtk.CellArea
|
|
3037
|
-
'cell-area'?: Gtk.CellArea
|
|
2993
|
+
cellArea?: Gtk.CellArea;
|
|
2994
|
+
'cell-area'?: Gtk.CellArea;
|
|
3038
2995
|
/** The column-spacing property specifies the space which is inserted between the columns of the icon view. */
|
|
3039
2996
|
columnSpacing?: number;
|
|
3040
2997
|
'column-spacing'?: number;
|
|
@@ -3075,22 +3032,14 @@ export interface GtkIconViewProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
3075
3032
|
/** The column of the icon view model which is being used for displaying tooltips on it's rows. */
|
|
3076
3033
|
tooltipColumn?: number;
|
|
3077
3034
|
'tooltip-column'?: number;
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
/** A [keybinding signal][class@Gtk.SignalAction] which gets emitted when the user selects the item that is currently focused. */
|
|
3087
|
-
onSelectCursorItem?: () => void;
|
|
3088
|
-
/** The ::selection-changed signal is emitted when the selection (i.e. */
|
|
3089
|
-
onSelectionChanged?: () => void;
|
|
3090
|
-
/** A [keybinding signal][class@Gtk.SignalAction] which gets emitted when the user toggles whether the currently focused item is selected or not. */
|
|
3091
|
-
onToggleCursorItem?: () => void;
|
|
3092
|
-
/** A [keybinding signal][class@Gtk.SignalAction] which gets emitted when the user unselects all items. */
|
|
3093
|
-
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'];
|
|
3094
3043
|
onNotifyActivateOnSingleClick?: NotifyHandler;
|
|
3095
3044
|
onNotifyCellArea?: NotifyHandler;
|
|
3096
3045
|
onNotifyColumnSpacing?: NotifyHandler;
|
|
@@ -3116,8 +3065,8 @@ export interface GtkImageProps extends GtkWidgetProps, GtkAccessibleProps, GtkBu
|
|
|
3116
3065
|
/** The `GIcon` displayed in the GtkImage. */
|
|
3117
3066
|
gicon?: Gio.Icon | null;
|
|
3118
3067
|
/** The name of the icon in the icon theme. */
|
|
3119
|
-
iconName?: string;
|
|
3120
|
-
'icon-name'?: string;
|
|
3068
|
+
iconName?: string | null;
|
|
3069
|
+
'icon-name'?: string | null;
|
|
3121
3070
|
/** The symbolic size to display icons at. */
|
|
3122
3071
|
iconSize?: GtkIconSizeNick | Gtk.IconSize;
|
|
3123
3072
|
'icon-size'?: GtkIconSizeNick | Gtk.IconSize;
|
|
@@ -3150,10 +3099,8 @@ export interface GtkInfoBarProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
3150
3099
|
/** Whether to include a standard close button. */
|
|
3151
3100
|
showCloseButton?: boolean;
|
|
3152
3101
|
'show-close-button'?: boolean;
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
/** Emitted when an action widget is clicked. */
|
|
3156
|
-
onResponse?: (response_id: Gtk.ResponseType) => void;
|
|
3102
|
+
onClose?: Gtk.InfoBar.SignalSignatures['close'];
|
|
3103
|
+
onResponse?: Gtk.InfoBar.SignalSignatures['response'];
|
|
3157
3104
|
onNotifyMessageType?: NotifyHandler;
|
|
3158
3105
|
onNotifyRevealed?: NotifyHandler;
|
|
3159
3106
|
onNotifyShowCloseButton?: NotifyHandler;
|
|
@@ -3177,7 +3124,7 @@ export interface GtkInscriptionProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
3177
3124
|
natLines?: number;
|
|
3178
3125
|
'nat-lines'?: number;
|
|
3179
3126
|
/** The displayed text. */
|
|
3180
|
-
text?: string;
|
|
3127
|
+
text?: string | null;
|
|
3181
3128
|
/** The overflow method to use for the text. */
|
|
3182
3129
|
textOverflow?: GtkInscriptionOverflowNick | Gtk.InscriptionOverflow;
|
|
3183
3130
|
'text-overflow'?: GtkInscriptionOverflowNick | Gtk.InscriptionOverflow;
|
|
@@ -3249,14 +3196,10 @@ export interface GtkLabelProps extends GtkWidgetProps, GtkAccessibleProps, GtkAc
|
|
|
3249
3196
|
xalign?: number;
|
|
3250
3197
|
/** The vertical alignment of the label text inside its size allocation. */
|
|
3251
3198
|
yalign?: number;
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
/** Gets emitted to copy the selection to the clipboard. */
|
|
3257
|
-
onCopyClipboard?: () => void;
|
|
3258
|
-
/** Gets emitted when the user initiates a cursor movement. */
|
|
3259
|
-
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'];
|
|
3260
3203
|
onNotifyAttributes?: NotifyHandler;
|
|
3261
3204
|
onNotifyEllipsize?: NotifyHandler;
|
|
3262
3205
|
onNotifyExtraMenu?: NotifyHandler;
|
|
@@ -3291,8 +3234,7 @@ export interface GtkLevelBarProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
3291
3234
|
mode?: GtkLevelBarModeNick | Gtk.LevelBarMode;
|
|
3292
3235
|
/** Determines the currently filled value of the level bar. */
|
|
3293
3236
|
value?: number;
|
|
3294
|
-
|
|
3295
|
-
onOffsetChanged?: (name: string) => void;
|
|
3237
|
+
onOffsetChanged?: Gtk.LevelBar.SignalSignatures['offset-changed'];
|
|
3296
3238
|
onNotifyInverted?: NotifyHandler;
|
|
3297
3239
|
onNotifyMaxValue?: NotifyHandler;
|
|
3298
3240
|
onNotifyMinValue?: NotifyHandler;
|
|
@@ -3300,18 +3242,17 @@ export interface GtkLevelBarProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
3300
3242
|
onNotifyValue?: NotifyHandler;
|
|
3301
3243
|
}
|
|
3302
3244
|
/** A button with a hyperlink. */
|
|
3303
|
-
export interface GtkLinkButtonProps extends GtkButtonProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3245
|
+
export interface GtkLinkButtonProps extends GtkButtonProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3304
3246
|
/** The URI bound to this button. */
|
|
3305
3247
|
uri?: string;
|
|
3306
3248
|
/** The 'visited' state of this button. */
|
|
3307
3249
|
visited?: boolean;
|
|
3308
|
-
|
|
3309
|
-
onActivateLink?: () => void;
|
|
3250
|
+
onActivateLink?: Gtk.LinkButton.SignalSignatures['activate-link'];
|
|
3310
3251
|
onNotifyUri?: NotifyHandler;
|
|
3311
3252
|
onNotifyVisited?: NotifyHandler;
|
|
3312
3253
|
}
|
|
3313
3254
|
/** The abstract base class for GTK's list widgets. */
|
|
3314
|
-
export interface GtkListBaseProps
|
|
3255
|
+
export interface GtkListBaseProps {
|
|
3315
3256
|
/** The orientation of the list. */
|
|
3316
3257
|
orientation?: GtkOrientationNick | Gtk.Orientation;
|
|
3317
3258
|
onNotifyOrientation?: NotifyHandler;
|
|
@@ -3333,22 +3274,14 @@ export interface GtkListBoxProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
3333
3274
|
/** Behavior of the <kbd>Tab</kbd> key */
|
|
3334
3275
|
tabBehavior?: GtkListTabBehaviorNick | Gtk.ListTabBehavior;
|
|
3335
3276
|
'tab-behavior'?: GtkListTabBehaviorNick | Gtk.ListTabBehavior;
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
/** Emitted to select all children of the box, if the selection mode permits it. */
|
|
3345
|
-
onSelectAll?: () => void;
|
|
3346
|
-
/** Emitted when the set of selected rows changes. */
|
|
3347
|
-
onSelectedRowsChanged?: () => void;
|
|
3348
|
-
/** Emitted when the cursor row is toggled. */
|
|
3349
|
-
onToggleCursorRow?: () => void;
|
|
3350
|
-
/** Emitted to unselect all children of the box, if the selection mode permits it. */
|
|
3351
|
-
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'];
|
|
3352
3285
|
onNotifyAcceptUnpairedRelease?: NotifyHandler;
|
|
3353
3286
|
onNotifyActivateOnSingleClick?: NotifyHandler;
|
|
3354
3287
|
onNotifySelectionMode?: NotifyHandler;
|
|
@@ -3363,14 +3296,42 @@ export interface GtkListBoxRowProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
3363
3296
|
child?: Gtk.Widget | null;
|
|
3364
3297
|
/** Determines whether this row can be selected. */
|
|
3365
3298
|
selectable?: boolean;
|
|
3366
|
-
|
|
3367
|
-
|
|
3299
|
+
onActivate?: Gtk.ListBoxRow.SignalSignatures['activate'];
|
|
3300
|
+
onNotifyActivatable?: NotifyHandler;
|
|
3301
|
+
onNotifyChild?: NotifyHandler;
|
|
3302
|
+
onNotifySelectable?: NotifyHandler;
|
|
3303
|
+
}
|
|
3304
|
+
/** Used by list widgets to represent the headers they display. */
|
|
3305
|
+
export interface GtkListHeaderProps {
|
|
3306
|
+
/** Widget used for display. */
|
|
3307
|
+
child?: Gtk.Widget | null;
|
|
3308
|
+
onNotifyChild?: NotifyHandler;
|
|
3309
|
+
}
|
|
3310
|
+
/** Used by list widgets to represent items in a [iface@Gio.ListModel]. */
|
|
3311
|
+
export interface GtkListItemProps {
|
|
3312
|
+
/** The accessible description to set on the listitem. */
|
|
3313
|
+
accessibleDescription?: string;
|
|
3314
|
+
'accessible-description'?: string;
|
|
3315
|
+
/** The accessible label to set on the listitem. */
|
|
3316
|
+
accessibleLabel?: string;
|
|
3317
|
+
'accessible-label'?: string;
|
|
3318
|
+
/** If the item can be activated by the user. */
|
|
3319
|
+
activatable?: boolean;
|
|
3320
|
+
/** Widget used for display. */
|
|
3321
|
+
child?: Gtk.Widget | null;
|
|
3322
|
+
/** If the item can be focused with the keyboard. */
|
|
3323
|
+
focusable?: boolean;
|
|
3324
|
+
/** If the item can be selected by the user. */
|
|
3325
|
+
selectable?: boolean;
|
|
3326
|
+
onNotifyAccessibleDescription?: NotifyHandler;
|
|
3327
|
+
onNotifyAccessibleLabel?: NotifyHandler;
|
|
3368
3328
|
onNotifyActivatable?: NotifyHandler;
|
|
3369
3329
|
onNotifyChild?: NotifyHandler;
|
|
3330
|
+
onNotifyFocusable?: NotifyHandler;
|
|
3370
3331
|
onNotifySelectable?: NotifyHandler;
|
|
3371
3332
|
}
|
|
3372
3333
|
/** Presents a large dynamic list of items. */
|
|
3373
|
-
export interface GtkListViewProps extends GtkListBaseProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps, GtkScrollableProps {
|
|
3334
|
+
export interface GtkListViewProps extends GtkListBaseProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps, GtkScrollableProps {
|
|
3374
3335
|
/** Allow rubberband selection. */
|
|
3375
3336
|
enableRubberband?: boolean;
|
|
3376
3337
|
'enable-rubberband'?: boolean;
|
|
@@ -3390,8 +3351,7 @@ export interface GtkListViewProps extends GtkListBaseProps, GtkAccessibleProps,
|
|
|
3390
3351
|
/** Behavior of the <kbd>Tab</kbd> key */
|
|
3391
3352
|
tabBehavior?: GtkListTabBehaviorNick | Gtk.ListTabBehavior;
|
|
3392
3353
|
'tab-behavior'?: GtkListTabBehaviorNick | Gtk.ListTabBehavior;
|
|
3393
|
-
|
|
3394
|
-
onActivate?: (position: number) => void;
|
|
3354
|
+
onActivate?: Gtk.ListView.SignalSignatures['activate'];
|
|
3395
3355
|
onNotifyEnableRubberband?: NotifyHandler;
|
|
3396
3356
|
onNotifyFactory?: NotifyHandler;
|
|
3397
3357
|
onNotifyHeaderFactory?: NotifyHandler;
|
|
@@ -3401,7 +3361,7 @@ export interface GtkListViewProps extends GtkListBaseProps, GtkAccessibleProps,
|
|
|
3401
3361
|
onNotifyTabBehavior?: NotifyHandler;
|
|
3402
3362
|
}
|
|
3403
3363
|
/** `GtkLockButton` is a widget to obtain and revoke authorizations needed to operate the controls. */
|
|
3404
|
-
export interface GtkLockButtonProps extends GtkButtonProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3364
|
+
export interface GtkLockButtonProps extends GtkButtonProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3405
3365
|
/**
|
|
3406
3366
|
* The `GPermission object controlling this button.
|
|
3407
3367
|
* @deprecated
|
|
@@ -3469,10 +3429,10 @@ export interface GtkMenuButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
3469
3429
|
hasFrame?: boolean;
|
|
3470
3430
|
'has-frame'?: boolean;
|
|
3471
3431
|
/** The name of the icon used to automatically populate the button. */
|
|
3472
|
-
iconName?: string;
|
|
3473
|
-
'icon-name'?: string;
|
|
3432
|
+
iconName?: string | null;
|
|
3433
|
+
'icon-name'?: string | null;
|
|
3474
3434
|
/** The label for the button. */
|
|
3475
|
-
label?: string;
|
|
3435
|
+
label?: string | null;
|
|
3476
3436
|
/** The `GMenuModel` from which the popup will be created. */
|
|
3477
3437
|
menuModel?: Gio.MenuModel | null;
|
|
3478
3438
|
'menu-model'?: Gio.MenuModel | null;
|
|
@@ -3483,8 +3443,7 @@ export interface GtkMenuButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
3483
3443
|
/** If set an underscore in the text indicates a mnemonic. */
|
|
3484
3444
|
useUnderline?: boolean;
|
|
3485
3445
|
'use-underline'?: boolean;
|
|
3486
|
-
|
|
3487
|
-
onActivate?: () => void;
|
|
3446
|
+
onActivate?: Gtk.MenuButton.SignalSignatures['activate'];
|
|
3488
3447
|
onNotifyActive?: NotifyHandler;
|
|
3489
3448
|
onNotifyAlwaysShowArrow?: NotifyHandler;
|
|
3490
3449
|
onNotifyCanShrink?: NotifyHandler;
|
|
@@ -3499,7 +3458,7 @@ export interface GtkMenuButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
3499
3458
|
onNotifyUseUnderline?: NotifyHandler;
|
|
3500
3459
|
}
|
|
3501
3460
|
/** `GtkMessageDialog` presents a dialog with some message text. */
|
|
3502
|
-
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 {
|
|
3503
3462
|
/** Set of buttons to display on the dialog. */
|
|
3504
3463
|
buttons?: GtkButtonsTypeNick | Gtk.ButtonsType;
|
|
3505
3464
|
/** The type of the message. */
|
|
@@ -3524,7 +3483,7 @@ export interface GtkMessageDialogProps extends GtkDialogProps, GtkAccessibleProp
|
|
|
3524
3483
|
onNotifyUseMarkup?: NotifyHandler;
|
|
3525
3484
|
}
|
|
3526
3485
|
/** An interface for widgets that have their own [class@Gdk.Surface]. */
|
|
3527
|
-
export interface GtkNativeProps
|
|
3486
|
+
export interface GtkNativeProps {
|
|
3528
3487
|
}
|
|
3529
3488
|
/** Switches between children using tabs. */
|
|
3530
3489
|
export interface GtkNotebookProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
@@ -3532,8 +3491,8 @@ export interface GtkNotebookProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
3532
3491
|
enablePopup?: boolean;
|
|
3533
3492
|
'enable-popup'?: boolean;
|
|
3534
3493
|
/** Group name for tab drag and drop. */
|
|
3535
|
-
groupName?: string;
|
|
3536
|
-
'group-name'?: string;
|
|
3494
|
+
groupName?: string | null;
|
|
3495
|
+
'group-name'?: string | null;
|
|
3537
3496
|
/** The index of the current page. */
|
|
3538
3497
|
page?: number;
|
|
3539
3498
|
/** If %TRUE, scroll arrows are added if there are too many pages to fit. */
|
|
@@ -3547,26 +3506,16 @@ export interface GtkNotebookProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
3547
3506
|
/** Which side of the notebook holds the tabs. */
|
|
3548
3507
|
tabPos?: GtkPositionTypeNick | Gtk.PositionType;
|
|
3549
3508
|
'tab-pos'?: GtkPositionTypeNick | Gtk.PositionType;
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
/** the ::page-removed signal is emitted in the notebook right after a page is removed from the notebook. */
|
|
3561
|
-
onPageRemoved?: (child: Gtk.Widget, page_num: number) => void;
|
|
3562
|
-
/** the ::page-reordered signal is emitted in the notebook right after a page has been reordered. */
|
|
3563
|
-
onPageReordered?: (child: Gtk.Widget, page_num: number) => void;
|
|
3564
|
-
/** Emitted when the tab should be reordered. */
|
|
3565
|
-
onReorderTab?: (direction: Gtk.DirectionType, move_to_last: boolean) => void;
|
|
3566
|
-
/** Emitted when a page should be selected. */
|
|
3567
|
-
onSelectPage?: (move_focus: boolean) => void;
|
|
3568
|
-
/** Emitted when the user or a function changes the current page. */
|
|
3569
|
-
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'];
|
|
3570
3519
|
onNotifyEnablePopup?: NotifyHandler;
|
|
3571
3520
|
onNotifyGroupName?: NotifyHandler;
|
|
3572
3521
|
onNotifyPage?: NotifyHandler;
|
|
@@ -3585,12 +3534,11 @@ export interface GtkOrientableProps {
|
|
|
3585
3534
|
export interface GtkOverlayProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3586
3535
|
/** The main child widget. */
|
|
3587
3536
|
child?: Gtk.Widget | null;
|
|
3588
|
-
|
|
3589
|
-
onGetChildPosition?: (widget: Gtk.Widget, allocation: Gdk.Rectangle) => void;
|
|
3537
|
+
onGetChildPosition?: Gtk.Overlay.SignalSignatures['get-child-position'];
|
|
3590
3538
|
onNotifyChild?: NotifyHandler;
|
|
3591
3539
|
}
|
|
3592
3540
|
/** Presents a page setup dialog for platforms which don’t provide a native page setup dialog, like Unix. */
|
|
3593
|
-
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 {
|
|
3594
3542
|
}
|
|
3595
3543
|
/** Arranges its children in two panes, horizontally or vertically. */
|
|
3596
3544
|
export interface GtkPanedProps extends GtkWidgetProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
@@ -3620,18 +3568,12 @@ export interface GtkPanedProps extends GtkWidgetProps, GtkAccessibleProps, GtkAc
|
|
|
3620
3568
|
/** Whether the `GtkPaned` should provide a stronger visual separation. */
|
|
3621
3569
|
wideHandle?: boolean;
|
|
3622
3570
|
'wide-handle'?: boolean;
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
/** Emitted to cycle whether the paned should grab focus to allow the user to change position of the handle by using key bindings. */
|
|
3630
|
-
onCycleHandleFocus?: (reversed: boolean) => void;
|
|
3631
|
-
/** Emitted to move the handle with key bindings. */
|
|
3632
|
-
onMoveHandle?: (scroll_type: Gtk.ScrollType) => void;
|
|
3633
|
-
/** Emitted to accept the current position of the handle and then move focus to the next widget in the focus chain. */
|
|
3634
|
-
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'];
|
|
3635
3577
|
onNotifyEndChild?: NotifyHandler;
|
|
3636
3578
|
onNotifyPosition?: NotifyHandler;
|
|
3637
3579
|
onNotifyPositionSet?: NotifyHandler;
|
|
@@ -3656,8 +3598,7 @@ export interface GtkPasswordEntryProps extends GtkWidgetProps, GtkAccessibleProp
|
|
|
3656
3598
|
/** Whether to show an icon for revealing the content. */
|
|
3657
3599
|
showPeekIcon?: boolean;
|
|
3658
3600
|
'show-peek-icon'?: boolean;
|
|
3659
|
-
|
|
3660
|
-
onActivate?: () => void;
|
|
3601
|
+
onActivate?: Gtk.PasswordEntry.SignalSignatures['activate'];
|
|
3661
3602
|
onNotifyActivatesDefault?: NotifyHandler;
|
|
3662
3603
|
onNotifyExtraMenu?: NotifyHandler;
|
|
3663
3604
|
onNotifyPlaceholderText?: NotifyHandler;
|
|
@@ -3666,8 +3607,8 @@ export interface GtkPasswordEntryProps extends GtkWidgetProps, GtkAccessibleProp
|
|
|
3666
3607
|
/** Displays a `GdkPaintable`. */
|
|
3667
3608
|
export interface GtkPictureProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
3668
3609
|
/** The alternative textual description for the picture. */
|
|
3669
|
-
alternativeText?: string;
|
|
3670
|
-
'alternative-text'?: string;
|
|
3610
|
+
alternativeText?: string | null;
|
|
3611
|
+
'alternative-text'?: string | null;
|
|
3671
3612
|
/** If the `GtkPicture` can be made smaller than the natural size of its contents. */
|
|
3672
3613
|
canShrink?: boolean;
|
|
3673
3614
|
'can-shrink'?: boolean;
|
|
@@ -3720,7 +3661,7 @@ export interface GtkPopoverMenuBarProps extends GtkWidgetProps, GtkAccessiblePro
|
|
|
3720
3661
|
onNotifyMenuModel?: NotifyHandler;
|
|
3721
3662
|
}
|
|
3722
3663
|
/** A subclass of `GtkPopover` that implements menu behavior. */
|
|
3723
|
-
export interface GtkPopoverMenuProps extends GtkPopoverProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkShortcutManagerProps {
|
|
3664
|
+
export interface GtkPopoverMenuProps extends GtkPopoverProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkShortcutManagerProps {
|
|
3724
3665
|
/** The flags that @popover uses to create/display a menu from its model. */
|
|
3725
3666
|
flags?: number;
|
|
3726
3667
|
/** The model from which the menu is made. */
|
|
@@ -3743,8 +3684,8 @@ export interface GtkPopoverProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
3743
3684
|
/** The child widget. */
|
|
3744
3685
|
child?: Gtk.Widget | null;
|
|
3745
3686
|
/** The default widget inside the popover. */
|
|
3746
|
-
defaultWidget?: Gtk.Widget
|
|
3747
|
-
'default-widget'?: Gtk.Widget
|
|
3687
|
+
defaultWidget?: Gtk.Widget;
|
|
3688
|
+
'default-widget'?: Gtk.Widget;
|
|
3748
3689
|
/** Whether to draw an arrow. */
|
|
3749
3690
|
hasArrow?: boolean;
|
|
3750
3691
|
'has-arrow'?: boolean;
|
|
@@ -3752,14 +3693,12 @@ export interface GtkPopoverProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
3752
3693
|
mnemonicsVisible?: boolean;
|
|
3753
3694
|
'mnemonics-visible'?: boolean;
|
|
3754
3695
|
/** Rectangle in the parent widget that the popover points to. */
|
|
3755
|
-
pointingTo?: Gdk.Rectangle
|
|
3756
|
-
'pointing-to'?: Gdk.Rectangle
|
|
3696
|
+
pointingTo?: Gdk.Rectangle;
|
|
3697
|
+
'pointing-to'?: Gdk.Rectangle;
|
|
3757
3698
|
/** How to place the popover, relative to its parent. */
|
|
3758
3699
|
position?: GtkPositionTypeNick | Gtk.PositionType;
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
/** Emitted when the popover is closed. */
|
|
3762
|
-
onClosed?: () => void;
|
|
3700
|
+
onActivateDefault?: Gtk.Popover.SignalSignatures['activate-default'];
|
|
3701
|
+
onClosed?: Gtk.Popover.SignalSignatures['closed'];
|
|
3763
3702
|
onNotifyAutohide?: NotifyHandler;
|
|
3764
3703
|
onNotifyCascadePopdown?: NotifyHandler;
|
|
3765
3704
|
onNotifyChild?: NotifyHandler;
|
|
@@ -3770,7 +3709,7 @@ export interface GtkPopoverProps extends GtkWidgetProps, GtkAccessibleProps, Gtk
|
|
|
3770
3709
|
onNotifyPosition?: NotifyHandler;
|
|
3771
3710
|
}
|
|
3772
3711
|
/** A print dialog for platforms which don’t provide a native print dialog, like Unix. */
|
|
3773
|
-
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 {
|
|
3774
3713
|
/** The current page in the document. */
|
|
3775
3714
|
currentPage?: number;
|
|
3776
3715
|
'current-page'?: number;
|
|
@@ -3784,11 +3723,11 @@ export interface GtkPrintUnixDialogProps extends GtkDialogProps, GtkAccessiblePr
|
|
|
3784
3723
|
manualCapabilities?: number;
|
|
3785
3724
|
'manual-capabilities'?: number;
|
|
3786
3725
|
/** The `GtkPageSetup` object to use. */
|
|
3787
|
-
pageSetup?: Gtk.PageSetup
|
|
3788
|
-
'page-setup'?: Gtk.PageSetup
|
|
3726
|
+
pageSetup?: Gtk.PageSetup;
|
|
3727
|
+
'page-setup'?: Gtk.PageSetup;
|
|
3789
3728
|
/** The `GtkPrintSettings` object used for this dialog. */
|
|
3790
|
-
printSettings?: Gtk.PrintSettings
|
|
3791
|
-
'print-settings'?: Gtk.PrintSettings
|
|
3729
|
+
printSettings?: Gtk.PrintSettings;
|
|
3730
|
+
'print-settings'?: Gtk.PrintSettings;
|
|
3792
3731
|
/** Whether the dialog supports selection. */
|
|
3793
3732
|
supportSelection?: boolean;
|
|
3794
3733
|
'support-selection'?: boolean;
|
|
@@ -3815,7 +3754,7 @@ export interface GtkProgressBarProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
3815
3754
|
showText?: boolean;
|
|
3816
3755
|
'show-text'?: boolean;
|
|
3817
3756
|
/** Text to be displayed in the progress bar. */
|
|
3818
|
-
text?: string;
|
|
3757
|
+
text?: string | null;
|
|
3819
3758
|
onNotifyEllipsize?: NotifyHandler;
|
|
3820
3759
|
onNotifyFraction?: NotifyHandler;
|
|
3821
3760
|
onNotifyInverted?: NotifyHandler;
|
|
@@ -3826,7 +3765,7 @@ export interface GtkProgressBarProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
3826
3765
|
/** Base class for widgets which visualize an adjustment. */
|
|
3827
3766
|
export interface GtkRangeProps extends GtkWidgetProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
3828
3767
|
/** The adjustment that is controlled by the range. */
|
|
3829
|
-
adjustment?: Gtk.Adjustment
|
|
3768
|
+
adjustment?: Gtk.Adjustment;
|
|
3830
3769
|
/** The fill level (e.g. */
|
|
3831
3770
|
fillLevel?: number;
|
|
3832
3771
|
'fill-level'?: number;
|
|
@@ -3841,14 +3780,10 @@ export interface GtkRangeProps extends GtkWidgetProps, GtkAccessibleProps, GtkAc
|
|
|
3841
3780
|
/** Controls whether fill level indicator graphics are displayed on the trough. */
|
|
3842
3781
|
showFillLevel?: boolean;
|
|
3843
3782
|
'show-fill-level'?: boolean;
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
/** Virtual function that moves the slider. */
|
|
3849
|
-
onMoveSlider?: (step: Gtk.ScrollType) => void;
|
|
3850
|
-
/** Emitted when the range value changes. */
|
|
3851
|
-
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'];
|
|
3852
3787
|
onNotifyAdjustment?: NotifyHandler;
|
|
3853
3788
|
onNotifyFillLevel?: NotifyHandler;
|
|
3854
3789
|
onNotifyInverted?: NotifyHandler;
|
|
@@ -3875,12 +3810,12 @@ export interface GtkRevealerProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
3875
3810
|
onNotifyTransitionType?: NotifyHandler;
|
|
3876
3811
|
}
|
|
3877
3812
|
/** An interface for widgets that can act as the root of a widget hierarchy. */
|
|
3878
|
-
export interface GtkRootProps
|
|
3813
|
+
export interface GtkRootProps {
|
|
3879
3814
|
}
|
|
3880
3815
|
/** Provides a button which pops up a scale widget. */
|
|
3881
3816
|
export interface GtkScaleButtonProps extends GtkWidgetProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
3882
3817
|
/** The `GtkAdjustment` that is used as the model. */
|
|
3883
|
-
adjustment?: Gtk.Adjustment
|
|
3818
|
+
adjustment?: Gtk.Adjustment;
|
|
3884
3819
|
/** If the scale button has a frame. */
|
|
3885
3820
|
hasFrame?: boolean;
|
|
3886
3821
|
'has-frame'?: boolean;
|
|
@@ -3888,19 +3823,16 @@ export interface GtkScaleButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
3888
3823
|
icons?: string[];
|
|
3889
3824
|
/** The value of the scale. */
|
|
3890
3825
|
value?: number;
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
onPopup?: () => void;
|
|
3895
|
-
/** Emitted when the value field has changed. */
|
|
3896
|
-
onValueChanged?: (value: number) => void;
|
|
3826
|
+
onPopdown?: Gtk.ScaleButton.SignalSignatures['popdown'];
|
|
3827
|
+
onPopup?: Gtk.ScaleButton.SignalSignatures['popup'];
|
|
3828
|
+
onValueChanged?: Gtk.ScaleButton.SignalSignatures['value-changed'];
|
|
3897
3829
|
onNotifyAdjustment?: NotifyHandler;
|
|
3898
3830
|
onNotifyHasFrame?: NotifyHandler;
|
|
3899
3831
|
onNotifyIcons?: NotifyHandler;
|
|
3900
3832
|
onNotifyValue?: NotifyHandler;
|
|
3901
3833
|
}
|
|
3902
3834
|
/** Allows to select a numeric value with a slider control. */
|
|
3903
|
-
export interface GtkScaleProps extends GtkRangeProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
3835
|
+
export interface GtkScaleProps extends GtkRangeProps, GtkWidgetProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
3904
3836
|
/** The number of decimal places that are displayed in the value. */
|
|
3905
3837
|
digits?: number;
|
|
3906
3838
|
/** Whether the current value is displayed as a string next to the slider. */
|
|
@@ -3937,7 +3869,7 @@ export interface GtkScrollableProps {
|
|
|
3937
3869
|
/** Shows a horizontal or vertical scrollbar. */
|
|
3938
3870
|
export interface GtkScrollbarProps extends GtkWidgetProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
3939
3871
|
/** The `GtkAdjustment` controlled by this scrollbar. */
|
|
3940
|
-
adjustment?: Gtk.Adjustment
|
|
3872
|
+
adjustment?: Gtk.Adjustment;
|
|
3941
3873
|
onNotifyAdjustment?: NotifyHandler;
|
|
3942
3874
|
}
|
|
3943
3875
|
/** Makes its child scrollable. */
|
|
@@ -3945,7 +3877,7 @@ export interface GtkScrolledWindowProps extends GtkWidgetProps, GtkAccessiblePro
|
|
|
3945
3877
|
/** The child widget. */
|
|
3946
3878
|
child?: Gtk.Widget | null;
|
|
3947
3879
|
/** The `GtkAdjustment` for the horizontal position. */
|
|
3948
|
-
hadjustment?: Gtk.Adjustment
|
|
3880
|
+
hadjustment?: Gtk.Adjustment;
|
|
3949
3881
|
/** Whether to draw a frame around the contents. */
|
|
3950
3882
|
hasFrame?: boolean;
|
|
3951
3883
|
'has-frame'?: boolean;
|
|
@@ -3977,21 +3909,17 @@ export interface GtkScrolledWindowProps extends GtkWidgetProps, GtkAccessiblePro
|
|
|
3977
3909
|
propagateNaturalWidth?: boolean;
|
|
3978
3910
|
'propagate-natural-width'?: boolean;
|
|
3979
3911
|
/** The `GtkAdjustment` for the vertical position. */
|
|
3980
|
-
vadjustment?: Gtk.Adjustment
|
|
3912
|
+
vadjustment?: Gtk.Adjustment;
|
|
3981
3913
|
/** When the vertical scrollbar is displayed. */
|
|
3982
3914
|
vscrollbarPolicy?: GtkPolicyTypeNick | Gtk.PolicyType;
|
|
3983
3915
|
'vscrollbar-policy'?: GtkPolicyTypeNick | Gtk.PolicyType;
|
|
3984
3916
|
/** Where the contents are located with respect to the scrollbars. */
|
|
3985
3917
|
windowPlacement?: GtkCornerTypeNick | Gtk.CornerType;
|
|
3986
3918
|
'window-placement'?: GtkCornerTypeNick | Gtk.CornerType;
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
/** Emitted when focus is moved away from the scrolled window by a keybinding. */
|
|
3992
|
-
onMoveFocusOut?: (direction_type: Gtk.DirectionType) => void;
|
|
3993
|
-
/** Emitted when a keybinding that scrolls is pressed. */
|
|
3994
|
-
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'];
|
|
3995
3923
|
onNotifyChild?: NotifyHandler;
|
|
3996
3924
|
onNotifyHadjustment?: NotifyHandler;
|
|
3997
3925
|
onNotifyHasFrame?: NotifyHandler;
|
|
@@ -4041,23 +3969,17 @@ export interface GtkSearchEntryProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
4041
3969
|
keyCaptureWidget?: Gtk.Widget | null;
|
|
4042
3970
|
'key-capture-widget'?: Gtk.Widget | null;
|
|
4043
3971
|
/** The text that will be displayed in the `GtkSearchEntry` when it is empty and unfocused. */
|
|
4044
|
-
placeholderText?: string;
|
|
4045
|
-
'placeholder-text'?: string;
|
|
3972
|
+
placeholderText?: string | null;
|
|
3973
|
+
'placeholder-text'?: string | null;
|
|
4046
3974
|
/** The delay in milliseconds from last keypress to the search changed signal. */
|
|
4047
3975
|
searchDelay?: number;
|
|
4048
3976
|
'search-delay'?: number;
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
/** Emitted with a delay. */
|
|
4056
|
-
onSearchChanged?: () => void;
|
|
4057
|
-
/** Emitted when the user initiated a search on the entry. */
|
|
4058
|
-
onSearchStarted?: () => void;
|
|
4059
|
-
/** Emitted when the user stops a search via keyboard input. */
|
|
4060
|
-
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'];
|
|
4061
3983
|
onNotifyActivatesDefault?: NotifyHandler;
|
|
4062
3984
|
onNotifyInputHints?: NotifyHandler;
|
|
4063
3985
|
onNotifyInputPurpose?: NotifyHandler;
|
|
@@ -4074,13 +3996,13 @@ export interface GtkShortcutLabelProps extends GtkWidgetProps, GtkAccessibleProp
|
|
|
4074
3996
|
* The accelerator that @self displays.
|
|
4075
3997
|
* @deprecated
|
|
4076
3998
|
*/
|
|
4077
|
-
accelerator?: string;
|
|
3999
|
+
accelerator?: string | null;
|
|
4078
4000
|
/**
|
|
4079
4001
|
* The text that is displayed when no accelerator is set.
|
|
4080
4002
|
* @deprecated
|
|
4081
4003
|
*/
|
|
4082
|
-
disabledText?: string;
|
|
4083
|
-
'disabled-text'?: string;
|
|
4004
|
+
disabledText?: string | null;
|
|
4005
|
+
'disabled-text'?: string | null;
|
|
4084
4006
|
onNotifyAccelerator?: NotifyHandler;
|
|
4085
4007
|
onNotifyDisabledText?: NotifyHandler;
|
|
4086
4008
|
}
|
|
@@ -4088,13 +4010,13 @@ export interface GtkShortcutLabelProps extends GtkWidgetProps, GtkAccessibleProp
|
|
|
4088
4010
|
export interface GtkShortcutManagerProps {
|
|
4089
4011
|
}
|
|
4090
4012
|
/** A `GtkShortcutsGroup` represents a group of related keyboard shortcuts or gestures. */
|
|
4091
|
-
export interface GtkShortcutsGroupProps extends GtkBoxProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
4013
|
+
export interface GtkShortcutsGroupProps extends GtkBoxProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
4092
4014
|
/**
|
|
4093
4015
|
* The size group for the accelerator portion of shortcuts in this group.
|
|
4094
4016
|
* @deprecated
|
|
4095
4017
|
*/
|
|
4096
|
-
accelSizeGroup?: Gtk.SizeGroup
|
|
4097
|
-
'accel-size-group'?: Gtk.SizeGroup
|
|
4018
|
+
accelSizeGroup?: Gtk.SizeGroup;
|
|
4019
|
+
'accel-size-group'?: Gtk.SizeGroup;
|
|
4098
4020
|
/**
|
|
4099
4021
|
* The title for this group of shortcuts.
|
|
4100
4022
|
* @deprecated
|
|
@@ -4104,8 +4026,8 @@ export interface GtkShortcutsGroupProps extends GtkBoxProps, GtkAccessibleProps,
|
|
|
4104
4026
|
* The size group for the textual portion of shortcuts in this group.
|
|
4105
4027
|
* @deprecated
|
|
4106
4028
|
*/
|
|
4107
|
-
titleSizeGroup?: Gtk.SizeGroup
|
|
4108
|
-
'title-size-group'?: Gtk.SizeGroup
|
|
4029
|
+
titleSizeGroup?: Gtk.SizeGroup;
|
|
4030
|
+
'title-size-group'?: Gtk.SizeGroup;
|
|
4109
4031
|
/**
|
|
4110
4032
|
* An optional view that the shortcuts in this group are relevant for.
|
|
4111
4033
|
* @deprecated
|
|
@@ -4117,7 +4039,7 @@ export interface GtkShortcutsGroupProps extends GtkBoxProps, GtkAccessibleProps,
|
|
|
4117
4039
|
onNotifyView?: NotifyHandler;
|
|
4118
4040
|
}
|
|
4119
4041
|
/** A `GtkShortcutsSection` collects all the keyboard shortcuts and gestures for a major application mode. */
|
|
4120
|
-
export interface GtkShortcutsSectionProps extends GtkBoxProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
4042
|
+
export interface GtkShortcutsSectionProps extends GtkBoxProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
4121
4043
|
/**
|
|
4122
4044
|
* The maximum number of lines to allow per column.
|
|
4123
4045
|
* @deprecated
|
|
@@ -4141,11 +4063,7 @@ export interface GtkShortcutsSectionProps extends GtkBoxProps, GtkAccessibleProp
|
|
|
4141
4063
|
*/
|
|
4142
4064
|
viewName?: string;
|
|
4143
4065
|
'view-name'?: string;
|
|
4144
|
-
|
|
4145
|
-
* Emitted when we change the current page.
|
|
4146
|
-
* @deprecated
|
|
4147
|
-
*/
|
|
4148
|
-
onChangeCurrentPage?: (offset: number) => void;
|
|
4066
|
+
onChangeCurrentPage?: Gtk.ShortcutsSection.SignalSignatures['change-current-page'];
|
|
4149
4067
|
onNotifyMaxHeight?: NotifyHandler;
|
|
4150
4068
|
onNotifySectionName?: NotifyHandler;
|
|
4151
4069
|
onNotifyTitle?: NotifyHandler;
|
|
@@ -4157,8 +4075,8 @@ export interface GtkShortcutsShortcutProps extends GtkWidgetProps, GtkAccessible
|
|
|
4157
4075
|
* The size group for the accelerator portion of this shortcut.
|
|
4158
4076
|
* @deprecated
|
|
4159
4077
|
*/
|
|
4160
|
-
accelSizeGroup?: Gtk.SizeGroup
|
|
4161
|
-
'accel-size-group'?: Gtk.SizeGroup
|
|
4078
|
+
accelSizeGroup?: Gtk.SizeGroup;
|
|
4079
|
+
'accel-size-group'?: Gtk.SizeGroup;
|
|
4162
4080
|
/**
|
|
4163
4081
|
* The accelerator(s) represented by this object.
|
|
4164
4082
|
* @deprecated
|
|
@@ -4179,7 +4097,7 @@ export interface GtkShortcutsShortcutProps extends GtkWidgetProps, GtkAccessible
|
|
|
4179
4097
|
* An icon to represent the shortcut or gesture.
|
|
4180
4098
|
* @deprecated
|
|
4181
4099
|
*/
|
|
4182
|
-
icon?: Gio.Icon
|
|
4100
|
+
icon?: Gio.Icon;
|
|
4183
4101
|
/**
|
|
4184
4102
|
* %TRUE if an icon has been set.
|
|
4185
4103
|
* @deprecated
|
|
@@ -4212,8 +4130,8 @@ export interface GtkShortcutsShortcutProps extends GtkWidgetProps, GtkAccessible
|
|
|
4212
4130
|
* The size group for the textual portion of this shortcut.
|
|
4213
4131
|
* @deprecated
|
|
4214
4132
|
*/
|
|
4215
|
-
titleSizeGroup?: Gtk.SizeGroup
|
|
4216
|
-
'title-size-group'?: Gtk.SizeGroup
|
|
4133
|
+
titleSizeGroup?: Gtk.SizeGroup;
|
|
4134
|
+
'title-size-group'?: Gtk.SizeGroup;
|
|
4217
4135
|
onNotifyAccelSizeGroup?: NotifyHandler;
|
|
4218
4136
|
onNotifyAccelerator?: NotifyHandler;
|
|
4219
4137
|
onNotifyActionName?: NotifyHandler;
|
|
@@ -4227,7 +4145,7 @@ export interface GtkShortcutsShortcutProps extends GtkWidgetProps, GtkAccessible
|
|
|
4227
4145
|
onNotifyTitleSizeGroup?: NotifyHandler;
|
|
4228
4146
|
}
|
|
4229
4147
|
/** A `GtkShortcutsWindow` shows information about the keyboard shortcuts and gestures of an application. */
|
|
4230
|
-
export interface GtkShortcutsWindowProps extends GtkWindowProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
4148
|
+
export interface GtkShortcutsWindowProps extends GtkWindowProps, GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
4231
4149
|
/**
|
|
4232
4150
|
* The name of the section to show.
|
|
4233
4151
|
* @deprecated
|
|
@@ -4240,16 +4158,8 @@ export interface GtkShortcutsWindowProps extends GtkWindowProps, GtkAccessiblePr
|
|
|
4240
4158
|
*/
|
|
4241
4159
|
viewName?: string;
|
|
4242
4160
|
'view-name'?: string;
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
* @deprecated
|
|
4246
|
-
*/
|
|
4247
|
-
onClose?: () => void;
|
|
4248
|
-
/**
|
|
4249
|
-
* Emitted when the user uses a keybinding to start a search.
|
|
4250
|
-
* @deprecated
|
|
4251
|
-
*/
|
|
4252
|
-
onSearch?: () => void;
|
|
4161
|
+
onClose?: Gtk.ShortcutsWindow.SignalSignatures['close'];
|
|
4162
|
+
onSearch?: Gtk.ShortcutsWindow.SignalSignatures['search'];
|
|
4253
4163
|
onNotifySectionName?: NotifyHandler;
|
|
4254
4164
|
onNotifyViewName?: NotifyHandler;
|
|
4255
4165
|
}
|
|
@@ -4259,7 +4169,7 @@ export interface GtkSpinButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
4259
4169
|
activatesDefault?: boolean;
|
|
4260
4170
|
'activates-default'?: boolean;
|
|
4261
4171
|
/** The adjustment that holds the value of the spin button. */
|
|
4262
|
-
adjustment?: Gtk.Adjustment
|
|
4172
|
+
adjustment?: Gtk.Adjustment;
|
|
4263
4173
|
/** The acceleration rate when you hold down a button or key. */
|
|
4264
4174
|
climbRate?: number;
|
|
4265
4175
|
'climb-rate'?: number;
|
|
@@ -4277,18 +4187,12 @@ export interface GtkSpinButtonProps extends GtkWidgetProps, GtkAccessibleProps,
|
|
|
4277
4187
|
value?: number;
|
|
4278
4188
|
/** Whether a spin button should wrap upon reaching its limits. */
|
|
4279
4189
|
wrap?: boolean;
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
/** Emitted to tweak the formatting of the value for display. */
|
|
4287
|
-
onOutput?: () => void;
|
|
4288
|
-
/** Emitted when the value is changed. */
|
|
4289
|
-
onValueChanged?: () => void;
|
|
4290
|
-
/** Emitted right after the spinbutton wraps from its maximum to its minimum value or vice-versa. */
|
|
4291
|
-
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'];
|
|
4292
4196
|
onNotifyActivatesDefault?: NotifyHandler;
|
|
4293
4197
|
onNotifyAdjustment?: NotifyHandler;
|
|
4294
4198
|
onNotifyClimbRate?: NotifyHandler;
|
|
@@ -4324,8 +4228,8 @@ export interface GtkStackProps extends GtkWidgetProps, GtkAccessibleProps, GtkBu
|
|
|
4324
4228
|
visibleChild?: Gtk.Widget | null;
|
|
4325
4229
|
'visible-child'?: Gtk.Widget | null;
|
|
4326
4230
|
/** The name of the widget currently visible in the stack. */
|
|
4327
|
-
visibleChildName?: string;
|
|
4328
|
-
'visible-child-name'?: string;
|
|
4231
|
+
visibleChildName?: string | null;
|
|
4232
|
+
'visible-child-name'?: string | null;
|
|
4329
4233
|
onNotifyHhomogeneous?: NotifyHandler;
|
|
4330
4234
|
onNotifyInterpolateSize?: NotifyHandler;
|
|
4331
4235
|
onNotifyTransitionDuration?: NotifyHandler;
|
|
@@ -4348,16 +4252,22 @@ export interface GtkStackSwitcherProps extends GtkWidgetProps, GtkAccessibleProp
|
|
|
4348
4252
|
}
|
|
4349
4253
|
/** A `GtkStatusbar` widget is usually placed along the bottom of an application's main [class@Gtk.Window]. */
|
|
4350
4254
|
export interface GtkStatusbarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
/**
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
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;
|
|
4361
4271
|
}
|
|
4362
4272
|
/** Shows a "light switch" that has two states: on or off. */
|
|
4363
4273
|
export interface GtkSwitchProps extends GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
@@ -4365,10 +4275,8 @@ export interface GtkSwitchProps extends GtkWidgetProps, GtkAccessibleProps, GtkA
|
|
|
4365
4275
|
active?: boolean;
|
|
4366
4276
|
/** The backend state that is controlled by the switch. */
|
|
4367
4277
|
state?: boolean;
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
/** Emitted to change the underlying state. */
|
|
4371
|
-
onStateSet?: (state: boolean) => void;
|
|
4278
|
+
onActivate?: Gtk.Switch.SignalSignatures['activate'];
|
|
4279
|
+
onStateSet?: Gtk.Switch.SignalSignatures['state-set'];
|
|
4372
4280
|
onNotifyActive?: NotifyHandler;
|
|
4373
4281
|
onNotifyState?: NotifyHandler;
|
|
4374
4282
|
}
|
|
@@ -4380,7 +4288,7 @@ export interface GtkTextProps extends GtkWidgetProps, GtkAccessibleProps, GtkAcc
|
|
|
4380
4288
|
/** A list of Pango attributes to apply to the text. */
|
|
4381
4289
|
attributes?: Pango.AttrList | null;
|
|
4382
4290
|
/** The `GtkEntryBuffer` object which stores the text. */
|
|
4383
|
-
buffer?: Gtk.EntryBuffer
|
|
4291
|
+
buffer?: Gtk.EntryBuffer;
|
|
4384
4292
|
/** Whether to suggest Emoji replacements. */
|
|
4385
4293
|
enableEmojiCompletion?: boolean;
|
|
4386
4294
|
'enable-emoji-completion'?: boolean;
|
|
@@ -4409,8 +4317,8 @@ export interface GtkTextProps extends GtkWidgetProps, GtkAccessibleProps, GtkAcc
|
|
|
4409
4317
|
overwriteMode?: boolean;
|
|
4410
4318
|
'overwrite-mode'?: boolean;
|
|
4411
4319
|
/** The text that will be displayed in the `GtkText` when it is empty and unfocused. */
|
|
4412
|
-
placeholderText?: string;
|
|
4413
|
-
'placeholder-text'?: string;
|
|
4320
|
+
placeholderText?: string | null;
|
|
4321
|
+
'placeholder-text'?: string | null;
|
|
4414
4322
|
/** Whether the widget should grow and shrink with the content. */
|
|
4415
4323
|
propagateTextWidth?: boolean;
|
|
4416
4324
|
'propagate-text-width'?: boolean;
|
|
@@ -4421,28 +4329,17 @@ export interface GtkTextProps extends GtkWidgetProps, GtkAccessibleProps, GtkAcc
|
|
|
4421
4329
|
'truncate-multiline'?: boolean;
|
|
4422
4330
|
/** If false, the text is masked with the “invisible char”. */
|
|
4423
4331
|
visibility?: boolean;
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
onInsertAtCursor?: (string: string) => void;
|
|
4436
|
-
/** Emitted to present the Emoji chooser. */
|
|
4437
|
-
onInsertEmoji?: () => void;
|
|
4438
|
-
/** Emitted when the user initiates a cursor movement. */
|
|
4439
|
-
onMoveCursor?: (step: Gtk.MovementStep, count: number, extend: boolean) => void;
|
|
4440
|
-
/** Emitted to paste the contents of the clipboard. */
|
|
4441
|
-
onPasteClipboard?: () => void;
|
|
4442
|
-
/** Emitted when the preedit text changes. */
|
|
4443
|
-
onPreeditChanged?: (preedit: string) => void;
|
|
4444
|
-
/** Emitted to toggle the overwrite mode. */
|
|
4445
|
-
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'];
|
|
4446
4343
|
onNotifyActivatesDefault?: NotifyHandler;
|
|
4447
4344
|
onNotifyAttributes?: NotifyHandler;
|
|
4448
4345
|
onNotifyBuffer?: NotifyHandler;
|
|
@@ -4470,7 +4367,7 @@ export interface GtkTextViewProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
4470
4367
|
bottomMargin?: number;
|
|
4471
4368
|
'bottom-margin'?: number;
|
|
4472
4369
|
/** The buffer which is displayed. */
|
|
4473
|
-
buffer?: Gtk.TextBuffer
|
|
4370
|
+
buffer?: Gtk.TextBuffer;
|
|
4474
4371
|
/** If the insertion cursor is shown. */
|
|
4475
4372
|
cursorVisible?: boolean;
|
|
4476
4373
|
'cursor-visible'?: boolean;
|
|
@@ -4519,36 +4416,21 @@ export interface GtkTextViewProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
4519
4416
|
/** Whether to wrap lines never, at word boundaries, or at character boundaries. */
|
|
4520
4417
|
wrapMode?: GtkWrapModeNick | Gtk.WrapMode;
|
|
4521
4418
|
'wrap-mode'?: GtkWrapModeNick | Gtk.WrapMode;
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
onMoveCursor?: (step: Gtk.MovementStep, count: number, extend_selection: boolean) => void;
|
|
4538
|
-
/** Gets emitted to move the viewport. */
|
|
4539
|
-
onMoveViewport?: (step: Gtk.ScrollStep, count: number) => void;
|
|
4540
|
-
/** Gets emitted to paste the contents of the clipboard into the text view. */
|
|
4541
|
-
onPasteClipboard?: () => void;
|
|
4542
|
-
/** Emitted when preedit text of the active IM changes. */
|
|
4543
|
-
onPreeditChanged?: (preedit: string) => void;
|
|
4544
|
-
/** Gets emitted to select or unselect the complete contents of the text view. */
|
|
4545
|
-
onSelectAll?: (select: boolean) => void;
|
|
4546
|
-
/** Gets emitted when the user initiates settings the "anchor" mark. */
|
|
4547
|
-
onSetAnchor?: () => void;
|
|
4548
|
-
/** Gets emitted to toggle the `cursor-visible` property. */
|
|
4549
|
-
onToggleCursorVisible?: () => void;
|
|
4550
|
-
/** Gets emitted to toggle the overwrite mode of the text view. */
|
|
4551
|
-
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'];
|
|
4552
4434
|
onNotifyAcceptsTab?: NotifyHandler;
|
|
4553
4435
|
onNotifyBottomMargin?: NotifyHandler;
|
|
4554
4436
|
onNotifyBuffer?: NotifyHandler;
|
|
@@ -4572,13 +4454,12 @@ export interface GtkTextViewProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
4572
4454
|
onNotifyWrapMode?: NotifyHandler;
|
|
4573
4455
|
}
|
|
4574
4456
|
/** Shows a button which remains “pressed-in” when clicked. */
|
|
4575
|
-
export interface GtkToggleButtonProps extends GtkButtonProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4457
|
+
export interface GtkToggleButtonProps extends GtkButtonProps, GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4576
4458
|
/** If the toggle button should be pressed in. */
|
|
4577
4459
|
active?: boolean;
|
|
4578
4460
|
/** The toggle button whose group this widget belongs to. */
|
|
4579
|
-
group?: Gtk.ToggleButton
|
|
4580
|
-
|
|
4581
|
-
onToggled?: () => void;
|
|
4461
|
+
group?: Gtk.ToggleButton;
|
|
4462
|
+
onToggled?: Gtk.ToggleButton.SignalSignatures['toggled'];
|
|
4582
4463
|
onNotifyActive?: NotifyHandler;
|
|
4583
4464
|
onNotifyGroup?: NotifyHandler;
|
|
4584
4465
|
}
|
|
@@ -4644,29 +4525,21 @@ export interface GtkTreeViewProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
4644
4525
|
'show-expanders'?: boolean;
|
|
4645
4526
|
tooltipColumn?: number;
|
|
4646
4527
|
'tooltip-column'?: number;
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
onSelectCursorRow?: (object: boolean) => void;
|
|
4663
|
-
onStartInteractiveSearch?: () => void;
|
|
4664
|
-
/** The given row is about to be collapsed (hide its children nodes). */
|
|
4665
|
-
onTestCollapseRow?: (iter: Gtk.TreeIter, path: Gtk.TreePath) => void;
|
|
4666
|
-
/** The given row is about to be expanded (show its children nodes). */
|
|
4667
|
-
onTestExpandRow?: (iter: Gtk.TreeIter, path: Gtk.TreePath) => void;
|
|
4668
|
-
onToggleCursorRow?: () => void;
|
|
4669
|
-
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'];
|
|
4670
4543
|
onNotifyActivateOnSingleClick?: NotifyHandler;
|
|
4671
4544
|
onNotifyEnableGridLines?: NotifyHandler;
|
|
4672
4545
|
onNotifyEnableSearch?: NotifyHandler;
|
|
@@ -4716,7 +4589,7 @@ export interface GtkViewportProps extends GtkWidgetProps, GtkAccessibleProps, Gt
|
|
|
4716
4589
|
onNotifyScrollToFocus?: NotifyHandler;
|
|
4717
4590
|
}
|
|
4718
4591
|
/** `GtkVolumeButton` is a `GtkScaleButton` subclass tailored for volume control. */
|
|
4719
|
-
export interface GtkVolumeButtonProps extends GtkScaleButtonProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
4592
|
+
export interface GtkVolumeButtonProps extends GtkScaleButtonProps, GtkWidgetProps, GtkAccessibleProps, GtkAccessibleRangeProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
4720
4593
|
/**
|
|
4721
4594
|
* Whether to use symbolic icons as the icons.
|
|
4722
4595
|
* @deprecated
|
|
@@ -4726,7 +4599,7 @@ export interface GtkVolumeButtonProps extends GtkScaleButtonProps, GtkAccessible
|
|
|
4726
4599
|
onNotifyUseSymbolic?: NotifyHandler;
|
|
4727
4600
|
}
|
|
4728
4601
|
/** The base class for all widgets. */
|
|
4729
|
-
export interface GtkWidgetProps
|
|
4602
|
+
export interface GtkWidgetProps {
|
|
4730
4603
|
/** Whether the widget or any of its descendents can accept the input focus. */
|
|
4731
4604
|
canFocus?: boolean;
|
|
4732
4605
|
'can-focus'?: boolean;
|
|
@@ -4789,11 +4662,11 @@ export interface GtkWidgetProps extends GInitiallyUnownedProps, GtkAccessiblePro
|
|
|
4789
4662
|
/** Whether the widget responds to input. */
|
|
4790
4663
|
sensitive?: boolean;
|
|
4791
4664
|
/** Sets the text of tooltip to be the given string, which is marked up with Pango markup. */
|
|
4792
|
-
tooltipMarkup?: string;
|
|
4793
|
-
'tooltip-markup'?: string;
|
|
4665
|
+
tooltipMarkup?: string | null;
|
|
4666
|
+
'tooltip-markup'?: string | null;
|
|
4794
4667
|
/** Sets the text of tooltip to be the given string. */
|
|
4795
|
-
tooltipText?: string;
|
|
4796
|
-
'tooltip-text'?: string;
|
|
4668
|
+
tooltipText?: string | null;
|
|
4669
|
+
'tooltip-text'?: string | null;
|
|
4797
4670
|
/** How to distribute vertical space if widget gets extra space. */
|
|
4798
4671
|
valign?: GtkAlignNick | Gtk.Align;
|
|
4799
4672
|
/** Whether to expand vertically. */
|
|
@@ -4806,32 +4679,19 @@ export interface GtkWidgetProps extends GInitiallyUnownedProps, GtkAccessiblePro
|
|
|
4806
4679
|
/** Overrides for width request of the widget. */
|
|
4807
4680
|
widthRequest?: number;
|
|
4808
4681
|
'width-request'?: number;
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
onMoveFocus?: (direction: Gtk.DirectionType) => void;
|
|
4823
|
-
/** Emitted when the widget’s tooltip is about to be shown. */
|
|
4824
|
-
onQueryTooltip?: (x: number, y: number, keyboard_mode: boolean, tooltip: Gtk.Tooltip) => void;
|
|
4825
|
-
/** Emitted when @widget is associated with a `GdkSurface`. */
|
|
4826
|
-
onRealize?: () => void;
|
|
4827
|
-
/** Emitted when @widget is shown. */
|
|
4828
|
-
onShow?: () => void;
|
|
4829
|
-
/** Emitted when the widget state changes. */
|
|
4830
|
-
onStateFlagsChanged?: (flags: number) => void;
|
|
4831
|
-
/** Emitted when @widget is going to be unmapped. */
|
|
4832
|
-
onUnmap?: () => void;
|
|
4833
|
-
/** Emitted when the `GdkSurface` associated with @widget is destroyed. */
|
|
4834
|
-
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'];
|
|
4835
4695
|
onNotifyCanFocus?: NotifyHandler;
|
|
4836
4696
|
onNotifyCanTarget?: NotifyHandler;
|
|
4837
4697
|
onNotifyCssClasses?: NotifyHandler;
|
|
@@ -4866,8 +4726,8 @@ export interface GtkWidgetProps extends GInitiallyUnownedProps, GtkAccessiblePro
|
|
|
4866
4726
|
/** Shows window frame controls. */
|
|
4867
4727
|
export interface GtkWindowControlsProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
4868
4728
|
/** The decoration layout for window buttons. */
|
|
4869
|
-
decorationLayout?: string;
|
|
4870
|
-
'decoration-layout'?: string;
|
|
4729
|
+
decorationLayout?: string | null;
|
|
4730
|
+
'decoration-layout'?: string | null;
|
|
4871
4731
|
/** Whether the widget shows start or end side of the decoration layout. */
|
|
4872
4732
|
side?: GtkPackTypeNick | Gtk.PackType;
|
|
4873
4733
|
/** Whether to show platform native close/minimize/maximize buttons. */
|
|
@@ -4906,7 +4766,7 @@ export interface GtkWindowProps extends GtkWidgetProps, GtkAccessibleProps, GtkB
|
|
|
4906
4766
|
destroyWithParent?: boolean;
|
|
4907
4767
|
'destroy-with-parent'?: boolean;
|
|
4908
4768
|
/** The display that will display this window. */
|
|
4909
|
-
display?: Gdk.Display
|
|
4769
|
+
display?: Gdk.Display;
|
|
4910
4770
|
/** Whether 'focus rectangles' are currently visible in this window. */
|
|
4911
4771
|
focusVisible?: boolean;
|
|
4912
4772
|
'focus-visible'?: boolean;
|
|
@@ -4924,8 +4784,8 @@ export interface GtkWindowProps extends GtkWidgetProps, GtkAccessibleProps, GtkB
|
|
|
4924
4784
|
hideOnClose?: boolean;
|
|
4925
4785
|
'hide-on-close'?: boolean;
|
|
4926
4786
|
/** Specifies the name of the themed icon to use as the window icon. */
|
|
4927
|
-
iconName?: string;
|
|
4928
|
-
'icon-name'?: string;
|
|
4787
|
+
iconName?: string | null;
|
|
4788
|
+
'icon-name'?: string | null;
|
|
4929
4789
|
/** Whether the window is maximized. */
|
|
4930
4790
|
maximized?: boolean;
|
|
4931
4791
|
/** Whether mnemonics are currently visible in this window. */
|
|
@@ -4939,25 +4799,18 @@ export interface GtkWindowProps extends GtkWidgetProps, GtkAccessibleProps, GtkB
|
|
|
4939
4799
|
startupId?: string;
|
|
4940
4800
|
'startup-id'?: string;
|
|
4941
4801
|
/** The title of the window. */
|
|
4942
|
-
title?: string;
|
|
4802
|
+
title?: string | null;
|
|
4943
4803
|
/** The titlebar widget. */
|
|
4944
4804
|
titlebar?: Gtk.Widget | null;
|
|
4945
4805
|
/** The transient parent of the window. */
|
|
4946
4806
|
transientFor?: Gtk.Window | null;
|
|
4947
4807
|
'transient-for'?: Gtk.Window | null;
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
/** Emitted when the user enables or disables interactive debugging. */
|
|
4955
|
-
onEnableDebugging?: (toggle: boolean) => void;
|
|
4956
|
-
/**
|
|
4957
|
-
* Emitted when the set of accelerators or mnemonics that are associated with the window changes.
|
|
4958
|
-
* @deprecated
|
|
4959
|
-
*/
|
|
4960
|
-
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'];
|
|
4961
4814
|
onNotifyApplication?: NotifyHandler;
|
|
4962
4815
|
onNotifyChild?: NotifyHandler;
|
|
4963
4816
|
onNotifyDecorated?: NotifyHandler;
|
|
@@ -5037,6 +4890,7 @@ export interface WidgetPropsByTag {
|
|
|
5037
4890
|
'adw-tab-overview': AdwTabOverviewProps;
|
|
5038
4891
|
'adw-tab-view': AdwTabViewProps;
|
|
5039
4892
|
'adw-toast-overlay': AdwToastOverlayProps;
|
|
4893
|
+
'adw-toggle': AdwToggleProps;
|
|
5040
4894
|
'adw-toggle-group': AdwToggleGroupProps;
|
|
5041
4895
|
'adw-toolbar-view': AdwToolbarViewProps;
|
|
5042
4896
|
'adw-view-stack': AdwViewStackProps;
|
|
@@ -5066,6 +4920,7 @@ export interface WidgetPropsByTag {
|
|
|
5066
4920
|
'gtk-color-chooser-widget': GtkColorChooserWidgetProps;
|
|
5067
4921
|
'gtk-color-dialog-button': GtkColorDialogButtonProps;
|
|
5068
4922
|
'gtk-column-view': GtkColumnViewProps;
|
|
4923
|
+
'gtk-column-view-cell': GtkColumnViewCellProps;
|
|
5069
4924
|
'gtk-combo-box': GtkComboBoxProps;
|
|
5070
4925
|
'gtk-combo-box-text': GtkComboBoxTextProps;
|
|
5071
4926
|
'gtk-dialog': GtkDialogProps;
|
|
@@ -5100,6 +4955,8 @@ export interface WidgetPropsByTag {
|
|
|
5100
4955
|
'gtk-link-button': GtkLinkButtonProps;
|
|
5101
4956
|
'gtk-list-box': GtkListBoxProps;
|
|
5102
4957
|
'gtk-list-box-row': GtkListBoxRowProps;
|
|
4958
|
+
'gtk-list-header': GtkListHeaderProps;
|
|
4959
|
+
'gtk-list-item': GtkListItemProps;
|
|
5103
4960
|
'gtk-list-view': GtkListViewProps;
|
|
5104
4961
|
'gtk-lock-button': GtkLockButtonProps;
|
|
5105
4962
|
'gtk-media-controls': GtkMediaControlsProps;
|
|
@@ -5137,6 +4994,7 @@ export interface WidgetPropsByTag {
|
|
|
5137
4994
|
'gtk-stack-sidebar': GtkStackSidebarProps;
|
|
5138
4995
|
'gtk-stack-switcher': GtkStackSwitcherProps;
|
|
5139
4996
|
'gtk-statusbar': GtkStatusbarProps;
|
|
4997
|
+
'gtk-svg-widget': GtkSvgWidgetProps;
|
|
5140
4998
|
'gtk-switch': GtkSwitchProps;
|
|
5141
4999
|
'gtk-text': GtkTextProps;
|
|
5142
5000
|
'gtk-text-view': GtkTextViewProps;
|
|
@@ -5204,6 +5062,7 @@ export interface WidgetPropsByGType {
|
|
|
5204
5062
|
AdwTabOverview: AdwTabOverviewProps;
|
|
5205
5063
|
AdwTabView: AdwTabViewProps;
|
|
5206
5064
|
AdwToastOverlay: AdwToastOverlayProps;
|
|
5065
|
+
AdwToggle: AdwToggleProps;
|
|
5207
5066
|
AdwToggleGroup: AdwToggleGroupProps;
|
|
5208
5067
|
AdwToolbarView: AdwToolbarViewProps;
|
|
5209
5068
|
AdwViewStack: AdwViewStackProps;
|
|
@@ -5233,6 +5092,7 @@ export interface WidgetPropsByGType {
|
|
|
5233
5092
|
GtkColorChooserWidget: GtkColorChooserWidgetProps;
|
|
5234
5093
|
GtkColorDialogButton: GtkColorDialogButtonProps;
|
|
5235
5094
|
GtkColumnView: GtkColumnViewProps;
|
|
5095
|
+
GtkColumnViewCell: GtkColumnViewCellProps;
|
|
5236
5096
|
GtkComboBox: GtkComboBoxProps;
|
|
5237
5097
|
GtkComboBoxText: GtkComboBoxTextProps;
|
|
5238
5098
|
GtkDialog: GtkDialogProps;
|
|
@@ -5267,6 +5127,8 @@ export interface WidgetPropsByGType {
|
|
|
5267
5127
|
GtkLinkButton: GtkLinkButtonProps;
|
|
5268
5128
|
GtkListBox: GtkListBoxProps;
|
|
5269
5129
|
GtkListBoxRow: GtkListBoxRowProps;
|
|
5130
|
+
GtkListHeader: GtkListHeaderProps;
|
|
5131
|
+
GtkListItem: GtkListItemProps;
|
|
5270
5132
|
GtkListView: GtkListViewProps;
|
|
5271
5133
|
GtkLockButton: GtkLockButtonProps;
|
|
5272
5134
|
GtkMediaControls: GtkMediaControlsProps;
|
|
@@ -5304,6 +5166,7 @@ export interface WidgetPropsByGType {
|
|
|
5304
5166
|
GtkStackSidebar: GtkStackSidebarProps;
|
|
5305
5167
|
GtkStackSwitcher: GtkStackSwitcherProps;
|
|
5306
5168
|
GtkStatusbar: GtkStatusbarProps;
|
|
5169
|
+
GtkSvgWidget: GtkSvgWidgetProps;
|
|
5307
5170
|
GtkSwitch: GtkSwitchProps;
|
|
5308
5171
|
GtkText: GtkTextProps;
|
|
5309
5172
|
GtkTextView: GtkTextViewProps;
|
|
@@ -5320,7 +5183,7 @@ export interface WidgetPropsByGType {
|
|
|
5320
5183
|
/**
|
|
5321
5184
|
* Kebab keys for the widgets Volar's camelize cannot reach from their GType name.
|
|
5322
5185
|
*
|
|
5323
|
-
* 1 of
|
|
5186
|
+
* 1 of 169. Generated, not curated: any future GType with two adjacent
|
|
5324
5187
|
* capitals lands here by itself instead of becoming a bug report.
|
|
5325
5188
|
*/
|
|
5326
5189
|
export interface WidgetPropsVueAliases {
|
|
@@ -5388,6 +5251,7 @@ export interface WidgetClassByTag {
|
|
|
5388
5251
|
'adw-tab-overview': Adw.TabOverview;
|
|
5389
5252
|
'adw-tab-view': Adw.TabView;
|
|
5390
5253
|
'adw-toast-overlay': Adw.ToastOverlay;
|
|
5254
|
+
'adw-toggle': Adw.Toggle;
|
|
5391
5255
|
'adw-toggle-group': Adw.ToggleGroup;
|
|
5392
5256
|
'adw-toolbar-view': Adw.ToolbarView;
|
|
5393
5257
|
'adw-view-stack': Adw.ViewStack;
|
|
@@ -5417,6 +5281,7 @@ export interface WidgetClassByTag {
|
|
|
5417
5281
|
'gtk-color-chooser-widget': Gtk.ColorChooserWidget;
|
|
5418
5282
|
'gtk-color-dialog-button': Gtk.ColorDialogButton;
|
|
5419
5283
|
'gtk-column-view': Gtk.ColumnView;
|
|
5284
|
+
'gtk-column-view-cell': Gtk.ColumnViewCell;
|
|
5420
5285
|
'gtk-combo-box': Gtk.ComboBox;
|
|
5421
5286
|
'gtk-combo-box-text': Gtk.ComboBoxText;
|
|
5422
5287
|
'gtk-dialog': Gtk.Dialog;
|
|
@@ -5451,6 +5316,8 @@ export interface WidgetClassByTag {
|
|
|
5451
5316
|
'gtk-link-button': Gtk.LinkButton;
|
|
5452
5317
|
'gtk-list-box': Gtk.ListBox;
|
|
5453
5318
|
'gtk-list-box-row': Gtk.ListBoxRow;
|
|
5319
|
+
'gtk-list-header': Gtk.ListHeader;
|
|
5320
|
+
'gtk-list-item': Gtk.ListItem;
|
|
5454
5321
|
'gtk-list-view': Gtk.ListView;
|
|
5455
5322
|
'gtk-lock-button': Gtk.LockButton;
|
|
5456
5323
|
'gtk-media-controls': Gtk.MediaControls;
|
|
@@ -5488,6 +5355,7 @@ export interface WidgetClassByTag {
|
|
|
5488
5355
|
'gtk-stack-sidebar': Gtk.StackSidebar;
|
|
5489
5356
|
'gtk-stack-switcher': Gtk.StackSwitcher;
|
|
5490
5357
|
'gtk-statusbar': Gtk.Statusbar;
|
|
5358
|
+
'gtk-svg-widget': Gtk.SvgWidget;
|
|
5491
5359
|
'gtk-switch': Gtk.Switch;
|
|
5492
5360
|
'gtk-text': Gtk.Text;
|
|
5493
5361
|
'gtk-text-view': Gtk.TextView;
|