@gtkx/react 0.18.8 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/internal.d.ts +6 -0
- package/dist/generated/internal.d.ts.map +1 -1
- package/dist/generated/internal.js +331 -44
- package/dist/generated/internal.js.map +1 -1
- package/dist/generated/jsx.d.ts +178 -2
- package/dist/generated/jsx.d.ts.map +1 -1
- package/dist/generated/jsx.js.map +1 -1
- package/dist/host-config.d.ts.map +1 -1
- package/dist/host-config.js +46 -10
- package/dist/host-config.js.map +1 -1
- package/dist/jsx.d.ts +133 -13
- package/dist/jsx.d.ts.map +1 -1
- package/dist/jsx.js +41 -2
- package/dist/jsx.js.map +1 -1
- package/dist/metadata.d.ts +1 -0
- package/dist/metadata.d.ts.map +1 -1
- package/dist/metadata.js +3 -1
- package/dist/metadata.js.map +1 -1
- package/dist/node.d.ts +2 -0
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +22 -6
- package/dist/node.js.map +1 -1
- package/dist/nodes/column-view-column.d.ts +5 -1
- package/dist/nodes/column-view-column.d.ts.map +1 -1
- package/dist/nodes/column-view-column.js +31 -7
- package/dist/nodes/column-view-column.js.map +1 -1
- package/dist/nodes/column-view.d.ts +4 -3
- package/dist/nodes/column-view.d.ts.map +1 -1
- package/dist/nodes/column-view.js +47 -12
- package/dist/nodes/column-view.js.map +1 -1
- package/dist/nodes/drop-down.d.ts +12 -2
- package/dist/nodes/drop-down.d.ts.map +1 -1
- package/dist/nodes/drop-down.js +151 -5
- package/dist/nodes/drop-down.js.map +1 -1
- package/dist/nodes/event-controller.d.ts +1 -0
- package/dist/nodes/event-controller.d.ts.map +1 -1
- package/dist/nodes/event-controller.js +11 -3
- package/dist/nodes/event-controller.js.map +1 -1
- package/dist/nodes/fixed-child.d.ts +1 -2
- package/dist/nodes/fixed-child.d.ts.map +1 -1
- package/dist/nodes/fixed-child.js +21 -21
- package/dist/nodes/fixed-child.js.map +1 -1
- package/dist/nodes/font-dialog-button.d.ts +1 -1
- package/dist/nodes/font-dialog-button.d.ts.map +1 -1
- package/dist/nodes/font-dialog-button.js +8 -0
- package/dist/nodes/font-dialog-button.js.map +1 -1
- package/dist/nodes/grid-view.d.ts +6 -5
- package/dist/nodes/grid-view.d.ts.map +1 -1
- package/dist/nodes/grid-view.js +23 -18
- package/dist/nodes/grid-view.js.map +1 -1
- package/dist/nodes/internal/accessible.d.ts +5 -0
- package/dist/nodes/internal/accessible.d.ts.map +1 -0
- package/dist/nodes/internal/accessible.js +119 -0
- package/dist/nodes/internal/accessible.js.map +1 -0
- package/dist/nodes/internal/base-item-renderer.d.ts.map +1 -1
- package/dist/nodes/internal/base-item-renderer.js +0 -1
- package/dist/nodes/internal/base-item-renderer.js.map +1 -1
- package/dist/nodes/internal/construct.d.ts +10 -0
- package/dist/nodes/internal/construct.d.ts.map +1 -0
- package/dist/nodes/internal/construct.js +68 -0
- package/dist/nodes/internal/construct.js.map +1 -0
- package/dist/nodes/internal/grid-item-renderer.d.ts +1 -0
- package/dist/nodes/internal/grid-item-renderer.d.ts.map +1 -1
- package/dist/nodes/internal/grid-item-renderer.js +6 -0
- package/dist/nodes/internal/grid-item-renderer.js.map +1 -1
- package/dist/nodes/internal/header-item-renderer.d.ts +23 -0
- package/dist/nodes/internal/header-item-renderer.d.ts.map +1 -0
- package/dist/nodes/internal/header-item-renderer.js +87 -0
- package/dist/nodes/internal/header-item-renderer.js.map +1 -0
- package/dist/nodes/internal/header-renderer-manager.d.ts +13 -0
- package/dist/nodes/internal/header-renderer-manager.d.ts.map +1 -0
- package/dist/nodes/internal/header-renderer-manager.js +20 -0
- package/dist/nodes/internal/header-renderer-manager.js.map +1 -0
- package/dist/nodes/internal/list-item-renderer.d.ts +1 -0
- package/dist/nodes/internal/list-item-renderer.d.ts.map +1 -1
- package/dist/nodes/internal/list-item-renderer.js +6 -0
- package/dist/nodes/internal/list-item-renderer.js.map +1 -1
- package/dist/nodes/internal/list-store.d.ts +10 -11
- package/dist/nodes/internal/list-store.d.ts.map +1 -1
- package/dist/nodes/internal/list-store.js +28 -29
- package/dist/nodes/internal/list-store.js.map +1 -1
- package/dist/nodes/internal/sectioned-list-store.d.ts +50 -0
- package/dist/nodes/internal/sectioned-list-store.d.ts.map +1 -0
- package/dist/nodes/internal/sectioned-list-store.js +250 -0
- package/dist/nodes/internal/sectioned-list-store.js.map +1 -0
- package/dist/nodes/internal/selection-helpers.d.ts +12 -0
- package/dist/nodes/internal/selection-helpers.d.ts.map +1 -0
- package/dist/nodes/internal/selection-helpers.js +25 -0
- package/dist/nodes/internal/selection-helpers.js.map +1 -0
- package/dist/nodes/internal/selection-model-controller.d.ts.map +1 -1
- package/dist/nodes/internal/selection-model-controller.js +3 -0
- package/dist/nodes/internal/selection-model-controller.js.map +1 -1
- package/dist/nodes/internal/simple-list-store.d.ts +7 -12
- package/dist/nodes/internal/simple-list-store.d.ts.map +1 -1
- package/dist/nodes/internal/simple-list-store.js +58 -35
- package/dist/nodes/internal/simple-list-store.js.map +1 -1
- package/dist/nodes/internal/text-buffer-controller.d.ts +4 -0
- package/dist/nodes/internal/text-buffer-controller.d.ts.map +1 -1
- package/dist/nodes/internal/text-buffer-controller.js +49 -9
- package/dist/nodes/internal/text-buffer-controller.js.map +1 -1
- package/dist/nodes/internal/tree-store.d.ts +3 -0
- package/dist/nodes/internal/tree-store.d.ts.map +1 -1
- package/dist/nodes/internal/tree-store.js +55 -10
- package/dist/nodes/internal/tree-store.js.map +1 -1
- package/dist/nodes/list-section.d.ts +27 -0
- package/dist/nodes/list-section.d.ts.map +1 -0
- package/dist/nodes/list-section.js +43 -0
- package/dist/nodes/list-section.js.map +1 -0
- package/dist/nodes/list-view.d.ts +6 -3
- package/dist/nodes/list-view.d.ts.map +1 -1
- package/dist/nodes/list-view.js +54 -14
- package/dist/nodes/list-view.js.map +1 -1
- package/dist/nodes/models/list.d.ts +13 -5
- package/dist/nodes/models/list.d.ts.map +1 -1
- package/dist/nodes/models/list.js +135 -21
- package/dist/nodes/models/list.js.map +1 -1
- package/dist/nodes/shortcut.d.ts +3 -2
- package/dist/nodes/shortcut.d.ts.map +1 -1
- package/dist/nodes/shortcut.js +19 -4
- package/dist/nodes/shortcut.js.map +1 -1
- package/dist/nodes/text-anchor.d.ts.map +1 -1
- package/dist/nodes/text-anchor.js +7 -1
- package/dist/nodes/text-anchor.js.map +1 -1
- package/dist/nodes/text-tag.d.ts.map +1 -1
- package/dist/nodes/text-tag.js +5 -1
- package/dist/nodes/text-tag.js.map +1 -1
- package/dist/nodes/text-view.d.ts +1 -0
- package/dist/nodes/text-view.d.ts.map +1 -1
- package/dist/nodes/text-view.js +4 -0
- package/dist/nodes/text-view.js.map +1 -1
- package/dist/nodes/widget.d.ts +0 -2
- package/dist/nodes/widget.d.ts.map +1 -1
- package/dist/nodes/widget.js +44 -61
- package/dist/nodes/widget.js.map +1 -1
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +2 -2
- package/dist/registry.js.map +1 -1
- package/package.json +3 -3
- package/src/generated/internal.ts +333 -44
- package/src/generated/jsx.ts +178 -2
- package/src/host-config.ts +41 -10
- package/src/jsx.ts +166 -15
- package/src/metadata.ts +5 -1
- package/src/node.ts +20 -6
- package/src/nodes/column-view-column.ts +35 -7
- package/src/nodes/column-view.ts +63 -13
- package/src/nodes/drop-down.ts +182 -6
- package/src/nodes/event-controller.ts +11 -3
- package/src/nodes/fixed-child.ts +24 -23
- package/src/nodes/font-dialog-button.ts +10 -0
- package/src/nodes/grid-view.ts +29 -19
- package/src/nodes/internal/accessible.ts +156 -0
- package/src/nodes/internal/base-item-renderer.ts +0 -1
- package/src/nodes/internal/construct.ts +90 -0
- package/src/nodes/internal/grid-item-renderer.ts +7 -0
- package/src/nodes/internal/header-item-renderer.ts +105 -0
- package/src/nodes/internal/header-renderer-manager.ts +33 -0
- package/src/nodes/internal/list-item-renderer.ts +7 -0
- package/src/nodes/internal/list-store.ts +32 -30
- package/src/nodes/internal/sectioned-list-store.ts +287 -0
- package/src/nodes/internal/selection-helpers.ts +35 -0
- package/src/nodes/internal/selection-model-controller.ts +4 -0
- package/src/nodes/internal/simple-list-store.ts +60 -43
- package/src/nodes/internal/text-buffer-controller.ts +51 -8
- package/src/nodes/internal/tree-store.ts +61 -9
- package/src/nodes/list-section.ts +64 -0
- package/src/nodes/list-view.ts +65 -14
- package/src/nodes/models/list.ts +147 -37
- package/src/nodes/shortcut.ts +22 -5
- package/src/nodes/text-anchor.ts +6 -1
- package/src/nodes/text-tag.ts +7 -1
- package/src/nodes/text-view.ts +5 -0
- package/src/nodes/widget.ts +45 -62
- package/src/registry.ts +4 -2
- package/dist/nodes/models/grid.d.ts +0 -28
- package/dist/nodes/models/grid.d.ts.map +0 -1
- package/dist/nodes/models/grid.js +0 -69
- package/dist/nodes/models/grid.js.map +0 -1
- package/dist/nodes/shortcut-controller.d.ts +0 -10
- package/dist/nodes/shortcut-controller.d.ts.map +0 -1
- package/dist/nodes/shortcut-controller.js +0 -23
- package/dist/nodes/shortcut-controller.js.map +0 -1
- package/src/nodes/models/grid.ts +0 -105
- package/src/nodes/shortcut-controller.ts +0 -27
package/dist/generated/jsx.d.ts
CHANGED
|
@@ -25,6 +25,13 @@ export interface WidgetProps {
|
|
|
25
25
|
canTarget?: boolean;
|
|
26
26
|
/** A list of css classes applied to this widget. */
|
|
27
27
|
cssClasses?: string[];
|
|
28
|
+
/**
|
|
29
|
+
* The name of this widget in the CSS tree.
|
|
30
|
+
*
|
|
31
|
+
* This property is meant to be set by widget implementations,
|
|
32
|
+
* typically in their instance init function.
|
|
33
|
+
*/
|
|
34
|
+
cssName?: string;
|
|
28
35
|
/** The cursor used by `widget`. */
|
|
29
36
|
cursor?: Gdk.Cursor | null;
|
|
30
37
|
/**
|
|
@@ -300,8 +307,6 @@ export interface WidgetProps {
|
|
|
300
307
|
* detail strings for the notify signal.
|
|
301
308
|
*/
|
|
302
309
|
onNotify?: ((pspec: GObject.ParamSpec, self: Gtk.Widget) => void) | null;
|
|
303
|
-
/** When set to true, the widget will grab focus. Useful for focusing a widget when a condition becomes true. */
|
|
304
|
-
grabFocus?: boolean;
|
|
305
310
|
/** Children elements (child widgets or event controllers). */
|
|
306
311
|
children?: ReactNode;
|
|
307
312
|
}
|
|
@@ -1308,6 +1313,12 @@ export interface GtkAppChooserButtonProps extends WidgetProps {
|
|
|
1308
1313
|
* a `GtkAppChooserDialog`.
|
|
1309
1314
|
*/
|
|
1310
1315
|
showDialogItem?: boolean;
|
|
1316
|
+
/**
|
|
1317
|
+
* The content type of the `GtkAppChooser` object.
|
|
1318
|
+
*
|
|
1319
|
+
* See `GContentType` for more information about content types.
|
|
1320
|
+
*/
|
|
1321
|
+
contentType?: string;
|
|
1311
1322
|
/**
|
|
1312
1323
|
* Emitted to when the button is activated.
|
|
1313
1324
|
*
|
|
@@ -1328,12 +1339,25 @@ export interface GtkAppChooserButtonProps extends WidgetProps {
|
|
|
1328
1339
|
}
|
|
1329
1340
|
/** Props for the {@link GtkAppChooserDialog} widget. */
|
|
1330
1341
|
export interface GtkAppChooserDialogProps extends GtkDialogProps {
|
|
1342
|
+
/**
|
|
1343
|
+
* The GFile used by the `GtkAppChooserDialog`.
|
|
1344
|
+
*
|
|
1345
|
+
* The dialog's `GtkAppChooserWidget` content type will
|
|
1346
|
+
* be guessed from the file, if present.
|
|
1347
|
+
*/
|
|
1348
|
+
gfile?: Gio.File;
|
|
1331
1349
|
/**
|
|
1332
1350
|
* The text to show at the top of the dialog.
|
|
1333
1351
|
*
|
|
1334
1352
|
* The string may contain Pango markup.
|
|
1335
1353
|
*/
|
|
1336
1354
|
heading?: string;
|
|
1355
|
+
/**
|
|
1356
|
+
* The content type of the `GtkAppChooser` object.
|
|
1357
|
+
*
|
|
1358
|
+
* See `GContentType` for more information about content types.
|
|
1359
|
+
*/
|
|
1360
|
+
contentType?: string;
|
|
1337
1361
|
ref?: Ref<Gtk.AppChooserDialog>;
|
|
1338
1362
|
}
|
|
1339
1363
|
/** Props for the {@link GtkAppChooserWidget} widget. */
|
|
@@ -1378,6 +1402,12 @@ export interface GtkAppChooserWidgetProps extends WidgetProps {
|
|
|
1378
1402
|
* among the other applications.
|
|
1379
1403
|
*/
|
|
1380
1404
|
showRecommended?: boolean;
|
|
1405
|
+
/**
|
|
1406
|
+
* The content type of the `GtkAppChooser` object.
|
|
1407
|
+
*
|
|
1408
|
+
* See `GContentType` for more information about content types.
|
|
1409
|
+
*/
|
|
1410
|
+
contentType?: string;
|
|
1381
1411
|
/**
|
|
1382
1412
|
* Emitted when an application item is activated from the widget's list.
|
|
1383
1413
|
*
|
|
@@ -1465,6 +1495,14 @@ export interface GtkAspectFrameProps extends WidgetProps {
|
|
|
1465
1495
|
}
|
|
1466
1496
|
/** Props for the {@link GtkAssistant} widget. */
|
|
1467
1497
|
export interface GtkAssistantProps extends GtkWindowProps {
|
|
1498
|
+
/**
|
|
1499
|
+
* %TRUE if the assistant uses a `GtkHeaderBar` for action buttons
|
|
1500
|
+
* instead of the action-area.
|
|
1501
|
+
*
|
|
1502
|
+
* For technical reasons, this property is declared as an integer
|
|
1503
|
+
* property, but you should only set it to %TRUE or %FALSE.
|
|
1504
|
+
*/
|
|
1505
|
+
useHeaderBar?: number;
|
|
1468
1506
|
/**
|
|
1469
1507
|
* Emitted when the apply button is clicked.
|
|
1470
1508
|
*
|
|
@@ -1896,6 +1934,30 @@ export interface AdwCarouselIndicatorLinesProps extends WidgetProps {
|
|
|
1896
1934
|
}
|
|
1897
1935
|
/** Props for the {@link GtkCellView} widget. */
|
|
1898
1936
|
export interface GtkCellViewProps extends WidgetProps {
|
|
1937
|
+
/**
|
|
1938
|
+
* The `GtkCellArea` rendering cells
|
|
1939
|
+
*
|
|
1940
|
+
* If no area is specified when creating the cell view with gtk_cell_view_new_with_context()
|
|
1941
|
+
* a horizontally oriented `GtkCellArea`Box will be used.
|
|
1942
|
+
*
|
|
1943
|
+
* since 3.0
|
|
1944
|
+
*/
|
|
1945
|
+
cellArea?: Gtk.CellArea;
|
|
1946
|
+
/**
|
|
1947
|
+
* The `GtkCellAreaContext` used to compute the geometry of the cell view.
|
|
1948
|
+
*
|
|
1949
|
+
* A group of cell views can be assigned the same context in order to
|
|
1950
|
+
* ensure the sizes and cell alignments match across all the views with
|
|
1951
|
+
* the same context.
|
|
1952
|
+
*
|
|
1953
|
+
* `GtkComboBox` menus uses this to assign the same context to all cell views
|
|
1954
|
+
* in the menu items for a single menu (each submenu creates its own
|
|
1955
|
+
* context since the size of each submenu does not depend on parent
|
|
1956
|
+
* or sibling menus).
|
|
1957
|
+
*
|
|
1958
|
+
* since 3.0
|
|
1959
|
+
*/
|
|
1960
|
+
cellAreaContext?: Gtk.CellAreaContext;
|
|
1899
1961
|
/**
|
|
1900
1962
|
* Whether all cells should be draw as sensitive for this view regardless
|
|
1901
1963
|
* of the actual cell properties (used to make menus with submenus appear
|
|
@@ -2335,6 +2397,8 @@ export interface GtkComboBoxProps extends WidgetProps {
|
|
|
2335
2397
|
* {@link ComboBox.has-entry} is %TRUE.
|
|
2336
2398
|
*/
|
|
2337
2399
|
entryTextColumn?: number;
|
|
2400
|
+
/** Whether the combo box has an entry. */
|
|
2401
|
+
hasEntry?: boolean;
|
|
2338
2402
|
/** The `has-frame` property controls whether a frame is drawn around the entry. */
|
|
2339
2403
|
hasFrame?: boolean;
|
|
2340
2404
|
/**
|
|
@@ -2488,6 +2552,7 @@ export interface AdwComboRowProps extends AdwActionRowProps {
|
|
|
2488
2552
|
}
|
|
2489
2553
|
/** Props for the {@link GtkSourceCompletionCell} widget. */
|
|
2490
2554
|
export interface GtkSourceCompletionCellProps extends WidgetProps {
|
|
2555
|
+
column?: GtkSource.CompletionColumn;
|
|
2491
2556
|
markup?: string;
|
|
2492
2557
|
paintable?: Gdk.Paintable;
|
|
2493
2558
|
text?: string | null;
|
|
@@ -2569,6 +2634,27 @@ export interface AdwDialogProps extends WidgetProps {
|
|
|
2569
2634
|
}
|
|
2570
2635
|
/** Props for the {@link GtkDialog} widget. */
|
|
2571
2636
|
export interface GtkDialogProps extends GtkWindowProps {
|
|
2637
|
+
/**
|
|
2638
|
+
* %TRUE if the dialog uses a headerbar for action buttons
|
|
2639
|
+
* instead of the action-area.
|
|
2640
|
+
*
|
|
2641
|
+
* For technical reasons, this property is declared as an integer
|
|
2642
|
+
* property, but you should only set it to %TRUE or %FALSE.
|
|
2643
|
+
*
|
|
2644
|
+
* ## Creating a dialog with headerbar
|
|
2645
|
+
*
|
|
2646
|
+
* Builtin `GtkDialog` subclasses such as {@link ColorChooserDialog}
|
|
2647
|
+
* set this property according to platform conventions (using the
|
|
2648
|
+
* {@link Settings.gtk-dialogs-use-header} setting).
|
|
2649
|
+
*
|
|
2650
|
+
* Here is how you can achieve the same:
|
|
2651
|
+
*
|
|
2652
|
+
* ```c
|
|
2653
|
+
* g_object_get (settings, "gtk-dialogs-use-header", &header, NULL);
|
|
2654
|
+
* dialog = g_object_new (GTK_TYPE_DIALOG, header, TRUE, NULL);
|
|
2655
|
+
* ```
|
|
2656
|
+
*/
|
|
2657
|
+
useHeaderBar?: number;
|
|
2572
2658
|
/**
|
|
2573
2659
|
* Emitted when an action widget is clicked.
|
|
2574
2660
|
*
|
|
@@ -3818,6 +3904,10 @@ export interface GtkGridViewProps extends GtkListBaseProps {
|
|
|
3818
3904
|
}
|
|
3819
3905
|
/** Props for the {@link GtkSourceGutter} widget. */
|
|
3820
3906
|
export interface GtkSourceGutterProps extends WidgetProps {
|
|
3907
|
+
/** The #GtkSourceView of the gutter. */
|
|
3908
|
+
view?: GtkSource.View;
|
|
3909
|
+
/** The text window type on which the window is placed. */
|
|
3910
|
+
windowType?: Gtk.TextWindowType;
|
|
3821
3911
|
ref?: Ref<GtkSource.Gutter>;
|
|
3822
3912
|
}
|
|
3823
3913
|
/** Props for the {@link GtkSourceGutterRenderer} widget. */
|
|
@@ -3983,6 +4073,13 @@ export interface GtkIconViewProps extends WidgetProps {
|
|
|
3983
4073
|
* will be emitted after a single click.
|
|
3984
4074
|
*/
|
|
3985
4075
|
activateOnSingleClick?: boolean;
|
|
4076
|
+
/**
|
|
4077
|
+
* The `GtkCellArea` used to layout cell renderers for this view.
|
|
4078
|
+
*
|
|
4079
|
+
* If no area is specified when creating the icon view with gtk_icon_view_new_with_area()
|
|
4080
|
+
* a `GtkCellAreaBox` will be used.
|
|
4081
|
+
*/
|
|
4082
|
+
cellArea?: Gtk.CellArea;
|
|
3986
4083
|
/**
|
|
3987
4084
|
* The column-spacing property specifies the space which is inserted between
|
|
3988
4085
|
* the columns of the icon view.
|
|
@@ -4555,6 +4652,12 @@ export interface GtkLabelProps extends WidgetProps {
|
|
|
4555
4652
|
}
|
|
4556
4653
|
/** Props for the {@link AdwLayoutSlot} widget. */
|
|
4557
4654
|
export interface AdwLayoutSlotProps extends WidgetProps {
|
|
4655
|
+
/**
|
|
4656
|
+
* The slot ID.
|
|
4657
|
+
*
|
|
4658
|
+
* See {@link MultiLayoutViewset_child}.
|
|
4659
|
+
*/
|
|
4660
|
+
id?: string;
|
|
4558
4661
|
ref?: Ref<Adw.LayoutSlot>;
|
|
4559
4662
|
}
|
|
4560
4663
|
/** Props for the {@link AdwLeaflet} widget. */
|
|
@@ -5006,6 +5109,8 @@ export interface AdwMessageDialogProps extends GtkWindowProps {
|
|
|
5006
5109
|
}
|
|
5007
5110
|
/** Props for the {@link GtkMessageDialog} widget. */
|
|
5008
5111
|
export interface GtkMessageDialogProps extends GtkDialogProps {
|
|
5112
|
+
/** Set of buttons to display on the dialog. */
|
|
5113
|
+
buttons?: Gtk.ButtonsType;
|
|
5009
5114
|
/** The type of the message. */
|
|
5010
5115
|
messageType?: Gtk.MessageType;
|
|
5011
5116
|
/** The secondary text of the message dialog. */
|
|
@@ -7002,6 +7107,7 @@ export interface GtkSourceStyleSchemeChooserWidgetProps extends WidgetProps {
|
|
|
7002
7107
|
}
|
|
7003
7108
|
/** Props for the {@link GtkSourceStyleSchemePreview} widget. */
|
|
7004
7109
|
export interface GtkSourceStyleSchemePreviewProps extends WidgetProps {
|
|
7110
|
+
scheme: GtkSource.StyleScheme;
|
|
7005
7111
|
selected?: boolean;
|
|
7006
7112
|
/** The name of the action with which this widget should be associated. */
|
|
7007
7113
|
actionName?: string;
|
|
@@ -8726,6 +8832,13 @@ export interface GtkVolumeButtonProps extends GtkScaleButtonProps {
|
|
|
8726
8832
|
}
|
|
8727
8833
|
/** Props for the {@link WebKitWebView} widget. */
|
|
8728
8834
|
export interface WebKitWebViewProps extends WebKitWebViewBaseProps {
|
|
8835
|
+
/**
|
|
8836
|
+
* The #WebKitAutomationBrowsingContextPresentation of #WebKitWebView. This should only be used when
|
|
8837
|
+
* creating a new #WebKitWebView as a response to #WebKitAutomationSession::create-web-view
|
|
8838
|
+
* signal request. If the new WebView was added to a new tab of current browsing context window
|
|
8839
|
+
* %WEBKIT_AUTOMATION_BROWSING_CONTEXT_PRESENTATION_TAB should be used.
|
|
8840
|
+
*/
|
|
8841
|
+
automationPresentationType?: WebKit.AutomationBrowsingContextPresentation;
|
|
8729
8842
|
/**
|
|
8730
8843
|
* Capture state of the camera device. Whenever the user grants a media-request sent by the web
|
|
8731
8844
|
* page, requesting video capture capabilities (`navigator.mediaDevices.getUserMedia({video:
|
|
@@ -8740,6 +8853,19 @@ export interface WebKitWebViewProps extends WebKitWebViewBaseProps {
|
|
|
8740
8853
|
* application.
|
|
8741
8854
|
*/
|
|
8742
8855
|
cameraCaptureState?: WebKit.MediaCaptureState;
|
|
8856
|
+
/**
|
|
8857
|
+
* The default Content-Security-Policy used by the webview as if it were set
|
|
8858
|
+
* by an HTTP header.
|
|
8859
|
+
*
|
|
8860
|
+
* This applies to all content loaded including through navigation or via the various
|
|
8861
|
+
* webkit_web_view_load_\* APIs. However do note that many WebKit APIs bypass
|
|
8862
|
+
* Content-Security-Policy in general such as #WebKitUserContentManager and
|
|
8863
|
+
* webkit_web_view_run_javascript().
|
|
8864
|
+
*
|
|
8865
|
+
* Policies are additive so if a website sets its own policy it still applies
|
|
8866
|
+
* on top of the policy set here.
|
|
8867
|
+
*/
|
|
8868
|
+
defaultContentSecurityPolicy?: string;
|
|
8743
8869
|
/**
|
|
8744
8870
|
* Capture state of the display device. Whenever the user grants a media-request sent by the web
|
|
8745
8871
|
* page, requesting screencasting capabilities (`navigator.mediaDevices.getDisplayMedia() this
|
|
@@ -8759,6 +8885,19 @@ export interface WebKitWebViewProps extends WebKitWebViewBaseProps {
|
|
|
8759
8885
|
* information see webkit_web_view_set_editable().
|
|
8760
8886
|
*/
|
|
8761
8887
|
editable?: boolean;
|
|
8888
|
+
/**
|
|
8889
|
+
* Whether the #WebKitWebView is controlled by automation tools (e.g. WebDriver, Selenium). This is
|
|
8890
|
+
* required for views returned as a response to #WebKitAutomationSession::create-web-view signal,
|
|
8891
|
+
* alongside any view you want to control during an automation session.
|
|
8892
|
+
*
|
|
8893
|
+
* As a %G_PARAM_CONSTRUCT_ONLY, you need to set it during construction and it can't be modified.
|
|
8894
|
+
*
|
|
8895
|
+
* If #WebKitWebView:related-view is also passed during construction, #WebKitWebView:is-controlled-by-automation
|
|
8896
|
+
* ignores its own parameter and inherits directly from the related view #WebKitWebView:is-controlled-by-automation
|
|
8897
|
+
* property. This is the recommended way when creating new views as a response to the #WebKitWebView::create
|
|
8898
|
+
* signal. For example, as response to JavaScript `window.open()` calls during an automation session.
|
|
8899
|
+
*/
|
|
8900
|
+
isControlledByAutomation?: boolean;
|
|
8762
8901
|
/**
|
|
8763
8902
|
* Whether the #WebKitWebView audio is muted. When %TRUE, audio is silenced.
|
|
8764
8903
|
* It may still be playing, i.e. #WebKitWebView:is-playing-audio may be %TRUE.
|
|
@@ -8778,8 +8917,32 @@ export interface WebKitWebViewProps extends WebKitWebViewBaseProps {
|
|
|
8778
8917
|
* application.
|
|
8779
8918
|
*/
|
|
8780
8919
|
microphoneCaptureState?: WebKit.MediaCaptureState;
|
|
8920
|
+
/** The #WebKitNetworkSession of the view */
|
|
8921
|
+
networkSession?: WebKit.NetworkSession;
|
|
8922
|
+
/**
|
|
8923
|
+
* The related #WebKitWebView used when creating the view to share the
|
|
8924
|
+
* same web process and network session. This property is not readable
|
|
8925
|
+
* because the related web view is only valid during the object construction.
|
|
8926
|
+
*/
|
|
8927
|
+
relatedView?: WebKit.WebView;
|
|
8781
8928
|
/** The #WebKitSettings of the view. */
|
|
8782
8929
|
settings?: WebKit.Settings;
|
|
8930
|
+
/** The #WebKitUserContentManager of the view. */
|
|
8931
|
+
userContentManager?: WebKit.UserContentManager;
|
|
8932
|
+
/** The #WebKitWebContext of the view. */
|
|
8933
|
+
webContext?: WebKit.WebContext;
|
|
8934
|
+
/**
|
|
8935
|
+
* This configures `web_view` to treat the content as a WebExtension.
|
|
8936
|
+
*
|
|
8937
|
+
* Note that this refers to the web standard [WebExtensions](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions)
|
|
8938
|
+
* and not WebKitWebExtensions.
|
|
8939
|
+
*
|
|
8940
|
+
* In practice this limits the Content-Security-Policies that are allowed to be set. Some details can be found in
|
|
8941
|
+
* [Chrome's documentation](https://developer.chrome.com/docs/extensions/mv3/intro/mv3-migration/#content-security-policy).
|
|
8942
|
+
*/
|
|
8943
|
+
webExtensionMode?: WebKit.WebExtensionMode;
|
|
8944
|
+
/** The #WebKitWebsitePolicies for the view. */
|
|
8945
|
+
websitePolicies?: WebKit.WebsitePolicies;
|
|
8783
8946
|
/**
|
|
8784
8947
|
* The zoom level of the #WebKitWebView content.
|
|
8785
8948
|
* See webkit_web_view_set_zoom_level() for more details.
|
|
@@ -9505,6 +9668,8 @@ export interface GtkDropControllerMotionProps extends EventControllerBaseProps {
|
|
|
9505
9668
|
export interface GtkDropTargetProps extends EventControllerBaseProps {
|
|
9506
9669
|
/** The `GdkDragActions` that this drop target supports. */
|
|
9507
9670
|
actions?: Gdk.DragAction;
|
|
9671
|
+
/** The `GdkContentFormats` that determine the supported data formats. */
|
|
9672
|
+
formats?: Gdk.ContentFormats;
|
|
9508
9673
|
/**
|
|
9509
9674
|
* Whether the drop data should be preloaded when the pointer is only
|
|
9510
9675
|
* hovering over the widget but has not been released.
|
|
@@ -9732,6 +9897,11 @@ export interface GtkEventControllerScrollProps extends EventControllerBaseProps
|
|
|
9732
9897
|
}
|
|
9733
9898
|
/** Props for the {@link GtkGesture} controller element. */
|
|
9734
9899
|
export interface GtkGestureProps extends EventControllerBaseProps {
|
|
9900
|
+
/**
|
|
9901
|
+
* The number of touch points that trigger
|
|
9902
|
+
* recognition on this gesture.
|
|
9903
|
+
*/
|
|
9904
|
+
nPoints?: number;
|
|
9735
9905
|
/**
|
|
9736
9906
|
* Emitted when the gesture is recognized.
|
|
9737
9907
|
*
|
|
@@ -9896,12 +10066,18 @@ export interface GtkGestureZoomProps extends GtkGestureProps {
|
|
|
9896
10066
|
}
|
|
9897
10067
|
/** Props for the {@link GtkPadController} controller element. */
|
|
9898
10068
|
export interface GtkPadControllerProps extends EventControllerBaseProps {
|
|
10069
|
+
/** The action group of the controller. */
|
|
10070
|
+
actionGroup?: Gio.ActionGroup;
|
|
10071
|
+
/** The pad of the controller. */
|
|
10072
|
+
pad?: Gdk.Device;
|
|
9899
10073
|
ref?: Ref<Gtk.PadController>;
|
|
9900
10074
|
}
|
|
9901
10075
|
/** Props for the {@link GtkShortcutController} controller element. */
|
|
9902
10076
|
export interface GtkShortcutControllerProps extends EventControllerBaseProps {
|
|
9903
10077
|
/** The modifiers that need to be pressed to allow mnemonics activation. */
|
|
9904
10078
|
mnemonicModifiers?: Gdk.ModifierType;
|
|
10079
|
+
/** A list model to take shortcuts from. */
|
|
10080
|
+
model?: Gio.ListModel;
|
|
9905
10081
|
/** What scope the shortcuts will be handled in. */
|
|
9906
10082
|
scope?: Gtk.ShortcutScope;
|
|
9907
10083
|
/**
|