@gtkx/react 0.16.0 → 0.17.2
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/dist/animation/css-builder.d.ts +3 -0
- package/dist/animation/css-builder.js +53 -0
- package/dist/animation/types.d.ts +120 -0
- package/dist/animation/types.js +1 -0
- package/dist/fiber-root.js +1 -1
- package/dist/generated/jsx.d.ts +354 -351
- package/dist/generated/jsx.js +2 -0
- package/dist/host-config.js +6 -11
- package/dist/jsx.d.ts +39 -10
- package/dist/jsx.js +7 -7
- package/dist/node.d.ts +1 -0
- package/dist/node.js +9 -0
- package/dist/nodes/abstract/virtual-container.d.ts +5 -1
- package/dist/nodes/abstract/virtual-container.js +9 -0
- package/dist/nodes/abstract/virtual-single-child.js +2 -1
- package/dist/nodes/action-row-child.js +8 -0
- package/dist/nodes/animation.d.ts +1 -0
- package/dist/nodes/animation.js +252 -0
- package/dist/nodes/event-controller.d.ts +22 -1
- package/dist/nodes/event-controller.js +2 -2
- package/dist/nodes/expander-row-child.js +8 -0
- package/dist/nodes/fixed-child.js +4 -0
- package/dist/nodes/grid-child.js +4 -0
- package/dist/nodes/index.d.ts +2 -4
- package/dist/nodes/index.js +2 -4
- package/dist/nodes/internal/deferred-action.d.ts +1 -0
- package/dist/nodes/internal/deferred-action.js +3 -0
- package/dist/nodes/internal/list-store.d.ts +4 -6
- package/dist/nodes/internal/list-store.js +26 -31
- package/dist/nodes/internal/selection-model.js +0 -4
- package/dist/nodes/internal/signal-store.d.ts +4 -1
- package/dist/nodes/internal/signal-store.js +6 -8
- package/dist/nodes/internal/text-buffer-controller.js +1 -1
- package/dist/nodes/internal/tree-store.d.ts +2 -6
- package/dist/nodes/internal/tree-store.js +58 -56
- package/dist/nodes/list-view.js +2 -1
- package/dist/nodes/models/tree-list.js +1 -1
- package/dist/nodes/overlay-child.js +7 -7
- package/dist/nodes/pack-child.js +8 -0
- package/dist/nodes/shortcut-controller.js +6 -61
- package/dist/nodes/slot.js +1 -1
- package/dist/nodes/text-paintable.d.ts +6 -0
- package/dist/nodes/toggle-group.js +1 -1
- package/dist/nodes/toolbar-child.js +22 -29
- package/dist/nodes/tree-list-view.js +2 -1
- package/dist/nodes/web-view.d.ts +1 -0
- package/dist/nodes/web-view.js +29 -0
- package/dist/render.js +1 -1
- package/package.json +4 -4
- package/dist/nodes/abstract/positional-parent.d.ts +0 -18
- package/dist/nodes/abstract/positional-parent.js +0 -48
- package/dist/nodes/action-row.d.ts +0 -6
- package/dist/nodes/action-row.js +0 -13
- package/dist/nodes/animation/animation-controller.d.ts +0 -17
- package/dist/nodes/animation/animation-controller.js +0 -107
- package/dist/nodes/animation/animation-factory.d.ts +0 -15
- package/dist/nodes/animation/animation-factory.js +0 -25
- package/dist/nodes/animation/animation-node.d.ts +0 -9
- package/dist/nodes/animation/animation-node.js +0 -126
- package/dist/nodes/animation/animation-style-sheet.d.ts +0 -16
- package/dist/nodes/animation/animation-style-sheet.js +0 -74
- package/dist/nodes/animation/index.d.ts +0 -4
- package/dist/nodes/animation/index.js +0 -1
- package/dist/nodes/animation/property-mapper.d.ts +0 -11
- package/dist/nodes/animation/property-mapper.js +0 -36
- package/dist/nodes/animation/transform-state.d.ts +0 -11
- package/dist/nodes/animation/transform-state.js +0 -57
- package/dist/nodes/animation/widget-registry.d.ts +0 -5
- package/dist/nodes/animation/widget-registry.js +0 -42
- package/dist/nodes/expander-row.d.ts +0 -6
- package/dist/nodes/expander-row.js +0 -18
- package/dist/nodes/internal/base-store.d.ts +0 -9
- package/dist/nodes/internal/base-store.js +0 -20
- package/dist/nodes/pack.d.ts +0 -6
- package/dist/nodes/pack.js +0 -13
package/dist/generated/jsx.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import type * as Pango from "@gtkx/ffi/pango";
|
|
|
11
11
|
import type * as Vte from "@gtkx/ffi/vte";
|
|
12
12
|
import type * as WebKit from "@gtkx/ffi/webkit";
|
|
13
13
|
import type * as cairo from "@gtkx/ffi/cairo";
|
|
14
|
+
/** Base props shared by all GTK widget elements. */
|
|
14
15
|
export type WidgetProps = {
|
|
15
16
|
/**
|
|
16
17
|
* Whether the widget or any of its descendents can accept
|
|
@@ -184,17 +185,17 @@ export type WidgetProps = {
|
|
|
184
185
|
*
|
|
185
186
|
* This signal is not suitable for saving widget state.
|
|
186
187
|
*/
|
|
187
|
-
onDestroy?: (self: Gtk.Widget) => void | null;
|
|
188
|
+
onDestroy?: ((self: Gtk.Widget) => void) | null;
|
|
188
189
|
/** Emitted when the text direction of a widget changes. */
|
|
189
|
-
onDirectionChanged?: (previousDirection: Gtk.TextDirection, self: Gtk.Widget) => void | null;
|
|
190
|
+
onDirectionChanged?: ((previousDirection: Gtk.TextDirection, self: Gtk.Widget) => void) | null;
|
|
190
191
|
/** Emitted when `widget` is hidden. */
|
|
191
|
-
onHide?: (self: Gtk.Widget) => void | null;
|
|
192
|
+
onHide?: ((self: Gtk.Widget) => void) | null;
|
|
192
193
|
/**
|
|
193
194
|
* Emitted if keyboard navigation fails.
|
|
194
195
|
*
|
|
195
196
|
* See {@link Widget.keynav_failed} for details.
|
|
196
197
|
*/
|
|
197
|
-
onKeynavFailed?: (direction: Gtk.DirectionType, self: Gtk.Widget) => boolean | null;
|
|
198
|
+
onKeynavFailed?: ((direction: Gtk.DirectionType, self: Gtk.Widget) => boolean) | null;
|
|
198
199
|
/**
|
|
199
200
|
* Emitted when `widget` is going to be mapped.
|
|
200
201
|
*
|
|
@@ -206,14 +207,14 @@ export type WidgetProps = {
|
|
|
206
207
|
* for instance it can resume an animation that was stopped during the
|
|
207
208
|
* emission of {@link Widget.:unmap}.
|
|
208
209
|
*/
|
|
209
|
-
onMap?: (self: Gtk.Widget) => void | null;
|
|
210
|
+
onMap?: ((self: Gtk.Widget) => void) | null;
|
|
210
211
|
/**
|
|
211
212
|
* Emitted when a widget is activated via a mnemonic.
|
|
212
213
|
*
|
|
213
214
|
* The default handler for this signal activates `widget` if `group_cycling`
|
|
214
215
|
* is false, or just makes `widget` grab focus if `group_cycling` is true.
|
|
215
216
|
*/
|
|
216
|
-
onMnemonicActivate?: (groupCycling: boolean, self: Gtk.Widget) => boolean | null;
|
|
217
|
+
onMnemonicActivate?: ((groupCycling: boolean, self: Gtk.Widget) => boolean) | null;
|
|
217
218
|
/**
|
|
218
219
|
* Emitted when the focus is moved.
|
|
219
220
|
*
|
|
@@ -222,7 +223,7 @@ export type WidgetProps = {
|
|
|
222
223
|
* The default bindings for this signal are `Tab` to move forward,
|
|
223
224
|
* and `Shift`+`Tab` to move backward.
|
|
224
225
|
*/
|
|
225
|
-
onMoveFocus?: (direction: Gtk.DirectionType, self: Gtk.Widget) => void | null;
|
|
226
|
+
onMoveFocus?: ((direction: Gtk.DirectionType, self: Gtk.Widget) => void) | null;
|
|
226
227
|
/**
|
|
227
228
|
* Emitted when the widget’s tooltip is about to be shown.
|
|
228
229
|
*
|
|
@@ -238,22 +239,22 @@ export type WidgetProps = {
|
|
|
238
239
|
* The signal handler is free to manipulate `tooltip` with the therefore
|
|
239
240
|
* destined function calls.
|
|
240
241
|
*/
|
|
241
|
-
onQueryTooltip?: (x: number, y: number, keyboardMode: boolean, tooltip: Gtk.Tooltip, self: Gtk.Widget) => boolean | null;
|
|
242
|
+
onQueryTooltip?: ((x: number, y: number, keyboardMode: boolean, tooltip: Gtk.Tooltip, self: Gtk.Widget) => boolean) | null;
|
|
242
243
|
/**
|
|
243
244
|
* Emitted when `widget` is associated with a `GdkSurface`.
|
|
244
245
|
*
|
|
245
246
|
* This means that {@link Widget.realize} has been called
|
|
246
247
|
* or the widget has been mapped (that is, it is going to be drawn).
|
|
247
248
|
*/
|
|
248
|
-
onRealize?: (self: Gtk.Widget) => void | null;
|
|
249
|
+
onRealize?: ((self: Gtk.Widget) => void) | null;
|
|
249
250
|
/** Emitted when `widget` is shown. */
|
|
250
|
-
onShow?: (self: Gtk.Widget) => void | null;
|
|
251
|
+
onShow?: ((self: Gtk.Widget) => void) | null;
|
|
251
252
|
/**
|
|
252
253
|
* Emitted when the widget state changes.
|
|
253
254
|
*
|
|
254
255
|
* See {@link Widget.get_state_flags}.
|
|
255
256
|
*/
|
|
256
|
-
onStateFlagsChanged?: (flags: Gtk.StateFlags, self: Gtk.Widget) => void | null;
|
|
257
|
+
onStateFlagsChanged?: ((flags: Gtk.StateFlags, self: Gtk.Widget) => void) | null;
|
|
257
258
|
/**
|
|
258
259
|
* Emitted when `widget` is going to be unmapped.
|
|
259
260
|
*
|
|
@@ -263,14 +264,14 @@ export type WidgetProps = {
|
|
|
263
264
|
* As `::unmap` indicates that a widget will not be shown any longer,
|
|
264
265
|
* it can be used to, for example, stop an animation on the widget.
|
|
265
266
|
*/
|
|
266
|
-
onUnmap?: (self: Gtk.Widget) => void | null;
|
|
267
|
+
onUnmap?: ((self: Gtk.Widget) => void) | null;
|
|
267
268
|
/**
|
|
268
269
|
* Emitted when the `GdkSurface` associated with `widget` is destroyed.
|
|
269
270
|
*
|
|
270
271
|
* This means that {@link Widget.unrealize} has been called
|
|
271
272
|
* or the widget has been unmapped (that is, it is going to be hidden).
|
|
272
273
|
*/
|
|
273
|
-
onUnrealize?: (self: Gtk.Widget) => void | null;
|
|
274
|
+
onUnrealize?: ((self: Gtk.Widget) => void) | null;
|
|
274
275
|
/**
|
|
275
276
|
* The notify signal is emitted on an object when one of its properties has
|
|
276
277
|
* its value set through g_object_set_property(), g_object_set(), et al.
|
|
@@ -298,7 +299,7 @@ export type WidgetProps = {
|
|
|
298
299
|
* [canonical parameter names]{@link GObjectParamSpec#parameter-names} as
|
|
299
300
|
* detail strings for the notify signal.
|
|
300
301
|
*/
|
|
301
|
-
onNotify?: (pspec: GObject.ParamSpec, self: Gtk.Widget) => void | null;
|
|
302
|
+
onNotify?: ((pspec: GObject.ParamSpec, self: Gtk.Widget) => void) | null;
|
|
302
303
|
/** When set to true, the widget will grab focus. Useful for focusing a widget when a condition becomes true. */
|
|
303
304
|
grabFocus?: boolean;
|
|
304
305
|
/** Children elements. For container widgets, these are child widgets. For non-container widgets, these are event controller elements. */
|
|
@@ -439,7 +440,7 @@ export type GtkWindowProps = WidgetProps & {
|
|
|
439
440
|
*
|
|
440
441
|
* The keybindings for this signal are all forms of the `Enter` key.
|
|
441
442
|
*/
|
|
442
|
-
onActivateDefault?: (self: Gtk.Window) => void | null;
|
|
443
|
+
onActivateDefault?: ((self: Gtk.Window) => void) | null;
|
|
443
444
|
/**
|
|
444
445
|
* Emitted when the user activates the currently focused
|
|
445
446
|
* widget of `window`.
|
|
@@ -448,7 +449,7 @@ export type GtkWindowProps = WidgetProps & {
|
|
|
448
449
|
*
|
|
449
450
|
* The default binding for this signal is `␣`.
|
|
450
451
|
*/
|
|
451
|
-
onActivateFocus?: (self: Gtk.Window) => void | null;
|
|
452
|
+
onActivateFocus?: ((self: Gtk.Window) => void) | null;
|
|
452
453
|
/**
|
|
453
454
|
* Emitted when the user enables or disables interactive debugging.
|
|
454
455
|
*
|
|
@@ -462,12 +463,12 @@ export type GtkWindowProps = WidgetProps & {
|
|
|
462
463
|
* `Ctrl`+`Shift`+`I` and
|
|
463
464
|
* `Ctrl`+`Shift`+`D`.
|
|
464
465
|
*/
|
|
465
|
-
onEnableDebugging?: (toggle: boolean, self: Gtk.Window) => boolean | null;
|
|
466
|
+
onEnableDebugging?: ((toggle: boolean, self: Gtk.Window) => boolean) | null;
|
|
466
467
|
/**
|
|
467
468
|
* Emitted when the set of accelerators or mnemonics that
|
|
468
469
|
* are associated with the window changes.
|
|
469
470
|
*/
|
|
470
|
-
onKeysChanged?: (self: Gtk.Window) => void | null;
|
|
471
|
+
onKeysChanged?: ((self: Gtk.Window) => void) | null;
|
|
471
472
|
/** Called when the window close button is clicked. Control window visibility using React state. */
|
|
472
473
|
onClose?: (() => void) | null;
|
|
473
474
|
children?: ReactNode;
|
|
@@ -755,7 +756,7 @@ export type AdwAboutDialogProps = AdwDialogProps & {
|
|
|
755
756
|
* Applications may connect to it to override the default behavior, which is
|
|
756
757
|
* to call {@link show_uri}.
|
|
757
758
|
*/
|
|
758
|
-
onActivateLink?: (uri: string, self: Adw.AboutDialog) => boolean | null;
|
|
759
|
+
onActivateLink?: ((uri: string, self: Adw.AboutDialog) => boolean) | null;
|
|
759
760
|
children?: ReactNode;
|
|
760
761
|
ref?: Ref<Adw.AboutDialog>;
|
|
761
762
|
};
|
|
@@ -886,7 +887,7 @@ export type GtkAboutDialogProps = GtkWindowProps & {
|
|
|
886
887
|
* Applications may connect to it to override the default behaviour,
|
|
887
888
|
* which is to call {@link FileLauncher.launch}.
|
|
888
889
|
*/
|
|
889
|
-
onActivateLink?: (uri: string, self: Gtk.AboutDialog) => boolean | null;
|
|
890
|
+
onActivateLink?: ((uri: string, self: Gtk.AboutDialog) => boolean) | null;
|
|
890
891
|
/** Custom credit sections to add to the Credits page. Each section has a name and list of people. Changes to this prop after mount are ignored. */
|
|
891
892
|
creditSections?: Array<{
|
|
892
893
|
name: string;
|
|
@@ -1177,7 +1178,7 @@ export type AdwAboutWindowProps = AdwWindowProps & {
|
|
|
1177
1178
|
* Applications may connect to it to override the default behavior, which is
|
|
1178
1179
|
* to call {@link show_uri}.
|
|
1179
1180
|
*/
|
|
1180
|
-
onActivateLink?: (uri: string, self: Adw.AboutWindow) => boolean | null;
|
|
1181
|
+
onActivateLink?: ((uri: string, self: Adw.AboutWindow) => boolean) | null;
|
|
1181
1182
|
children?: ReactNode;
|
|
1182
1183
|
ref?: Ref<Adw.AboutWindow>;
|
|
1183
1184
|
};
|
|
@@ -1231,7 +1232,7 @@ export type AdwActionRowProps = AdwPreferencesRowProps & {
|
|
|
1231
1232
|
*/
|
|
1232
1233
|
titleLines?: number;
|
|
1233
1234
|
/** This signal is emitted after the row has been activated. */
|
|
1234
|
-
onActivated?: (self: Adw.ActionRow) => void | null;
|
|
1235
|
+
onActivated?: ((self: Adw.ActionRow) => void) | null;
|
|
1235
1236
|
children?: ReactNode;
|
|
1236
1237
|
ref?: Ref<Adw.ActionRow>;
|
|
1237
1238
|
};
|
|
@@ -1299,7 +1300,7 @@ export type AdwAlertDialogProps = AdwDialogProps & {
|
|
|
1299
1300
|
* action, `response` will be set to the value of
|
|
1300
1301
|
* {@link AdwAlertDialog.close-response}.
|
|
1301
1302
|
*/
|
|
1302
|
-
onResponse?: (response: string, self: Adw.AlertDialog) => void | null;
|
|
1303
|
+
onResponse?: ((response: string, self: Adw.AlertDialog) => void) | null;
|
|
1303
1304
|
children?: ReactNode;
|
|
1304
1305
|
ref?: Ref<Adw.AlertDialog>;
|
|
1305
1306
|
};
|
|
@@ -1330,16 +1331,16 @@ export type GtkAppChooserButtonProps = WidgetProps & {
|
|
|
1330
1331
|
* The `::activate` signal on `GtkAppChooserButton` is an action signal and
|
|
1331
1332
|
* emitting it causes the button to pop up its dialog.
|
|
1332
1333
|
*/
|
|
1333
|
-
onActivate?: (self: Gtk.AppChooserButton) => void | null;
|
|
1334
|
+
onActivate?: ((self: Gtk.AppChooserButton) => void) | null;
|
|
1334
1335
|
/** Emitted when the active application changes. */
|
|
1335
|
-
onChanged?: (self: Gtk.AppChooserButton) => void | null;
|
|
1336
|
+
onChanged?: ((self: Gtk.AppChooserButton) => void) | null;
|
|
1336
1337
|
/**
|
|
1337
1338
|
* Emitted when a custom item is activated.
|
|
1338
1339
|
*
|
|
1339
1340
|
* Use {@link AppChooserButton.append_custom_item},
|
|
1340
1341
|
* to add custom items.
|
|
1341
1342
|
*/
|
|
1342
|
-
onCustomItemActivated?: (itemName: string, self: Gtk.AppChooserButton) => void | null;
|
|
1343
|
+
onCustomItemActivated?: ((itemName: string, self: Gtk.AppChooserButton) => void) | null;
|
|
1343
1344
|
ref?: Ref<Gtk.AppChooserButton>;
|
|
1344
1345
|
};
|
|
1345
1346
|
/** Props for the {@link GtkAppChooserDialog} widget. */
|
|
@@ -1402,9 +1403,9 @@ export type GtkAppChooserWidgetProps = WidgetProps & {
|
|
|
1402
1403
|
* is selected and the user presses one of the keys Space, Shift+Space,
|
|
1403
1404
|
* Return or Enter.
|
|
1404
1405
|
*/
|
|
1405
|
-
onApplicationActivated?: (application: Gio.AppInfo, self: Gtk.AppChooserWidget) => void | null;
|
|
1406
|
+
onApplicationActivated?: ((application: Gio.AppInfo, self: Gtk.AppChooserWidget) => void) | null;
|
|
1406
1407
|
/** Emitted when an application item is selected from the widget's list. */
|
|
1407
|
-
onApplicationSelected?: (application: Gio.AppInfo, self: Gtk.AppChooserWidget) => void | null;
|
|
1408
|
+
onApplicationSelected?: ((application: Gio.AppInfo, self: Gtk.AppChooserWidget) => void) | null;
|
|
1408
1409
|
ref?: Ref<Gtk.AppChooserWidget>;
|
|
1409
1410
|
};
|
|
1410
1411
|
/** Props for the {@link AdwApplicationWindow} widget. */
|
|
@@ -1448,18 +1449,18 @@ export type GtkApplicationWindowProps = GtkWindowProps & {
|
|
|
1448
1449
|
* This signal is emitted after the action has been added
|
|
1449
1450
|
* and is now visible.
|
|
1450
1451
|
*/
|
|
1451
|
-
onActionAdded?: (actionName: string, self: Gtk.ApplicationWindow) => void | null;
|
|
1452
|
+
onActionAdded?: ((actionName: string, self: Gtk.ApplicationWindow) => void) | null;
|
|
1452
1453
|
/** Signals that the enabled status of the named action has changed. */
|
|
1453
|
-
onActionEnabledChanged?: (actionName: string, enabled: boolean, self: Gtk.ApplicationWindow) => void | null;
|
|
1454
|
+
onActionEnabledChanged?: ((actionName: string, enabled: boolean, self: Gtk.ApplicationWindow) => void) | null;
|
|
1454
1455
|
/**
|
|
1455
1456
|
* Signals that an action is just about to be removed from the group.
|
|
1456
1457
|
*
|
|
1457
1458
|
* This signal is emitted before the action is removed, so the action
|
|
1458
1459
|
* is still visible and can be queried from the signal handler.
|
|
1459
1460
|
*/
|
|
1460
|
-
onActionRemoved?: (actionName: string, self: Gtk.ApplicationWindow) => void | null;
|
|
1461
|
+
onActionRemoved?: ((actionName: string, self: Gtk.ApplicationWindow) => void) | null;
|
|
1461
1462
|
/** Signals that the state of the named action has changed. */
|
|
1462
|
-
onActionStateChanged?: (actionName: string, value: GLib.Variant, self: Gtk.ApplicationWindow) => void | null;
|
|
1463
|
+
onActionStateChanged?: ((actionName: string, value: GLib.Variant, self: Gtk.ApplicationWindow) => void) | null;
|
|
1463
1464
|
children?: ReactNode;
|
|
1464
1465
|
ref?: Ref<Gtk.ApplicationWindow>;
|
|
1465
1466
|
};
|
|
@@ -1498,17 +1499,17 @@ export type GtkAssistantProps = GtkWindowProps & {
|
|
|
1498
1499
|
* this operation within the {@link Assistant.:prepare} signal of
|
|
1499
1500
|
* the progress page.
|
|
1500
1501
|
*/
|
|
1501
|
-
onApply?: (self: Gtk.Assistant) => void | null;
|
|
1502
|
+
onApply?: ((self: Gtk.Assistant) => void) | null;
|
|
1502
1503
|
/** Emitted when then the cancel button is clicked. */
|
|
1503
|
-
onCancel?: (self: Gtk.Assistant) => void | null;
|
|
1504
|
+
onCancel?: ((self: Gtk.Assistant) => void) | null;
|
|
1504
1505
|
/**
|
|
1505
1506
|
* Emitted either when the close button of a summary page is clicked,
|
|
1506
1507
|
* or when the apply button in the last page in the flow (of type
|
|
1507
1508
|
* %GTK_ASSISTANT_PAGE_CONFIRM) is clicked.
|
|
1508
1509
|
*/
|
|
1509
|
-
onClose?: (self: Gtk.Assistant) => void | null;
|
|
1510
|
+
onClose?: ((self: Gtk.Assistant) => void) | null;
|
|
1510
1511
|
/** The action signal for the Escape binding. */
|
|
1511
|
-
onEscape?: (self: Gtk.Assistant) => void | null;
|
|
1512
|
+
onEscape?: ((self: Gtk.Assistant) => void) | null;
|
|
1512
1513
|
/**
|
|
1513
1514
|
* Emitted when a new page is set as the assistant's current page,
|
|
1514
1515
|
* before making the new page visible.
|
|
@@ -1516,7 +1517,7 @@ export type GtkAssistantProps = GtkWindowProps & {
|
|
|
1516
1517
|
* A handler for this signal can do any preparations which are
|
|
1517
1518
|
* necessary before showing `page`.
|
|
1518
1519
|
*/
|
|
1519
|
-
onPrepare?: (page: Gtk.Widget, self: Gtk.Assistant) => void | null;
|
|
1520
|
+
onPrepare?: ((page: Gtk.Widget, self: Gtk.Assistant) => void) | null;
|
|
1520
1521
|
children?: ReactNode;
|
|
1521
1522
|
ref?: Ref<Gtk.Assistant>;
|
|
1522
1523
|
};
|
|
@@ -1594,7 +1595,7 @@ export type AdwBannerProps = WidgetProps & {
|
|
|
1594
1595
|
*
|
|
1595
1596
|
* It can be used as an alternative to setting an action.
|
|
1596
1597
|
*/
|
|
1597
|
-
onButtonClicked?: (self: Adw.Banner) => void | null;
|
|
1598
|
+
onButtonClicked?: ((self: Adw.Banner) => void) | null;
|
|
1598
1599
|
ref?: Ref<Adw.Banner>;
|
|
1599
1600
|
};
|
|
1600
1601
|
/** Props for the {@link AdwBin} widget. */
|
|
@@ -1699,7 +1700,7 @@ export type AdwBottomSheetProps = WidgetProps & {
|
|
|
1699
1700
|
* Emitted when the close button or shortcut is used while
|
|
1700
1701
|
* {@link AdwDialog.can-close} is set to `FALSE`.
|
|
1701
1702
|
*/
|
|
1702
|
-
onCloseAttempt?: (self: Adw.BottomSheet) => void | null;
|
|
1703
|
+
onCloseAttempt?: ((self: Adw.BottomSheet) => void) | null;
|
|
1703
1704
|
children?: ReactNode;
|
|
1704
1705
|
ref?: Ref<Adw.BottomSheet>;
|
|
1705
1706
|
};
|
|
@@ -1767,9 +1768,9 @@ export type GtkButtonProps = WidgetProps & {
|
|
|
1767
1768
|
* The default bindings for this signal are all forms of the
|
|
1768
1769
|
* `␣` and `Enter` keys.
|
|
1769
1770
|
*/
|
|
1770
|
-
onActivate?: (self: Gtk.Button) => void | null;
|
|
1771
|
+
onActivate?: ((self: Gtk.Button) => void) | null;
|
|
1771
1772
|
/** Emitted when the button has been activated (pressed and released). */
|
|
1772
|
-
onClicked?: (self: Gtk.Button) => void | null;
|
|
1773
|
+
onClicked?: ((self: Gtk.Button) => void) | null;
|
|
1773
1774
|
children?: ReactNode;
|
|
1774
1775
|
ref?: Ref<Gtk.Button>;
|
|
1775
1776
|
};
|
|
@@ -1808,7 +1809,7 @@ export type AdwButtonRowProps = AdwPreferencesRowProps & {
|
|
|
1808
1809
|
/** The icon name to show before the title. */
|
|
1809
1810
|
startIconName?: string | null;
|
|
1810
1811
|
/** This signal is emitted after the row has been activated. */
|
|
1811
|
-
onActivated?: (self: Adw.ButtonRow) => void | null;
|
|
1812
|
+
onActivated?: ((self: Adw.ButtonRow) => void) | null;
|
|
1812
1813
|
children?: ReactNode;
|
|
1813
1814
|
ref?: Ref<Adw.ButtonRow>;
|
|
1814
1815
|
};
|
|
@@ -1841,15 +1842,15 @@ export type GtkCalendarProps = WidgetProps & {
|
|
|
1841
1842
|
*/
|
|
1842
1843
|
year?: number;
|
|
1843
1844
|
/** Emitted when the user selects a day. */
|
|
1844
|
-
onDaySelected?: (self: Gtk.Calendar) => void | null;
|
|
1845
|
+
onDaySelected?: ((self: Gtk.Calendar) => void) | null;
|
|
1845
1846
|
/** Emitted when the user switches to the next month. */
|
|
1846
|
-
onNextMonth?: (self: Gtk.Calendar) => void | null;
|
|
1847
|
+
onNextMonth?: ((self: Gtk.Calendar) => void) | null;
|
|
1847
1848
|
/** Emitted when user switches to the next year. */
|
|
1848
|
-
onNextYear?: (self: Gtk.Calendar) => void | null;
|
|
1849
|
+
onNextYear?: ((self: Gtk.Calendar) => void) | null;
|
|
1849
1850
|
/** Emitted when the user switches to the previous month. */
|
|
1850
|
-
onPrevMonth?: (self: Gtk.Calendar) => void | null;
|
|
1851
|
+
onPrevMonth?: ((self: Gtk.Calendar) => void) | null;
|
|
1851
1852
|
/** Emitted when user switches to the previous year. */
|
|
1852
|
-
onPrevYear?: (self: Gtk.Calendar) => void | null;
|
|
1853
|
+
onPrevYear?: ((self: Gtk.Calendar) => void) | null;
|
|
1853
1854
|
/** Array of day numbers (1-31) to mark on the calendar */
|
|
1854
1855
|
markedDays?: number[] | null;
|
|
1855
1856
|
ref?: Ref<Gtk.Calendar>;
|
|
@@ -1910,7 +1911,7 @@ export type AdwCarouselProps = WidgetProps & {
|
|
|
1910
1911
|
* ::: note
|
|
1911
1912
|
* An empty carousel is indicated by `(int)index == -1`.
|
|
1912
1913
|
*/
|
|
1913
|
-
onPageChanged?: (index: number, self: Adw.Carousel) => void | null;
|
|
1914
|
+
onPageChanged?: ((index: number, self: Adw.Carousel) => void) | null;
|
|
1914
1915
|
children?: ReactNode;
|
|
1915
1916
|
ref?: Ref<Adw.Carousel>;
|
|
1916
1917
|
};
|
|
@@ -2042,12 +2043,12 @@ export type GtkCheckButtonProps = WidgetProps & {
|
|
|
2042
2043
|
* The default bindings for this signal are all forms of the
|
|
2043
2044
|
* `␣` and `Enter` keys.
|
|
2044
2045
|
*/
|
|
2045
|
-
onActivate?: (self: Gtk.CheckButton) => void | null;
|
|
2046
|
+
onActivate?: ((self: Gtk.CheckButton) => void) | null;
|
|
2046
2047
|
/**
|
|
2047
2048
|
* Emitted when the buttons's {@link CheckButton.active}
|
|
2048
2049
|
* property changes.
|
|
2049
2050
|
*/
|
|
2050
|
-
onToggled?: (self: Gtk.CheckButton) => void | null;
|
|
2051
|
+
onToggled?: ((self: Gtk.CheckButton) => void) | null;
|
|
2051
2052
|
children?: ReactNode;
|
|
2052
2053
|
ref?: Ref<Gtk.CheckButton>;
|
|
2053
2054
|
};
|
|
@@ -2181,7 +2182,7 @@ export type GtkColorButtonProps = WidgetProps & {
|
|
|
2181
2182
|
* The `::activate` signal on `GtkMenuButton` is an action signal and
|
|
2182
2183
|
* emitting it causes the button to pop up its dialog.
|
|
2183
2184
|
*/
|
|
2184
|
-
onActivate?: (self: Gtk.ColorButton) => void | null;
|
|
2185
|
+
onActivate?: ((self: Gtk.ColorButton) => void) | null;
|
|
2185
2186
|
/**
|
|
2186
2187
|
* Emitted when the user selects a color.
|
|
2187
2188
|
*
|
|
@@ -2192,7 +2193,7 @@ export type GtkColorButtonProps = WidgetProps & {
|
|
|
2192
2193
|
* If you need to react to programmatic color changes as well, use
|
|
2193
2194
|
* the notify::rgba signal.
|
|
2194
2195
|
*/
|
|
2195
|
-
onColorSet?: (self: Gtk.ColorButton) => void | null;
|
|
2196
|
+
onColorSet?: ((self: Gtk.ColorButton) => void) | null;
|
|
2196
2197
|
/**
|
|
2197
2198
|
* Emitted when a color is activated from the color chooser.
|
|
2198
2199
|
*
|
|
@@ -2200,7 +2201,7 @@ export type GtkColorButtonProps = WidgetProps & {
|
|
|
2200
2201
|
* or a color is selected and the user presses one of the keys
|
|
2201
2202
|
* Space, Shift+Space, Return or Enter.
|
|
2202
2203
|
*/
|
|
2203
|
-
onColorActivated?: (color: Gdk.RGBA, self: Gtk.ColorButton) => void | null;
|
|
2204
|
+
onColorActivated?: ((color: Gdk.RGBA, self: Gtk.ColorButton) => void) | null;
|
|
2204
2205
|
ref?: Ref<Gtk.ColorButton>;
|
|
2205
2206
|
};
|
|
2206
2207
|
/** Props for the {@link GtkColorChooserDialog} widget. */
|
|
@@ -2236,7 +2237,7 @@ export type GtkColorChooserDialogProps = GtkDialogProps & {
|
|
|
2236
2237
|
* or a color is selected and the user presses one of the keys
|
|
2237
2238
|
* Space, Shift+Space, Return or Enter.
|
|
2238
2239
|
*/
|
|
2239
|
-
onColorActivated?: (color: Gdk.RGBA, self: Gtk.ColorChooserDialog) => void | null;
|
|
2240
|
+
onColorActivated?: ((color: Gdk.RGBA, self: Gtk.ColorChooserDialog) => void) | null;
|
|
2240
2241
|
children?: ReactNode;
|
|
2241
2242
|
ref?: Ref<Gtk.ColorChooserDialog>;
|
|
2242
2243
|
};
|
|
@@ -2273,7 +2274,7 @@ export type GtkColorChooserWidgetProps = WidgetProps & {
|
|
|
2273
2274
|
* or a color is selected and the user presses one of the keys
|
|
2274
2275
|
* Space, Shift+Space, Return or Enter.
|
|
2275
2276
|
*/
|
|
2276
|
-
onColorActivated?: (color: Gdk.RGBA, self: Gtk.ColorChooserWidget) => void | null;
|
|
2277
|
+
onColorActivated?: ((color: Gdk.RGBA, self: Gtk.ColorChooserWidget) => void) | null;
|
|
2277
2278
|
ref?: Ref<Gtk.ColorChooserWidget>;
|
|
2278
2279
|
};
|
|
2279
2280
|
/** Props for the {@link GtkColorDialogButton} widget. */
|
|
@@ -2300,7 +2301,7 @@ export type GtkColorDialogButtonProps = WidgetProps & {
|
|
|
2300
2301
|
* The `::activate` signal on `GtkColorDialogButton` is an action signal
|
|
2301
2302
|
* and emitting it causes the button to pop up its dialog.
|
|
2302
2303
|
*/
|
|
2303
|
-
onActivate?: (self: Gtk.ColorDialogButton) => void | null;
|
|
2304
|
+
onActivate?: ((self: Gtk.ColorDialogButton) => void) | null;
|
|
2304
2305
|
/** Callback when the selected color changes */
|
|
2305
2306
|
onRgbaChanged?: ((rgba: Gdk.RGBA) => void) | null;
|
|
2306
2307
|
/** Title for the color dialog */
|
|
@@ -2361,7 +2362,7 @@ export type GtkColumnViewProps = WidgetProps & {
|
|
|
2361
2362
|
* See {@link ListItem.set_activatable} for details on how to use this
|
|
2362
2363
|
* signal.
|
|
2363
2364
|
*/
|
|
2364
|
-
onActivate?: (position: number, self: Gtk.ColumnView) => void | null;
|
|
2365
|
+
onActivate?: ((position: number, self: Gtk.ColumnView) => void) | null;
|
|
2365
2366
|
/** Array of selected item IDs */
|
|
2366
2367
|
selected?: string[] | null;
|
|
2367
2368
|
/** Called when selection changes with array of selected item IDs */
|
|
@@ -2428,7 +2429,7 @@ export type GtkComboBoxProps = WidgetProps & {
|
|
|
2428
2429
|
* The `::activate` signal on `GtkComboBox` is an action signal and
|
|
2429
2430
|
* emitting it causes the combo box to pop up its dropdown.
|
|
2430
2431
|
*/
|
|
2431
|
-
onActivate?: (self: Gtk.ComboBox) => void | null;
|
|
2432
|
+
onActivate?: ((self: Gtk.ComboBox) => void) | null;
|
|
2432
2433
|
/**
|
|
2433
2434
|
* Emitted when the active item is changed.
|
|
2434
2435
|
*
|
|
@@ -2436,7 +2437,7 @@ export type GtkComboBoxProps = WidgetProps & {
|
|
|
2436
2437
|
* or due to a call to {@link ComboBox.set_active_iter}. It will
|
|
2437
2438
|
* also be emitted while typing into the entry of a combo box with an entry.
|
|
2438
2439
|
*/
|
|
2439
|
-
onChanged?: (self: Gtk.ComboBox) => void | null;
|
|
2440
|
+
onChanged?: ((self: Gtk.ComboBox) => void) | null;
|
|
2440
2441
|
/**
|
|
2441
2442
|
* Emitted to allow changing how the text in a combo box's entry is displayed.
|
|
2442
2443
|
*
|
|
@@ -2470,13 +2471,13 @@ export type GtkComboBoxProps = WidgetProps & {
|
|
|
2470
2471
|
* }
|
|
2471
2472
|
* ```
|
|
2472
2473
|
*/
|
|
2473
|
-
onFormatEntryText?: (path: string, self: Gtk.ComboBox) => string | null;
|
|
2474
|
+
onFormatEntryText?: ((path: string, self: Gtk.ComboBox) => string) | null;
|
|
2474
2475
|
/**
|
|
2475
2476
|
* Emitted to move the active selection.
|
|
2476
2477
|
*
|
|
2477
2478
|
* This is an keybinding signal.
|
|
2478
2479
|
*/
|
|
2479
|
-
onMoveActive?: (scrollType: Gtk.ScrollType, self: Gtk.ComboBox) => void | null;
|
|
2480
|
+
onMoveActive?: ((scrollType: Gtk.ScrollType, self: Gtk.ComboBox) => void) | null;
|
|
2480
2481
|
/**
|
|
2481
2482
|
* Emitted to popdown the combo box list.
|
|
2482
2483
|
*
|
|
@@ -2484,7 +2485,7 @@ export type GtkComboBoxProps = WidgetProps & {
|
|
|
2484
2485
|
*
|
|
2485
2486
|
* The default bindings for this signal are Alt+Up and Escape.
|
|
2486
2487
|
*/
|
|
2487
|
-
onPopdown?: (self: Gtk.ComboBox) => boolean | null;
|
|
2488
|
+
onPopdown?: ((self: Gtk.ComboBox) => boolean) | null;
|
|
2488
2489
|
/**
|
|
2489
2490
|
* Emitted to popup the combo box list.
|
|
2490
2491
|
*
|
|
@@ -2492,7 +2493,7 @@ export type GtkComboBoxProps = WidgetProps & {
|
|
|
2492
2493
|
*
|
|
2493
2494
|
* The default binding for this signal is Alt+Down.
|
|
2494
2495
|
*/
|
|
2495
|
-
onPopup?: (self: Gtk.ComboBox) => void | null;
|
|
2496
|
+
onPopup?: ((self: Gtk.ComboBox) => void) | null;
|
|
2496
2497
|
/**
|
|
2497
2498
|
* This signal is a sign for the cell renderer to update its
|
|
2498
2499
|
* value from the `cell_editable`.
|
|
@@ -2506,7 +2507,7 @@ export type GtkComboBoxProps = WidgetProps & {
|
|
|
2506
2507
|
* gtk_cell_editable_editing_done() is a convenience method
|
|
2507
2508
|
* for emitting `GtkCellEditable::editing-done`.
|
|
2508
2509
|
*/
|
|
2509
|
-
onEditingDone?: (self: Gtk.ComboBox) => void | null;
|
|
2510
|
+
onEditingDone?: ((self: Gtk.ComboBox) => void) | null;
|
|
2510
2511
|
/**
|
|
2511
2512
|
* This signal is meant to indicate that the cell is finished
|
|
2512
2513
|
* editing, and the `cell_editable` widget is being removed and may
|
|
@@ -2521,7 +2522,7 @@ export type GtkComboBoxProps = WidgetProps & {
|
|
|
2521
2522
|
* gtk_cell_editable_remove_widget() is a convenience method
|
|
2522
2523
|
* for emitting `GtkCellEditable::remove-widget`.
|
|
2523
2524
|
*/
|
|
2524
|
-
onRemoveWidget?: (self: Gtk.ComboBox) => void | null;
|
|
2525
|
+
onRemoveWidget?: ((self: Gtk.ComboBox) => void) | null;
|
|
2525
2526
|
children?: ReactNode;
|
|
2526
2527
|
ref?: Ref<Gtk.ComboBox>;
|
|
2527
2528
|
};
|
|
@@ -2671,9 +2672,9 @@ export type AdwDialogProps = WidgetProps & {
|
|
|
2671
2672
|
* {@link Dialogclose} is called while {@link AdwDialog.can-close} is set to
|
|
2672
2673
|
* `FALSE`.
|
|
2673
2674
|
*/
|
|
2674
|
-
onCloseAttempt?: (self: Adw.Dialog) => void | null;
|
|
2675
|
+
onCloseAttempt?: ((self: Adw.Dialog) => void) | null;
|
|
2675
2676
|
/** Emitted when the dialog is successfully closed. */
|
|
2676
|
-
onClosed?: (self: Adw.Dialog) => void | null;
|
|
2677
|
+
onClosed?: ((self: Adw.Dialog) => void) | null;
|
|
2677
2678
|
children?: ReactNode;
|
|
2678
2679
|
ref?: Ref<Adw.Dialog>;
|
|
2679
2680
|
};
|
|
@@ -2686,7 +2687,7 @@ export type GtkDialogProps = GtkWindowProps & {
|
|
|
2686
2687
|
*
|
|
2687
2688
|
* The default binding for this signal is the Escape key.
|
|
2688
2689
|
*/
|
|
2689
|
-
onClose?: (self: Gtk.Dialog) => void | null;
|
|
2690
|
+
onClose?: ((self: Gtk.Dialog) => void) | null;
|
|
2690
2691
|
/**
|
|
2691
2692
|
* Emitted when an action widget is clicked.
|
|
2692
2693
|
*
|
|
@@ -2695,7 +2696,7 @@ export type GtkDialogProps = GtkWindowProps & {
|
|
|
2695
2696
|
* On a delete event, the response ID is %GTK_RESPONSE_DELETE_EVENT.
|
|
2696
2697
|
* Otherwise, it depends on which action widget was clicked.
|
|
2697
2698
|
*/
|
|
2698
|
-
onResponse?: (responseId: number, self: Gtk.Dialog) => void | null;
|
|
2699
|
+
onResponse?: ((responseId: number, self: Gtk.Dialog) => void) | null;
|
|
2699
2700
|
children?: ReactNode;
|
|
2700
2701
|
ref?: Ref<Gtk.Dialog>;
|
|
2701
2702
|
};
|
|
@@ -2719,7 +2720,7 @@ export type GtkDrawingAreaProps = WidgetProps & {
|
|
|
2719
2720
|
* This is useful in order to keep state up to date with the widget size,
|
|
2720
2721
|
* like for instance a backing surface.
|
|
2721
2722
|
*/
|
|
2722
|
-
onResize?: (width: number, height: number, self: Gtk.DrawingArea) => void | null;
|
|
2723
|
+
onResize?: ((width: number, height: number, self: Gtk.DrawingArea) => void) | null;
|
|
2723
2724
|
/**
|
|
2724
2725
|
* Called to draw the contents of the drawing area.
|
|
2725
2726
|
* @param self - The drawing area widget
|
|
@@ -2775,7 +2776,7 @@ export type GtkDropDownProps = WidgetProps & {
|
|
|
2775
2776
|
* The `::activate` signal on `GtkDropDown` is an action signal and
|
|
2776
2777
|
* emitting it causes the drop down to pop up its dropdown.
|
|
2777
2778
|
*/
|
|
2778
|
-
onActivate?: (self: Gtk.DropDown) => void | null;
|
|
2779
|
+
onActivate?: ((self: Gtk.DropDown) => void) | null;
|
|
2779
2780
|
/** ID of the initially selected item */
|
|
2780
2781
|
selectedId?: string | null;
|
|
2781
2782
|
/** Called when selection changes with the selected item's ID */
|
|
@@ -2813,7 +2814,7 @@ export type GtkEditableLabelProps = WidgetProps & {
|
|
|
2813
2814
|
* the new content, and may cause multiple ::notify::text signals
|
|
2814
2815
|
* to be emitted).
|
|
2815
2816
|
*/
|
|
2816
|
-
onChanged?: (self: Gtk.EditableLabel) => void | null;
|
|
2817
|
+
onChanged?: ((self: Gtk.EditableLabel) => void) | null;
|
|
2817
2818
|
/**
|
|
2818
2819
|
* Emitted when text is deleted from the widget by the user.
|
|
2819
2820
|
*
|
|
@@ -2825,7 +2826,7 @@ export type GtkEditableLabelProps = WidgetProps & {
|
|
|
2825
2826
|
* The `start_pos` and `end_pos` parameters are interpreted as for
|
|
2826
2827
|
* {@link Editable.delete_text}.
|
|
2827
2828
|
*/
|
|
2828
|
-
onDeleteText?: (startPos: number, endPos: number, self: Gtk.EditableLabel) => void | null;
|
|
2829
|
+
onDeleteText?: ((startPos: number, endPos: number, self: Gtk.EditableLabel) => void) | null;
|
|
2829
2830
|
/**
|
|
2830
2831
|
* Emitted when text is inserted into the widget by the user.
|
|
2831
2832
|
*
|
|
@@ -2834,13 +2835,13 @@ export type GtkEditableLabelProps = WidgetProps & {
|
|
|
2834
2835
|
* stopping the signal with g_signal_stop_emission(), it is possible
|
|
2835
2836
|
* to modify the inserted text, or prevent it from being inserted entirely.
|
|
2836
2837
|
*/
|
|
2837
|
-
onInsertText?: (text: string, length: number, position: Ref<number>, self: Gtk.EditableLabel) => void | null;
|
|
2838
|
+
onInsertText?: ((text: string, length: number, position: Ref<number>, self: Gtk.EditableLabel) => void) | null;
|
|
2838
2839
|
ref?: Ref<Gtk.EditableLabel>;
|
|
2839
2840
|
};
|
|
2840
2841
|
/** Props for the {@link GtkEmojiChooser} widget. */
|
|
2841
2842
|
export type GtkEmojiChooserProps = GtkPopoverProps & {
|
|
2842
2843
|
/** Emitted when the user selects an Emoji. */
|
|
2843
|
-
onEmojiPicked?: (text: string, self: Gtk.EmojiChooser) => void | null;
|
|
2844
|
+
onEmojiPicked?: ((text: string, self: Gtk.EmojiChooser) => void) | null;
|
|
2844
2845
|
children?: ReactNode;
|
|
2845
2846
|
ref?: Ref<Gtk.EmojiChooser>;
|
|
2846
2847
|
};
|
|
@@ -3066,14 +3067,14 @@ export type GtkEntryProps = WidgetProps & {
|
|
|
3066
3067
|
*
|
|
3067
3068
|
* The keybindings for this signal are all forms of the Enter key.
|
|
3068
3069
|
*/
|
|
3069
|
-
onActivate?: (self: Gtk.Entry) => void | null;
|
|
3070
|
+
onActivate?: ((self: Gtk.Entry) => void) | null;
|
|
3070
3071
|
/** Emitted when an activatable icon is clicked. */
|
|
3071
|
-
onIconPress?: (iconPos: Gtk.EntryIconPosition, self: Gtk.Entry) => void | null;
|
|
3072
|
+
onIconPress?: ((iconPos: Gtk.EntryIconPosition, self: Gtk.Entry) => void) | null;
|
|
3072
3073
|
/**
|
|
3073
3074
|
* Emitted on the button release from a mouse click
|
|
3074
3075
|
* over an activatable icon.
|
|
3075
3076
|
*/
|
|
3076
|
-
onIconRelease?: (iconPos: Gtk.EntryIconPosition, self: Gtk.Entry) => void | null;
|
|
3077
|
+
onIconRelease?: ((iconPos: Gtk.EntryIconPosition, self: Gtk.Entry) => void) | null;
|
|
3077
3078
|
/**
|
|
3078
3079
|
* This signal is a sign for the cell renderer to update its
|
|
3079
3080
|
* value from the `cell_editable`.
|
|
@@ -3087,7 +3088,7 @@ export type GtkEntryProps = WidgetProps & {
|
|
|
3087
3088
|
* gtk_cell_editable_editing_done() is a convenience method
|
|
3088
3089
|
* for emitting `GtkCellEditable::editing-done`.
|
|
3089
3090
|
*/
|
|
3090
|
-
onEditingDone?: (self: Gtk.Entry) => void | null;
|
|
3091
|
+
onEditingDone?: ((self: Gtk.Entry) => void) | null;
|
|
3091
3092
|
/**
|
|
3092
3093
|
* This signal is meant to indicate that the cell is finished
|
|
3093
3094
|
* editing, and the `cell_editable` widget is being removed and may
|
|
@@ -3102,7 +3103,7 @@ export type GtkEntryProps = WidgetProps & {
|
|
|
3102
3103
|
* gtk_cell_editable_remove_widget() is a convenience method
|
|
3103
3104
|
* for emitting `GtkCellEditable::remove-widget`.
|
|
3104
3105
|
*/
|
|
3105
|
-
onRemoveWidget?: (self: Gtk.Entry) => void | null;
|
|
3106
|
+
onRemoveWidget?: ((self: Gtk.Entry) => void) | null;
|
|
3106
3107
|
/**
|
|
3107
3108
|
* Emitted at the end of a single user-visible operation on the
|
|
3108
3109
|
* contents.
|
|
@@ -3113,7 +3114,7 @@ export type GtkEntryProps = WidgetProps & {
|
|
|
3113
3114
|
* the new content, and may cause multiple ::notify::text signals
|
|
3114
3115
|
* to be emitted).
|
|
3115
3116
|
*/
|
|
3116
|
-
onChanged?: (self: Gtk.Entry) => void | null;
|
|
3117
|
+
onChanged?: ((self: Gtk.Entry) => void) | null;
|
|
3117
3118
|
/**
|
|
3118
3119
|
* Emitted when text is deleted from the widget by the user.
|
|
3119
3120
|
*
|
|
@@ -3125,7 +3126,7 @@ export type GtkEntryProps = WidgetProps & {
|
|
|
3125
3126
|
* The `start_pos` and `end_pos` parameters are interpreted as for
|
|
3126
3127
|
* {@link Editable.delete_text}.
|
|
3127
3128
|
*/
|
|
3128
|
-
onDeleteText?: (startPos: number, endPos: number, self: Gtk.Entry) => void | null;
|
|
3129
|
+
onDeleteText?: ((startPos: number, endPos: number, self: Gtk.Entry) => void) | null;
|
|
3129
3130
|
/**
|
|
3130
3131
|
* Emitted when text is inserted into the widget by the user.
|
|
3131
3132
|
*
|
|
@@ -3134,7 +3135,7 @@ export type GtkEntryProps = WidgetProps & {
|
|
|
3134
3135
|
* stopping the signal with g_signal_stop_emission(), it is possible
|
|
3135
3136
|
* to modify the inserted text, or prevent it from being inserted entirely.
|
|
3136
3137
|
*/
|
|
3137
|
-
onInsertText?: (text: string, length: number, position: Ref<number>, self: Gtk.Entry) => void | null;
|
|
3138
|
+
onInsertText?: ((text: string, length: number, position: Ref<number>, self: Gtk.Entry) => void) | null;
|
|
3138
3139
|
children?: ReactNode;
|
|
3139
3140
|
ref?: Ref<Gtk.Entry>;
|
|
3140
3141
|
};
|
|
@@ -3204,9 +3205,9 @@ export type AdwEntryRowProps = AdwPreferencesRowProps & {
|
|
|
3204
3205
|
*
|
|
3205
3206
|
* See {@link AdwEntryRow.show-apply-button}.
|
|
3206
3207
|
*/
|
|
3207
|
-
onApply?: (self: Adw.EntryRow) => void | null;
|
|
3208
|
+
onApply?: ((self: Adw.EntryRow) => void) | null;
|
|
3208
3209
|
/** Emitted when the embedded entry is activated. */
|
|
3209
|
-
onEntryActivated?: (self: Adw.EntryRow) => void | null;
|
|
3210
|
+
onEntryActivated?: ((self: Adw.EntryRow) => void) | null;
|
|
3210
3211
|
/**
|
|
3211
3212
|
* Emitted at the end of a single user-visible operation on the
|
|
3212
3213
|
* contents.
|
|
@@ -3217,7 +3218,7 @@ export type AdwEntryRowProps = AdwPreferencesRowProps & {
|
|
|
3217
3218
|
* the new content, and may cause multiple ::notify::text signals
|
|
3218
3219
|
* to be emitted).
|
|
3219
3220
|
*/
|
|
3220
|
-
onChanged?: (self: Adw.EntryRow) => void | null;
|
|
3221
|
+
onChanged?: ((self: Adw.EntryRow) => void) | null;
|
|
3221
3222
|
/**
|
|
3222
3223
|
* Emitted when text is deleted from the widget by the user.
|
|
3223
3224
|
*
|
|
@@ -3229,7 +3230,7 @@ export type AdwEntryRowProps = AdwPreferencesRowProps & {
|
|
|
3229
3230
|
* The `start_pos` and `end_pos` parameters are interpreted as for
|
|
3230
3231
|
* {@link Editable.delete_text}.
|
|
3231
3232
|
*/
|
|
3232
|
-
onDeleteText?: (startPos: number, endPos: number, self: Adw.EntryRow) => void | null;
|
|
3233
|
+
onDeleteText?: ((startPos: number, endPos: number, self: Adw.EntryRow) => void) | null;
|
|
3233
3234
|
/**
|
|
3234
3235
|
* Emitted when text is inserted into the widget by the user.
|
|
3235
3236
|
*
|
|
@@ -3238,7 +3239,7 @@ export type AdwEntryRowProps = AdwPreferencesRowProps & {
|
|
|
3238
3239
|
* stopping the signal with g_signal_stop_emission(), it is possible
|
|
3239
3240
|
* to modify the inserted text, or prevent it from being inserted entirely.
|
|
3240
3241
|
*/
|
|
3241
|
-
onInsertText?: (text: string, length: number, position: Ref<number>, self: Adw.EntryRow) => void | null;
|
|
3242
|
+
onInsertText?: ((text: string, length: number, position: Ref<number>, self: Adw.EntryRow) => void) | null;
|
|
3242
3243
|
children?: ReactNode;
|
|
3243
3244
|
ref?: Ref<Adw.EntryRow>;
|
|
3244
3245
|
};
|
|
@@ -3262,7 +3263,7 @@ export type GtkExpanderProps = WidgetProps & {
|
|
|
3262
3263
|
/** Whether an underline in the text indicates a mnemonic. */
|
|
3263
3264
|
useUnderline?: boolean;
|
|
3264
3265
|
/** Activates the `GtkExpander`. */
|
|
3265
|
-
onActivate?: (self: Gtk.Expander) => void | null;
|
|
3266
|
+
onActivate?: ((self: Gtk.Expander) => void) | null;
|
|
3266
3267
|
children?: ReactNode;
|
|
3267
3268
|
ref?: Ref<Gtk.Expander>;
|
|
3268
3269
|
};
|
|
@@ -3340,7 +3341,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
|
|
|
3340
3341
|
*
|
|
3341
3342
|
* The default binding for this signal is `Alt`-`D`.
|
|
3342
3343
|
*/
|
|
3343
|
-
onDesktopFolder?: (self: Gtk.FileChooserWidget) => void | null;
|
|
3344
|
+
onDesktopFolder?: ((self: Gtk.FileChooserWidget) => void) | null;
|
|
3344
3345
|
/**
|
|
3345
3346
|
* Emitted when the user asks for it.
|
|
3346
3347
|
*
|
|
@@ -3355,7 +3356,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
|
|
|
3355
3356
|
*
|
|
3356
3357
|
* The default binding for this signal is `Alt`-`Down`.
|
|
3357
3358
|
*/
|
|
3358
|
-
onDownFolder?: (self: Gtk.FileChooserWidget) => void | null;
|
|
3359
|
+
onDownFolder?: ((self: Gtk.FileChooserWidget) => void) | null;
|
|
3359
3360
|
/**
|
|
3360
3361
|
* Emitted when the user asks for it.
|
|
3361
3362
|
*
|
|
@@ -3366,7 +3367,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
|
|
|
3366
3367
|
*
|
|
3367
3368
|
* The default binding for this signal is `Alt`-`Home`.
|
|
3368
3369
|
*/
|
|
3369
|
-
onHomeFolder?: (self: Gtk.FileChooserWidget) => void | null;
|
|
3370
|
+
onHomeFolder?: ((self: Gtk.FileChooserWidget) => void) | null;
|
|
3370
3371
|
/**
|
|
3371
3372
|
* Emitted when the user asks for it.
|
|
3372
3373
|
*
|
|
@@ -3382,7 +3383,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
|
|
|
3382
3383
|
* bound to `~` (tilde) with a `path` string of "~" itself for
|
|
3383
3384
|
* access to home directories.
|
|
3384
3385
|
*/
|
|
3385
|
-
onLocationPopup?: (path: string, self: Gtk.FileChooserWidget) => void | null;
|
|
3386
|
+
onLocationPopup?: ((path: string, self: Gtk.FileChooserWidget) => void) | null;
|
|
3386
3387
|
/**
|
|
3387
3388
|
* Emitted when the user asks for it.
|
|
3388
3389
|
*
|
|
@@ -3393,7 +3394,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
|
|
|
3393
3394
|
*
|
|
3394
3395
|
* The default binding for this signal is `Control`-`V`.
|
|
3395
3396
|
*/
|
|
3396
|
-
onLocationPopupOnPaste?: (self: Gtk.FileChooserWidget) => void | null;
|
|
3397
|
+
onLocationPopupOnPaste?: ((self: Gtk.FileChooserWidget) => void) | null;
|
|
3397
3398
|
/**
|
|
3398
3399
|
* Emitted when the user asks for it.
|
|
3399
3400
|
*
|
|
@@ -3405,7 +3406,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
|
|
|
3405
3406
|
*
|
|
3406
3407
|
* The default binding for this signal is `Control`-`L`.
|
|
3407
3408
|
*/
|
|
3408
|
-
onLocationTogglePopup?: (self: Gtk.FileChooserWidget) => void | null;
|
|
3409
|
+
onLocationTogglePopup?: ((self: Gtk.FileChooserWidget) => void) | null;
|
|
3409
3410
|
/**
|
|
3410
3411
|
* Emitted when the user asks for it.
|
|
3411
3412
|
*
|
|
@@ -3415,7 +3416,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
|
|
|
3415
3416
|
*
|
|
3416
3417
|
* The default binding for this signal is `Alt`-`P`.
|
|
3417
3418
|
*/
|
|
3418
|
-
onPlacesShortcut?: (self: Gtk.FileChooserWidget) => void | null;
|
|
3419
|
+
onPlacesShortcut?: ((self: Gtk.FileChooserWidget) => void) | null;
|
|
3419
3420
|
/**
|
|
3420
3421
|
* Emitted when the user asks for it.
|
|
3421
3422
|
*
|
|
@@ -3432,7 +3433,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
|
|
|
3432
3433
|
* actually defined to switch to the bookmark at index 0, and so on
|
|
3433
3434
|
* successively.
|
|
3434
3435
|
*/
|
|
3435
|
-
onQuickBookmark?: (bookmarkIndex: number, self: Gtk.FileChooserWidget) => void | null;
|
|
3436
|
+
onQuickBookmark?: ((bookmarkIndex: number, self: Gtk.FileChooserWidget) => void) | null;
|
|
3436
3437
|
/**
|
|
3437
3438
|
* Emitted when the user asks for it.
|
|
3438
3439
|
*
|
|
@@ -3442,7 +3443,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
|
|
|
3442
3443
|
*
|
|
3443
3444
|
* The default binding for this signal is `Alt`-`R`.
|
|
3444
3445
|
*/
|
|
3445
|
-
onRecentShortcut?: (self: Gtk.FileChooserWidget) => void | null;
|
|
3446
|
+
onRecentShortcut?: ((self: Gtk.FileChooserWidget) => void) | null;
|
|
3446
3447
|
/**
|
|
3447
3448
|
* Emitted when the user asks for it.
|
|
3448
3449
|
*
|
|
@@ -3452,7 +3453,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
|
|
|
3452
3453
|
*
|
|
3453
3454
|
* The default binding for this signal is `Alt`-`S`.
|
|
3454
3455
|
*/
|
|
3455
|
-
onSearchShortcut?: (self: Gtk.FileChooserWidget) => void | null;
|
|
3456
|
+
onSearchShortcut?: ((self: Gtk.FileChooserWidget) => void) | null;
|
|
3456
3457
|
/**
|
|
3457
3458
|
* Emitted when the user asks for it.
|
|
3458
3459
|
*
|
|
@@ -3462,7 +3463,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
|
|
|
3462
3463
|
*
|
|
3463
3464
|
* The default binding for this signal is `Control`-`H`.
|
|
3464
3465
|
*/
|
|
3465
|
-
onShowHidden?: (self: Gtk.FileChooserWidget) => void | null;
|
|
3466
|
+
onShowHidden?: ((self: Gtk.FileChooserWidget) => void) | null;
|
|
3466
3467
|
/**
|
|
3467
3468
|
* Emitted when the user asks for it.
|
|
3468
3469
|
*
|
|
@@ -3473,7 +3474,7 @@ export type GtkFileChooserWidgetProps = WidgetProps & {
|
|
|
3473
3474
|
*
|
|
3474
3475
|
* The default binding for this signal is `Alt`-`Up`.
|
|
3475
3476
|
*/
|
|
3476
|
-
onUpFolder?: (self: Gtk.FileChooserWidget) => void | null;
|
|
3477
|
+
onUpFolder?: ((self: Gtk.FileChooserWidget) => void) | null;
|
|
3477
3478
|
ref?: Ref<Gtk.FileChooserWidget>;
|
|
3478
3479
|
};
|
|
3479
3480
|
/** Props for the {@link GtkFixed} widget. */
|
|
@@ -3622,9 +3623,9 @@ export type GtkFlowBoxProps = WidgetProps & {
|
|
|
3622
3623
|
*
|
|
3623
3624
|
* This is a keybinding signal.
|
|
3624
3625
|
*/
|
|
3625
|
-
onActivateCursorChild?: (self: Gtk.FlowBox) => void | null;
|
|
3626
|
+
onActivateCursorChild?: ((self: Gtk.FlowBox) => void) | null;
|
|
3626
3627
|
/** Emitted when a child has been activated by the user. */
|
|
3627
|
-
onChildActivated?: (child: Gtk.FlowBoxChild, self: Gtk.FlowBox) => void | null;
|
|
3628
|
+
onChildActivated?: ((child: Gtk.FlowBoxChild, self: Gtk.FlowBox) => void) | null;
|
|
3628
3629
|
/**
|
|
3629
3630
|
* Emitted when the user initiates a cursor movement.
|
|
3630
3631
|
*
|
|
@@ -3643,7 +3644,7 @@ export type GtkFlowBoxProps = WidgetProps & {
|
|
|
3643
3644
|
* - `Home`, `End` move to the ends of the box
|
|
3644
3645
|
* - `PgUp`, `PgDn` move vertically by pages
|
|
3645
3646
|
*/
|
|
3646
|
-
onMoveCursor?: (step: Gtk.MovementStep, count: number, extend: boolean, modify: boolean, self: Gtk.FlowBox) => boolean | null;
|
|
3647
|
+
onMoveCursor?: ((step: Gtk.MovementStep, count: number, extend: boolean, modify: boolean, self: Gtk.FlowBox) => boolean) | null;
|
|
3647
3648
|
/**
|
|
3648
3649
|
* Emitted to select all children of the box,
|
|
3649
3650
|
* if the selection mode permits it.
|
|
@@ -3652,7 +3653,7 @@ export type GtkFlowBoxProps = WidgetProps & {
|
|
|
3652
3653
|
*
|
|
3653
3654
|
* The default bindings for this signal is `Ctrl`-`a`.
|
|
3654
3655
|
*/
|
|
3655
|
-
onSelectAll?: (self: Gtk.FlowBox) => void | null;
|
|
3656
|
+
onSelectAll?: ((self: Gtk.FlowBox) => void) | null;
|
|
3656
3657
|
/**
|
|
3657
3658
|
* Emitted when the set of selected children changes.
|
|
3658
3659
|
*
|
|
@@ -3660,7 +3661,7 @@ export type GtkFlowBoxProps = WidgetProps & {
|
|
|
3660
3661
|
* {@link FlowBox.get_selected_children} to obtain the
|
|
3661
3662
|
* selected children.
|
|
3662
3663
|
*/
|
|
3663
|
-
onSelectedChildrenChanged?: (self: Gtk.FlowBox) => void | null;
|
|
3664
|
+
onSelectedChildrenChanged?: ((self: Gtk.FlowBox) => void) | null;
|
|
3664
3665
|
/**
|
|
3665
3666
|
* Emitted to toggle the selection of the child that has the focus.
|
|
3666
3667
|
*
|
|
@@ -3668,7 +3669,7 @@ export type GtkFlowBoxProps = WidgetProps & {
|
|
|
3668
3669
|
*
|
|
3669
3670
|
* The default binding for this signal is `Ctrl`-`Space`.
|
|
3670
3671
|
*/
|
|
3671
|
-
onToggleCursorChild?: (self: Gtk.FlowBox) => void | null;
|
|
3672
|
+
onToggleCursorChild?: ((self: Gtk.FlowBox) => void) | null;
|
|
3672
3673
|
/**
|
|
3673
3674
|
* Emitted to unselect all children of the box,
|
|
3674
3675
|
* if the selection mode permits it.
|
|
@@ -3677,7 +3678,7 @@ export type GtkFlowBoxProps = WidgetProps & {
|
|
|
3677
3678
|
*
|
|
3678
3679
|
* The default bindings for this signal is `Ctrl`-`Shift`-`a`.
|
|
3679
3680
|
*/
|
|
3680
|
-
onUnselectAll?: (self: Gtk.FlowBox) => void | null;
|
|
3681
|
+
onUnselectAll?: ((self: Gtk.FlowBox) => void) | null;
|
|
3681
3682
|
children?: ReactNode;
|
|
3682
3683
|
ref?: Ref<Gtk.FlowBox>;
|
|
3683
3684
|
};
|
|
@@ -3696,7 +3697,7 @@ export type GtkFlowBoxChildProps = WidgetProps & {
|
|
|
3696
3697
|
*
|
|
3697
3698
|
* The default bindings are `Space` and `Enter`.
|
|
3698
3699
|
*/
|
|
3699
|
-
onActivate?: (self: Gtk.FlowBoxChild) => void | null;
|
|
3700
|
+
onActivate?: ((self: Gtk.FlowBoxChild) => void) | null;
|
|
3700
3701
|
children?: ReactNode;
|
|
3701
3702
|
ref?: Ref<Gtk.FlowBoxChild>;
|
|
3702
3703
|
};
|
|
@@ -3728,7 +3729,7 @@ export type GtkFontButtonProps = WidgetProps & {
|
|
|
3728
3729
|
* The `::activate` signal on `GtkFontButton` is an action signal and
|
|
3729
3730
|
* emitting it causes the button to present its dialog.
|
|
3730
3731
|
*/
|
|
3731
|
-
onActivate?: (self: Gtk.FontButton) => void | null;
|
|
3732
|
+
onActivate?: ((self: Gtk.FontButton) => void) | null;
|
|
3732
3733
|
/**
|
|
3733
3734
|
* Emitted when the user selects a font.
|
|
3734
3735
|
*
|
|
@@ -3739,7 +3740,7 @@ export type GtkFontButtonProps = WidgetProps & {
|
|
|
3739
3740
|
* If you need to react to programmatic font changes as well, use
|
|
3740
3741
|
* the notify::font signal.
|
|
3741
3742
|
*/
|
|
3742
|
-
onFontSet?: (self: Gtk.FontButton) => void | null;
|
|
3743
|
+
onFontSet?: ((self: Gtk.FontButton) => void) | null;
|
|
3743
3744
|
/**
|
|
3744
3745
|
* Emitted when a font is activated.
|
|
3745
3746
|
*
|
|
@@ -3747,7 +3748,7 @@ export type GtkFontButtonProps = WidgetProps & {
|
|
|
3747
3748
|
* or an item is selected and the user presses one of the keys
|
|
3748
3749
|
* Space, Shift+Space, Return or Enter.
|
|
3749
3750
|
*/
|
|
3750
|
-
onFontActivated?: (fontname: string, self: Gtk.FontButton) => void | null;
|
|
3751
|
+
onFontActivated?: ((fontname: string, self: Gtk.FontButton) => void) | null;
|
|
3751
3752
|
ref?: Ref<Gtk.FontButton>;
|
|
3752
3753
|
};
|
|
3753
3754
|
/** Props for the {@link GtkFontChooserDialog} widget. */
|
|
@@ -3771,7 +3772,7 @@ export type GtkFontChooserDialogProps = GtkDialogProps & {
|
|
|
3771
3772
|
* or an item is selected and the user presses one of the keys
|
|
3772
3773
|
* Space, Shift+Space, Return or Enter.
|
|
3773
3774
|
*/
|
|
3774
|
-
onFontActivated?: (fontname: string, self: Gtk.FontChooserDialog) => void | null;
|
|
3775
|
+
onFontActivated?: ((fontname: string, self: Gtk.FontChooserDialog) => void) | null;
|
|
3775
3776
|
children?: ReactNode;
|
|
3776
3777
|
ref?: Ref<Gtk.FontChooserDialog>;
|
|
3777
3778
|
};
|
|
@@ -3796,7 +3797,7 @@ export type GtkFontChooserWidgetProps = WidgetProps & {
|
|
|
3796
3797
|
* or an item is selected and the user presses one of the keys
|
|
3797
3798
|
* Space, Shift+Space, Return or Enter.
|
|
3798
3799
|
*/
|
|
3799
|
-
onFontActivated?: (fontname: string, self: Gtk.FontChooserWidget) => void | null;
|
|
3800
|
+
onFontActivated?: ((fontname: string, self: Gtk.FontChooserWidget) => void) | null;
|
|
3800
3801
|
ref?: Ref<Gtk.FontChooserWidget>;
|
|
3801
3802
|
};
|
|
3802
3803
|
/** Props for the {@link GtkFontDialogButton} widget. */
|
|
@@ -3849,7 +3850,7 @@ export type GtkFontDialogButtonProps = WidgetProps & {
|
|
|
3849
3850
|
* The `::activate` signal on `GtkFontDialogButton` is an action signal
|
|
3850
3851
|
* and emitting it causes the button to pop up its dialog.
|
|
3851
3852
|
*/
|
|
3852
|
-
onActivate?: (self: Gtk.FontDialogButton) => void | null;
|
|
3853
|
+
onActivate?: ((self: Gtk.FontDialogButton) => void) | null;
|
|
3853
3854
|
/** Callback when the selected font changes */
|
|
3854
3855
|
onFontDescChanged?: ((fontDesc: Pango.FontDescription) => void) | null;
|
|
3855
3856
|
/** Title for the font dialog */
|
|
@@ -3918,14 +3919,14 @@ export type GtkGLAreaProps = WidgetProps & {
|
|
|
3918
3919
|
* {@link GLArea.set_error} to register a more detailed error
|
|
3919
3920
|
* of how the construction failed.
|
|
3920
3921
|
*/
|
|
3921
|
-
onCreateContext?: (self: Gtk.GLArea) => Gdk.GLContext | null;
|
|
3922
|
+
onCreateContext?: ((self: Gtk.GLArea) => Gdk.GLContext) | null;
|
|
3922
3923
|
/**
|
|
3923
3924
|
* Emitted every time the contents of the `GtkGLArea` should be redrawn.
|
|
3924
3925
|
*
|
|
3925
3926
|
* The `context` is bound to the `area` prior to emitting this function,
|
|
3926
3927
|
* and the buffers are painted to the window once the emission terminates.
|
|
3927
3928
|
*/
|
|
3928
|
-
onRender?: (context: Gdk.GLContext, self: Gtk.GLArea) => boolean | null;
|
|
3929
|
+
onRender?: ((context: Gdk.GLContext, self: Gtk.GLArea) => boolean) | null;
|
|
3929
3930
|
/**
|
|
3930
3931
|
* Emitted once when the widget is realized, and then each time the widget
|
|
3931
3932
|
* is changed while realized.
|
|
@@ -3939,7 +3940,7 @@ export type GtkGLAreaProps = WidgetProps & {
|
|
|
3939
3940
|
*
|
|
3940
3941
|
* The default handler sets up the GL viewport.
|
|
3941
3942
|
*/
|
|
3942
|
-
onResize?: (width: number, height: number, self: Gtk.GLArea) => void | null;
|
|
3943
|
+
onResize?: ((width: number, height: number, self: Gtk.GLArea) => void) | null;
|
|
3943
3944
|
ref?: Ref<Gtk.GLArea>;
|
|
3944
3945
|
};
|
|
3945
3946
|
/** Props for the {@link GtkGraphicsOffload} widget. */
|
|
@@ -3993,7 +3994,7 @@ export type GtkGridViewProps = GtkListBaseProps & {
|
|
|
3993
3994
|
* See {@link ListItem.activatable} for details on how to use
|
|
3994
3995
|
* this signal.
|
|
3995
3996
|
*/
|
|
3996
|
-
onActivate?: (position: number, self: Gtk.GridView) => void | null;
|
|
3997
|
+
onActivate?: ((position: number, self: Gtk.GridView) => void) | null;
|
|
3997
3998
|
/** Array of selected item IDs */
|
|
3998
3999
|
selected?: string[] | null;
|
|
3999
4000
|
/** Called when selection changes with array of selected item IDs */
|
|
@@ -4041,10 +4042,10 @@ export type GtkSourceGutterRendererProps = WidgetProps & {
|
|
|
4041
4042
|
/** The top and bottom padding of the renderer. */
|
|
4042
4043
|
ypad?: number;
|
|
4043
4044
|
/** The signal is emitted when the renderer is activated. */
|
|
4044
|
-
onActivate?: (iter: Gtk.TextIter, area: Gdk.Rectangle, button: number, state: Gdk.ModifierType, nPresses: number, self: GtkSource.GutterRenderer) => void | null;
|
|
4045
|
+
onActivate?: ((iter: Gtk.TextIter, area: Gdk.Rectangle, button: number, state: Gdk.ModifierType, nPresses: number, self: GtkSource.GutterRenderer) => void) | null;
|
|
4045
4046
|
/** The signal is emitted when the renderer can possibly be activated. */
|
|
4046
|
-
onQueryActivatable?: (iter: Gtk.TextIter, area: Gdk.Rectangle, self: GtkSource.GutterRenderer) => boolean | null;
|
|
4047
|
-
onQueryData?: (object: GObject.
|
|
4047
|
+
onQueryActivatable?: ((iter: Gtk.TextIter, area: Gdk.Rectangle, self: GtkSource.GutterRenderer) => boolean) | null;
|
|
4048
|
+
onQueryData?: ((object: GObject.Object, p0: number, self: GtkSource.GutterRenderer) => void) | null;
|
|
4048
4049
|
ref?: Ref<GtkSource.GutterRenderer>;
|
|
4049
4050
|
};
|
|
4050
4051
|
/** Props for the {@link GtkSourceGutterRendererPixbuf} widget. */
|
|
@@ -4288,7 +4289,7 @@ export type GtkIconViewProps = WidgetProps & {
|
|
|
4288
4289
|
*
|
|
4289
4290
|
* The default bindings for this signal are Space, Return and Enter.
|
|
4290
4291
|
*/
|
|
4291
|
-
onActivateCursorItem?: (self: Gtk.IconView) => boolean | null;
|
|
4292
|
+
onActivateCursorItem?: ((self: Gtk.IconView) => boolean) | null;
|
|
4292
4293
|
/**
|
|
4293
4294
|
* The ::item-activated signal is emitted when the method
|
|
4294
4295
|
* gtk_icon_view_item_activated() is called, when the user double
|
|
@@ -4298,7 +4299,7 @@ export type GtkIconViewProps = WidgetProps & {
|
|
|
4298
4299
|
* emitted when a non-editable item is selected and one of the keys:
|
|
4299
4300
|
* Space, Return or Enter is pressed.
|
|
4300
4301
|
*/
|
|
4301
|
-
onItemActivated?: (path: Gtk.TreePath, self: Gtk.IconView) => void | null;
|
|
4302
|
+
onItemActivated?: ((path: Gtk.TreePath, self: Gtk.IconView) => void) | null;
|
|
4302
4303
|
/**
|
|
4303
4304
|
* The ::move-cursor signal is a
|
|
4304
4305
|
* [keybinding signal]{@link SignalAction}
|
|
@@ -4315,7 +4316,7 @@ export type GtkIconViewProps = WidgetProps & {
|
|
|
4315
4316
|
* All of these will extend the selection when combined with
|
|
4316
4317
|
* the Shift modifier.
|
|
4317
4318
|
*/
|
|
4318
|
-
onMoveCursor?: (step: Gtk.MovementStep, count: number, extend: boolean, modify: boolean, self: Gtk.IconView) => boolean | null;
|
|
4319
|
+
onMoveCursor?: ((step: Gtk.MovementStep, count: number, extend: boolean, modify: boolean, self: Gtk.IconView) => boolean) | null;
|
|
4319
4320
|
/**
|
|
4320
4321
|
* A [keybinding signal]{@link SignalAction}
|
|
4321
4322
|
* which gets emitted when the user selects all items.
|
|
@@ -4326,7 +4327,7 @@ export type GtkIconViewProps = WidgetProps & {
|
|
|
4326
4327
|
*
|
|
4327
4328
|
* The default binding for this signal is Ctrl-a.
|
|
4328
4329
|
*/
|
|
4329
|
-
onSelectAll?: (self: Gtk.IconView) => void | null;
|
|
4330
|
+
onSelectAll?: ((self: Gtk.IconView) => void) | null;
|
|
4330
4331
|
/**
|
|
4331
4332
|
* A [keybinding signal]{@link SignalAction}
|
|
4332
4333
|
* which gets emitted when the user selects the item that is currently
|
|
@@ -4338,12 +4339,12 @@ export type GtkIconViewProps = WidgetProps & {
|
|
|
4338
4339
|
*
|
|
4339
4340
|
* There is no default binding for this signal.
|
|
4340
4341
|
*/
|
|
4341
|
-
onSelectCursorItem?: (self: Gtk.IconView) => void | null;
|
|
4342
|
+
onSelectCursorItem?: ((self: Gtk.IconView) => void) | null;
|
|
4342
4343
|
/**
|
|
4343
4344
|
* The ::selection-changed signal is emitted when the selection
|
|
4344
4345
|
* (i.e. the set of selected items) changes.
|
|
4345
4346
|
*/
|
|
4346
|
-
onSelectionChanged?: (self: Gtk.IconView) => void | null;
|
|
4347
|
+
onSelectionChanged?: ((self: Gtk.IconView) => void) | null;
|
|
4347
4348
|
/**
|
|
4348
4349
|
* A [keybinding signal]{@link SignalAction}
|
|
4349
4350
|
* which gets emitted when the user toggles whether the currently
|
|
@@ -4356,7 +4357,7 @@ export type GtkIconViewProps = WidgetProps & {
|
|
|
4356
4357
|
*
|
|
4357
4358
|
* There is no default binding for this signal is Ctrl-Space.
|
|
4358
4359
|
*/
|
|
4359
|
-
onToggleCursorItem?: (self: Gtk.IconView) => void | null;
|
|
4360
|
+
onToggleCursorItem?: ((self: Gtk.IconView) => void) | null;
|
|
4360
4361
|
/**
|
|
4361
4362
|
* A [keybinding signal]{@link SignalAction}
|
|
4362
4363
|
* which gets emitted when the user unselects all items.
|
|
@@ -4367,7 +4368,7 @@ export type GtkIconViewProps = WidgetProps & {
|
|
|
4367
4368
|
*
|
|
4368
4369
|
* The default binding for this signal is Ctrl-Shift-a.
|
|
4369
4370
|
*/
|
|
4370
|
-
onUnselectAll?: (self: Gtk.IconView) => void | null;
|
|
4371
|
+
onUnselectAll?: ((self: Gtk.IconView) => void) | null;
|
|
4371
4372
|
ref?: Ref<Gtk.IconView>;
|
|
4372
4373
|
};
|
|
4373
4374
|
/** Props for the {@link GtkImage} widget. */
|
|
@@ -4430,7 +4431,7 @@ export type GtkInfoBarProps = WidgetProps & {
|
|
|
4430
4431
|
*
|
|
4431
4432
|
* The default binding for this signal is the Escape key.
|
|
4432
4433
|
*/
|
|
4433
|
-
onClose?: (self: Gtk.InfoBar) => void | null;
|
|
4434
|
+
onClose?: ((self: Gtk.InfoBar) => void) | null;
|
|
4434
4435
|
/**
|
|
4435
4436
|
* Emitted when an action widget is clicked.
|
|
4436
4437
|
*
|
|
@@ -4438,7 +4439,7 @@ export type GtkInfoBarProps = WidgetProps & {
|
|
|
4438
4439
|
* calls {@link InfoBar.response}. The `response_id` depends
|
|
4439
4440
|
* on which action widget was clicked.
|
|
4440
4441
|
*/
|
|
4441
|
-
onResponse?: (responseId: number, self: Gtk.InfoBar) => void | null;
|
|
4442
|
+
onResponse?: ((responseId: number, self: Gtk.InfoBar) => void) | null;
|
|
4442
4443
|
children?: ReactNode;
|
|
4443
4444
|
ref?: Ref<Gtk.InfoBar>;
|
|
4444
4445
|
};
|
|
@@ -4711,14 +4712,14 @@ export type GtkLabelProps = WidgetProps & {
|
|
|
4711
4712
|
*
|
|
4712
4713
|
* The default bindings for this signal are all forms of the `Enter` key.
|
|
4713
4714
|
*/
|
|
4714
|
-
onActivateCurrentLink?: (self: Gtk.Label) => void | null;
|
|
4715
|
+
onActivateCurrentLink?: ((self: Gtk.Label) => void) | null;
|
|
4715
4716
|
/**
|
|
4716
4717
|
* Gets emitted to activate a URI.
|
|
4717
4718
|
*
|
|
4718
4719
|
* Applications may connect to it to override the default behaviour,
|
|
4719
4720
|
* which is to call {@link FileLauncher.launch}.
|
|
4720
4721
|
*/
|
|
4721
|
-
onActivateLink?: (uri: string, self: Gtk.Label) => boolean | null;
|
|
4722
|
+
onActivateLink?: ((uri: string, self: Gtk.Label) => boolean) | null;
|
|
4722
4723
|
/**
|
|
4723
4724
|
* Gets emitted to copy the selection to the clipboard.
|
|
4724
4725
|
*
|
|
@@ -4726,7 +4727,7 @@ export type GtkLabelProps = WidgetProps & {
|
|
|
4726
4727
|
*
|
|
4727
4728
|
* The default binding for this signal is `Ctrl`+`c`.
|
|
4728
4729
|
*/
|
|
4729
|
-
onCopyClipboard?: (self: Gtk.Label) => void | null;
|
|
4730
|
+
onCopyClipboard?: ((self: Gtk.Label) => void) | null;
|
|
4730
4731
|
/**
|
|
4731
4732
|
* Gets emitted when the user initiates a cursor movement.
|
|
4732
4733
|
*
|
|
@@ -4748,7 +4749,7 @@ export type GtkLabelProps = WidgetProps & {
|
|
|
4748
4749
|
* - `Ctrl`+`←`, etc. move by words/paragraphs
|
|
4749
4750
|
* - `Home` and `End` move to the ends of the buffer
|
|
4750
4751
|
*/
|
|
4751
|
-
onMoveCursor?: (step: Gtk.MovementStep, count: number, extendSelection: boolean, self: Gtk.Label) => void | null;
|
|
4752
|
+
onMoveCursor?: ((step: Gtk.MovementStep, count: number, extendSelection: boolean, self: Gtk.Label) => void) | null;
|
|
4752
4753
|
children?: ReactNode;
|
|
4753
4754
|
ref?: Ref<Gtk.Label>;
|
|
4754
4755
|
};
|
|
@@ -4898,7 +4899,7 @@ export type GtkLevelBarProps = WidgetProps & {
|
|
|
4898
4899
|
* detailed signal "changed::x" in order to only receive callbacks when
|
|
4899
4900
|
* the value of offset "x" changes.
|
|
4900
4901
|
*/
|
|
4901
|
-
onOffsetChanged?: (name: string, self: Gtk.LevelBar) => void | null;
|
|
4902
|
+
onOffsetChanged?: ((name: string, self: Gtk.LevelBar) => void) | null;
|
|
4902
4903
|
/** Array of named offset thresholds for visual style changes */
|
|
4903
4904
|
offsets?: Array<{
|
|
4904
4905
|
id: string;
|
|
@@ -4926,7 +4927,7 @@ export type GtkLinkButtonProps = GtkButtonProps & {
|
|
|
4926
4927
|
* ::activate-link signal and stop the propagation of the signal
|
|
4927
4928
|
* by returning %TRUE from your handler.
|
|
4928
4929
|
*/
|
|
4929
|
-
onActivateLink?: (self: Gtk.LinkButton) => boolean | null;
|
|
4930
|
+
onActivateLink?: ((self: Gtk.LinkButton) => boolean) | null;
|
|
4930
4931
|
children?: ReactNode;
|
|
4931
4932
|
ref?: Ref<Gtk.LinkButton>;
|
|
4932
4933
|
};
|
|
@@ -4971,7 +4972,7 @@ export type GtkListBoxProps = WidgetProps & {
|
|
|
4971
4972
|
/** Behavior of the `Tab` key */
|
|
4972
4973
|
tabBehavior?: Gtk.ListTabBehavior;
|
|
4973
4974
|
/** Emitted when the cursor row is activated. */
|
|
4974
|
-
onActivateCursorRow?: (self: Gtk.ListBox) => void | null;
|
|
4975
|
+
onActivateCursorRow?: ((self: Gtk.ListBox) => void) | null;
|
|
4975
4976
|
/**
|
|
4976
4977
|
* Emitted when the user initiates a cursor movement.
|
|
4977
4978
|
*
|
|
@@ -4985,9 +4986,9 @@ export type GtkListBoxProps = WidgetProps & {
|
|
|
4985
4986
|
* - `Home`, `End` move to the ends of the box
|
|
4986
4987
|
* - `PgUp`, `PgDn` move vertically by pages
|
|
4987
4988
|
*/
|
|
4988
|
-
onMoveCursor?: (step: Gtk.MovementStep, count: number, extend: boolean, modify: boolean, self: Gtk.ListBox) => void | null;
|
|
4989
|
+
onMoveCursor?: ((step: Gtk.MovementStep, count: number, extend: boolean, modify: boolean, self: Gtk.ListBox) => void) | null;
|
|
4989
4990
|
/** Emitted when a row has been activated by the user. */
|
|
4990
|
-
onRowActivated?: (row: Gtk.ListBoxRow, self: Gtk.ListBox) => void | null;
|
|
4991
|
+
onRowActivated?: ((row: Gtk.ListBoxRow, self: Gtk.ListBox) => void) | null;
|
|
4991
4992
|
/**
|
|
4992
4993
|
* Emitted when a new row is selected, or (with a %NULL `row`)
|
|
4993
4994
|
* when the selection is cleared.
|
|
@@ -4996,7 +4997,7 @@ export type GtkListBoxProps = WidgetProps & {
|
|
|
4996
4997
|
* give you the full picture of selection changes, and you should use
|
|
4997
4998
|
* the {@link ListBox.:selected-rows-changed} signal instead.
|
|
4998
4999
|
*/
|
|
4999
|
-
onRowSelected?: (row: Gtk.ListBoxRow, self: Gtk.ListBox) => void | null;
|
|
5000
|
+
onRowSelected?: ((row: Gtk.ListBoxRow, self: Gtk.ListBox) => void) | null;
|
|
5000
5001
|
/**
|
|
5001
5002
|
* Emitted to select all children of the box, if the selection
|
|
5002
5003
|
* mode permits it.
|
|
@@ -5005,15 +5006,15 @@ export type GtkListBoxProps = WidgetProps & {
|
|
|
5005
5006
|
*
|
|
5006
5007
|
* The default binding for this signal is `Ctrl`-`a`.
|
|
5007
5008
|
*/
|
|
5008
|
-
onSelectAll?: (self: Gtk.ListBox) => void | null;
|
|
5009
|
+
onSelectAll?: ((self: Gtk.ListBox) => void) | null;
|
|
5009
5010
|
/** Emitted when the set of selected rows changes. */
|
|
5010
|
-
onSelectedRowsChanged?: (self: Gtk.ListBox) => void | null;
|
|
5011
|
+
onSelectedRowsChanged?: ((self: Gtk.ListBox) => void) | null;
|
|
5011
5012
|
/**
|
|
5012
5013
|
* Emitted when the cursor row is toggled.
|
|
5013
5014
|
*
|
|
5014
5015
|
* The default bindings for this signal is `Ctrl`+`␣`.
|
|
5015
5016
|
*/
|
|
5016
|
-
onToggleCursorRow?: (self: Gtk.ListBox) => void | null;
|
|
5017
|
+
onToggleCursorRow?: ((self: Gtk.ListBox) => void) | null;
|
|
5017
5018
|
/**
|
|
5018
5019
|
* Emitted to unselect all children of the box, if the selection
|
|
5019
5020
|
* mode permits it.
|
|
@@ -5023,7 +5024,7 @@ export type GtkListBoxProps = WidgetProps & {
|
|
|
5023
5024
|
* The default binding for this signal is
|
|
5024
5025
|
* `Ctrl`-`Shift`-`a`.
|
|
5025
5026
|
*/
|
|
5026
|
-
onUnselectAll?: (self: Gtk.ListBox) => void | null;
|
|
5027
|
+
onUnselectAll?: ((self: Gtk.ListBox) => void) | null;
|
|
5027
5028
|
/** The current value of the adjustment */
|
|
5028
5029
|
value?: number;
|
|
5029
5030
|
/** The minimum value */
|
|
@@ -5063,7 +5064,7 @@ export type GtkListBoxRowProps = WidgetProps & {
|
|
|
5063
5064
|
* use the {@link ListBox.:row-activated} signal on the row’s parent
|
|
5064
5065
|
* `GtkListBox`.
|
|
5065
5066
|
*/
|
|
5066
|
-
onActivate?: (self: Gtk.ListBoxRow) => void | null;
|
|
5067
|
+
onActivate?: ((self: Gtk.ListBoxRow) => void) | null;
|
|
5067
5068
|
children?: ReactNode;
|
|
5068
5069
|
ref?: Ref<Gtk.ListBoxRow>;
|
|
5069
5070
|
};
|
|
@@ -5093,7 +5094,7 @@ export type GtkListViewProps = GtkListBaseProps & {
|
|
|
5093
5094
|
* See {@link ListItem.set_activatable} for details on how to use
|
|
5094
5095
|
* this signal.
|
|
5095
5096
|
*/
|
|
5096
|
-
onActivate?: (position: number, self: Gtk.ListView) => void | null;
|
|
5097
|
+
onActivate?: ((position: number, self: Gtk.ListView) => void) | null;
|
|
5097
5098
|
/** Array of selected item IDs */
|
|
5098
5099
|
selected?: string[] | null;
|
|
5099
5100
|
/** Called when selection changes with array of selected item IDs */
|
|
@@ -5210,7 +5211,7 @@ export type GtkMenuButtonProps = WidgetProps & {
|
|
|
5210
5211
|
* The `::activate` signal on `GtkMenuButton` is an action signal and
|
|
5211
5212
|
* emitting it causes the button to pop up its menu.
|
|
5212
5213
|
*/
|
|
5213
|
-
onActivate?: (self: Gtk.MenuButton) => void | null;
|
|
5214
|
+
onActivate?: ((self: Gtk.MenuButton) => void) | null;
|
|
5214
5215
|
children?: ReactNode;
|
|
5215
5216
|
ref?: Ref<Gtk.MenuButton>;
|
|
5216
5217
|
};
|
|
@@ -5271,7 +5272,7 @@ export type AdwMessageDialogProps = GtkWindowProps & {
|
|
|
5271
5272
|
* action, `response` will be set to the value of
|
|
5272
5273
|
* {@link AdwMessageDialog.close-response}.
|
|
5273
5274
|
*/
|
|
5274
|
-
onResponse?: (response: string, self: Adw.MessageDialog) => void | null;
|
|
5275
|
+
onResponse?: ((response: string, self: Adw.MessageDialog) => void) | null;
|
|
5275
5276
|
children?: ReactNode;
|
|
5276
5277
|
ref?: Ref<Adw.MessageDialog>;
|
|
5277
5278
|
};
|
|
@@ -5357,7 +5358,7 @@ export type AdwNavigationPageProps = WidgetProps & {
|
|
|
5357
5358
|
* It will always be preceded by {@link AdwNavigationPage.:hiding} or
|
|
5358
5359
|
* {@link AdwNavigationPage.:showing}.
|
|
5359
5360
|
*/
|
|
5360
|
-
onHidden?: (self: Adw.NavigationPage) => void | null;
|
|
5361
|
+
onHidden?: ((self: Adw.NavigationPage) => void) | null;
|
|
5361
5362
|
/**
|
|
5362
5363
|
* Emitted when the page starts hiding at the beginning of the navigation view
|
|
5363
5364
|
* transition.
|
|
@@ -5365,7 +5366,7 @@ export type AdwNavigationPageProps = WidgetProps & {
|
|
|
5365
5366
|
* It will always be followed by {@link AdwNavigationPage.:hidden} or
|
|
5366
5367
|
* {@link AdwNavigationPage.:shown}.
|
|
5367
5368
|
*/
|
|
5368
|
-
onHiding?: (self: Adw.NavigationPage) => void | null;
|
|
5369
|
+
onHiding?: ((self: Adw.NavigationPage) => void) | null;
|
|
5369
5370
|
/**
|
|
5370
5371
|
* Emitted when the page shows at the beginning of the navigation view
|
|
5371
5372
|
* transition.
|
|
@@ -5373,7 +5374,7 @@ export type AdwNavigationPageProps = WidgetProps & {
|
|
|
5373
5374
|
* It will always be followed by {@link AdwNavigationPage.:shown} or
|
|
5374
5375
|
* {@link AdwNavigationPage.:hidden}.
|
|
5375
5376
|
*/
|
|
5376
|
-
onShowing?: (self: Adw.NavigationPage) => void | null;
|
|
5377
|
+
onShowing?: ((self: Adw.NavigationPage) => void) | null;
|
|
5377
5378
|
/**
|
|
5378
5379
|
* Emitted when the navigation view transition has been completed and the page
|
|
5379
5380
|
* is fully shown.
|
|
@@ -5381,7 +5382,7 @@ export type AdwNavigationPageProps = WidgetProps & {
|
|
|
5381
5382
|
* It will always be preceded by {@link AdwNavigationPage.:showing} or
|
|
5382
5383
|
* {@link AdwNavigationPage.:hiding}.
|
|
5383
5384
|
*/
|
|
5384
|
-
onShown?: (self: Adw.NavigationPage) => void | null;
|
|
5385
|
+
onShown?: ((self: Adw.NavigationPage) => void) | null;
|
|
5385
5386
|
children?: ReactNode;
|
|
5386
5387
|
ref?: Ref<Adw.NavigationPage>;
|
|
5387
5388
|
};
|
|
@@ -5511,7 +5512,7 @@ export type AdwNavigationViewProps = WidgetProps & {
|
|
|
5511
5512
|
*
|
|
5512
5513
|
* Instead, it should be done in the {@link AdwNavigationView.:pushed} handler.
|
|
5513
5514
|
*/
|
|
5514
|
-
onGetNextPage?: (self: Adw.NavigationView) => Adw.NavigationPage | null;
|
|
5515
|
+
onGetNextPage?: ((self: Adw.NavigationView) => Adw.NavigationPage) | null;
|
|
5515
5516
|
/**
|
|
5516
5517
|
* Emitted after `page` has been popped from the navigation stack.
|
|
5517
5518
|
*
|
|
@@ -5521,19 +5522,19 @@ export type AdwNavigationViewProps = WidgetProps & {
|
|
|
5521
5522
|
* {@link NavigationViewpop_to_tag}, this signal is emitted for each of the
|
|
5522
5523
|
* popped pages.
|
|
5523
5524
|
*/
|
|
5524
|
-
onPopped?: (page: Adw.NavigationPage, self: Adw.NavigationView) => void | null;
|
|
5525
|
+
onPopped?: ((page: Adw.NavigationPage, self: Adw.NavigationView) => void) | null;
|
|
5525
5526
|
/**
|
|
5526
5527
|
* Emitted after a page has been pushed to the navigation stack.
|
|
5527
5528
|
*
|
|
5528
5529
|
* See {@link NavigationViewpush}.
|
|
5529
5530
|
*/
|
|
5530
|
-
onPushed?: (self: Adw.NavigationView) => void | null;
|
|
5531
|
+
onPushed?: ((self: Adw.NavigationView) => void) | null;
|
|
5531
5532
|
/**
|
|
5532
5533
|
* Emitted after the navigation stack has been replaced.
|
|
5533
5534
|
*
|
|
5534
5535
|
* See {@link NavigationViewreplace}.
|
|
5535
5536
|
*/
|
|
5536
|
-
onReplaced?: (self: Adw.NavigationView) => void | null;
|
|
5537
|
+
onReplaced?: ((self: Adw.NavigationView) => void) | null;
|
|
5537
5538
|
/** Array of page IDs representing the navigation stack. The last ID is the visible page. */
|
|
5538
5539
|
history?: string[] | null;
|
|
5539
5540
|
/** Called when the navigation history changes due to user interaction (back button, swipe gesture). */
|
|
@@ -5565,7 +5566,7 @@ export type GtkNotebookProps = WidgetProps & {
|
|
|
5565
5566
|
* `Ctrl`+`Alt`+`PgDn`,
|
|
5566
5567
|
* `Ctrl`+`PgUp` and `Ctrl`+`PgDn`.
|
|
5567
5568
|
*/
|
|
5568
|
-
onChangeCurrentPage?: (page: number, self: Gtk.Notebook) => boolean | null;
|
|
5569
|
+
onChangeCurrentPage?: ((page: number, self: Gtk.Notebook) => boolean) | null;
|
|
5569
5570
|
/**
|
|
5570
5571
|
* The ::create-window signal is emitted when a detachable
|
|
5571
5572
|
* tab is dropped on the root window.
|
|
@@ -5576,9 +5577,9 @@ export type GtkNotebookProps = WidgetProps & {
|
|
|
5576
5577
|
* necessary properties to the notebook (e.g. the
|
|
5577
5578
|
* `GtkNotebook`:group-name ).
|
|
5578
5579
|
*/
|
|
5579
|
-
onCreateWindow?: (page: Gtk.Widget, self: Gtk.Notebook) => Gtk.Notebook | null;
|
|
5580
|
+
onCreateWindow?: ((page: Gtk.Widget, self: Gtk.Notebook) => Gtk.Notebook) | null;
|
|
5580
5581
|
/** Emitted when a tab should be focused. */
|
|
5581
|
-
onFocusTab?: (tab: Gtk.NotebookTab, self: Gtk.Notebook) => boolean | null;
|
|
5582
|
+
onFocusTab?: ((tab: Gtk.NotebookTab, self: Gtk.Notebook) => boolean) | null;
|
|
5582
5583
|
/**
|
|
5583
5584
|
* Emitted when focus was moved out.
|
|
5584
5585
|
*
|
|
@@ -5588,22 +5589,22 @@ export type GtkNotebookProps = WidgetProps & {
|
|
|
5588
5589
|
* `Ctrl`+`←`, `Ctrl`+`→`,
|
|
5589
5590
|
* `Ctrl`+`↑` and `Ctrl`+`↓`.
|
|
5590
5591
|
*/
|
|
5591
|
-
onMoveFocusOut?: (direction: Gtk.DirectionType, self: Gtk.Notebook) => void | null;
|
|
5592
|
+
onMoveFocusOut?: ((direction: Gtk.DirectionType, self: Gtk.Notebook) => void) | null;
|
|
5592
5593
|
/**
|
|
5593
5594
|
* the ::page-added signal is emitted in the notebook
|
|
5594
5595
|
* right after a page is added to the notebook.
|
|
5595
5596
|
*/
|
|
5596
|
-
onPageAdded?: (child: Gtk.Widget, pageNum: number, self: Gtk.Notebook) => void | null;
|
|
5597
|
+
onPageAdded?: ((child: Gtk.Widget, pageNum: number, self: Gtk.Notebook) => void) | null;
|
|
5597
5598
|
/**
|
|
5598
5599
|
* the ::page-removed signal is emitted in the notebook
|
|
5599
5600
|
* right after a page is removed from the notebook.
|
|
5600
5601
|
*/
|
|
5601
|
-
onPageRemoved?: (child: Gtk.Widget, pageNum: number, self: Gtk.Notebook) => void | null;
|
|
5602
|
+
onPageRemoved?: ((child: Gtk.Widget, pageNum: number, self: Gtk.Notebook) => void) | null;
|
|
5602
5603
|
/**
|
|
5603
5604
|
* the ::page-reordered signal is emitted in the notebook
|
|
5604
5605
|
* right after a page has been reordered.
|
|
5605
5606
|
*/
|
|
5606
|
-
onPageReordered?: (child: Gtk.Widget, pageNum: number, self: Gtk.Notebook) => void | null;
|
|
5607
|
+
onPageReordered?: ((child: Gtk.Widget, pageNum: number, self: Gtk.Notebook) => void) | null;
|
|
5607
5608
|
/**
|
|
5608
5609
|
* Emitted when the tab should be reordered.
|
|
5609
5610
|
*
|
|
@@ -5613,15 +5614,15 @@ export type GtkNotebookProps = WidgetProps & {
|
|
|
5613
5614
|
* `Alt`+`←`, `Alt`+`→`,
|
|
5614
5615
|
* `Alt`+`↑` and `Alt`+`↓`.
|
|
5615
5616
|
*/
|
|
5616
|
-
onReorderTab?: (direction: Gtk.DirectionType, moveToLast: boolean, self: Gtk.Notebook) => boolean | null;
|
|
5617
|
+
onReorderTab?: ((direction: Gtk.DirectionType, moveToLast: boolean, self: Gtk.Notebook) => boolean) | null;
|
|
5617
5618
|
/**
|
|
5618
5619
|
* Emitted when a page should be selected.
|
|
5619
5620
|
*
|
|
5620
5621
|
* The default binding for this signal is `␣`.
|
|
5621
5622
|
*/
|
|
5622
|
-
onSelectPage?: (moveFocus: boolean, self: Gtk.Notebook) => boolean | null;
|
|
5623
|
+
onSelectPage?: ((moveFocus: boolean, self: Gtk.Notebook) => boolean) | null;
|
|
5623
5624
|
/** Emitted when the user or a function changes the current page. */
|
|
5624
|
-
onSwitchPage?: (page: Gtk.Widget, pageNum: number, self: Gtk.Notebook) => void | null;
|
|
5625
|
+
onSwitchPage?: ((page: Gtk.Widget, pageNum: number, self: Gtk.Notebook) => void) | null;
|
|
5625
5626
|
children?: ReactNode;
|
|
5626
5627
|
ref?: Ref<Gtk.Notebook>;
|
|
5627
5628
|
};
|
|
@@ -5645,7 +5646,7 @@ export type GtkOverlayProps = WidgetProps & {
|
|
|
5645
5646
|
* `GtkScrolledWindow`, the overlays are placed relative
|
|
5646
5647
|
* to its contents.
|
|
5647
5648
|
*/
|
|
5648
|
-
onGetChildPosition?: (widget: Gtk.Widget, allocation: Gdk.Rectangle, self: Gtk.Overlay) => boolean | null;
|
|
5649
|
+
onGetChildPosition?: ((widget: Gtk.Widget, allocation: Gdk.Rectangle, self: Gtk.Overlay) => boolean) | null;
|
|
5649
5650
|
children?: ReactNode;
|
|
5650
5651
|
ref?: Ref<Gtk.Overlay>;
|
|
5651
5652
|
};
|
|
@@ -5785,7 +5786,7 @@ export type GtkPanedProps = WidgetProps & {
|
|
|
5785
5786
|
* The default binding for this signal is `Return` or
|
|
5786
5787
|
* `Space`.
|
|
5787
5788
|
*/
|
|
5788
|
-
onAcceptPosition?: (self: Gtk.Paned) => boolean | null;
|
|
5789
|
+
onAcceptPosition?: ((self: Gtk.Paned) => boolean) | null;
|
|
5789
5790
|
/**
|
|
5790
5791
|
* Emitted to cancel moving the position of the handle using key
|
|
5791
5792
|
* bindings.
|
|
@@ -5797,7 +5798,7 @@ export type GtkPanedProps = WidgetProps & {
|
|
|
5797
5798
|
*
|
|
5798
5799
|
* The default binding for this signal is `Escape`.
|
|
5799
5800
|
*/
|
|
5800
|
-
onCancelPosition?: (self: Gtk.Paned) => boolean | null;
|
|
5801
|
+
onCancelPosition?: ((self: Gtk.Paned) => boolean) | null;
|
|
5801
5802
|
/**
|
|
5802
5803
|
* Emitted to cycle the focus between the children of the paned.
|
|
5803
5804
|
*
|
|
@@ -5805,7 +5806,7 @@ export type GtkPanedProps = WidgetProps & {
|
|
|
5805
5806
|
*
|
|
5806
5807
|
* The default binding is `F6`.
|
|
5807
5808
|
*/
|
|
5808
|
-
onCycleChildFocus?: (reversed: boolean, self: Gtk.Paned) => boolean | null;
|
|
5809
|
+
onCycleChildFocus?: ((reversed: boolean, self: Gtk.Paned) => boolean) | null;
|
|
5809
5810
|
/**
|
|
5810
5811
|
* Emitted to cycle whether the paned should grab focus to allow
|
|
5811
5812
|
* the user to change position of the handle by using key bindings.
|
|
@@ -5814,7 +5815,7 @@ export type GtkPanedProps = WidgetProps & {
|
|
|
5814
5815
|
*
|
|
5815
5816
|
* The default binding for this signal is `F8`.
|
|
5816
5817
|
*/
|
|
5817
|
-
onCycleHandleFocus?: (reversed: boolean, self: Gtk.Paned) => boolean | null;
|
|
5818
|
+
onCycleHandleFocus?: ((reversed: boolean, self: Gtk.Paned) => boolean) | null;
|
|
5818
5819
|
/**
|
|
5819
5820
|
* Emitted to move the handle with key bindings.
|
|
5820
5821
|
*
|
|
@@ -5827,7 +5828,7 @@ export type GtkPanedProps = WidgetProps & {
|
|
|
5827
5828
|
* `Ctrl`+`↓`, `↓`,
|
|
5828
5829
|
* `PgUp`, `PgDn`, `Home`, `End`.
|
|
5829
5830
|
*/
|
|
5830
|
-
onMoveHandle?: (scrollType: Gtk.ScrollType, self: Gtk.Paned) => boolean | null;
|
|
5831
|
+
onMoveHandle?: ((scrollType: Gtk.ScrollType, self: Gtk.Paned) => boolean) | null;
|
|
5831
5832
|
/**
|
|
5832
5833
|
* Emitted to accept the current position of the handle and then
|
|
5833
5834
|
* move focus to the next widget in the focus chain.
|
|
@@ -5836,7 +5837,7 @@ export type GtkPanedProps = WidgetProps & {
|
|
|
5836
5837
|
*
|
|
5837
5838
|
* The default binding is `Tab`.
|
|
5838
5839
|
*/
|
|
5839
|
-
onToggleHandleFocus?: (self: Gtk.Paned) => boolean | null;
|
|
5840
|
+
onToggleHandleFocus?: ((self: Gtk.Paned) => boolean) | null;
|
|
5840
5841
|
children?: ReactNode;
|
|
5841
5842
|
ref?: Ref<Gtk.Paned>;
|
|
5842
5843
|
};
|
|
@@ -5877,7 +5878,7 @@ export type GtkPasswordEntryProps = WidgetProps & {
|
|
|
5877
5878
|
*
|
|
5878
5879
|
* The keybindings for this signal are all forms of the Enter key.
|
|
5879
5880
|
*/
|
|
5880
|
-
onActivate?: (self: Gtk.PasswordEntry) => void | null;
|
|
5881
|
+
onActivate?: ((self: Gtk.PasswordEntry) => void) | null;
|
|
5881
5882
|
/**
|
|
5882
5883
|
* Emitted at the end of a single user-visible operation on the
|
|
5883
5884
|
* contents.
|
|
@@ -5888,7 +5889,7 @@ export type GtkPasswordEntryProps = WidgetProps & {
|
|
|
5888
5889
|
* the new content, and may cause multiple ::notify::text signals
|
|
5889
5890
|
* to be emitted).
|
|
5890
5891
|
*/
|
|
5891
|
-
onChanged?: (self: Gtk.PasswordEntry) => void | null;
|
|
5892
|
+
onChanged?: ((self: Gtk.PasswordEntry) => void) | null;
|
|
5892
5893
|
/**
|
|
5893
5894
|
* Emitted when text is deleted from the widget by the user.
|
|
5894
5895
|
*
|
|
@@ -5900,7 +5901,7 @@ export type GtkPasswordEntryProps = WidgetProps & {
|
|
|
5900
5901
|
* The `start_pos` and `end_pos` parameters are interpreted as for
|
|
5901
5902
|
* {@link Editable.delete_text}.
|
|
5902
5903
|
*/
|
|
5903
|
-
onDeleteText?: (startPos: number, endPos: number, self: Gtk.PasswordEntry) => void | null;
|
|
5904
|
+
onDeleteText?: ((startPos: number, endPos: number, self: Gtk.PasswordEntry) => void) | null;
|
|
5904
5905
|
/**
|
|
5905
5906
|
* Emitted when text is inserted into the widget by the user.
|
|
5906
5907
|
*
|
|
@@ -5909,7 +5910,7 @@ export type GtkPasswordEntryProps = WidgetProps & {
|
|
|
5909
5910
|
* stopping the signal with g_signal_stop_emission(), it is possible
|
|
5910
5911
|
* to modify the inserted text, or prevent it from being inserted entirely.
|
|
5911
5912
|
*/
|
|
5912
|
-
onInsertText?: (text: string, length: number, position: Ref<number>, self: Gtk.PasswordEntry) => void | null;
|
|
5913
|
+
onInsertText?: ((text: string, length: number, position: Ref<number>, self: Gtk.PasswordEntry) => void) | null;
|
|
5913
5914
|
ref?: Ref<Gtk.PasswordEntry>;
|
|
5914
5915
|
};
|
|
5915
5916
|
/** Props for the {@link AdwPasswordEntryRow} widget. */
|
|
@@ -5965,9 +5966,9 @@ export type GtkPopoverProps = WidgetProps & {
|
|
|
5965
5966
|
*
|
|
5966
5967
|
* The default binding for this signal is `Enter`.
|
|
5967
5968
|
*/
|
|
5968
|
-
onActivateDefault?: (self: Gtk.Popover) => void | null;
|
|
5969
|
+
onActivateDefault?: ((self: Gtk.Popover) => void) | null;
|
|
5969
5970
|
/** Emitted when the popover is closed. */
|
|
5970
|
-
onClosed?: (self: Gtk.Popover) => void | null;
|
|
5971
|
+
onClosed?: ((self: Gtk.Popover) => void) | null;
|
|
5971
5972
|
children?: ReactNode;
|
|
5972
5973
|
ref?: Ref<Gtk.Popover>;
|
|
5973
5974
|
};
|
|
@@ -6204,7 +6205,7 @@ export type GtkRangeProps = WidgetProps & {
|
|
|
6204
6205
|
* Emitted before clamping a value, to give the application a
|
|
6205
6206
|
* chance to adjust the bounds.
|
|
6206
6207
|
*/
|
|
6207
|
-
onAdjustBounds?: (value: number, self: Gtk.Range) => void | null;
|
|
6208
|
+
onAdjustBounds?: ((value: number, self: Gtk.Range) => void) | null;
|
|
6208
6209
|
/**
|
|
6209
6210
|
* Emitted when a scroll action is performed on a range.
|
|
6210
6211
|
*
|
|
@@ -6219,13 +6220,13 @@ export type GtkRangeProps = WidgetProps & {
|
|
|
6219
6220
|
* to the desired number of decimal digits; the default GTK
|
|
6220
6221
|
* handler clamps the value based on {@link Range.round-digits}.
|
|
6221
6222
|
*/
|
|
6222
|
-
onChangeValue?: (scroll: Gtk.ScrollType, value: number, self: Gtk.Range) => boolean | null;
|
|
6223
|
+
onChangeValue?: ((scroll: Gtk.ScrollType, value: number, self: Gtk.Range) => boolean) | null;
|
|
6223
6224
|
/**
|
|
6224
6225
|
* Virtual function that moves the slider.
|
|
6225
6226
|
*
|
|
6226
6227
|
* Used for keybindings.
|
|
6227
6228
|
*/
|
|
6228
|
-
onMoveSlider?: (step: Gtk.ScrollType, self: Gtk.Range) => void | null;
|
|
6229
|
+
onMoveSlider?: ((step: Gtk.ScrollType, self: Gtk.Range) => void) | null;
|
|
6229
6230
|
/** The current value of the adjustment */
|
|
6230
6231
|
value?: number;
|
|
6231
6232
|
/** The minimum value */
|
|
@@ -6321,7 +6322,7 @@ export type GtkScaleButtonProps = WidgetProps & {
|
|
|
6321
6322
|
*
|
|
6322
6323
|
* The default binding for this signal is `Escape`.
|
|
6323
6324
|
*/
|
|
6324
|
-
onPopdown?: (self: Gtk.ScaleButton) => void | null;
|
|
6325
|
+
onPopdown?: ((self: Gtk.ScaleButton) => void) | null;
|
|
6325
6326
|
/**
|
|
6326
6327
|
* Emitted to popup the scale widget.
|
|
6327
6328
|
*
|
|
@@ -6330,7 +6331,7 @@ export type GtkScaleButtonProps = WidgetProps & {
|
|
|
6330
6331
|
* The default bindings for this signal are `Space`,
|
|
6331
6332
|
* `Enter` and `Return`.
|
|
6332
6333
|
*/
|
|
6333
|
-
onPopup?: (self: Gtk.ScaleButton) => void | null;
|
|
6334
|
+
onPopup?: ((self: Gtk.ScaleButton) => void) | null;
|
|
6334
6335
|
/** The minimum value */
|
|
6335
6336
|
lower?: number;
|
|
6336
6337
|
/** The maximum value */
|
|
@@ -6451,7 +6452,7 @@ export type GtkScrolledWindowProps = WidgetProps & {
|
|
|
6451
6452
|
* Note: The `pos` argument is LTR/RTL aware, so callers should be
|
|
6452
6453
|
* aware too if intending to provide behavior on horizontal edges.
|
|
6453
6454
|
*/
|
|
6454
|
-
onEdgeOvershot?: (pos: Gtk.PositionType, self: Gtk.ScrolledWindow) => void | null;
|
|
6455
|
+
onEdgeOvershot?: ((pos: Gtk.PositionType, self: Gtk.ScrolledWindow) => void) | null;
|
|
6455
6456
|
/**
|
|
6456
6457
|
* Emitted whenever user-initiated scrolling makes the scrolled
|
|
6457
6458
|
* window exactly reach the lower or upper limits defined by the
|
|
@@ -6463,7 +6464,7 @@ export type GtkScrolledWindowProps = WidgetProps & {
|
|
|
6463
6464
|
* Note: The `pos` argument is LTR/RTL aware, so callers should be
|
|
6464
6465
|
* aware too if intending to provide behavior on horizontal edges.
|
|
6465
6466
|
*/
|
|
6466
|
-
onEdgeReached?: (pos: Gtk.PositionType, self: Gtk.ScrolledWindow) => void | null;
|
|
6467
|
+
onEdgeReached?: ((pos: Gtk.PositionType, self: Gtk.ScrolledWindow) => void) | null;
|
|
6467
6468
|
/**
|
|
6468
6469
|
* Emitted when focus is moved away from the scrolled window by a
|
|
6469
6470
|
* keybinding.
|
|
@@ -6474,7 +6475,7 @@ export type GtkScrolledWindowProps = WidgetProps & {
|
|
|
6474
6475
|
* `Ctrl`+`Tab` to move forward and
|
|
6475
6476
|
* `Ctrl`+`Shift`+`Tab`` to move backward.
|
|
6476
6477
|
*/
|
|
6477
|
-
onMoveFocusOut?: (directionType: Gtk.DirectionType, self: Gtk.ScrolledWindow) => void | null;
|
|
6478
|
+
onMoveFocusOut?: ((directionType: Gtk.DirectionType, self: Gtk.ScrolledWindow) => void) | null;
|
|
6478
6479
|
/**
|
|
6479
6480
|
* Emitted when a keybinding that scrolls is pressed.
|
|
6480
6481
|
*
|
|
@@ -6483,7 +6484,7 @@ export type GtkScrolledWindowProps = WidgetProps & {
|
|
|
6483
6484
|
* The horizontal or vertical adjustment is updated which triggers a
|
|
6484
6485
|
* signal that the scrolled window’s child may listen to and scroll itself.
|
|
6485
6486
|
*/
|
|
6486
|
-
onScrollChild?: (scroll: Gtk.ScrollType, horizontal: boolean, self: Gtk.ScrolledWindow) => boolean | null;
|
|
6487
|
+
onScrollChild?: ((scroll: Gtk.ScrollType, horizontal: boolean, self: Gtk.ScrolledWindow) => boolean) | null;
|
|
6487
6488
|
children?: ReactNode;
|
|
6488
6489
|
ref?: Ref<Gtk.ScrolledWindow>;
|
|
6489
6490
|
};
|
|
@@ -6547,7 +6548,7 @@ export type GtkSearchEntryProps = WidgetProps & {
|
|
|
6547
6548
|
*
|
|
6548
6549
|
* The keybindings for this signal are all forms of the `Enter` key.
|
|
6549
6550
|
*/
|
|
6550
|
-
onActivate?: (self: Gtk.SearchEntry) => void | null;
|
|
6551
|
+
onActivate?: ((self: Gtk.SearchEntry) => void) | null;
|
|
6551
6552
|
/**
|
|
6552
6553
|
* Emitted when the user initiates a move to the next match
|
|
6553
6554
|
* for the current search string.
|
|
@@ -6559,7 +6560,7 @@ export type GtkSearchEntryProps = WidgetProps & {
|
|
|
6559
6560
|
*
|
|
6560
6561
|
* The default bindings for this signal is `Ctrl`+`g`.
|
|
6561
6562
|
*/
|
|
6562
|
-
onNextMatch?: (self: Gtk.SearchEntry) => void | null;
|
|
6563
|
+
onNextMatch?: ((self: Gtk.SearchEntry) => void) | null;
|
|
6563
6564
|
/**
|
|
6564
6565
|
* Emitted when the user initiates a move to the previous match
|
|
6565
6566
|
* for the current search string.
|
|
@@ -6572,15 +6573,15 @@ export type GtkSearchEntryProps = WidgetProps & {
|
|
|
6572
6573
|
* The default bindings for this signal is
|
|
6573
6574
|
* `Ctrl`+`Shift`+`g`.
|
|
6574
6575
|
*/
|
|
6575
|
-
onPreviousMatch?: (self: Gtk.SearchEntry) => void | null;
|
|
6576
|
+
onPreviousMatch?: ((self: Gtk.SearchEntry) => void) | null;
|
|
6576
6577
|
/**
|
|
6577
6578
|
* Emitted with a delay. The length of the delay can be
|
|
6578
6579
|
* changed with the {@link SearchEntry.search-delay}
|
|
6579
6580
|
* property.
|
|
6580
6581
|
*/
|
|
6581
|
-
onSearchChanged?: (self: Gtk.SearchEntry) => void | null;
|
|
6582
|
+
onSearchChanged?: ((self: Gtk.SearchEntry) => void) | null;
|
|
6582
6583
|
/** Emitted when the user initiated a search on the entry. */
|
|
6583
|
-
onSearchStarted?: (self: Gtk.SearchEntry) => void | null;
|
|
6584
|
+
onSearchStarted?: ((self: Gtk.SearchEntry) => void) | null;
|
|
6584
6585
|
/**
|
|
6585
6586
|
* Emitted when the user stops a search via keyboard input.
|
|
6586
6587
|
*
|
|
@@ -6591,7 +6592,7 @@ export type GtkSearchEntryProps = WidgetProps & {
|
|
|
6591
6592
|
*
|
|
6592
6593
|
* The default bindings for this signal is `Escape`.
|
|
6593
6594
|
*/
|
|
6594
|
-
onStopSearch?: (self: Gtk.SearchEntry) => void | null;
|
|
6595
|
+
onStopSearch?: ((self: Gtk.SearchEntry) => void) | null;
|
|
6595
6596
|
/**
|
|
6596
6597
|
* Emitted at the end of a single user-visible operation on the
|
|
6597
6598
|
* contents.
|
|
@@ -6602,7 +6603,7 @@ export type GtkSearchEntryProps = WidgetProps & {
|
|
|
6602
6603
|
* the new content, and may cause multiple ::notify::text signals
|
|
6603
6604
|
* to be emitted).
|
|
6604
6605
|
*/
|
|
6605
|
-
onChanged?: (self: Gtk.SearchEntry) => void | null;
|
|
6606
|
+
onChanged?: ((self: Gtk.SearchEntry) => void) | null;
|
|
6606
6607
|
/**
|
|
6607
6608
|
* Emitted when text is deleted from the widget by the user.
|
|
6608
6609
|
*
|
|
@@ -6614,7 +6615,7 @@ export type GtkSearchEntryProps = WidgetProps & {
|
|
|
6614
6615
|
* The `start_pos` and `end_pos` parameters are interpreted as for
|
|
6615
6616
|
* {@link Editable.delete_text}.
|
|
6616
6617
|
*/
|
|
6617
|
-
onDeleteText?: (startPos: number, endPos: number, self: Gtk.SearchEntry) => void | null;
|
|
6618
|
+
onDeleteText?: ((startPos: number, endPos: number, self: Gtk.SearchEntry) => void) | null;
|
|
6618
6619
|
/**
|
|
6619
6620
|
* Emitted when text is inserted into the widget by the user.
|
|
6620
6621
|
*
|
|
@@ -6623,7 +6624,7 @@ export type GtkSearchEntryProps = WidgetProps & {
|
|
|
6623
6624
|
* stopping the signal with g_signal_stop_emission(), it is possible
|
|
6624
6625
|
* to modify the inserted text, or prevent it from being inserted entirely.
|
|
6625
6626
|
*/
|
|
6626
|
-
onInsertText?: (text: string, length: number, position: Ref<number>, self: Gtk.SearchEntry) => void | null;
|
|
6627
|
+
onInsertText?: ((text: string, length: number, position: Ref<number>, self: Gtk.SearchEntry) => void) | null;
|
|
6627
6628
|
ref?: Ref<Gtk.SearchEntry>;
|
|
6628
6629
|
};
|
|
6629
6630
|
/** Props for the {@link GtkSeparator} widget. */
|
|
@@ -6729,7 +6730,7 @@ export type GtkShortcutsSectionProps = GtkBoxProps & {
|
|
|
6729
6730
|
* `Ctrl`+`PgUp`, `PgUp`,
|
|
6730
6731
|
* `Ctrl`+`PgDn`, `PgDn`.
|
|
6731
6732
|
*/
|
|
6732
|
-
onChangeCurrentPage?: (offset: number, self: Gtk.ShortcutsSection) => boolean | null;
|
|
6733
|
+
onChangeCurrentPage?: ((offset: number, self: Gtk.ShortcutsSection) => boolean) | null;
|
|
6733
6734
|
children?: ReactNode;
|
|
6734
6735
|
ref?: Ref<Gtk.ShortcutsSection>;
|
|
6735
6736
|
};
|
|
@@ -6851,7 +6852,7 @@ export type GtkShortcutsWindowProps = GtkWindowProps & {
|
|
|
6851
6852
|
*
|
|
6852
6853
|
* The default binding for this signal is the `Escape` key.
|
|
6853
6854
|
*/
|
|
6854
|
-
onClose?: (self: Gtk.ShortcutsWindow) => void | null;
|
|
6855
|
+
onClose?: ((self: Gtk.ShortcutsWindow) => void) | null;
|
|
6855
6856
|
/**
|
|
6856
6857
|
* Emitted when the user uses a keybinding to start a search.
|
|
6857
6858
|
*
|
|
@@ -6859,7 +6860,7 @@ export type GtkShortcutsWindowProps = GtkWindowProps & {
|
|
|
6859
6860
|
*
|
|
6860
6861
|
* The default binding for this signal is `Control`+`F`.
|
|
6861
6862
|
*/
|
|
6862
|
-
onSearch?: (self: Gtk.ShortcutsWindow) => void | null;
|
|
6863
|
+
onSearch?: ((self: Gtk.ShortcutsWindow) => void) | null;
|
|
6863
6864
|
children?: ReactNode;
|
|
6864
6865
|
ref?: Ref<Gtk.ShortcutsWindow>;
|
|
6865
6866
|
};
|
|
@@ -6920,7 +6921,7 @@ export type GtkSpinButtonProps = WidgetProps & {
|
|
|
6920
6921
|
* spin button, then activation does not occur until `Enter` is
|
|
6921
6922
|
* pressed again.
|
|
6922
6923
|
*/
|
|
6923
|
-
onActivate?: (self: Gtk.SpinButton) => void | null;
|
|
6924
|
+
onActivate?: ((self: Gtk.SpinButton) => void) | null;
|
|
6924
6925
|
/**
|
|
6925
6926
|
* Emitted when the user initiates a value change.
|
|
6926
6927
|
*
|
|
@@ -6932,7 +6933,7 @@ export type GtkSpinButtonProps = WidgetProps & {
|
|
|
6932
6933
|
*
|
|
6933
6934
|
* The default bindings for this signal are Up/Down and PageUp/PageDown.
|
|
6934
6935
|
*/
|
|
6935
|
-
onChangeValue?: (scroll: Gtk.ScrollType, self: Gtk.SpinButton) => void | null;
|
|
6936
|
+
onChangeValue?: ((scroll: Gtk.ScrollType, self: Gtk.SpinButton) => void) | null;
|
|
6936
6937
|
/**
|
|
6937
6938
|
* Emitted to convert the users input into a double value.
|
|
6938
6939
|
*
|
|
@@ -6942,7 +6943,7 @@ export type GtkSpinButtonProps = WidgetProps & {
|
|
|
6942
6943
|
*
|
|
6943
6944
|
* The default conversion uses g_strtod().
|
|
6944
6945
|
*/
|
|
6945
|
-
onInput?: (newValue: Ref<number>, self: Gtk.SpinButton) => number | null;
|
|
6946
|
+
onInput?: ((newValue: Ref<number>, self: Gtk.SpinButton) => number) | null;
|
|
6946
6947
|
/**
|
|
6947
6948
|
* Emitted to tweak the formatting of the value for display.
|
|
6948
6949
|
*
|
|
@@ -6964,12 +6965,12 @@ export type GtkSpinButtonProps = WidgetProps & {
|
|
|
6964
6965
|
* }
|
|
6965
6966
|
* ```
|
|
6966
6967
|
*/
|
|
6967
|
-
onOutput?: (self: Gtk.SpinButton) => boolean | null;
|
|
6968
|
+
onOutput?: ((self: Gtk.SpinButton) => boolean) | null;
|
|
6968
6969
|
/**
|
|
6969
6970
|
* Emitted right after the spinbutton wraps from its maximum
|
|
6970
6971
|
* to its minimum value or vice-versa.
|
|
6971
6972
|
*/
|
|
6972
|
-
onWrapped?: (self: Gtk.SpinButton) => void | null;
|
|
6973
|
+
onWrapped?: ((self: Gtk.SpinButton) => void) | null;
|
|
6973
6974
|
/**
|
|
6974
6975
|
* This signal is a sign for the cell renderer to update its
|
|
6975
6976
|
* value from the `cell_editable`.
|
|
@@ -6983,7 +6984,7 @@ export type GtkSpinButtonProps = WidgetProps & {
|
|
|
6983
6984
|
* gtk_cell_editable_editing_done() is a convenience method
|
|
6984
6985
|
* for emitting `GtkCellEditable::editing-done`.
|
|
6985
6986
|
*/
|
|
6986
|
-
onEditingDone?: (self: Gtk.SpinButton) => void | null;
|
|
6987
|
+
onEditingDone?: ((self: Gtk.SpinButton) => void) | null;
|
|
6987
6988
|
/**
|
|
6988
6989
|
* This signal is meant to indicate that the cell is finished
|
|
6989
6990
|
* editing, and the `cell_editable` widget is being removed and may
|
|
@@ -6998,7 +6999,7 @@ export type GtkSpinButtonProps = WidgetProps & {
|
|
|
6998
6999
|
* gtk_cell_editable_remove_widget() is a convenience method
|
|
6999
7000
|
* for emitting `GtkCellEditable::remove-widget`.
|
|
7000
7001
|
*/
|
|
7001
|
-
onRemoveWidget?: (self: Gtk.SpinButton) => void | null;
|
|
7002
|
+
onRemoveWidget?: ((self: Gtk.SpinButton) => void) | null;
|
|
7002
7003
|
/**
|
|
7003
7004
|
* Emitted at the end of a single user-visible operation on the
|
|
7004
7005
|
* contents.
|
|
@@ -7009,7 +7010,7 @@ export type GtkSpinButtonProps = WidgetProps & {
|
|
|
7009
7010
|
* the new content, and may cause multiple ::notify::text signals
|
|
7010
7011
|
* to be emitted).
|
|
7011
7012
|
*/
|
|
7012
|
-
onChanged?: (self: Gtk.SpinButton) => void | null;
|
|
7013
|
+
onChanged?: ((self: Gtk.SpinButton) => void) | null;
|
|
7013
7014
|
/**
|
|
7014
7015
|
* Emitted when text is deleted from the widget by the user.
|
|
7015
7016
|
*
|
|
@@ -7021,7 +7022,7 @@ export type GtkSpinButtonProps = WidgetProps & {
|
|
|
7021
7022
|
* The `start_pos` and `end_pos` parameters are interpreted as for
|
|
7022
7023
|
* {@link Editable.delete_text}.
|
|
7023
7024
|
*/
|
|
7024
|
-
onDeleteText?: (startPos: number, endPos: number, self: Gtk.SpinButton) => void | null;
|
|
7025
|
+
onDeleteText?: ((startPos: number, endPos: number, self: Gtk.SpinButton) => void) | null;
|
|
7025
7026
|
/**
|
|
7026
7027
|
* Emitted when text is inserted into the widget by the user.
|
|
7027
7028
|
*
|
|
@@ -7030,7 +7031,7 @@ export type GtkSpinButtonProps = WidgetProps & {
|
|
|
7030
7031
|
* stopping the signal with g_signal_stop_emission(), it is possible
|
|
7031
7032
|
* to modify the inserted text, or prevent it from being inserted entirely.
|
|
7032
7033
|
*/
|
|
7033
|
-
onInsertText?: (text: string, length: number, position: Ref<number>, self: Gtk.SpinButton) => void | null;
|
|
7034
|
+
onInsertText?: ((text: string, length: number, position: Ref<number>, self: Gtk.SpinButton) => void) | null;
|
|
7034
7035
|
/** The minimum value */
|
|
7035
7036
|
lower?: number;
|
|
7036
7037
|
/** The maximum value */
|
|
@@ -7103,19 +7104,19 @@ export type AdwSpinRowProps = Omit<AdwActionRowProps, "onValueChanged"> & {
|
|
|
7103
7104
|
*
|
|
7104
7105
|
* See {@link SpinButton.:input}.
|
|
7105
7106
|
*/
|
|
7106
|
-
onInput?: (newValue: Ref<number>, self: Adw.SpinRow) => number | null;
|
|
7107
|
+
onInput?: ((newValue: Ref<number>, self: Adw.SpinRow) => number) | null;
|
|
7107
7108
|
/**
|
|
7108
7109
|
* Emitted to tweak the formatting of the value for display.
|
|
7109
7110
|
*
|
|
7110
7111
|
* See {@link SpinButton.:output}.
|
|
7111
7112
|
*/
|
|
7112
|
-
onOutput?: (self: Adw.SpinRow) => boolean | null;
|
|
7113
|
+
onOutput?: ((self: Adw.SpinRow) => boolean) | null;
|
|
7113
7114
|
/**
|
|
7114
7115
|
* Emitted right after the spinbutton wraps.
|
|
7115
7116
|
*
|
|
7116
7117
|
* See {@link SpinButton.:wrapped}.
|
|
7117
7118
|
*/
|
|
7118
|
-
onWrapped?: (self: Adw.SpinRow) => void | null;
|
|
7119
|
+
onWrapped?: ((self: Adw.SpinRow) => void) | null;
|
|
7119
7120
|
/**
|
|
7120
7121
|
* Emitted at the end of a single user-visible operation on the
|
|
7121
7122
|
* contents.
|
|
@@ -7126,7 +7127,7 @@ export type AdwSpinRowProps = Omit<AdwActionRowProps, "onValueChanged"> & {
|
|
|
7126
7127
|
* the new content, and may cause multiple ::notify::text signals
|
|
7127
7128
|
* to be emitted).
|
|
7128
7129
|
*/
|
|
7129
|
-
onChanged?: (self: Adw.SpinRow) => void | null;
|
|
7130
|
+
onChanged?: ((self: Adw.SpinRow) => void) | null;
|
|
7130
7131
|
/**
|
|
7131
7132
|
* Emitted when text is deleted from the widget by the user.
|
|
7132
7133
|
*
|
|
@@ -7138,7 +7139,7 @@ export type AdwSpinRowProps = Omit<AdwActionRowProps, "onValueChanged"> & {
|
|
|
7138
7139
|
* The `start_pos` and `end_pos` parameters are interpreted as for
|
|
7139
7140
|
* {@link Editable.delete_text}.
|
|
7140
7141
|
*/
|
|
7141
|
-
onDeleteText?: (startPos: number, endPos: number, self: Adw.SpinRow) => void | null;
|
|
7142
|
+
onDeleteText?: ((startPos: number, endPos: number, self: Adw.SpinRow) => void) | null;
|
|
7142
7143
|
/**
|
|
7143
7144
|
* Emitted when text is inserted into the widget by the user.
|
|
7144
7145
|
*
|
|
@@ -7147,7 +7148,7 @@ export type AdwSpinRowProps = Omit<AdwActionRowProps, "onValueChanged"> & {
|
|
|
7147
7148
|
* stopping the signal with g_signal_stop_emission(), it is possible
|
|
7148
7149
|
* to modify the inserted text, or prevent it from being inserted entirely.
|
|
7149
7150
|
*/
|
|
7150
|
-
onInsertText?: (text: string, length: number, position: Ref<number>, self: Adw.SpinRow) => void | null;
|
|
7151
|
+
onInsertText?: ((text: string, length: number, position: Ref<number>, self: Adw.SpinRow) => void) | null;
|
|
7151
7152
|
/** The minimum value */
|
|
7152
7153
|
lower?: number;
|
|
7153
7154
|
/** The maximum value */
|
|
@@ -7250,9 +7251,9 @@ export type AdwSplitButtonProps = WidgetProps & {
|
|
|
7250
7251
|
* This is an action signal. Applications should never connect to this signal,
|
|
7251
7252
|
* but use the {@link AdwSplitButton.:clicked} signal.
|
|
7252
7253
|
*/
|
|
7253
|
-
onActivate?: (self: Adw.SplitButton) => void | null;
|
|
7254
|
+
onActivate?: ((self: Adw.SplitButton) => void) | null;
|
|
7254
7255
|
/** Emitted when the button has been activated (pressed and released). */
|
|
7255
|
-
onClicked?: (self: Adw.SplitButton) => void | null;
|
|
7256
|
+
onClicked?: ((self: Adw.SplitButton) => void) | null;
|
|
7256
7257
|
children?: ReactNode;
|
|
7257
7258
|
ref?: Ref<Adw.SplitButton>;
|
|
7258
7259
|
};
|
|
@@ -7363,9 +7364,9 @@ export type GtkStackSwitcherProps = WidgetProps & {
|
|
|
7363
7364
|
/** Props for the {@link GtkStatusbar} widget. */
|
|
7364
7365
|
export type GtkStatusbarProps = WidgetProps & {
|
|
7365
7366
|
/** Emitted whenever a new message is popped off a statusbar's stack. */
|
|
7366
|
-
onTextPopped?: (contextId: number, text: string, self: Gtk.Statusbar) => void | null;
|
|
7367
|
+
onTextPopped?: ((contextId: number, text: string, self: Gtk.Statusbar) => void) | null;
|
|
7367
7368
|
/** Emitted whenever a new message gets pushed onto a statusbar's stack. */
|
|
7368
|
-
onTextPushed?: (contextId: number, text: string, self: Gtk.Statusbar) => void | null;
|
|
7369
|
+
onTextPushed?: ((contextId: number, text: string, self: Gtk.Statusbar) => void) | null;
|
|
7369
7370
|
children?: ReactNode;
|
|
7370
7371
|
ref?: Ref<Gtk.Statusbar>;
|
|
7371
7372
|
};
|
|
@@ -7424,7 +7425,7 @@ export type GtkSourceStyleSchemePreviewProps = WidgetProps & {
|
|
|
7424
7425
|
actionName?: string;
|
|
7425
7426
|
/** The target value of the actionable widget's action. */
|
|
7426
7427
|
actionTarget?: GLib.Variant;
|
|
7427
|
-
onActivate?: (self: GtkSource.StyleSchemePreview) => void | null;
|
|
7428
|
+
onActivate?: ((self: GtkSource.StyleSchemePreview) => void) | null;
|
|
7428
7429
|
ref?: Ref<GtkSource.StyleSchemePreview>;
|
|
7429
7430
|
};
|
|
7430
7431
|
/** Props for the {@link GtkSwitch} widget. */
|
|
@@ -7451,7 +7452,7 @@ export type GtkSwitchProps = WidgetProps & {
|
|
|
7451
7452
|
* Applications should never connect to this signal,
|
|
7452
7453
|
* but use the {@link Switch.active} property.
|
|
7453
7454
|
*/
|
|
7454
|
-
onActivate?: (self: Gtk.Switch) => void | null;
|
|
7455
|
+
onActivate?: ((self: Gtk.Switch) => void) | null;
|
|
7455
7456
|
/**
|
|
7456
7457
|
* Emitted to change the underlying state.
|
|
7457
7458
|
*
|
|
@@ -7465,7 +7466,7 @@ export type GtkSwitchProps = WidgetProps & {
|
|
|
7465
7466
|
* complete. The signal handler should return %TRUE to prevent the
|
|
7466
7467
|
* default handler from running.
|
|
7467
7468
|
*/
|
|
7468
|
-
onStateSet?: (state: boolean, self: Gtk.Switch) => boolean | null;
|
|
7469
|
+
onStateSet?: ((state: boolean, self: Gtk.Switch) => boolean) | null;
|
|
7469
7470
|
ref?: Ref<Gtk.Switch>;
|
|
7470
7471
|
};
|
|
7471
7472
|
/** Props for the {@link AdwSwitchRow} widget. */
|
|
@@ -7520,7 +7521,7 @@ export type AdwTabBarProps = WidgetProps & {
|
|
|
7520
7521
|
*
|
|
7521
7522
|
* See {@link DropTarget.:drop}.
|
|
7522
7523
|
*/
|
|
7523
|
-
onExtraDragDrop?: (page: Adw.TabPage, value: GObject.Value, self: Adw.TabBar) => boolean | null;
|
|
7524
|
+
onExtraDragDrop?: ((page: Adw.TabPage, value: GObject.Value, self: Adw.TabBar) => boolean) | null;
|
|
7524
7525
|
/**
|
|
7525
7526
|
* This signal is emitted when the dropped content is preloaded.
|
|
7526
7527
|
*
|
|
@@ -7532,7 +7533,7 @@ export type AdwTabBarProps = WidgetProps & {
|
|
|
7532
7533
|
*
|
|
7533
7534
|
* See {@link DropTarget.value}.
|
|
7534
7535
|
*/
|
|
7535
|
-
onExtraDragValue?: (page: Adw.TabPage, value: GObject.Value, self: Adw.TabBar) => Gdk.DragAction | null;
|
|
7536
|
+
onExtraDragValue?: ((page: Adw.TabPage, value: GObject.Value, self: Adw.TabBar) => Gdk.DragAction) | null;
|
|
7536
7537
|
children?: ReactNode;
|
|
7537
7538
|
ref?: Ref<Adw.TabBar>;
|
|
7538
7539
|
};
|
|
@@ -7550,9 +7551,9 @@ export type AdwTabButtonProps = WidgetProps & {
|
|
|
7550
7551
|
* This is an action signal. Applications should never connect to this signal,
|
|
7551
7552
|
* but use the {@link AdwTabButton.:clicked} signal.
|
|
7552
7553
|
*/
|
|
7553
|
-
onActivate?: (self: Adw.TabButton) => void | null;
|
|
7554
|
+
onActivate?: ((self: Adw.TabButton) => void) | null;
|
|
7554
7555
|
/** Emitted when the button has been activated (pressed and released). */
|
|
7555
|
-
onClicked?: (self: Adw.TabButton) => void | null;
|
|
7556
|
+
onClicked?: ((self: Adw.TabButton) => void) | null;
|
|
7556
7557
|
children?: ReactNode;
|
|
7557
7558
|
ref?: Ref<Adw.TabButton>;
|
|
7558
7559
|
};
|
|
@@ -7627,7 +7628,7 @@ export type AdwTabOverviewProps = WidgetProps & {
|
|
|
7627
7628
|
* The signal handler is expected to create a new page in the corresponding
|
|
7628
7629
|
* {@link AdwTabView} and return it.
|
|
7629
7630
|
*/
|
|
7630
|
-
onCreateTab?: (self: Adw.TabOverview) => Adw.TabPage | null;
|
|
7631
|
+
onCreateTab?: ((self: Adw.TabOverview) => Adw.TabPage) | null;
|
|
7631
7632
|
/**
|
|
7632
7633
|
* This signal is emitted when content is dropped onto a tab.
|
|
7633
7634
|
*
|
|
@@ -7636,7 +7637,7 @@ export type AdwTabOverviewProps = WidgetProps & {
|
|
|
7636
7637
|
*
|
|
7637
7638
|
* See {@link DropTarget.:drop}.
|
|
7638
7639
|
*/
|
|
7639
|
-
onExtraDragDrop?: (page: Adw.TabPage, value: GObject.Value, self: Adw.TabOverview) => boolean | null;
|
|
7640
|
+
onExtraDragDrop?: ((page: Adw.TabPage, value: GObject.Value, self: Adw.TabOverview) => boolean) | null;
|
|
7640
7641
|
/**
|
|
7641
7642
|
* This signal is emitted when the dropped content is preloaded.
|
|
7642
7643
|
*
|
|
@@ -7648,7 +7649,7 @@ export type AdwTabOverviewProps = WidgetProps & {
|
|
|
7648
7649
|
*
|
|
7649
7650
|
* See {@link DropTarget.value}.
|
|
7650
7651
|
*/
|
|
7651
|
-
onExtraDragValue?: (page: Adw.TabPage, value: GObject.Value, self: Adw.TabOverview) => Gdk.DragAction | null;
|
|
7652
|
+
onExtraDragValue?: ((page: Adw.TabPage, value: GObject.Value, self: Adw.TabOverview) => Gdk.DragAction) | null;
|
|
7652
7653
|
children?: ReactNode;
|
|
7653
7654
|
ref?: Ref<Adw.TabOverview>;
|
|
7654
7655
|
};
|
|
@@ -7722,7 +7723,7 @@ export type AdwTabViewProps = WidgetProps & {
|
|
|
7722
7723
|
* The signal handler should return `GDK_EVENT_STOP` to stop propagation or
|
|
7723
7724
|
* `GDK_EVENT_CONTINUE` to invoke the default handler.
|
|
7724
7725
|
*/
|
|
7725
|
-
onClosePage?: (page: Adw.TabPage, self: Adw.TabView) => boolean | null;
|
|
7726
|
+
onClosePage?: ((page: Adw.TabPage, self: Adw.TabView) => boolean) | null;
|
|
7726
7727
|
/**
|
|
7727
7728
|
* Emitted when a tab should be transferred into a new window.
|
|
7728
7729
|
*
|
|
@@ -7731,21 +7732,21 @@ export type AdwTabViewProps = WidgetProps & {
|
|
|
7731
7732
|
* The signal handler is expected to create a new window, position it as
|
|
7732
7733
|
* needed and return its `AdwTabView` that the page will be transferred into.
|
|
7733
7734
|
*/
|
|
7734
|
-
onCreateWindow?: (self: Adw.TabView) => Adw.TabView | null;
|
|
7735
|
+
onCreateWindow?: ((self: Adw.TabView) => Adw.TabView) | null;
|
|
7735
7736
|
/**
|
|
7736
7737
|
* Emitted after the indicator icon on `page` has been activated.
|
|
7737
7738
|
*
|
|
7738
7739
|
* See {@link AdwTabPage.indicator-icon} and
|
|
7739
7740
|
* {@link AdwTabPage.indicator-activatable}.
|
|
7740
7741
|
*/
|
|
7741
|
-
onIndicatorActivated?: (page: Adw.TabPage, self: Adw.TabView) => void | null;
|
|
7742
|
+
onIndicatorActivated?: ((page: Adw.TabPage, self: Adw.TabView) => void) | null;
|
|
7742
7743
|
/**
|
|
7743
7744
|
* Emitted when a page has been created or transferred to `self`.
|
|
7744
7745
|
*
|
|
7745
7746
|
* A typical reason to connect to this signal would be to connect to page
|
|
7746
7747
|
* signals for things such as updating window title.
|
|
7747
7748
|
*/
|
|
7748
|
-
onPageAttached?: (page: Adw.TabPage, position: number, self: Adw.TabView) => void | null;
|
|
7749
|
+
onPageAttached?: ((page: Adw.TabPage, position: number, self: Adw.TabView) => void) | null;
|
|
7749
7750
|
/**
|
|
7750
7751
|
* Emitted when a page has been removed or transferred to another view.
|
|
7751
7752
|
*
|
|
@@ -7757,9 +7758,9 @@ export type AdwTabViewProps = WidgetProps & {
|
|
|
7757
7758
|
* child dispose handler for that or do it in sync with your
|
|
7758
7759
|
* {@link TabViewclose_page_finish} calls.
|
|
7759
7760
|
*/
|
|
7760
|
-
onPageDetached?: (page: Adw.TabPage, position: number, self: Adw.TabView) => void | null;
|
|
7761
|
+
onPageDetached?: ((page: Adw.TabPage, position: number, self: Adw.TabView) => void) | null;
|
|
7761
7762
|
/** Emitted after `page` has been reordered to `position`. */
|
|
7762
|
-
onPageReordered?: (page: Adw.TabPage, position: number, self: Adw.TabView) => void | null;
|
|
7763
|
+
onPageReordered?: ((page: Adw.TabPage, position: number, self: Adw.TabView) => void) | null;
|
|
7763
7764
|
/**
|
|
7764
7765
|
* Emitted when a context menu is opened or closed for `page`.
|
|
7765
7766
|
*
|
|
@@ -7768,7 +7769,7 @@ export type AdwTabViewProps = WidgetProps & {
|
|
|
7768
7769
|
* It can be used to set up menu actions before showing the menu, for example
|
|
7769
7770
|
* disable actions not applicable to `page`.
|
|
7770
7771
|
*/
|
|
7771
|
-
onSetupMenu?: (page: Adw.TabPage, self: Adw.TabView) => void | null;
|
|
7772
|
+
onSetupMenu?: ((page: Adw.TabPage, self: Adw.TabView) => void) | null;
|
|
7772
7773
|
children?: ReactNode;
|
|
7773
7774
|
ref?: Ref<Adw.TabView>;
|
|
7774
7775
|
};
|
|
@@ -7956,56 +7957,56 @@ export type VteTerminalProps = WidgetProps & {
|
|
|
7956
7957
|
* This signal is emitted when the a child sends a bell request to the
|
|
7957
7958
|
* terminal.
|
|
7958
7959
|
*/
|
|
7959
|
-
onBell?: (self: Vte.Terminal) => void | null;
|
|
7960
|
+
onBell?: ((self: Vte.Terminal) => void) | null;
|
|
7960
7961
|
/**
|
|
7961
7962
|
* Emitted whenever the cell size changes, e.g. due to a change in
|
|
7962
7963
|
* font, font-scale or cell-width/height-scale.
|
|
7963
7964
|
*
|
|
7964
7965
|
* Note that this signal should rather be called "cell-size-changed".
|
|
7965
7966
|
*/
|
|
7966
|
-
onCharSizeChanged?: (width: number, height: number, self: Vte.Terminal) => void | null;
|
|
7967
|
+
onCharSizeChanged?: ((width: number, height: number, self: Vte.Terminal) => void) | null;
|
|
7967
7968
|
/**
|
|
7968
7969
|
* This signal is emitted when the terminal detects that a child
|
|
7969
7970
|
* watched using vte_terminal_watch_child() has exited.
|
|
7970
7971
|
*/
|
|
7971
|
-
onChildExited?: (status: number, self: Vte.Terminal) => void | null;
|
|
7972
|
+
onChildExited?: ((status: number, self: Vte.Terminal) => void) | null;
|
|
7972
7973
|
/**
|
|
7973
7974
|
* Emitted whenever the terminal receives input from the user and
|
|
7974
7975
|
* prepares to send it to the child process.
|
|
7975
7976
|
*/
|
|
7976
|
-
onCommit?: (text: string, size: number, self: Vte.Terminal) => void | null;
|
|
7977
|
+
onCommit?: ((text: string, size: number, self: Vte.Terminal) => void) | null;
|
|
7977
7978
|
/**
|
|
7978
7979
|
* Emitted whenever the visible appearance of the terminal has changed.
|
|
7979
7980
|
* Used primarily by #VteTerminalAccessible.
|
|
7980
7981
|
*/
|
|
7981
|
-
onContentsChanged?: (self: Vte.Terminal) => void | null;
|
|
7982
|
+
onContentsChanged?: ((self: Vte.Terminal) => void) | null;
|
|
7982
7983
|
/** Emitted whenever vte_terminal_copy_clipboard() is called. */
|
|
7983
|
-
onCopyClipboard?: (self: Vte.Terminal) => void | null;
|
|
7984
|
+
onCopyClipboard?: ((self: Vte.Terminal) => void) | null;
|
|
7984
7985
|
/** Emitted when the current directory URI is modified. */
|
|
7985
|
-
onCurrentDirectoryUriChanged?: (self: Vte.Terminal) => void | null;
|
|
7986
|
+
onCurrentDirectoryUriChanged?: ((self: Vte.Terminal) => void) | null;
|
|
7986
7987
|
/** Emitted when the current file URI is modified. */
|
|
7987
|
-
onCurrentFileUriChanged?: (self: Vte.Terminal) => void | null;
|
|
7988
|
+
onCurrentFileUriChanged?: ((self: Vte.Terminal) => void) | null;
|
|
7988
7989
|
/**
|
|
7989
7990
|
* Emitted whenever the cursor moves to a new character cell. Used
|
|
7990
7991
|
* primarily by #VteTerminalAccessible.
|
|
7991
7992
|
*/
|
|
7992
|
-
onCursorMoved?: (self: Vte.Terminal) => void | null;
|
|
7993
|
+
onCursorMoved?: ((self: Vte.Terminal) => void) | null;
|
|
7993
7994
|
/** Emitted when the user hits the '-' key while holding the Control key. */
|
|
7994
|
-
onDecreaseFontSize?: (self: Vte.Terminal) => void | null;
|
|
7995
|
+
onDecreaseFontSize?: ((self: Vte.Terminal) => void) | null;
|
|
7995
7996
|
/** Never emitted. */
|
|
7996
|
-
onDeiconifyWindow?: (self: Vte.Terminal) => void | null;
|
|
7997
|
+
onDeiconifyWindow?: ((self: Vte.Terminal) => void) | null;
|
|
7997
7998
|
/**
|
|
7998
7999
|
* Emitted whenever the terminal's current encoding has changed.
|
|
7999
8000
|
*
|
|
8000
8001
|
* Note: support for non-UTF-8 is deprecated.
|
|
8001
8002
|
*/
|
|
8002
|
-
onEncodingChanged?: (self: Vte.Terminal) => void | null;
|
|
8003
|
+
onEncodingChanged?: ((self: Vte.Terminal) => void) | null;
|
|
8003
8004
|
/**
|
|
8004
8005
|
* Emitted when the terminal receives an end-of-file from a child which
|
|
8005
8006
|
* is running in the terminal. This signal is frequently (but not
|
|
8006
8007
|
* always) emitted with a #VteTerminal::child-exited signal.
|
|
8007
8008
|
*/
|
|
8008
|
-
onEof?: (self: Vte.Terminal) => void | null;
|
|
8009
|
+
onEof?: ((self: Vte.Terminal) => void) | null;
|
|
8009
8010
|
/**
|
|
8010
8011
|
* Emitted when the hovered hyperlink changes.
|
|
8011
8012
|
*
|
|
@@ -8015,30 +8016,30 @@ export type VteTerminalProps = WidgetProps & {
|
|
|
8015
8016
|
* The signal is not re-emitted when the bounding box changes for the
|
|
8016
8017
|
* same hyperlink. This might change in a future VTE version without notice.
|
|
8017
8018
|
*/
|
|
8018
|
-
onHyperlinkHoverUriChanged?: (object: string, p0: Gdk.Rectangle, self: Vte.Terminal) => void | null;
|
|
8019
|
-
onIconTitleChanged?: (self: Vte.Terminal) => void | null;
|
|
8019
|
+
onHyperlinkHoverUriChanged?: ((object: string, p0: Gdk.Rectangle, self: Vte.Terminal) => void) | null;
|
|
8020
|
+
onIconTitleChanged?: ((self: Vte.Terminal) => void) | null;
|
|
8020
8021
|
/** Never emitted. */
|
|
8021
|
-
onIconifyWindow?: (self: Vte.Terminal) => void | null;
|
|
8022
|
+
onIconifyWindow?: ((self: Vte.Terminal) => void) | null;
|
|
8022
8023
|
/** Emitted when the user hits the '+' key while holding the Control key. */
|
|
8023
|
-
onIncreaseFontSize?: (self: Vte.Terminal) => void | null;
|
|
8024
|
+
onIncreaseFontSize?: ((self: Vte.Terminal) => void) | null;
|
|
8024
8025
|
/** Never emitted. */
|
|
8025
|
-
onLowerWindow?: (self: Vte.Terminal) => void | null;
|
|
8026
|
+
onLowerWindow?: ((self: Vte.Terminal) => void) | null;
|
|
8026
8027
|
/** Never emitted. */
|
|
8027
|
-
onMaximizeWindow?: (self: Vte.Terminal) => void | null;
|
|
8028
|
+
onMaximizeWindow?: ((self: Vte.Terminal) => void) | null;
|
|
8028
8029
|
/** Never emitted. */
|
|
8029
|
-
onMoveWindow?: (x: number, y: number, self: Vte.Terminal) => void | null;
|
|
8030
|
+
onMoveWindow?: ((x: number, y: number, self: Vte.Terminal) => void) | null;
|
|
8030
8031
|
/** Emitted whenever vte_terminal_paste_clipboard() is called. */
|
|
8031
|
-
onPasteClipboard?: (self: Vte.Terminal) => void | null;
|
|
8032
|
+
onPasteClipboard?: ((self: Vte.Terminal) => void) | null;
|
|
8032
8033
|
/** Never emitted. */
|
|
8033
|
-
onRaiseWindow?: (self: Vte.Terminal) => void | null;
|
|
8034
|
+
onRaiseWindow?: ((self: Vte.Terminal) => void) | null;
|
|
8034
8035
|
/** Never emitted. */
|
|
8035
|
-
onRefreshWindow?: (self: Vte.Terminal) => void | null;
|
|
8036
|
+
onRefreshWindow?: ((self: Vte.Terminal) => void) | null;
|
|
8036
8037
|
/** Emitted at the child application's request. */
|
|
8037
|
-
onResizeWindow?: (width: number, height: number, self: Vte.Terminal) => void | null;
|
|
8038
|
+
onResizeWindow?: ((width: number, height: number, self: Vte.Terminal) => void) | null;
|
|
8038
8039
|
/** Never emitted. */
|
|
8039
|
-
onRestoreWindow?: (self: Vte.Terminal) => void | null;
|
|
8040
|
+
onRestoreWindow?: ((self: Vte.Terminal) => void) | null;
|
|
8040
8041
|
/** Emitted whenever the contents of terminal's selection changes. */
|
|
8041
|
-
onSelectionChanged?: (self: Vte.Terminal) => void | null;
|
|
8042
|
+
onSelectionChanged?: ((self: Vte.Terminal) => void) | null;
|
|
8042
8043
|
/**
|
|
8043
8044
|
* Emitted with non-%NULL context before `terminal` shows a context menu.
|
|
8044
8045
|
* The handler may set either a menu model using
|
|
@@ -8054,7 +8055,7 @@ export type VteTerminalProps = WidgetProps & {
|
|
|
8054
8055
|
*
|
|
8055
8056
|
* Also emitted with %NULL context after the context menu has been dismissed.
|
|
8056
8057
|
*/
|
|
8057
|
-
onSetupContextMenu?: (context: Vte.EventContext, self: Vte.Terminal) => void | null;
|
|
8058
|
+
onSetupContextMenu?: ((context: Vte.EventContext, self: Vte.Terminal) => void) | null;
|
|
8058
8059
|
/**
|
|
8059
8060
|
* The "termprop-changed" signal is emitted when a termprop
|
|
8060
8061
|
* has changed or been reset.
|
|
@@ -8068,7 +8069,7 @@ export type VteTerminalProps = WidgetProps & {
|
|
|
8068
8069
|
* to "termprop-changed::name" only runs the callback when the
|
|
8069
8070
|
* termprop "name" has changed.
|
|
8070
8071
|
*/
|
|
8071
|
-
onTermpropChanged?: (name: string, self: Vte.Terminal) => void | null;
|
|
8072
|
+
onTermpropChanged?: ((name: string, self: Vte.Terminal) => void) | null;
|
|
8072
8073
|
/**
|
|
8073
8074
|
* Emitted when termprops have changed. `props` is an array containing
|
|
8074
8075
|
* the IDs of the terminal properties that may have changed since
|
|
@@ -8088,9 +8089,9 @@ export type VteTerminalProps = WidgetProps & {
|
|
|
8088
8089
|
* VteTerminal::termprop-changed signal; but it must *not*
|
|
8089
8090
|
* call *any* other API on `terminal`, including API of its parent classes.
|
|
8090
8091
|
*/
|
|
8091
|
-
onTermpropsChanged?: (props: number[], nProps: number, self: Vte.Terminal) => boolean | null;
|
|
8092
|
+
onTermpropsChanged?: ((props: number[], nProps: number, self: Vte.Terminal) => boolean) | null;
|
|
8092
8093
|
/** Emitted when the #VteTerminal:window-title property is modified. */
|
|
8093
|
-
onWindowTitleChanged?: (self: Vte.Terminal) => void | null;
|
|
8094
|
+
onWindowTitleChanged?: ((self: Vte.Terminal) => void) | null;
|
|
8094
8095
|
children?: ReactNode;
|
|
8095
8096
|
ref?: Ref<Vte.Terminal>;
|
|
8096
8097
|
};
|
|
@@ -8186,7 +8187,7 @@ export type GtkTextProps = WidgetProps & {
|
|
|
8186
8187
|
* The default bindings for this signal are all forms
|
|
8187
8188
|
* of the `Enter` key.
|
|
8188
8189
|
*/
|
|
8189
|
-
onActivate?: (self: Gtk.Text) => void | null;
|
|
8190
|
+
onActivate?: ((self: Gtk.Text) => void) | null;
|
|
8190
8191
|
/**
|
|
8191
8192
|
* Emitted when the user asks for it.
|
|
8192
8193
|
*
|
|
@@ -8195,7 +8196,7 @@ export type GtkTextProps = WidgetProps & {
|
|
|
8195
8196
|
* The default bindings for this signal are
|
|
8196
8197
|
* `Backspace` and `Shift`+`Backspace`.
|
|
8197
8198
|
*/
|
|
8198
|
-
onBackspace?: (self: Gtk.Text) => void | null;
|
|
8199
|
+
onBackspace?: ((self: Gtk.Text) => void) | null;
|
|
8199
8200
|
/**
|
|
8200
8201
|
* Emitted to copy the selection to the clipboard.
|
|
8201
8202
|
*
|
|
@@ -8205,7 +8206,7 @@ export type GtkTextProps = WidgetProps & {
|
|
|
8205
8206
|
* `Ctrl`+`c` and
|
|
8206
8207
|
* `Ctrl`+`Insert`.
|
|
8207
8208
|
*/
|
|
8208
|
-
onCopyClipboard?: (self: Gtk.Text) => void | null;
|
|
8209
|
+
onCopyClipboard?: ((self: Gtk.Text) => void) | null;
|
|
8209
8210
|
/**
|
|
8210
8211
|
* Emitted to cut the selection to the clipboard.
|
|
8211
8212
|
*
|
|
@@ -8215,7 +8216,7 @@ export type GtkTextProps = WidgetProps & {
|
|
|
8215
8216
|
* `Ctrl`+`x` and
|
|
8216
8217
|
* `Shift`+`Delete`.
|
|
8217
8218
|
*/
|
|
8218
|
-
onCutClipboard?: (self: Gtk.Text) => void | null;
|
|
8219
|
+
onCutClipboard?: ((self: Gtk.Text) => void) | null;
|
|
8219
8220
|
/**
|
|
8220
8221
|
* Emitted when the user initiates a text deletion.
|
|
8221
8222
|
*
|
|
@@ -8229,7 +8230,7 @@ export type GtkTextProps = WidgetProps & {
|
|
|
8229
8230
|
* for deleting a character and `Ctrl`+`Delete`
|
|
8230
8231
|
* for deleting a word.
|
|
8231
8232
|
*/
|
|
8232
|
-
onDeleteFromCursor?: (type: Gtk.DeleteType, count: number, self: Gtk.Text) => void | null;
|
|
8233
|
+
onDeleteFromCursor?: ((type: Gtk.DeleteType, count: number, self: Gtk.Text) => void) | null;
|
|
8233
8234
|
/**
|
|
8234
8235
|
* Emitted when the user initiates the insertion of a
|
|
8235
8236
|
* fixed string at the cursor.
|
|
@@ -8238,7 +8239,7 @@ export type GtkTextProps = WidgetProps & {
|
|
|
8238
8239
|
*
|
|
8239
8240
|
* This signal has no default bindings.
|
|
8240
8241
|
*/
|
|
8241
|
-
onInsertAtCursor?: (string: string, self: Gtk.Text) => void | null;
|
|
8242
|
+
onInsertAtCursor?: ((string: string, self: Gtk.Text) => void) | null;
|
|
8242
8243
|
/**
|
|
8243
8244
|
* Emitted to present the Emoji chooser.
|
|
8244
8245
|
*
|
|
@@ -8248,7 +8249,7 @@ export type GtkTextProps = WidgetProps & {
|
|
|
8248
8249
|
* `Ctrl`+`.` and
|
|
8249
8250
|
* `Ctrl`+`;`
|
|
8250
8251
|
*/
|
|
8251
|
-
onInsertEmoji?: (self: Gtk.Text) => void | null;
|
|
8252
|
+
onInsertEmoji?: ((self: Gtk.Text) => void) | null;
|
|
8252
8253
|
/**
|
|
8253
8254
|
* Emitted when the user initiates a cursor movement.
|
|
8254
8255
|
*
|
|
@@ -8271,7 +8272,7 @@ export type GtkTextProps = WidgetProps & {
|
|
|
8271
8272
|
* - `Ctrl`+`←`, etc. move by words/paragraphs
|
|
8272
8273
|
* - `Home` and `End` move to the ends of the buffer
|
|
8273
8274
|
*/
|
|
8274
|
-
onMoveCursor?: (step: Gtk.MovementStep, count: number, extend: boolean, self: Gtk.Text) => void | null;
|
|
8275
|
+
onMoveCursor?: ((step: Gtk.MovementStep, count: number, extend: boolean, self: Gtk.Text) => void) | null;
|
|
8275
8276
|
/**
|
|
8276
8277
|
* Emitted to paste the contents of the clipboard.
|
|
8277
8278
|
*
|
|
@@ -8280,7 +8281,7 @@ export type GtkTextProps = WidgetProps & {
|
|
|
8280
8281
|
* The default bindings for this signal are
|
|
8281
8282
|
* `Ctrl`+`v` and `Shift`+`Insert`.
|
|
8282
8283
|
*/
|
|
8283
|
-
onPasteClipboard?: (self: Gtk.Text) => void | null;
|
|
8284
|
+
onPasteClipboard?: ((self: Gtk.Text) => void) | null;
|
|
8284
8285
|
/**
|
|
8285
8286
|
* Emitted when the preedit text changes.
|
|
8286
8287
|
*
|
|
@@ -8288,7 +8289,7 @@ export type GtkTextProps = WidgetProps & {
|
|
|
8288
8289
|
* be committed to the buffer. So if you are interested in the text,
|
|
8289
8290
|
* connect to this signal.
|
|
8290
8291
|
*/
|
|
8291
|
-
onPreeditChanged?: (preedit: string, self: Gtk.Text) => void | null;
|
|
8292
|
+
onPreeditChanged?: ((preedit: string, self: Gtk.Text) => void) | null;
|
|
8292
8293
|
/**
|
|
8293
8294
|
* Emitted to toggle the overwrite mode.
|
|
8294
8295
|
*
|
|
@@ -8296,7 +8297,7 @@ export type GtkTextProps = WidgetProps & {
|
|
|
8296
8297
|
*
|
|
8297
8298
|
* The default bindings for this signal is `Insert`.
|
|
8298
8299
|
*/
|
|
8299
|
-
onToggleOverwrite?: (self: Gtk.Text) => void | null;
|
|
8300
|
+
onToggleOverwrite?: ((self: Gtk.Text) => void) | null;
|
|
8300
8301
|
/**
|
|
8301
8302
|
* Emitted at the end of a single user-visible operation on the
|
|
8302
8303
|
* contents.
|
|
@@ -8307,7 +8308,7 @@ export type GtkTextProps = WidgetProps & {
|
|
|
8307
8308
|
* the new content, and may cause multiple ::notify::text signals
|
|
8308
8309
|
* to be emitted).
|
|
8309
8310
|
*/
|
|
8310
|
-
onChanged?: (self: Gtk.Text) => void | null;
|
|
8311
|
+
onChanged?: ((self: Gtk.Text) => void) | null;
|
|
8311
8312
|
/**
|
|
8312
8313
|
* Emitted when text is deleted from the widget by the user.
|
|
8313
8314
|
*
|
|
@@ -8319,7 +8320,7 @@ export type GtkTextProps = WidgetProps & {
|
|
|
8319
8320
|
* The `start_pos` and `end_pos` parameters are interpreted as for
|
|
8320
8321
|
* {@link Editable.delete_text}.
|
|
8321
8322
|
*/
|
|
8322
|
-
onDeleteText?: (startPos: number, endPos: number, self: Gtk.Text) => void | null;
|
|
8323
|
+
onDeleteText?: ((startPos: number, endPos: number, self: Gtk.Text) => void) | null;
|
|
8323
8324
|
/**
|
|
8324
8325
|
* Emitted when text is inserted into the widget by the user.
|
|
8325
8326
|
*
|
|
@@ -8328,7 +8329,7 @@ export type GtkTextProps = WidgetProps & {
|
|
|
8328
8329
|
* stopping the signal with g_signal_stop_emission(), it is possible
|
|
8329
8330
|
* to modify the inserted text, or prevent it from being inserted entirely.
|
|
8330
8331
|
*/
|
|
8331
|
-
onInsertText?: (text: string, length: number, position: Ref<number>, self: Gtk.Text) => void | null;
|
|
8332
|
+
onInsertText?: ((text: string, length: number, position: Ref<number>, self: Gtk.Text) => void) | null;
|
|
8332
8333
|
children?: ReactNode;
|
|
8333
8334
|
ref?: Ref<Gtk.Text>;
|
|
8334
8335
|
};
|
|
@@ -8456,7 +8457,7 @@ export type GtkTextViewProps = WidgetProps & {
|
|
|
8456
8457
|
* The default bindings for this signal are
|
|
8457
8458
|
* `Backspace` and `Shift`+`Backspace`.
|
|
8458
8459
|
*/
|
|
8459
|
-
onBackspace?: (self: Gtk.TextView) => void | null;
|
|
8460
|
+
onBackspace?: ((self: Gtk.TextView) => void) | null;
|
|
8460
8461
|
/**
|
|
8461
8462
|
* Gets emitted to copy the selection to the clipboard.
|
|
8462
8463
|
*
|
|
@@ -8466,7 +8467,7 @@ export type GtkTextViewProps = WidgetProps & {
|
|
|
8466
8467
|
* `Ctrl`+`c` and
|
|
8467
8468
|
* `Ctrl`+`Insert`.
|
|
8468
8469
|
*/
|
|
8469
|
-
onCopyClipboard?: (self: Gtk.TextView) => void | null;
|
|
8470
|
+
onCopyClipboard?: ((self: Gtk.TextView) => void) | null;
|
|
8470
8471
|
/**
|
|
8471
8472
|
* Gets emitted to cut the selection to the clipboard.
|
|
8472
8473
|
*
|
|
@@ -8476,7 +8477,7 @@ export type GtkTextViewProps = WidgetProps & {
|
|
|
8476
8477
|
* `Ctrl`+`x` and
|
|
8477
8478
|
* `Shift`+`Delete`.
|
|
8478
8479
|
*/
|
|
8479
|
-
onCutClipboard?: (self: Gtk.TextView) => void | null;
|
|
8480
|
+
onCutClipboard?: ((self: Gtk.TextView) => void) | null;
|
|
8480
8481
|
/**
|
|
8481
8482
|
* Gets emitted when the user initiates a text deletion.
|
|
8482
8483
|
*
|
|
@@ -8491,9 +8492,9 @@ export type GtkTextViewProps = WidgetProps & {
|
|
|
8491
8492
|
* deleting a word and `Ctrl`+`Backspace` for
|
|
8492
8493
|
* deleting a word backwards.
|
|
8493
8494
|
*/
|
|
8494
|
-
onDeleteFromCursor?: (type: Gtk.DeleteType, count: number, self: Gtk.TextView) => void | null;
|
|
8495
|
+
onDeleteFromCursor?: ((type: Gtk.DeleteType, count: number, self: Gtk.TextView) => void) | null;
|
|
8495
8496
|
/** Emitted when the selection needs to be extended at `location`. */
|
|
8496
|
-
onExtendSelection?: (granularity: Gtk.TextExtendSelection, location: Gtk.TextIter, start: Gtk.TextIter, end: Gtk.TextIter, self: Gtk.TextView) => boolean | null;
|
|
8497
|
+
onExtendSelection?: ((granularity: Gtk.TextExtendSelection, location: Gtk.TextIter, start: Gtk.TextIter, end: Gtk.TextIter, self: Gtk.TextView) => boolean) | null;
|
|
8497
8498
|
/**
|
|
8498
8499
|
* Gets emitted when the user initiates the insertion of a
|
|
8499
8500
|
* fixed string at the cursor.
|
|
@@ -8502,7 +8503,7 @@ export type GtkTextViewProps = WidgetProps & {
|
|
|
8502
8503
|
*
|
|
8503
8504
|
* This signal has no default bindings.
|
|
8504
8505
|
*/
|
|
8505
|
-
onInsertAtCursor?: (string: string, self: Gtk.TextView) => void | null;
|
|
8506
|
+
onInsertAtCursor?: ((string: string, self: Gtk.TextView) => void) | null;
|
|
8506
8507
|
/**
|
|
8507
8508
|
* Gets emitted to present the Emoji chooser for the `text_view`.
|
|
8508
8509
|
*
|
|
@@ -8512,7 +8513,7 @@ export type GtkTextViewProps = WidgetProps & {
|
|
|
8512
8513
|
* `Ctrl`+`.` and
|
|
8513
8514
|
* `Ctrl`+`;`
|
|
8514
8515
|
*/
|
|
8515
|
-
onInsertEmoji?: (self: Gtk.TextView) => void | null;
|
|
8516
|
+
onInsertEmoji?: ((self: Gtk.TextView) => void) | null;
|
|
8516
8517
|
/**
|
|
8517
8518
|
* Gets emitted when the user initiates a cursor movement.
|
|
8518
8519
|
*
|
|
@@ -8537,7 +8538,7 @@ export type GtkTextViewProps = WidgetProps & {
|
|
|
8537
8538
|
* - `Ctrl`+`PgUp` and `Ctrl`+`PgDn`
|
|
8538
8539
|
* move horizontally by pages
|
|
8539
8540
|
*/
|
|
8540
|
-
onMoveCursor?: (step: Gtk.MovementStep, count: number, extendSelection: boolean, self: Gtk.TextView) => void | null;
|
|
8541
|
+
onMoveCursor?: ((step: Gtk.MovementStep, count: number, extendSelection: boolean, self: Gtk.TextView) => void) | null;
|
|
8541
8542
|
/**
|
|
8542
8543
|
* Gets emitted to move the viewport.
|
|
8543
8544
|
*
|
|
@@ -8548,7 +8549,7 @@ export type GtkTextViewProps = WidgetProps & {
|
|
|
8548
8549
|
*
|
|
8549
8550
|
* There are no default bindings for this signal.
|
|
8550
8551
|
*/
|
|
8551
|
-
onMoveViewport?: (step: Gtk.ScrollStep, count: number, self: Gtk.TextView) => void | null;
|
|
8552
|
+
onMoveViewport?: ((step: Gtk.ScrollStep, count: number, self: Gtk.TextView) => void) | null;
|
|
8552
8553
|
/**
|
|
8553
8554
|
* Gets emitted to paste the contents of the clipboard
|
|
8554
8555
|
* into the text view.
|
|
@@ -8559,7 +8560,7 @@ export type GtkTextViewProps = WidgetProps & {
|
|
|
8559
8560
|
* `Ctrl`+`v` and
|
|
8560
8561
|
* `Shift`+`Insert`.
|
|
8561
8562
|
*/
|
|
8562
|
-
onPasteClipboard?: (self: Gtk.TextView) => void | null;
|
|
8563
|
+
onPasteClipboard?: ((self: Gtk.TextView) => void) | null;
|
|
8563
8564
|
/**
|
|
8564
8565
|
* Emitted when preedit text of the active IM changes.
|
|
8565
8566
|
*
|
|
@@ -8570,7 +8571,7 @@ export type GtkTextViewProps = WidgetProps & {
|
|
|
8570
8571
|
* This signal is only emitted if the text at the given position
|
|
8571
8572
|
* is actually editable.
|
|
8572
8573
|
*/
|
|
8573
|
-
onPreeditChanged?: (preedit: string, self: Gtk.TextView) => void | null;
|
|
8574
|
+
onPreeditChanged?: ((preedit: string, self: Gtk.TextView) => void) | null;
|
|
8574
8575
|
/**
|
|
8575
8576
|
* Gets emitted to select or unselect the complete contents of the text view.
|
|
8576
8577
|
*
|
|
@@ -8582,7 +8583,7 @@ export type GtkTextViewProps = WidgetProps & {
|
|
|
8582
8583
|
* `Shift`+`Ctrl`+`a` and
|
|
8583
8584
|
* `Ctrl`+`\` for unselecting.
|
|
8584
8585
|
*/
|
|
8585
|
-
onSelectAll?: (select: boolean, self: Gtk.TextView) => void | null;
|
|
8586
|
+
onSelectAll?: ((select: boolean, self: Gtk.TextView) => void) | null;
|
|
8586
8587
|
/**
|
|
8587
8588
|
* Gets emitted when the user initiates settings the "anchor" mark.
|
|
8588
8589
|
*
|
|
@@ -8593,7 +8594,7 @@ export type GtkTextViewProps = WidgetProps & {
|
|
|
8593
8594
|
*
|
|
8594
8595
|
* This signal has no default bindings.
|
|
8595
8596
|
*/
|
|
8596
|
-
onSetAnchor?: (self: Gtk.TextView) => void | null;
|
|
8597
|
+
onSetAnchor?: ((self: Gtk.TextView) => void) | null;
|
|
8597
8598
|
/**
|
|
8598
8599
|
* Gets emitted to toggle the `cursor-visible` property.
|
|
8599
8600
|
*
|
|
@@ -8602,7 +8603,7 @@ export type GtkTextViewProps = WidgetProps & {
|
|
|
8602
8603
|
*
|
|
8603
8604
|
* The default binding for this signal is `F7`.
|
|
8604
8605
|
*/
|
|
8605
|
-
onToggleCursorVisible?: (self: Gtk.TextView) => void | null;
|
|
8606
|
+
onToggleCursorVisible?: ((self: Gtk.TextView) => void) | null;
|
|
8606
8607
|
/**
|
|
8607
8608
|
* Gets emitted to toggle the overwrite mode of the text view.
|
|
8608
8609
|
*
|
|
@@ -8610,7 +8611,7 @@ export type GtkTextViewProps = WidgetProps & {
|
|
|
8610
8611
|
*
|
|
8611
8612
|
* The default binding for this signal is `Insert`.
|
|
8612
8613
|
*/
|
|
8613
|
-
onToggleOverwrite?: (self: Gtk.TextView) => void | null;
|
|
8614
|
+
onToggleOverwrite?: ((self: Gtk.TextView) => void) | null;
|
|
8614
8615
|
/** Whether to enable undo/redo */
|
|
8615
8616
|
enableUndo?: boolean;
|
|
8616
8617
|
/** Callback when the buffer content changes. Use buffer.getText() to extract text. */
|
|
@@ -8640,7 +8641,7 @@ export type GtkToggleButtonProps = GtkButtonProps & {
|
|
|
8640
8641
|
/** The toggle button whose group this widget belongs to. */
|
|
8641
8642
|
group?: Gtk.ToggleButton;
|
|
8642
8643
|
/** Emitted whenever the `GtkToggleButton`'s state is changed. */
|
|
8643
|
-
onToggled?: (self: Gtk.ToggleButton) => void | null;
|
|
8644
|
+
onToggled?: ((self: Gtk.ToggleButton) => void) | null;
|
|
8644
8645
|
children?: ReactNode;
|
|
8645
8646
|
ref?: Ref<Gtk.ToggleButton>;
|
|
8646
8647
|
};
|
|
@@ -8874,10 +8875,10 @@ export type GtkTreeViewProps = WidgetProps & {
|
|
|
8874
8875
|
/** Determines when vertical scrolling should start. */
|
|
8875
8876
|
vscrollPolicy?: Gtk.ScrollablePolicy;
|
|
8876
8877
|
/** The number of columns of the treeview has changed. */
|
|
8877
|
-
onColumnsChanged?: (self: Gtk.TreeView) => void | null;
|
|
8878
|
+
onColumnsChanged?: ((self: Gtk.TreeView) => void) | null;
|
|
8878
8879
|
/** The position of the cursor (focused cell) has changed. */
|
|
8879
|
-
onCursorChanged?: (self: Gtk.TreeView) => void | null;
|
|
8880
|
-
onExpandCollapseCursorRow?: (object: boolean, p0: boolean, p1: boolean, self: Gtk.TreeView) => boolean | null;
|
|
8880
|
+
onCursorChanged?: ((self: Gtk.TreeView) => void) | null;
|
|
8881
|
+
onExpandCollapseCursorRow?: ((object: boolean, p0: boolean, p1: boolean, self: Gtk.TreeView) => boolean) | null;
|
|
8881
8882
|
/**
|
|
8882
8883
|
* The `GtkTreeView`::move-cursor signal is a [keybinding
|
|
8883
8884
|
* signal]{@link SignalAction} which gets emitted when the user
|
|
@@ -8889,7 +8890,7 @@ export type GtkTreeViewProps = WidgetProps & {
|
|
|
8889
8890
|
* gtk_tree_view_set_cursor_on_cell() when moving horizontally
|
|
8890
8891
|
* `GtkTreeView`::move-cursor does not reset the current selection.
|
|
8891
8892
|
*/
|
|
8892
|
-
onMoveCursor?: (step: Gtk.MovementStep, direction: number, extend: boolean, modify: boolean, self: Gtk.TreeView) => boolean | null;
|
|
8893
|
+
onMoveCursor?: ((step: Gtk.MovementStep, direction: number, extend: boolean, modify: boolean, self: Gtk.TreeView) => boolean) | null;
|
|
8893
8894
|
/**
|
|
8894
8895
|
* The "row-activated" signal is emitted when the method
|
|
8895
8896
|
* {@link TreeView.row_activated} is called.
|
|
@@ -8906,27 +8907,27 @@ export type GtkTreeViewProps = WidgetProps & {
|
|
|
8906
8907
|
* tree widget conceptual overview
|
|
8907
8908
|
* as well as `GtkTreeSelection`.
|
|
8908
8909
|
*/
|
|
8909
|
-
onRowActivated?: (path: Gtk.TreePath, column: Gtk.TreeViewColumn, self: Gtk.TreeView) => void | null;
|
|
8910
|
+
onRowActivated?: ((path: Gtk.TreePath, column: Gtk.TreeViewColumn, self: Gtk.TreeView) => void) | null;
|
|
8910
8911
|
/** The given row has been collapsed (child nodes are hidden). */
|
|
8911
|
-
onRowCollapsed?: (iter: Gtk.TreeIter, path: Gtk.TreePath, self: Gtk.TreeView) => void | null;
|
|
8912
|
+
onRowCollapsed?: ((iter: Gtk.TreeIter, path: Gtk.TreePath, self: Gtk.TreeView) => void) | null;
|
|
8912
8913
|
/** The given row has been expanded (child nodes are shown). */
|
|
8913
|
-
onRowExpanded?: (iter: Gtk.TreeIter, path: Gtk.TreePath, self: Gtk.TreeView) => void | null;
|
|
8914
|
-
onSelectAll?: (self: Gtk.TreeView) => boolean | null;
|
|
8915
|
-
onSelectCursorParent?: (self: Gtk.TreeView) => boolean | null;
|
|
8916
|
-
onSelectCursorRow?: (object: boolean, self: Gtk.TreeView) => boolean | null;
|
|
8917
|
-
onStartInteractiveSearch?: (self: Gtk.TreeView) => boolean | null;
|
|
8914
|
+
onRowExpanded?: ((iter: Gtk.TreeIter, path: Gtk.TreePath, self: Gtk.TreeView) => void) | null;
|
|
8915
|
+
onSelectAll?: ((self: Gtk.TreeView) => boolean) | null;
|
|
8916
|
+
onSelectCursorParent?: ((self: Gtk.TreeView) => boolean) | null;
|
|
8917
|
+
onSelectCursorRow?: ((object: boolean, self: Gtk.TreeView) => boolean) | null;
|
|
8918
|
+
onStartInteractiveSearch?: ((self: Gtk.TreeView) => boolean) | null;
|
|
8918
8919
|
/**
|
|
8919
8920
|
* The given row is about to be collapsed (hide its children nodes). Use this
|
|
8920
8921
|
* signal if you need to control the collapsibility of individual rows.
|
|
8921
8922
|
*/
|
|
8922
|
-
onTestCollapseRow?: (iter: Gtk.TreeIter, path: Gtk.TreePath, self: Gtk.TreeView) => boolean | null;
|
|
8923
|
+
onTestCollapseRow?: ((iter: Gtk.TreeIter, path: Gtk.TreePath, self: Gtk.TreeView) => boolean) | null;
|
|
8923
8924
|
/**
|
|
8924
8925
|
* The given row is about to be expanded (show its children nodes). Use this
|
|
8925
8926
|
* signal if you need to control the expandability of individual rows.
|
|
8926
8927
|
*/
|
|
8927
|
-
onTestExpandRow?: (iter: Gtk.TreeIter, path: Gtk.TreePath, self: Gtk.TreeView) => boolean | null;
|
|
8928
|
-
onToggleCursorRow?: (self: Gtk.TreeView) => boolean | null;
|
|
8929
|
-
onUnselectAll?: (self: Gtk.TreeView) => boolean | null;
|
|
8928
|
+
onTestExpandRow?: ((iter: Gtk.TreeIter, path: Gtk.TreePath, self: Gtk.TreeView) => boolean) | null;
|
|
8929
|
+
onToggleCursorRow?: ((self: Gtk.TreeView) => boolean) | null;
|
|
8930
|
+
onUnselectAll?: ((self: Gtk.TreeView) => boolean) | null;
|
|
8930
8931
|
ref?: Ref<Gtk.TreeView>;
|
|
8931
8932
|
};
|
|
8932
8933
|
/** Props for the {@link GtkVideo} widget. */
|
|
@@ -8983,34 +8984,34 @@ export type GtkSourceViewProps = GtkTextViewProps & {
|
|
|
8983
8984
|
/** Width of a tab character expressed in number of spaces. */
|
|
8984
8985
|
tabWidth?: number;
|
|
8985
8986
|
/** Keybinding signal to change case of the text at the current cursor position. */
|
|
8986
|
-
onChangeCase?: (caseType: GtkSource.ChangeCaseType, self: GtkSource.View) => void | null;
|
|
8987
|
+
onChangeCase?: ((caseType: GtkSource.ChangeCaseType, self: GtkSource.View) => void) | null;
|
|
8987
8988
|
/** Keybinding signal to edit a number at the current cursor position. */
|
|
8988
|
-
onChangeNumber?: (count: number, self: GtkSource.View) => void | null;
|
|
8989
|
+
onChangeNumber?: ((count: number, self: GtkSource.View) => void) | null;
|
|
8989
8990
|
/** Keybinding signal to join the lines currently selected. */
|
|
8990
|
-
onJoinLines?: (self: GtkSource.View) => void | null;
|
|
8991
|
+
onJoinLines?: ((self: GtkSource.View) => void) | null;
|
|
8991
8992
|
/**
|
|
8992
8993
|
* Emitted when a line mark has been activated (for instance when there
|
|
8993
8994
|
* was a button press in the line marks gutter).
|
|
8994
8995
|
*
|
|
8995
8996
|
* You can use `iter` to determine on which line the activation took place.
|
|
8996
8997
|
*/
|
|
8997
|
-
onLineMarkActivated?: (iter: Gtk.TextIter, button: number, state: Gdk.ModifierType, nPresses: number, self: GtkSource.View) => void | null;
|
|
8998
|
+
onLineMarkActivated?: ((iter: Gtk.TextIter, button: number, state: Gdk.ModifierType, nPresses: number, self: GtkSource.View) => void) | null;
|
|
8998
8999
|
/**
|
|
8999
9000
|
* The signal is a keybinding which gets emitted when the user initiates moving a line.
|
|
9000
9001
|
*
|
|
9001
9002
|
* The default binding key is Alt+Up/Down arrow. And moves the currently selected lines,
|
|
9002
9003
|
* or the current line up or down by one line.
|
|
9003
9004
|
*/
|
|
9004
|
-
onMoveLines?: (down: boolean, self: GtkSource.View) => void | null;
|
|
9005
|
+
onMoveLines?: ((down: boolean, self: GtkSource.View) => void) | null;
|
|
9005
9006
|
/** Keybinding signal to move the cursor to the matching bracket. */
|
|
9006
|
-
onMoveToMatchingBracket?: (extendSelection: boolean, self: GtkSource.View) => void | null;
|
|
9007
|
+
onMoveToMatchingBracket?: ((extendSelection: boolean, self: GtkSource.View) => void) | null;
|
|
9007
9008
|
/**
|
|
9008
9009
|
* The signal is a keybinding which gets emitted when the user initiates moving a word.
|
|
9009
9010
|
*
|
|
9010
9011
|
* The default binding key is Alt+Left/Right Arrow and moves the current selection, or the current
|
|
9011
9012
|
* word by one word.
|
|
9012
9013
|
*/
|
|
9013
|
-
onMoveWords?: (count: number, self: GtkSource.View) => void | null;
|
|
9014
|
+
onMoveWords?: ((count: number, self: GtkSource.View) => void) | null;
|
|
9014
9015
|
/**
|
|
9015
9016
|
* The signal is emitted to insert a new snippet into the view.
|
|
9016
9017
|
*
|
|
@@ -9018,7 +9019,7 @@ export type GtkSourceViewProps = GtkTextViewProps & {
|
|
|
9018
9019
|
*
|
|
9019
9020
|
* `location` will be updated to point at the end of the snippet.
|
|
9020
9021
|
*/
|
|
9021
|
-
onPushSnippet?: (snippet: GtkSource.Snippet, location: Gtk.TextIter, self: GtkSource.View) => void | null;
|
|
9022
|
+
onPushSnippet?: ((snippet: GtkSource.Snippet, location: Gtk.TextIter, self: GtkSource.View) => void) | null;
|
|
9022
9023
|
/**
|
|
9023
9024
|
* The signal is a key binding signal which gets
|
|
9024
9025
|
* emitted when the user requests a completion, by pressing
|
|
@@ -9031,7 +9032,7 @@ export type GtkSourceViewProps = GtkTextViewProps & {
|
|
|
9031
9032
|
* {@link GObjectsignal_emit_by_name} if they need to activate the completion by
|
|
9032
9033
|
* another means, for example with another key binding or a menu entry.
|
|
9033
9034
|
*/
|
|
9034
|
-
onShowCompletion?: (self: GtkSource.View) => void | null;
|
|
9035
|
+
onShowCompletion?: ((self: GtkSource.View) => void) | null;
|
|
9035
9036
|
/**
|
|
9036
9037
|
* Emitted when a the cursor was moved according to the smart home end setting.
|
|
9037
9038
|
*
|
|
@@ -9040,7 +9041,7 @@ export type GtkSourceViewProps = GtkTextViewProps & {
|
|
|
9040
9041
|
* out whether the cursor was moved by a normal home/end or by a smart
|
|
9041
9042
|
* home/end.
|
|
9042
9043
|
*/
|
|
9043
|
-
onSmartHomeEnd?: (iter: Gtk.TextIter, count: number, self: GtkSource.View) => void | null;
|
|
9044
|
+
onSmartHomeEnd?: ((iter: Gtk.TextIter, count: number, self: GtkSource.View) => void) | null;
|
|
9044
9045
|
/** Whether to enable undo/redo */
|
|
9045
9046
|
enableUndo?: boolean;
|
|
9046
9047
|
/** Callback when the buffer content changes. Use buffer.getText() to extract text. */
|
|
@@ -9293,7 +9294,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
|
|
|
9293
9294
|
* The default signal handler will run a default authentication
|
|
9294
9295
|
* dialog asynchronously for the user to interact with.
|
|
9295
9296
|
*/
|
|
9296
|
-
onAuthenticate?: (request: WebKit.AuthenticationRequest, self: WebKit.WebView) => boolean | null;
|
|
9297
|
+
onAuthenticate?: ((request: WebKit.AuthenticationRequest, self: WebKit.WebView) => boolean) | null;
|
|
9297
9298
|
/**
|
|
9298
9299
|
* Emitted when closing a #WebKitWebView is requested. This occurs when a
|
|
9299
9300
|
* call is made from JavaScript's <function>window.close</function> function or
|
|
@@ -9301,7 +9302,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
|
|
|
9301
9302
|
* It is the owner's responsibility to handle this signal to hide or
|
|
9302
9303
|
* destroy the #WebKitWebView, if necessary.
|
|
9303
9304
|
*/
|
|
9304
|
-
onClose?: (self: WebKit.WebView) => void | null;
|
|
9305
|
+
onClose?: ((self: WebKit.WebView) => void) | null;
|
|
9305
9306
|
/**
|
|
9306
9307
|
* Emitted when a context menu is about to be displayed to give the application
|
|
9307
9308
|
* a chance to customize the proposed menu, prevent the menu from being displayed,
|
|
@@ -9337,12 +9338,12 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
|
|
|
9337
9338
|
* The proposed #WebKitContextMenu passed in `context_menu` argument is only valid
|
|
9338
9339
|
* during the signal emission.
|
|
9339
9340
|
*/
|
|
9340
|
-
onContextMenu?: (contextMenu: WebKit.ContextMenu, hitTestResult: WebKit.HitTestResult, self: WebKit.WebView) => boolean | null;
|
|
9341
|
+
onContextMenu?: ((contextMenu: WebKit.ContextMenu, hitTestResult: WebKit.HitTestResult, self: WebKit.WebView) => boolean) | null;
|
|
9341
9342
|
/**
|
|
9342
9343
|
* Emitted after #WebKitWebView::context-menu signal, if the context menu is shown,
|
|
9343
9344
|
* to notify that the context menu is dismissed.
|
|
9344
9345
|
*/
|
|
9345
|
-
onContextMenuDismissed?: (self: WebKit.WebView) => void | null;
|
|
9346
|
+
onContextMenuDismissed?: ((self: WebKit.WebView) => void) | null;
|
|
9346
9347
|
/**
|
|
9347
9348
|
* Emitted when the creation of a new #WebKitWebView is requested.
|
|
9348
9349
|
* If this signal is handled the signal handler should return the
|
|
@@ -9360,7 +9361,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
|
|
|
9360
9361
|
* For creating views as response to automation tools requests, see the
|
|
9361
9362
|
* #WebKitAutomationSession::create-web-view signal.
|
|
9362
9363
|
*/
|
|
9363
|
-
onCreate?: (navigationAction: WebKit.NavigationAction, self: WebKit.WebView) => Gtk.Widget | null;
|
|
9364
|
+
onCreate?: ((navigationAction: WebKit.NavigationAction, self: WebKit.WebView) => Gtk.Widget) | null;
|
|
9364
9365
|
/**
|
|
9365
9366
|
* This signal is emitted when WebKit is requesting the client to decide a policy
|
|
9366
9367
|
* decision, such as whether to navigate to a page, open a new window or whether or
|
|
@@ -9404,7 +9405,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
|
|
|
9404
9405
|
* default signal handler will simply call webkit_policy_decision_use(). Only the first
|
|
9405
9406
|
* policy decision chosen for a given #WebKitPolicyDecision will have any affect.
|
|
9406
9407
|
*/
|
|
9407
|
-
onDecidePolicy?: (decision: WebKit.PolicyDecision, decisionType: WebKit.PolicyDecisionType, self: WebKit.WebView) => boolean | null;
|
|
9408
|
+
onDecidePolicy?: ((decision: WebKit.PolicyDecision, decisionType: WebKit.PolicyDecisionType, self: WebKit.WebView) => boolean) | null;
|
|
9408
9409
|
/**
|
|
9409
9410
|
* Emitted when JavaScript code calls
|
|
9410
9411
|
* <function>element.webkitRequestFullScreen</function>. If the
|
|
@@ -9415,20 +9416,20 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
|
|
|
9415
9416
|
* (e.g. hide some widgets that would otherwise be part of the
|
|
9416
9417
|
* full screen window).
|
|
9417
9418
|
*/
|
|
9418
|
-
onEnterFullscreen?: (self: WebKit.WebView) => boolean | null;
|
|
9419
|
+
onEnterFullscreen?: ((self: WebKit.WebView) => boolean) | null;
|
|
9419
9420
|
/**
|
|
9420
9421
|
* Prior to 2.46, this signal was emitted when insecure content was
|
|
9421
9422
|
* loaded in a secure content. Since 2.46, this signal is generally
|
|
9422
9423
|
* no longer emitted.
|
|
9423
9424
|
*/
|
|
9424
|
-
onInsecureContentDetected?: (event: WebKit.InsecureContentEvent, self: WebKit.WebView) => void | null;
|
|
9425
|
+
onInsecureContentDetected?: ((event: WebKit.InsecureContentEvent, self: WebKit.WebView) => void) | null;
|
|
9425
9426
|
/**
|
|
9426
9427
|
* Emitted when the #WebKitWebView is about to restore its top level
|
|
9427
9428
|
* window out of its full screen state. This signal can be used by
|
|
9428
9429
|
* client code to restore widgets hidden during the
|
|
9429
9430
|
* #WebKitWebView::enter-fullscreen stage for instance.
|
|
9430
9431
|
*/
|
|
9431
|
-
onLeaveFullscreen?: (self: WebKit.WebView) => boolean | null;
|
|
9432
|
+
onLeaveFullscreen?: ((self: WebKit.WebView) => boolean) | null;
|
|
9432
9433
|
/**
|
|
9433
9434
|
* Emitted when a load operation in `web_view` changes.
|
|
9434
9435
|
* The signal is always emitted with %WEBKIT_LOAD_STARTED when a
|
|
@@ -9475,7 +9476,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
|
|
|
9475
9476
|
* }
|
|
9476
9477
|
* ```
|
|
9477
9478
|
*/
|
|
9478
|
-
onLoadChanged?: (loadEvent: WebKit.LoadEvent, self: WebKit.WebView) => void | null;
|
|
9479
|
+
onLoadChanged?: ((loadEvent: WebKit.LoadEvent, self: WebKit.WebView) => void) | null;
|
|
9479
9480
|
/**
|
|
9480
9481
|
* Emitted when an error occurs during a load operation.
|
|
9481
9482
|
* If the error happened when starting to load data for a page
|
|
@@ -9488,7 +9489,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
|
|
|
9488
9489
|
* By default, if the signal is not handled, a stock error page will be displayed.
|
|
9489
9490
|
* You need to handle the signal if you want to provide your own error page.
|
|
9490
9491
|
*/
|
|
9491
|
-
onLoadFailed?: (loadEvent: WebKit.LoadEvent, failingUri: string, error: GLib.GError, self: WebKit.WebView) => boolean | null;
|
|
9492
|
+
onLoadFailed?: ((loadEvent: WebKit.LoadEvent, failingUri: string, error: GLib.GError, self: WebKit.WebView) => boolean) | null;
|
|
9492
9493
|
/**
|
|
9493
9494
|
* Emitted when a TLS error occurs during a load operation.
|
|
9494
9495
|
* To allow an exception for this `certificate`
|
|
@@ -9500,7 +9501,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
|
|
|
9500
9501
|
* If %FALSE is returned, #WebKitWebView::load-failed will be emitted. The load
|
|
9501
9502
|
* will finish regardless of the returned value.
|
|
9502
9503
|
*/
|
|
9503
|
-
onLoadFailedWithTlsErrors?: (failingUri: string, certificate: Gio.TlsCertificate, errors: Gio.TlsCertificateFlags, self: WebKit.WebView) => boolean | null;
|
|
9504
|
+
onLoadFailedWithTlsErrors?: ((failingUri: string, certificate: Gio.TlsCertificate, errors: Gio.TlsCertificateFlags, self: WebKit.WebView) => boolean) | null;
|
|
9504
9505
|
/**
|
|
9505
9506
|
* This signal is emitted when the mouse cursor moves over an
|
|
9506
9507
|
* element such as a link, image or a media element. To determine
|
|
@@ -9511,7 +9512,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
|
|
|
9511
9512
|
* The signal is emitted again when the mouse is moved out of the
|
|
9512
9513
|
* current element with a new `hit_test_result`.
|
|
9513
9514
|
*/
|
|
9514
|
-
onMouseTargetChanged?: (hitTestResult: WebKit.HitTestResult, modifiers: number, self: WebKit.WebView) => void | null;
|
|
9515
|
+
onMouseTargetChanged?: ((hitTestResult: WebKit.HitTestResult, modifiers: number, self: WebKit.WebView) => void) | null;
|
|
9515
9516
|
/**
|
|
9516
9517
|
* This signal is emitted when WebKit is requesting the client to
|
|
9517
9518
|
* decide about a permission request, such as allowing the browser
|
|
@@ -9560,7 +9561,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
|
|
|
9560
9561
|
* documentation of classes implementing #WebKitPermissionRequest interface to know
|
|
9561
9562
|
* their default action.
|
|
9562
9563
|
*/
|
|
9563
|
-
onPermissionRequest?: (request: WebKit.PermissionRequest, self: WebKit.WebView) => boolean | null;
|
|
9564
|
+
onPermissionRequest?: ((request: WebKit.PermissionRequest, self: WebKit.WebView) => boolean) | null;
|
|
9564
9565
|
/**
|
|
9565
9566
|
* Emitted when printing is requested on `web_view`, usually by a JavaScript call,
|
|
9566
9567
|
* before the print dialog is shown. This signal can be used to set the initial
|
|
@@ -9572,7 +9573,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
|
|
|
9572
9573
|
* You can connect to this signal and return %TRUE to cancel the print operation
|
|
9573
9574
|
* or implement your own print dialog.
|
|
9574
9575
|
*/
|
|
9575
|
-
onPrint?: (printOperation: WebKit.PrintOperation, self: WebKit.WebView) => boolean | null;
|
|
9576
|
+
onPrint?: ((printOperation: WebKit.PrintOperation, self: WebKit.WebView) => boolean) | null;
|
|
9576
9577
|
/**
|
|
9577
9578
|
* This signal allows the User-Agent to respond to permission requests for powerful features, as
|
|
9578
9579
|
* specified by the [Permissions W3C Specification](https://w3c.github.io/permissions/).
|
|
@@ -9582,7 +9583,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
|
|
|
9582
9583
|
* `query` and returning %TRUE. If the last reference of `query` is removed and the query has not
|
|
9583
9584
|
* been handled, the query result will be set to %WEBKIT_QUERY_PERMISSION_PROMPT.
|
|
9584
9585
|
*/
|
|
9585
|
-
onQueryPermissionState?: (query: WebKit.PermissionStateQuery, self: WebKit.WebView) => boolean | null;
|
|
9586
|
+
onQueryPermissionState?: ((query: WebKit.PermissionStateQuery, self: WebKit.WebView) => boolean) | null;
|
|
9586
9587
|
/**
|
|
9587
9588
|
* Emitted after #WebKitWebView::create on the newly created #WebKitWebView
|
|
9588
9589
|
* when it should be displayed to the user. When this signal is emitted
|
|
@@ -9591,14 +9592,14 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
|
|
|
9591
9592
|
* should be displayed, is already set on the #WebKitWindowProperties
|
|
9592
9593
|
* of `web_view`. See also webkit_web_view_get_window_properties().
|
|
9593
9594
|
*/
|
|
9594
|
-
onReadyToShow?: (self: WebKit.WebView) => void | null;
|
|
9595
|
+
onReadyToShow?: ((self: WebKit.WebView) => void) | null;
|
|
9595
9596
|
/**
|
|
9596
9597
|
* Emitted when a new resource is going to be loaded. The `request` parameter
|
|
9597
9598
|
* contains the #WebKitURIRequest that will be sent to the server.
|
|
9598
9599
|
* You can monitor the load operation by connecting to the different signals
|
|
9599
9600
|
* of `resource`.
|
|
9600
9601
|
*/
|
|
9601
|
-
onResourceLoadStarted?: (resource: WebKit.WebResource, request: WebKit.URIRequest, self: WebKit.WebView) => void | null;
|
|
9602
|
+
onResourceLoadStarted?: ((resource: WebKit.WebResource, request: WebKit.URIRequest, self: WebKit.WebView) => void) | null;
|
|
9602
9603
|
/**
|
|
9603
9604
|
* Emitted after #WebKitWebView::ready-to-show on the newly
|
|
9604
9605
|
* created #WebKitWebView when JavaScript code calls
|
|
@@ -9608,7 +9609,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
|
|
|
9608
9609
|
* main loop will be run to block user interaction in the parent
|
|
9609
9610
|
* #WebKitWebView until the new dialog is closed.
|
|
9610
9611
|
*/
|
|
9611
|
-
onRunAsModal?: (self: WebKit.WebView) => void | null;
|
|
9612
|
+
onRunAsModal?: ((self: WebKit.WebView) => void) | null;
|
|
9612
9613
|
/**
|
|
9613
9614
|
* This signal is emitted when the user interacts with a <input
|
|
9614
9615
|
* type='color' /> HTML element, requesting from WebKit to show
|
|
@@ -9624,7 +9625,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
|
|
|
9624
9625
|
* The default signal handler will asynchronously run a regular
|
|
9625
9626
|
* #GtkColorChooser for the user to interact with.
|
|
9626
9627
|
*/
|
|
9627
|
-
onRunColorChooser?: (request: WebKit.ColorChooserRequest, self: WebKit.WebView) => boolean | null;
|
|
9628
|
+
onRunColorChooser?: ((request: WebKit.ColorChooserRequest, self: WebKit.WebView) => boolean) | null;
|
|
9628
9629
|
/**
|
|
9629
9630
|
* This signal is emitted when the user interacts with a <input
|
|
9630
9631
|
* type='file' /> HTML element, requesting from WebKit to show
|
|
@@ -9638,7 +9639,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
|
|
|
9638
9639
|
* The default signal handler will asynchronously run a regular
|
|
9639
9640
|
* #GtkFileChooserDialog for the user to interact with.
|
|
9640
9641
|
*/
|
|
9641
|
-
onRunFileChooser?: (request: WebKit.FileChooserRequest, self: WebKit.WebView) => boolean | null;
|
|
9642
|
+
onRunFileChooser?: ((request: WebKit.FileChooserRequest, self: WebKit.WebView) => boolean) | null;
|
|
9642
9643
|
/**
|
|
9643
9644
|
* Emitted when JavaScript code calls <function>window.alert</function>,
|
|
9644
9645
|
* <function>window.confirm</function> or <function>window.prompt</function>,
|
|
@@ -9668,7 +9669,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
|
|
|
9668
9669
|
* If the last reference is removed on a #WebKitScriptDialog and the dialog has not been
|
|
9669
9670
|
* closed, webkit_script_dialog_close() will be called.
|
|
9670
9671
|
*/
|
|
9671
|
-
onScriptDialog?: (dialog: WebKit.ScriptDialog, self: WebKit.WebView) => boolean | null;
|
|
9672
|
+
onScriptDialog?: ((dialog: WebKit.ScriptDialog, self: WebKit.WebView) => boolean) | null;
|
|
9672
9673
|
/**
|
|
9673
9674
|
* This signal is emitted when a notification should be presented to the
|
|
9674
9675
|
* user. The `notification` is kept alive until either: 1) the web page cancels it
|
|
@@ -9677,7 +9678,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
|
|
|
9677
9678
|
* The default handler will emit a notification using libnotify, if built with
|
|
9678
9679
|
* support for it.
|
|
9679
9680
|
*/
|
|
9680
|
-
onShowNotification?: (notification: WebKit.Notification, self: WebKit.WebView) => boolean | null;
|
|
9681
|
+
onShowNotification?: ((notification: WebKit.Notification, self: WebKit.WebView) => boolean) | null;
|
|
9681
9682
|
/**
|
|
9682
9683
|
* This signal is emitted when a select element in `web_view` needs to display a
|
|
9683
9684
|
* dropdown menu. This signal can be used to show a custom menu, using `menu` to get
|
|
@@ -9688,7 +9689,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
|
|
|
9688
9689
|
*
|
|
9689
9690
|
* The default signal handler will pop up a #GtkMenu.
|
|
9690
9691
|
*/
|
|
9691
|
-
onShowOptionMenu?: (menu: WebKit.OptionMenu, rectangle: Gdk.Rectangle, self: WebKit.WebView) => boolean | null;
|
|
9692
|
+
onShowOptionMenu?: ((menu: WebKit.OptionMenu, rectangle: Gdk.Rectangle, self: WebKit.WebView) => boolean) | null;
|
|
9692
9693
|
/**
|
|
9693
9694
|
* This signal is emitted when a form is about to be submitted. The `request`
|
|
9694
9695
|
* argument passed contains information about the text fields of the form. This
|
|
@@ -9702,7 +9703,7 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
|
|
|
9702
9703
|
* If the last reference is removed on a #WebKitFormSubmissionRequest and the
|
|
9703
9704
|
* form has not been submitted, webkit_form_submission_request_submit() will be called.
|
|
9704
9705
|
*/
|
|
9705
|
-
onSubmitForm?: (request: WebKit.FormSubmissionRequest, self: WebKit.WebView) => void | null;
|
|
9706
|
+
onSubmitForm?: ((request: WebKit.FormSubmissionRequest, self: WebKit.WebView) => void) | null;
|
|
9706
9707
|
/**
|
|
9707
9708
|
* This signal is emitted when a #WebKitUserMessage is received from the
|
|
9708
9709
|
* #WebKitWebPage corresponding to `web_view`. You can reply to the message
|
|
@@ -9713,12 +9714,12 @@ export type WebKitWebViewProps = WebKitWebViewBaseProps & {
|
|
|
9713
9714
|
* and the message has not been replied to, the operation in the #WebKitWebPage will
|
|
9714
9715
|
* finish with error %WEBKIT_USER_MESSAGE_UNHANDLED_MESSAGE.
|
|
9715
9716
|
*/
|
|
9716
|
-
onUserMessageReceived?: (message: WebKit.UserMessage, self: WebKit.WebView) => boolean | null;
|
|
9717
|
+
onUserMessageReceived?: ((message: WebKit.UserMessage, self: WebKit.WebView) => boolean) | null;
|
|
9717
9718
|
/**
|
|
9718
9719
|
* This signal is emitted when the web process terminates abnormally due
|
|
9719
9720
|
* to `reason`.
|
|
9720
9721
|
*/
|
|
9721
|
-
onWebProcessTerminated?: (reason: WebKit.WebProcessTerminationReason, self: WebKit.WebView) => void | null;
|
|
9722
|
+
onWebProcessTerminated?: ((reason: WebKit.WebProcessTerminationReason, self: WebKit.WebView) => void) | null;
|
|
9722
9723
|
children?: ReactNode;
|
|
9723
9724
|
ref?: Ref<WebKit.WebView>;
|
|
9724
9725
|
};
|
|
@@ -18452,6 +18453,7 @@ export declare const AdwTabOverview: "AdwTabOverview";
|
|
|
18452
18453
|
* are the accessible parent objects of the child widgets.
|
|
18453
18454
|
*/
|
|
18454
18455
|
export declare const AdwTabView: "AdwTabView";
|
|
18456
|
+
/** A Vte.Terminal widget element. */
|
|
18455
18457
|
export declare const VteTerminal: "VteTerminal";
|
|
18456
18458
|
/**
|
|
18457
18459
|
* A single-line text entry.
|
|
@@ -19468,6 +19470,7 @@ export declare const GtkVolumeButton: "GtkVolumeButton";
|
|
|
19468
19470
|
* you don't need to embed it in a #GtkScrolledWindow.
|
|
19469
19471
|
*/
|
|
19470
19472
|
export declare const WebKitWebView: "WebKitWebView";
|
|
19473
|
+
/** A WebKit.WebViewBase widget element. */
|
|
19471
19474
|
export declare const WebKitWebViewBase: "WebKitWebViewBase";
|
|
19472
19475
|
/**
|
|
19473
19476
|
* Shows window frame controls.
|