@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.
Files changed (184) hide show
  1. package/dist/generated/internal.d.ts +6 -0
  2. package/dist/generated/internal.d.ts.map +1 -1
  3. package/dist/generated/internal.js +331 -44
  4. package/dist/generated/internal.js.map +1 -1
  5. package/dist/generated/jsx.d.ts +178 -2
  6. package/dist/generated/jsx.d.ts.map +1 -1
  7. package/dist/generated/jsx.js.map +1 -1
  8. package/dist/host-config.d.ts.map +1 -1
  9. package/dist/host-config.js +46 -10
  10. package/dist/host-config.js.map +1 -1
  11. package/dist/jsx.d.ts +133 -13
  12. package/dist/jsx.d.ts.map +1 -1
  13. package/dist/jsx.js +41 -2
  14. package/dist/jsx.js.map +1 -1
  15. package/dist/metadata.d.ts +1 -0
  16. package/dist/metadata.d.ts.map +1 -1
  17. package/dist/metadata.js +3 -1
  18. package/dist/metadata.js.map +1 -1
  19. package/dist/node.d.ts +2 -0
  20. package/dist/node.d.ts.map +1 -1
  21. package/dist/node.js +22 -6
  22. package/dist/node.js.map +1 -1
  23. package/dist/nodes/column-view-column.d.ts +5 -1
  24. package/dist/nodes/column-view-column.d.ts.map +1 -1
  25. package/dist/nodes/column-view-column.js +31 -7
  26. package/dist/nodes/column-view-column.js.map +1 -1
  27. package/dist/nodes/column-view.d.ts +4 -3
  28. package/dist/nodes/column-view.d.ts.map +1 -1
  29. package/dist/nodes/column-view.js +47 -12
  30. package/dist/nodes/column-view.js.map +1 -1
  31. package/dist/nodes/drop-down.d.ts +12 -2
  32. package/dist/nodes/drop-down.d.ts.map +1 -1
  33. package/dist/nodes/drop-down.js +151 -5
  34. package/dist/nodes/drop-down.js.map +1 -1
  35. package/dist/nodes/event-controller.d.ts +1 -0
  36. package/dist/nodes/event-controller.d.ts.map +1 -1
  37. package/dist/nodes/event-controller.js +11 -3
  38. package/dist/nodes/event-controller.js.map +1 -1
  39. package/dist/nodes/fixed-child.d.ts +1 -2
  40. package/dist/nodes/fixed-child.d.ts.map +1 -1
  41. package/dist/nodes/fixed-child.js +21 -21
  42. package/dist/nodes/fixed-child.js.map +1 -1
  43. package/dist/nodes/font-dialog-button.d.ts +1 -1
  44. package/dist/nodes/font-dialog-button.d.ts.map +1 -1
  45. package/dist/nodes/font-dialog-button.js +8 -0
  46. package/dist/nodes/font-dialog-button.js.map +1 -1
  47. package/dist/nodes/grid-view.d.ts +6 -5
  48. package/dist/nodes/grid-view.d.ts.map +1 -1
  49. package/dist/nodes/grid-view.js +23 -18
  50. package/dist/nodes/grid-view.js.map +1 -1
  51. package/dist/nodes/internal/accessible.d.ts +5 -0
  52. package/dist/nodes/internal/accessible.d.ts.map +1 -0
  53. package/dist/nodes/internal/accessible.js +119 -0
  54. package/dist/nodes/internal/accessible.js.map +1 -0
  55. package/dist/nodes/internal/base-item-renderer.d.ts.map +1 -1
  56. package/dist/nodes/internal/base-item-renderer.js +0 -1
  57. package/dist/nodes/internal/base-item-renderer.js.map +1 -1
  58. package/dist/nodes/internal/construct.d.ts +10 -0
  59. package/dist/nodes/internal/construct.d.ts.map +1 -0
  60. package/dist/nodes/internal/construct.js +68 -0
  61. package/dist/nodes/internal/construct.js.map +1 -0
  62. package/dist/nodes/internal/grid-item-renderer.d.ts +1 -0
  63. package/dist/nodes/internal/grid-item-renderer.d.ts.map +1 -1
  64. package/dist/nodes/internal/grid-item-renderer.js +6 -0
  65. package/dist/nodes/internal/grid-item-renderer.js.map +1 -1
  66. package/dist/nodes/internal/header-item-renderer.d.ts +23 -0
  67. package/dist/nodes/internal/header-item-renderer.d.ts.map +1 -0
  68. package/dist/nodes/internal/header-item-renderer.js +87 -0
  69. package/dist/nodes/internal/header-item-renderer.js.map +1 -0
  70. package/dist/nodes/internal/header-renderer-manager.d.ts +13 -0
  71. package/dist/nodes/internal/header-renderer-manager.d.ts.map +1 -0
  72. package/dist/nodes/internal/header-renderer-manager.js +20 -0
  73. package/dist/nodes/internal/header-renderer-manager.js.map +1 -0
  74. package/dist/nodes/internal/list-item-renderer.d.ts +1 -0
  75. package/dist/nodes/internal/list-item-renderer.d.ts.map +1 -1
  76. package/dist/nodes/internal/list-item-renderer.js +6 -0
  77. package/dist/nodes/internal/list-item-renderer.js.map +1 -1
  78. package/dist/nodes/internal/list-store.d.ts +10 -11
  79. package/dist/nodes/internal/list-store.d.ts.map +1 -1
  80. package/dist/nodes/internal/list-store.js +28 -29
  81. package/dist/nodes/internal/list-store.js.map +1 -1
  82. package/dist/nodes/internal/sectioned-list-store.d.ts +50 -0
  83. package/dist/nodes/internal/sectioned-list-store.d.ts.map +1 -0
  84. package/dist/nodes/internal/sectioned-list-store.js +250 -0
  85. package/dist/nodes/internal/sectioned-list-store.js.map +1 -0
  86. package/dist/nodes/internal/selection-helpers.d.ts +12 -0
  87. package/dist/nodes/internal/selection-helpers.d.ts.map +1 -0
  88. package/dist/nodes/internal/selection-helpers.js +25 -0
  89. package/dist/nodes/internal/selection-helpers.js.map +1 -0
  90. package/dist/nodes/internal/selection-model-controller.d.ts.map +1 -1
  91. package/dist/nodes/internal/selection-model-controller.js +3 -0
  92. package/dist/nodes/internal/selection-model-controller.js.map +1 -1
  93. package/dist/nodes/internal/simple-list-store.d.ts +7 -12
  94. package/dist/nodes/internal/simple-list-store.d.ts.map +1 -1
  95. package/dist/nodes/internal/simple-list-store.js +58 -35
  96. package/dist/nodes/internal/simple-list-store.js.map +1 -1
  97. package/dist/nodes/internal/text-buffer-controller.d.ts +4 -0
  98. package/dist/nodes/internal/text-buffer-controller.d.ts.map +1 -1
  99. package/dist/nodes/internal/text-buffer-controller.js +49 -9
  100. package/dist/nodes/internal/text-buffer-controller.js.map +1 -1
  101. package/dist/nodes/internal/tree-store.d.ts +3 -0
  102. package/dist/nodes/internal/tree-store.d.ts.map +1 -1
  103. package/dist/nodes/internal/tree-store.js +55 -10
  104. package/dist/nodes/internal/tree-store.js.map +1 -1
  105. package/dist/nodes/list-section.d.ts +27 -0
  106. package/dist/nodes/list-section.d.ts.map +1 -0
  107. package/dist/nodes/list-section.js +43 -0
  108. package/dist/nodes/list-section.js.map +1 -0
  109. package/dist/nodes/list-view.d.ts +6 -3
  110. package/dist/nodes/list-view.d.ts.map +1 -1
  111. package/dist/nodes/list-view.js +54 -14
  112. package/dist/nodes/list-view.js.map +1 -1
  113. package/dist/nodes/models/list.d.ts +13 -5
  114. package/dist/nodes/models/list.d.ts.map +1 -1
  115. package/dist/nodes/models/list.js +135 -21
  116. package/dist/nodes/models/list.js.map +1 -1
  117. package/dist/nodes/shortcut.d.ts +3 -2
  118. package/dist/nodes/shortcut.d.ts.map +1 -1
  119. package/dist/nodes/shortcut.js +19 -4
  120. package/dist/nodes/shortcut.js.map +1 -1
  121. package/dist/nodes/text-anchor.d.ts.map +1 -1
  122. package/dist/nodes/text-anchor.js +7 -1
  123. package/dist/nodes/text-anchor.js.map +1 -1
  124. package/dist/nodes/text-tag.d.ts.map +1 -1
  125. package/dist/nodes/text-tag.js +5 -1
  126. package/dist/nodes/text-tag.js.map +1 -1
  127. package/dist/nodes/text-view.d.ts +1 -0
  128. package/dist/nodes/text-view.d.ts.map +1 -1
  129. package/dist/nodes/text-view.js +4 -0
  130. package/dist/nodes/text-view.js.map +1 -1
  131. package/dist/nodes/widget.d.ts +0 -2
  132. package/dist/nodes/widget.d.ts.map +1 -1
  133. package/dist/nodes/widget.js +44 -61
  134. package/dist/nodes/widget.js.map +1 -1
  135. package/dist/registry.d.ts.map +1 -1
  136. package/dist/registry.js +2 -2
  137. package/dist/registry.js.map +1 -1
  138. package/package.json +3 -3
  139. package/src/generated/internal.ts +333 -44
  140. package/src/generated/jsx.ts +178 -2
  141. package/src/host-config.ts +41 -10
  142. package/src/jsx.ts +166 -15
  143. package/src/metadata.ts +5 -1
  144. package/src/node.ts +20 -6
  145. package/src/nodes/column-view-column.ts +35 -7
  146. package/src/nodes/column-view.ts +63 -13
  147. package/src/nodes/drop-down.ts +182 -6
  148. package/src/nodes/event-controller.ts +11 -3
  149. package/src/nodes/fixed-child.ts +24 -23
  150. package/src/nodes/font-dialog-button.ts +10 -0
  151. package/src/nodes/grid-view.ts +29 -19
  152. package/src/nodes/internal/accessible.ts +156 -0
  153. package/src/nodes/internal/base-item-renderer.ts +0 -1
  154. package/src/nodes/internal/construct.ts +90 -0
  155. package/src/nodes/internal/grid-item-renderer.ts +7 -0
  156. package/src/nodes/internal/header-item-renderer.ts +105 -0
  157. package/src/nodes/internal/header-renderer-manager.ts +33 -0
  158. package/src/nodes/internal/list-item-renderer.ts +7 -0
  159. package/src/nodes/internal/list-store.ts +32 -30
  160. package/src/nodes/internal/sectioned-list-store.ts +287 -0
  161. package/src/nodes/internal/selection-helpers.ts +35 -0
  162. package/src/nodes/internal/selection-model-controller.ts +4 -0
  163. package/src/nodes/internal/simple-list-store.ts +60 -43
  164. package/src/nodes/internal/text-buffer-controller.ts +51 -8
  165. package/src/nodes/internal/tree-store.ts +61 -9
  166. package/src/nodes/list-section.ts +64 -0
  167. package/src/nodes/list-view.ts +65 -14
  168. package/src/nodes/models/list.ts +147 -37
  169. package/src/nodes/shortcut.ts +22 -5
  170. package/src/nodes/text-anchor.ts +6 -1
  171. package/src/nodes/text-tag.ts +7 -1
  172. package/src/nodes/text-view.ts +5 -0
  173. package/src/nodes/widget.ts +45 -62
  174. package/src/registry.ts +4 -2
  175. package/dist/nodes/models/grid.d.ts +0 -28
  176. package/dist/nodes/models/grid.d.ts.map +0 -1
  177. package/dist/nodes/models/grid.js +0 -69
  178. package/dist/nodes/models/grid.js.map +0 -1
  179. package/dist/nodes/shortcut-controller.d.ts +0 -10
  180. package/dist/nodes/shortcut-controller.d.ts.map +0 -1
  181. package/dist/nodes/shortcut-controller.js +0 -23
  182. package/dist/nodes/shortcut-controller.js.map +0 -1
  183. package/src/nodes/models/grid.ts +0 -105
  184. package/src/nodes/shortcut-controller.ts +0 -27
@@ -1,3 +1,4 @@
1
+ import type { Type } from "@gtkx/ffi";
1
2
  /**
2
3
  * Internal metadata for the reconciler.
3
4
  * Runtime prop/signal resolution and constructor parameters.
@@ -5,6 +6,11 @@
5
6
  */
6
7
  /** Constructor parameters for each widget and controller type, derived from GIR analysis. */
7
8
  export declare const CONSTRUCTOR_PROPS: Record<string, string[]>;
9
+ /** Construct-only properties that can only be set during object construction via g_object_new. */
10
+ export declare const CONSTRUCT_ONLY_PROPS: Record<string, Record<string, {
11
+ girName: string;
12
+ ffiType: Type;
13
+ }>>;
8
14
  export declare const PROPS: Record<string, Record<string, [string | null, string]>>;
9
15
  /** Signal handler prop name to GTK signal name mapping for widgets and controllers. */
10
16
  export declare const SIGNALS: Record<string, Record<string, string>>;
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../src/generated/internal.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,6FAA6F;AAC7F,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CA+CtD,CAAC;AACF,eAAO,MAAM,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,GAAG,IAAI,EAAE,MAAM,CAAC,CAAC,CAo7CzE,CAAC;AACF,uFAAuF;AACvF,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAymB1D,CAAC"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../src/generated/internal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC;;;;GAIG;AACH,6FAA6F;AAC7F,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CA6MtD,CAAC;AACF,kGAAkG;AAClG,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,IAAI,CAAA;CAAE,CAAC,CA+HnG,CAAC;AACF,eAAO,MAAM,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,GAAG,IAAI,EAAE,MAAM,CAAC,CAAC,CAo7CzE,CAAC;AACF,uFAAuF;AACvF,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAymB1D,CAAC"}
@@ -5,52 +5,339 @@
5
5
  */
6
6
  /** Constructor parameters for each widget and controller type, derived from GIR analysis. */
7
7
  export const CONSTRUCTOR_PROPS = {
8
- AdwAlertDialog: ["heading", "body"],
9
- GtkAppChooserButton: ["contentType"],
10
- GtkAppChooserDialog: ["parent"],
11
- GtkAppChooserWidget: ["contentType"],
12
- GtkAspectFrame: ["xalign", "yalign", "ratio", "obeyChild"],
13
- AdwAvatar: ["size", "showInitials", "text"],
14
- AdwBanner: ["title"],
15
- GtkBox: ["orientation", "spacing"],
16
- GtkColorChooserDialog: ["title", "parent"],
17
- GtkColorDialogButton: ["dialog"],
18
- GtkColumnView: ["model"],
19
- GtkDropDown: ["model", "expression"],
20
- GtkExpander: ["label"],
21
- GtkFileChooserWidget: ["action"],
22
- GtkFontChooserDialog: ["title", "parent"],
23
- GtkFontDialogButton: ["dialog"],
24
- GtkFrame: ["label"],
25
- GtkGraphicsOffload: ["child"],
26
- GtkGridView: ["model", "factory"],
27
- GtkInscription: ["text"],
28
- AdwLayoutSlot: ["id"],
29
- GtkLinkButton: ["uri"],
30
- GtkListView: ["model", "factory"],
31
- GtkLockButton: ["permission"],
32
- AdwMessageDialog: ["parent", "heading", "body"],
33
- AdwNavigationPage: ["child", "title"],
34
- GtkPageSetupUnixDialog: ["title", "parent"],
35
- GtkPaned: ["orientation"],
36
- GtkPrintUnixDialog: ["title", "parent"],
37
- GtkScale: ["orientation", "adjustment"],
38
- GtkScaleButton: ["icons"],
39
- GtkScrollbar: ["orientation", "adjustment"],
40
- GtkSeparator: ["orientation"],
41
- AdwShortcutLabel: ["accelerator"],
42
- GtkShortcutLabel: ["accelerator"],
43
- GtkSpinButton: ["climbRate", "digits", "adjustment"],
44
- AdwSpinRow: ["climbRate", "digits", "adjustment"],
45
- GtkSourceStyleSchemePreview: ["scheme"],
46
- GtkViewport: ["hadjustment", "vadjustment"],
47
- GtkWindowControls: ["side"],
48
- AdwWindowTitle: ["title", "subtitle"],
49
- GtkDropTarget: ["actions"],
8
+ GtkWidget: ["cssName"],
9
+ AdwWindow: ["cssName"],
10
+ GtkWindow: ["cssName"],
11
+ AdwAboutDialog: ["cssName"],
12
+ GtkAboutDialog: ["cssName"],
13
+ AdwAboutWindow: ["cssName"],
14
+ GtkActionBar: ["cssName"],
15
+ AdwActionRow: ["cssName"],
16
+ AdwAlertDialog: ["heading", "body", "cssName"],
17
+ GtkAppChooserButton: ["contentType", "cssName"],
18
+ GtkAppChooserDialog: ["parent", "gfile", "useHeaderBar", "cssName"],
19
+ GtkAppChooserWidget: ["contentType", "cssName"],
20
+ AdwApplicationWindow: ["cssName"],
21
+ GtkApplicationWindow: ["cssName"],
22
+ GtkAspectFrame: ["xalign", "yalign", "ratio", "obeyChild", "cssName"],
23
+ GtkAssistant: ["useHeaderBar", "cssName"],
24
+ AdwAvatar: ["size", "showInitials", "text", "cssName"],
25
+ AdwBanner: ["title", "cssName"],
26
+ AdwBin: ["cssName"],
27
+ AdwBottomSheet: ["cssName"],
28
+ GtkBox: ["orientation", "spacing", "cssName"],
29
+ AdwBreakpointBin: ["cssName"],
30
+ GtkButton: ["cssName"],
31
+ AdwButtonContent: ["cssName"],
32
+ AdwButtonRow: ["cssName"],
33
+ GtkCalendar: ["cssName"],
34
+ AdwCarousel: ["cssName"],
35
+ AdwCarouselIndicatorDots: ["cssName"],
36
+ AdwCarouselIndicatorLines: ["cssName"],
37
+ GtkCellView: ["cellArea", "cellAreaContext", "cssName"],
38
+ GtkCenterBox: ["cssName"],
39
+ GtkCheckButton: ["cssName"],
40
+ AdwClamp: ["cssName"],
41
+ AdwClampScrollable: ["cssName"],
42
+ GtkColorButton: ["cssName"],
43
+ GtkColorChooserDialog: ["title", "parent", "useHeaderBar", "cssName"],
44
+ GtkColorChooserWidget: ["cssName"],
45
+ GtkColorDialogButton: ["dialog", "cssName"],
46
+ GtkColumnView: ["model", "cssName"],
47
+ GtkComboBox: ["hasEntry", "cssName"],
48
+ GtkComboBoxText: ["hasEntry", "cssName"],
49
+ AdwComboRow: ["cssName"],
50
+ GtkSourceCompletionCell: ["column", "cssName"],
51
+ AdwDialog: ["cssName"],
52
+ GtkDialog: ["useHeaderBar", "cssName"],
53
+ GtkDragIcon: ["cssName"],
54
+ GtkDrawingArea: ["cssName"],
55
+ GtkDropDown: ["model", "expression", "cssName"],
56
+ GtkEditableLabel: ["cssName"],
57
+ GtkEmojiChooser: ["cssName"],
58
+ GtkEntry: ["cssName"],
59
+ AdwEntryRow: ["cssName"],
60
+ GtkExpander: ["label", "cssName"],
61
+ AdwExpanderRow: ["cssName"],
62
+ GtkFileChooserDialog: ["useHeaderBar", "cssName"],
63
+ GtkFileChooserWidget: ["action", "cssName"],
64
+ GtkFixed: ["cssName"],
65
+ AdwFlap: ["cssName"],
66
+ GtkFlowBox: ["cssName"],
67
+ GtkFlowBoxChild: ["cssName"],
68
+ GtkFontButton: ["cssName"],
69
+ GtkFontChooserDialog: ["title", "parent", "useHeaderBar", "cssName"],
70
+ GtkFontChooserWidget: ["cssName"],
71
+ GtkFontDialogButton: ["dialog", "cssName"],
72
+ GtkFrame: ["label", "cssName"],
73
+ GtkGLArea: ["cssName"],
74
+ GtkGraphicsOffload: ["child", "cssName"],
75
+ GtkGrid: ["cssName"],
76
+ GtkGridView: ["model", "factory", "cssName"],
77
+ GtkSourceGutter: ["view", "windowType", "cssName"],
78
+ GtkSourceGutterRenderer: ["cssName"],
79
+ GtkSourceGutterRendererPixbuf: ["cssName"],
80
+ GtkSourceGutterRendererText: ["cssName"],
81
+ AdwHeaderBar: ["cssName"],
82
+ GtkHeaderBar: ["cssName"],
83
+ GtkSourceHoverDisplay: ["cssName"],
84
+ GtkIconView: ["cellArea", "cssName"],
85
+ GtkImage: ["cssName"],
86
+ GtkInfoBar: ["cssName"],
87
+ AdwInlineViewSwitcher: ["cssName"],
88
+ GtkInscription: ["text", "cssName"],
89
+ GtkLabel: ["cssName"],
90
+ AdwLayoutSlot: ["id", "cssName"],
91
+ AdwLeaflet: ["cssName"],
92
+ GtkLevelBar: ["cssName"],
93
+ GtkLinkButton: ["uri", "cssName"],
94
+ GtkListBase: ["cssName"],
95
+ GtkListBox: ["cssName"],
96
+ GtkListBoxRow: ["cssName"],
97
+ GtkListView: ["model", "factory", "cssName"],
98
+ GtkLockButton: ["permission", "cssName"],
99
+ GtkSourceMap: ["cssName"],
100
+ GtkMediaControls: ["cssName"],
101
+ GtkMenuButton: ["cssName"],
102
+ AdwMessageDialog: ["parent", "heading", "body", "cssName"],
103
+ GtkMessageDialog: ["buttons", "useHeaderBar", "cssName"],
104
+ AdwMultiLayoutView: ["cssName"],
105
+ AdwNavigationPage: ["child", "title", "cssName"],
106
+ AdwNavigationSplitView: ["cssName"],
107
+ AdwNavigationView: ["cssName"],
108
+ GtkNotebook: ["cssName"],
109
+ GtkOverlay: ["cssName"],
110
+ AdwOverlaySplitView: ["cssName"],
111
+ GtkPageSetupUnixDialog: ["title", "parent", "useHeaderBar", "cssName"],
112
+ GtkPaned: ["orientation", "cssName"],
113
+ GtkPasswordEntry: ["cssName"],
114
+ AdwPasswordEntryRow: ["cssName"],
115
+ GtkPicture: ["cssName"],
116
+ GtkPopover: ["cssName"],
117
+ GtkPopoverMenu: ["cssName"],
118
+ GtkPopoverMenuBar: ["cssName"],
119
+ AdwPreferencesDialog: ["cssName"],
120
+ AdwPreferencesGroup: ["cssName"],
121
+ AdwPreferencesPage: ["cssName"],
122
+ AdwPreferencesRow: ["cssName"],
123
+ AdwPreferencesWindow: ["cssName"],
124
+ GtkPrintUnixDialog: ["title", "parent", "useHeaderBar", "cssName"],
125
+ GtkProgressBar: ["cssName"],
126
+ GtkRange: ["cssName"],
127
+ GtkRevealer: ["cssName"],
128
+ GtkScale: ["orientation", "adjustment", "cssName"],
129
+ GtkScaleButton: ["icons", "cssName"],
130
+ GtkScrollbar: ["orientation", "adjustment", "cssName"],
131
+ GtkScrolledWindow: ["cssName"],
132
+ GtkSearchBar: ["cssName"],
133
+ GtkSearchEntry: ["cssName"],
134
+ GtkSeparator: ["orientation", "cssName"],
135
+ AdwShortcutLabel: ["accelerator", "cssName"],
136
+ GtkShortcutLabel: ["accelerator", "cssName"],
137
+ AdwShortcutsDialog: ["cssName"],
138
+ GtkShortcutsGroup: ["cssName"],
139
+ GtkShortcutsSection: ["cssName"],
140
+ GtkShortcutsShortcut: ["cssName"],
141
+ GtkShortcutsWindow: ["cssName"],
142
+ GtkSpinButton: ["climbRate", "digits", "adjustment", "cssName"],
143
+ AdwSpinner: ["cssName"],
144
+ GtkSpinner: ["cssName"],
145
+ AdwSpinRow: ["climbRate", "digits", "adjustment", "cssName"],
146
+ AdwSplitButton: ["cssName"],
147
+ AdwSqueezer: ["cssName"],
148
+ GtkStack: ["cssName"],
149
+ GtkStackSidebar: ["cssName"],
150
+ GtkStackSwitcher: ["cssName"],
151
+ GtkStatusbar: ["cssName"],
152
+ AdwStatusPage: ["cssName"],
153
+ GtkSourceStyleSchemeChooserButton: ["cssName"],
154
+ GtkSourceStyleSchemeChooserWidget: ["cssName"],
155
+ GtkSourceStyleSchemePreview: ["scheme", "cssName"],
156
+ GtkSwitch: ["cssName"],
157
+ AdwSwitchRow: ["cssName"],
158
+ AdwTabBar: ["cssName"],
159
+ AdwTabButton: ["cssName"],
160
+ AdwTabOverview: ["cssName"],
161
+ AdwTabView: ["cssName"],
162
+ VteTerminal: ["cssName"],
163
+ GtkText: ["cssName"],
164
+ GtkTextView: ["cssName"],
165
+ AdwToastOverlay: ["cssName"],
166
+ GtkToggleButton: ["cssName"],
167
+ AdwToggleGroup: ["cssName"],
168
+ AdwToolbarView: ["cssName"],
169
+ GtkTreeExpander: ["cssName"],
170
+ GtkTreeView: ["cssName"],
171
+ GtkVideo: ["cssName"],
172
+ GtkSourceView: ["cssName"],
173
+ GtkViewport: ["hadjustment", "vadjustment", "cssName"],
174
+ AdwViewStack: ["cssName"],
175
+ AdwViewSwitcher: ["cssName"],
176
+ AdwViewSwitcherBar: ["cssName"],
177
+ AdwViewSwitcherTitle: ["cssName"],
178
+ GtkVolumeButton: ["cssName"],
179
+ WebKitWebView: [
180
+ "automationPresentationType",
181
+ "defaultContentSecurityPolicy",
182
+ "isControlledByAutomation",
183
+ "networkSession",
184
+ "relatedView",
185
+ "userContentManager",
186
+ "webContext",
187
+ "webExtensionMode",
188
+ "websitePolicies",
189
+ "cssName",
190
+ ],
191
+ WebKitWebViewBase: ["cssName"],
192
+ GtkWindowControls: ["side", "cssName"],
193
+ GtkWindowHandle: ["cssName"],
194
+ AdwWindowTitle: ["title", "subtitle", "cssName"],
195
+ AdwWrapBox: ["cssName"],
196
+ GtkDragSource: ["nPoints"],
197
+ GtkDropTarget: ["actions", "formats"],
50
198
  GtkDropTargetAsync: ["actions", "formats"],
51
199
  GtkEventControllerScroll: ["flags"],
52
- GtkGesturePan: ["orientation"],
53
- GtkPadController: ["pad"],
200
+ GtkGesture: ["nPoints"],
201
+ GtkGestureClick: ["nPoints"],
202
+ GtkGestureDrag: ["nPoints"],
203
+ GtkGestureLongPress: ["nPoints"],
204
+ GtkGesturePan: ["orientation", "nPoints"],
205
+ GtkGestureRotate: ["nPoints"],
206
+ GtkGestureSingle: ["nPoints"],
207
+ GtkGestureStylus: ["nPoints"],
208
+ GtkGestureSwipe: ["nPoints"],
209
+ GtkGestureZoom: ["nPoints"],
210
+ GtkPadController: ["pad", "actionGroup"],
211
+ GtkShortcutController: ["model"],
212
+ };
213
+ /** Construct-only properties that can only be set during object construction via g_object_new. */
214
+ export const CONSTRUCT_ONLY_PROPS = {
215
+ GtkWidget: {
216
+ cssName: { girName: "css-name", ffiType: { type: "string", ownership: "full" } },
217
+ },
218
+ GtkAppChooserButton: {
219
+ contentType: { girName: "content-type", ffiType: { type: "string", ownership: "full" } },
220
+ },
221
+ GtkAppChooserDialog: {
222
+ gfile: { girName: "gfile", ffiType: { type: "gobject", ownership: "full" } },
223
+ contentType: { girName: "content-type", ffiType: { type: "string", ownership: "full" } },
224
+ },
225
+ GtkAppChooserWidget: {
226
+ contentType: { girName: "content-type", ffiType: { type: "string", ownership: "full" } },
227
+ },
228
+ GtkAssistant: {
229
+ useHeaderBar: { girName: "use-header-bar", ffiType: { type: "int", size: 32, unsigned: false } },
230
+ },
231
+ GtkCellView: {
232
+ cellArea: { girName: "cell-area", ffiType: { type: "gobject", ownership: "full" } },
233
+ cellAreaContext: { girName: "cell-area-context", ffiType: { type: "gobject", ownership: "full" } },
234
+ },
235
+ GtkComboBox: {
236
+ hasEntry: { girName: "has-entry", ffiType: { type: "boolean" } },
237
+ },
238
+ GtkSourceCompletionCell: {
239
+ column: {
240
+ girName: "column",
241
+ ffiType: {
242
+ type: "int",
243
+ size: 32,
244
+ unsigned: false,
245
+ library: "libgtksourceview-5.so.0",
246
+ getTypeFn: "gtk_source_completion_column_get_type",
247
+ },
248
+ },
249
+ },
250
+ GtkDialog: {
251
+ useHeaderBar: { girName: "use-header-bar", ffiType: { type: "int", size: 32, unsigned: false } },
252
+ },
253
+ GtkSourceGutter: {
254
+ view: { girName: "view", ffiType: { type: "gobject", ownership: "full" } },
255
+ windowType: {
256
+ girName: "window-type",
257
+ ffiType: {
258
+ type: "int",
259
+ size: 32,
260
+ unsigned: false,
261
+ library: "libgtk-4.so.1",
262
+ getTypeFn: "gtk_text_window_type_get_type",
263
+ },
264
+ },
265
+ },
266
+ GtkIconView: {
267
+ cellArea: { girName: "cell-area", ffiType: { type: "gobject", ownership: "full" } },
268
+ },
269
+ AdwLayoutSlot: {
270
+ id: { girName: "id", ffiType: { type: "string", ownership: "full" } },
271
+ },
272
+ GtkMessageDialog: {
273
+ buttons: {
274
+ girName: "buttons",
275
+ ffiType: {
276
+ type: "int",
277
+ size: 32,
278
+ unsigned: false,
279
+ library: "libgtk-4.so.1",
280
+ getTypeFn: "gtk_buttons_type_get_type",
281
+ },
282
+ },
283
+ },
284
+ GtkSourceStyleSchemePreview: {
285
+ scheme: { girName: "scheme", ffiType: { type: "gobject", ownership: "full" } },
286
+ },
287
+ WebKitWebView: {
288
+ automationPresentationType: {
289
+ girName: "automation-presentation-type",
290
+ ffiType: {
291
+ type: "int",
292
+ size: 32,
293
+ unsigned: false,
294
+ library: "libwebkitgtk-6.0.so.4,libjavascriptcoregtk-6.0.so.1",
295
+ getTypeFn: "webkit_automation_browsing_context_presentation_get_type",
296
+ },
297
+ },
298
+ defaultContentSecurityPolicy: {
299
+ girName: "default-content-security-policy",
300
+ ffiType: { type: "string", ownership: "full" },
301
+ },
302
+ isControlledByAutomation: { girName: "is-controlled-by-automation", ffiType: { type: "boolean" } },
303
+ networkSession: { girName: "network-session", ffiType: { type: "gobject", ownership: "full" } },
304
+ relatedView: { girName: "related-view", ffiType: { type: "gobject", ownership: "full" } },
305
+ userContentManager: { girName: "user-content-manager", ffiType: { type: "gobject", ownership: "full" } },
306
+ webContext: { girName: "web-context", ffiType: { type: "gobject", ownership: "full" } },
307
+ webExtensionMode: {
308
+ girName: "web-extension-mode",
309
+ ffiType: {
310
+ type: "int",
311
+ size: 32,
312
+ unsigned: false,
313
+ library: "libwebkitgtk-6.0.so.4,libjavascriptcoregtk-6.0.so.1",
314
+ getTypeFn: "webkit_web_extension_mode_get_type",
315
+ },
316
+ },
317
+ websitePolicies: { girName: "website-policies", ffiType: { type: "gobject", ownership: "full" } },
318
+ },
319
+ GtkDropTarget: {
320
+ formats: {
321
+ girName: "formats",
322
+ ffiType: {
323
+ type: "boxed",
324
+ innerType: "GdkContentFormats",
325
+ ownership: "full",
326
+ library: "libgtk-4.so.1",
327
+ getTypeFn: "gdk_content_formats_get_type",
328
+ },
329
+ },
330
+ },
331
+ GtkGesture: {
332
+ nPoints: { girName: "n-points", ffiType: { type: "int", size: 32, unsigned: true } },
333
+ },
334
+ GtkPadController: {
335
+ actionGroup: { girName: "action-group", ffiType: { type: "gobject", ownership: "full" } },
336
+ pad: { girName: "pad", ffiType: { type: "gobject", ownership: "full" } },
337
+ },
338
+ GtkShortcutController: {
339
+ model: { girName: "model", ffiType: { type: "gobject", ownership: "full" } },
340
+ },
54
341
  };
55
342
  export const PROPS = {
56
343
  GtkWidget: {