@girs/meta-7 5.2.0 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -1
- package/meta-7-vocabulary.d.ts +557 -0
- package/meta-7-vocabulary.js +654 -0
- package/package.json +29 -24
- package/tsconfig.json +1 -1
|
@@ -0,0 +1,654 @@
|
|
|
1
|
+
// The widget vocabulary of Meta-7 as runtime data.
|
|
2
|
+
//
|
|
3
|
+
// GENERATED — do not edit. Provenance: Meta-7 — library 3.38.4 — dropped empty base(s): Atk.ImplementorIface
|
|
4
|
+
//
|
|
5
|
+
// The type half of this subpath is the sibling `.d.ts`. This file exists because
|
|
6
|
+
// types are erased: a consumer that wants to ask the installed library whether every
|
|
7
|
+
// name here is real needs values, not declarations.
|
|
8
|
+
|
|
9
|
+
export const PROVENANCE = {
|
|
10
|
+
namespace: 'Meta',
|
|
11
|
+
version: '7',
|
|
12
|
+
libraryVersion: '3.38.4',
|
|
13
|
+
childHolders: 0,
|
|
14
|
+
droppedBases: ['Atk.ImplementorIface'],
|
|
15
|
+
inlinedBases: [],
|
|
16
|
+
unsettableProps: [],
|
|
17
|
+
unresolvedProps: [],
|
|
18
|
+
identifierPrefixes: ['Meta'],
|
|
19
|
+
requiredVocabularies: ['@girs/clutter-7/vocabulary', '@girs/gio-2.0/vocabulary', '@girs/gobject-2.0/vocabulary'],
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const OWN_PROPS = {
|
|
23
|
+
MetaBackground: ['meta-display'],
|
|
24
|
+
MetaBackgroundActor: ['meta-display', 'monitor'],
|
|
25
|
+
MetaBackgroundContent: ['background', 'brightness', 'gradient', 'gradient-height', 'gradient-max-darkness', 'meta-display', 'monitor', 'vignette', 'vignette-sharpness'],
|
|
26
|
+
MetaBarrier: ['directions', 'display', 'x1', 'x2', 'y1', 'y2'],
|
|
27
|
+
MetaCursorTracker: ['backend'],
|
|
28
|
+
MetaIdleMonitor: ['device'],
|
|
29
|
+
MetaLaunchContext: ['display', 'timestamp', 'workspace'],
|
|
30
|
+
MetaMonitorManager: ['backend'],
|
|
31
|
+
MetaRemoteAccessHandle: ['is-recording'],
|
|
32
|
+
MetaStartupNotification: ['display'],
|
|
33
|
+
MetaStartupSequence: ['application-id', 'icon-name', 'id', 'name', 'timestamp', 'wmclass', 'workspace'],
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export const OWN_SIGNALS = {
|
|
37
|
+
MetaBackground: ['changed'],
|
|
38
|
+
MetaBackgroundImage: ['loaded'],
|
|
39
|
+
MetaBarrier: ['hit', 'left'],
|
|
40
|
+
MetaCursorTracker: ['cursor-changed', 'cursor-moved', 'visibility-changed'],
|
|
41
|
+
MetaDisplay: ['accelerator-activated', 'closing', 'cursor-updated', 'gl-video-memory-purged', 'grab-op-begin', 'grab-op-end', 'in-fullscreen-changed', 'init-xserver', 'modifiers-accelerator-activated', 'overlay-key', 'pad-mode-switch', 'restacked', 'restart', 'show-osd', 'show-pad-osd', 'show-resize-popup', 'show-restart-message', 'showing-desktop-changed', 'window-created', 'window-demands-attention', 'window-entered-monitor', 'window-left-monitor', 'window-marked-urgent', 'workareas-changed', 'x11-display-closing', 'x11-display-opened', 'x11-display-setup'],
|
|
42
|
+
MetaDnd: ['dnd-enter', 'dnd-leave', 'dnd-position-change'],
|
|
43
|
+
MetaMonitorManager: ['confirm-display-change', 'monitors-changed', 'monitors-changed-internal', 'power-save-mode-changed'],
|
|
44
|
+
MetaRemoteAccessController: ['new-handle'],
|
|
45
|
+
MetaRemoteAccessHandle: ['stopped'],
|
|
46
|
+
MetaSelection: ['owner-changed'],
|
|
47
|
+
MetaSelectionSource: ['activated', 'deactivated'],
|
|
48
|
+
MetaShadowFactory: ['changed'],
|
|
49
|
+
MetaShapedTexture: ['size-changed'],
|
|
50
|
+
MetaStage: ['actors-painted'],
|
|
51
|
+
MetaStartupNotification: ['changed'],
|
|
52
|
+
MetaStartupSequence: ['complete'],
|
|
53
|
+
MetaWorkspace: ['window-added', 'window-removed'],
|
|
54
|
+
MetaWorkspaceManager: ['active-workspace-changed', 'showing-desktop-changed', 'workspace-added', 'workspace-removed', 'workspace-switched', 'workspaces-reordered'],
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
// Every GType this namespace can INSTANTIATE -> the declarations its members come from.
|
|
58
|
+
//
|
|
59
|
+
// The key set is what a UI description file can name: a registered, non-abstract class.
|
|
60
|
+
// Not "every widget" — GtkBuilder resolves a name through `g_type_from_name`, which knows
|
|
61
|
+
// nothing about widgets, and a `.ui` file is full of `GtkSizeGroup`, `GtkTextTag`,
|
|
62
|
+
// `GtkEventController*` and `GtkCellRenderer*`. Use `Widgets` and `CHILD_HOLDERS`
|
|
63
|
+
// below for the narrower questions; they did not move.
|
|
64
|
+
export const DECLS = {
|
|
65
|
+
MetaBackground: ['MetaBackground', 'GObject'],
|
|
66
|
+
MetaBackgroundActor: ['MetaBackgroundActor', 'ClutterActor', 'GInitiallyUnowned', 'GObject', 'ClutterAnimatable', 'ClutterContainer', 'ClutterScriptable'],
|
|
67
|
+
MetaBackgroundContent: ['MetaBackgroundContent', 'GObject', 'ClutterContent'],
|
|
68
|
+
MetaBackgroundGroup: ['MetaBackgroundGroup', 'ClutterActor', 'GInitiallyUnowned', 'GObject', 'ClutterAnimatable', 'ClutterContainer', 'ClutterScriptable'],
|
|
69
|
+
MetaBackgroundImage: ['MetaBackgroundImage', 'GObject'],
|
|
70
|
+
MetaBackgroundImageCache: ['MetaBackgroundImageCache', 'GObject'],
|
|
71
|
+
MetaBarrier: ['MetaBarrier', 'GObject'],
|
|
72
|
+
MetaCursorTracker: ['MetaCursorTracker', 'GObject'],
|
|
73
|
+
MetaDisplay: ['MetaDisplay', 'GObject'],
|
|
74
|
+
MetaDnd: ['MetaDnd', 'GObject'],
|
|
75
|
+
MetaIdleMonitor: ['MetaIdleMonitor', 'GObject'],
|
|
76
|
+
MetaLaunchContext: ['MetaLaunchContext', 'GAppLaunchContext', 'GObject'],
|
|
77
|
+
MetaMonitorManager: ['MetaMonitorManager', 'GObject'],
|
|
78
|
+
MetaRemoteAccessController: ['MetaRemoteAccessController', 'GObject'],
|
|
79
|
+
MetaRemoteAccessHandle: ['MetaRemoteAccessHandle', 'GObject'],
|
|
80
|
+
MetaSelection: ['MetaSelection', 'GObject'],
|
|
81
|
+
MetaSelectionSource: ['MetaSelectionSource', 'GObject'],
|
|
82
|
+
MetaSelectionSourceMemory: ['MetaSelectionSourceMemory', 'MetaSelectionSource', 'GObject'],
|
|
83
|
+
MetaShadowFactory: ['MetaShadowFactory', 'GObject'],
|
|
84
|
+
MetaShapedTexture: ['MetaShapedTexture', 'GObject', 'ClutterContent'],
|
|
85
|
+
MetaSoundPlayer: ['MetaSoundPlayer', 'GObject'],
|
|
86
|
+
MetaStage: ['MetaStage', 'ClutterStage', 'ClutterActor', 'GInitiallyUnowned', 'GObject', 'ClutterAnimatable', 'ClutterContainer', 'ClutterScriptable'],
|
|
87
|
+
MetaStartupNotification: ['MetaStartupNotification', 'GObject'],
|
|
88
|
+
MetaStartupSequence: ['MetaStartupSequence', 'GObject'],
|
|
89
|
+
MetaWaylandClient: ['MetaWaylandClient', 'GObject'],
|
|
90
|
+
MetaWindowGroup: ['MetaWindowGroup', 'ClutterActor', 'GInitiallyUnowned', 'GObject', 'ClutterAnimatable', 'ClutterContainer', 'ClutterScriptable'],
|
|
91
|
+
MetaWorkspace: ['MetaWorkspace', 'GObject'],
|
|
92
|
+
MetaWorkspaceManager: ['MetaWorkspaceManager', 'GObject'],
|
|
93
|
+
MetaX11Display: ['MetaX11Display', 'GObject'],
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
// The GTypes above that ARE widgets are the `Widgets` map in the sibling `.d.ts`; these
|
|
97
|
+
// are the ones that merely HOLD one, through `set_child`/`get_child`, descending from
|
|
98
|
+
// `GObject.Object`. A renderer places them like a container; a check asking "is this a
|
|
99
|
+
// widget" must not count them. Derived from the accessor pair, never from a list — the
|
|
100
|
+
// count is in the provenance line above.
|
|
101
|
+
export const CHILD_HOLDERS = [];
|
|
102
|
+
|
|
103
|
+
export const ENUM_NICKS = {
|
|
104
|
+
MetaButtonFunction: ['menu', 'minimize', 'maximize', 'close', 'last'],
|
|
105
|
+
MetaCloseDialogResponse: ['wait', 'force-close'],
|
|
106
|
+
MetaCompEffect: ['create', 'unminimize', 'destroy', 'minimize', 'none'],
|
|
107
|
+
MetaCursor: ['none', 'default', 'north-resize', 'south-resize', 'west-resize', 'east-resize', 'se-resize', 'sw-resize', 'ne-resize', 'nw-resize', 'move-or-resize-window', 'busy', 'dnd-in-drag', 'dnd-move', 'dnd-copy', 'dnd-unsupported-target', 'pointing-hand', 'crosshair', 'ibeam', 'blank', 'last'],
|
|
108
|
+
MetaDisplayCorner: ['topleft', 'topright', 'bottomleft', 'bottomright'],
|
|
109
|
+
MetaDisplayDirection: ['up', 'down', 'left', 'right'],
|
|
110
|
+
MetaEdgeType: ['window', 'monitor', 'screen'],
|
|
111
|
+
MetaExitCode: ['success', 'error'],
|
|
112
|
+
MetaFrameType: ['normal', 'dialog', 'modal-dialog', 'utility', 'menu', 'border', 'attached', 'last'],
|
|
113
|
+
MetaGrabOp: ['none', 'window-base', 'compositor', 'wayland-popup', 'frame-button', 'moving', 'resizing-nw', 'resizing-n', 'resizing-ne', 'resizing-e', 'resizing-sw', 'resizing-s', 'resizing-se', 'resizing-w', 'keyboard-moving', 'keyboard-resizing-unknown', 'keyboard-resizing-nw', 'keyboard-resizing-n', 'keyboard-resizing-ne', 'keyboard-resizing-e', 'keyboard-resizing-sw', 'keyboard-resizing-s', 'keyboard-resizing-se', 'keyboard-resizing-w'],
|
|
114
|
+
MetaGravity: ['none', 'north-west', 'north', 'north-east', 'west', 'center', 'east', 'south-west', 'south', 'south-east', 'static'],
|
|
115
|
+
MetaInhibitShortcutsDialogResponse: ['allow', 'deny'],
|
|
116
|
+
MetaKeyBindingAction: ['none', 'workspace-1', 'workspace-2', 'workspace-3', 'workspace-4', 'workspace-5', 'workspace-6', 'workspace-7', 'workspace-8', 'workspace-9', 'workspace-10', 'workspace-11', 'workspace-12', 'workspace-left', 'workspace-right', 'workspace-up', 'workspace-down', 'workspace-last', 'switch-applications', 'switch-applications-backward', 'switch-group', 'switch-group-backward', 'switch-windows', 'switch-windows-backward', 'switch-panels', 'switch-panels-backward', 'cycle-group', 'cycle-group-backward', 'cycle-windows', 'cycle-windows-backward', 'cycle-panels', 'cycle-panels-backward', 'show-desktop', 'panel-main-menu', 'panel-run-dialog', 'toggle-recording', 'set-spew-mark', 'activate-window-menu', 'toggle-fullscreen', 'toggle-maximized', 'toggle-tiled-left', 'toggle-tiled-right', 'toggle-above', 'maximize', 'unmaximize', 'toggle-shaded', 'minimize', 'close', 'begin-move', 'begin-resize', 'toggle-on-all-workspaces', 'move-to-workspace-1', 'move-to-workspace-2', 'move-to-workspace-3', 'move-to-workspace-4', 'move-to-workspace-5', 'move-to-workspace-6', 'move-to-workspace-7', 'move-to-workspace-8', 'move-to-workspace-9', 'move-to-workspace-10', 'move-to-workspace-11', 'move-to-workspace-12', 'move-to-workspace-left', 'move-to-workspace-right', 'move-to-workspace-up', 'move-to-workspace-down', 'move-to-workspace-last', 'move-to-monitor-left', 'move-to-monitor-right', 'move-to-monitor-up', 'move-to-monitor-down', 'raise-or-lower', 'raise', 'lower', 'maximize-vertically', 'maximize-horizontally', 'move-to-corner-nw', 'move-to-corner-ne', 'move-to-corner-sw', 'move-to-corner-se', 'move-to-side-n', 'move-to-side-s', 'move-to-side-e', 'move-to-side-w', 'move-to-center', 'overlay-key', 'locate-pointer-key', 'iso-next-group', 'always-on-top', 'switch-monitor', 'rotate-monitor', 'last'],
|
|
117
|
+
MetaLaterType: ['resize', 'calc-showing', 'check-fullscreen', 'sync-stack', 'before-redraw', 'idle'],
|
|
118
|
+
MetaLocaleDirection: ['ltr', 'rtl'],
|
|
119
|
+
MetaMonitorSwitchConfigType: ['all-mirror', 'all-linear', 'external', 'builtin', 'unknown'],
|
|
120
|
+
MetaMotionDirection: ['up', 'down', 'left', 'right', 'up-left', 'up-right', 'down-left', 'down-right'],
|
|
121
|
+
MetaPadActionType: ['button', 'ring', 'strip'],
|
|
122
|
+
MetaPreference: ['mouse-button-mods', 'focus-mode', 'focus-new-windows', 'attach-modal-dialogs', 'raise-on-click', 'action-double-click-titlebar', 'action-middle-click-titlebar', 'action-right-click-titlebar', 'auto-raise', 'auto-raise-delay', 'focus-change-on-pointer-rest', 'titlebar-font', 'num-workspaces', 'dynamic-workspaces', 'keybindings', 'disable-workarounds', 'button-layout', 'workspace-names', 'visual-bell', 'audible-bell', 'visual-bell-type', 'gnome-accessibility', 'gnome-animations', 'cursor-theme', 'cursor-size', 'resize-with-right-button', 'edge-tiling', 'force-fullscreen', 'workspaces-only-on-primary', 'draggable-border-width', 'auto-maximize', 'center-new-windows', 'drag-threshold', 'locate-pointer', 'check-alive-timeout'],
|
|
123
|
+
MetaSelectionType: ['selection-primary', 'selection-clipboard', 'selection-dnd', 'n-selection-types'],
|
|
124
|
+
MetaShadowMode: ['auto', 'forced-off', 'forced-on'],
|
|
125
|
+
MetaSide: ['left', 'right', 'top', 'bottom'],
|
|
126
|
+
MetaSizeChange: ['maximize', 'unmaximize', 'fullscreen', 'unfullscreen'],
|
|
127
|
+
MetaStackLayer: ['desktop', 'bottom', 'normal', 'top', 'dock', 'override-redirect', 'last'],
|
|
128
|
+
MetaTabList: ['normal', 'docks', 'group', 'normal-all'],
|
|
129
|
+
MetaTabShowType: ['icon', 'instantly'],
|
|
130
|
+
MetaWindowClientType: ['wayland', 'x11'],
|
|
131
|
+
MetaWindowMenuType: ['wm', 'app'],
|
|
132
|
+
MetaWindowType: ['normal', 'desktop', 'dock', 'dialog', 'modal-dialog', 'toolbar', 'menu', 'utility', 'splashscreen', 'dropdown-menu', 'popup-menu', 'tooltip', 'notification', 'combo', 'dnd', 'override-other'],
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
// The number behind each of those nicks, read from GIR's own `value` attribute.
|
|
136
|
+
//
|
|
137
|
+
// It ships because position in `ENUM_NICKS` is not the value and a consumer with no
|
|
138
|
+
// typelib has no other way to learn it: a surface without GI still has to hand GObject an
|
|
139
|
+
// integer. The alternative a consumer reaches for first is counting, and counting is wrong
|
|
140
|
+
// on 6 of the 137 enums a GTK 4 vocabulary carries (112 in Gtk-4.0, 25 in Adw-1) --
|
|
141
|
+
// `GtkResponseType` runs -1 down to
|
|
142
|
+
// -11, `GtkTextWindowType` starts at 1, and `GtkConstraintStrength.required` is
|
|
143
|
+
// 1001001000 where counting answers 0.
|
|
144
|
+
//
|
|
145
|
+
// Same provenance as the nicks above, which is the point: a consumer that reads the numbers
|
|
146
|
+
// from an INSTALLED library instead gets two provenances for one table, and a member the
|
|
147
|
+
// vocabulary describes but the host predates then looks like a missing number rather than a
|
|
148
|
+
// version gap.
|
|
149
|
+
export const ENUM_VALUES = {
|
|
150
|
+
'MetaButtonFunction.close': 3,
|
|
151
|
+
'MetaButtonFunction.last': 4,
|
|
152
|
+
'MetaButtonFunction.maximize': 2,
|
|
153
|
+
'MetaButtonFunction.menu': 0,
|
|
154
|
+
'MetaButtonFunction.minimize': 1,
|
|
155
|
+
'MetaCloseDialogResponse.force-close': 1,
|
|
156
|
+
'MetaCloseDialogResponse.wait': 0,
|
|
157
|
+
'MetaCompEffect.create': 0,
|
|
158
|
+
'MetaCompEffect.destroy': 2,
|
|
159
|
+
'MetaCompEffect.minimize': 3,
|
|
160
|
+
'MetaCompEffect.none': 4,
|
|
161
|
+
'MetaCompEffect.unminimize': 1,
|
|
162
|
+
'MetaCursor.blank': 19,
|
|
163
|
+
'MetaCursor.busy': 11,
|
|
164
|
+
'MetaCursor.crosshair': 17,
|
|
165
|
+
'MetaCursor.default': 1,
|
|
166
|
+
'MetaCursor.dnd-copy': 14,
|
|
167
|
+
'MetaCursor.dnd-in-drag': 12,
|
|
168
|
+
'MetaCursor.dnd-move': 13,
|
|
169
|
+
'MetaCursor.dnd-unsupported-target': 15,
|
|
170
|
+
'MetaCursor.east-resize': 5,
|
|
171
|
+
'MetaCursor.ibeam': 18,
|
|
172
|
+
'MetaCursor.last': 20,
|
|
173
|
+
'MetaCursor.move-or-resize-window': 10,
|
|
174
|
+
'MetaCursor.ne-resize': 8,
|
|
175
|
+
'MetaCursor.none': 0,
|
|
176
|
+
'MetaCursor.north-resize': 2,
|
|
177
|
+
'MetaCursor.nw-resize': 9,
|
|
178
|
+
'MetaCursor.pointing-hand': 16,
|
|
179
|
+
'MetaCursor.se-resize': 6,
|
|
180
|
+
'MetaCursor.south-resize': 3,
|
|
181
|
+
'MetaCursor.sw-resize': 7,
|
|
182
|
+
'MetaCursor.west-resize': 4,
|
|
183
|
+
'MetaDisplayCorner.bottomleft': 2,
|
|
184
|
+
'MetaDisplayCorner.bottomright': 3,
|
|
185
|
+
'MetaDisplayCorner.topleft': 0,
|
|
186
|
+
'MetaDisplayCorner.topright': 1,
|
|
187
|
+
'MetaDisplayDirection.down': 1,
|
|
188
|
+
'MetaDisplayDirection.left': 2,
|
|
189
|
+
'MetaDisplayDirection.right': 3,
|
|
190
|
+
'MetaDisplayDirection.up': 0,
|
|
191
|
+
'MetaEdgeType.monitor': 1,
|
|
192
|
+
'MetaEdgeType.screen': 2,
|
|
193
|
+
'MetaEdgeType.window': 0,
|
|
194
|
+
'MetaExitCode.error': 1,
|
|
195
|
+
'MetaExitCode.success': 0,
|
|
196
|
+
'MetaFrameType.attached': 6,
|
|
197
|
+
'MetaFrameType.border': 5,
|
|
198
|
+
'MetaFrameType.dialog': 1,
|
|
199
|
+
'MetaFrameType.last': 7,
|
|
200
|
+
'MetaFrameType.menu': 4,
|
|
201
|
+
'MetaFrameType.modal-dialog': 2,
|
|
202
|
+
'MetaFrameType.normal': 0,
|
|
203
|
+
'MetaFrameType.utility': 3,
|
|
204
|
+
'MetaGrabOp.compositor': 2,
|
|
205
|
+
'MetaGrabOp.frame-button': 4,
|
|
206
|
+
'MetaGrabOp.keyboard-moving': 257,
|
|
207
|
+
'MetaGrabOp.keyboard-resizing-e': 8449,
|
|
208
|
+
'MetaGrabOp.keyboard-resizing-n': 33025,
|
|
209
|
+
'MetaGrabOp.keyboard-resizing-ne': 41217,
|
|
210
|
+
'MetaGrabOp.keyboard-resizing-nw': 37121,
|
|
211
|
+
'MetaGrabOp.keyboard-resizing-s': 16641,
|
|
212
|
+
'MetaGrabOp.keyboard-resizing-se': 24833,
|
|
213
|
+
'MetaGrabOp.keyboard-resizing-sw': 20737,
|
|
214
|
+
'MetaGrabOp.keyboard-resizing-unknown': 769,
|
|
215
|
+
'MetaGrabOp.keyboard-resizing-w': 4353,
|
|
216
|
+
'MetaGrabOp.moving': 1,
|
|
217
|
+
'MetaGrabOp.none': 0,
|
|
218
|
+
'MetaGrabOp.resizing-e': 8193,
|
|
219
|
+
'MetaGrabOp.resizing-n': 32769,
|
|
220
|
+
'MetaGrabOp.resizing-ne': 40961,
|
|
221
|
+
'MetaGrabOp.resizing-nw': 36865,
|
|
222
|
+
'MetaGrabOp.resizing-s': 16385,
|
|
223
|
+
'MetaGrabOp.resizing-se': 24577,
|
|
224
|
+
'MetaGrabOp.resizing-sw': 20481,
|
|
225
|
+
'MetaGrabOp.resizing-w': 4097,
|
|
226
|
+
'MetaGrabOp.wayland-popup': 3,
|
|
227
|
+
'MetaGrabOp.window-base': 1,
|
|
228
|
+
'MetaGravity.center': 5,
|
|
229
|
+
'MetaGravity.east': 6,
|
|
230
|
+
'MetaGravity.none': 0,
|
|
231
|
+
'MetaGravity.north': 2,
|
|
232
|
+
'MetaGravity.north-east': 3,
|
|
233
|
+
'MetaGravity.north-west': 1,
|
|
234
|
+
'MetaGravity.south': 8,
|
|
235
|
+
'MetaGravity.south-east': 9,
|
|
236
|
+
'MetaGravity.south-west': 7,
|
|
237
|
+
'MetaGravity.static': 10,
|
|
238
|
+
'MetaGravity.west': 4,
|
|
239
|
+
'MetaInhibitShortcutsDialogResponse.allow': 0,
|
|
240
|
+
'MetaInhibitShortcutsDialogResponse.deny': 1,
|
|
241
|
+
'MetaKeyBindingAction.activate-window-menu': 37,
|
|
242
|
+
'MetaKeyBindingAction.always-on-top': 89,
|
|
243
|
+
'MetaKeyBindingAction.begin-move': 48,
|
|
244
|
+
'MetaKeyBindingAction.begin-resize': 49,
|
|
245
|
+
'MetaKeyBindingAction.close': 47,
|
|
246
|
+
'MetaKeyBindingAction.cycle-group': 26,
|
|
247
|
+
'MetaKeyBindingAction.cycle-group-backward': 27,
|
|
248
|
+
'MetaKeyBindingAction.cycle-panels': 30,
|
|
249
|
+
'MetaKeyBindingAction.cycle-panels-backward': 31,
|
|
250
|
+
'MetaKeyBindingAction.cycle-windows': 28,
|
|
251
|
+
'MetaKeyBindingAction.cycle-windows-backward': 29,
|
|
252
|
+
'MetaKeyBindingAction.iso-next-group': 88,
|
|
253
|
+
'MetaKeyBindingAction.last': 92,
|
|
254
|
+
'MetaKeyBindingAction.locate-pointer-key': 87,
|
|
255
|
+
'MetaKeyBindingAction.lower': 74,
|
|
256
|
+
'MetaKeyBindingAction.maximize': 43,
|
|
257
|
+
'MetaKeyBindingAction.maximize-horizontally': 76,
|
|
258
|
+
'MetaKeyBindingAction.maximize-vertically': 75,
|
|
259
|
+
'MetaKeyBindingAction.minimize': 46,
|
|
260
|
+
'MetaKeyBindingAction.move-to-center': 85,
|
|
261
|
+
'MetaKeyBindingAction.move-to-corner-ne': 78,
|
|
262
|
+
'MetaKeyBindingAction.move-to-corner-nw': 77,
|
|
263
|
+
'MetaKeyBindingAction.move-to-corner-se': 80,
|
|
264
|
+
'MetaKeyBindingAction.move-to-corner-sw': 79,
|
|
265
|
+
'MetaKeyBindingAction.move-to-monitor-down': 71,
|
|
266
|
+
'MetaKeyBindingAction.move-to-monitor-left': 68,
|
|
267
|
+
'MetaKeyBindingAction.move-to-monitor-right': 69,
|
|
268
|
+
'MetaKeyBindingAction.move-to-monitor-up': 70,
|
|
269
|
+
'MetaKeyBindingAction.move-to-side-e': 83,
|
|
270
|
+
'MetaKeyBindingAction.move-to-side-n': 81,
|
|
271
|
+
'MetaKeyBindingAction.move-to-side-s': 82,
|
|
272
|
+
'MetaKeyBindingAction.move-to-side-w': 84,
|
|
273
|
+
'MetaKeyBindingAction.move-to-workspace-1': 51,
|
|
274
|
+
'MetaKeyBindingAction.move-to-workspace-10': 60,
|
|
275
|
+
'MetaKeyBindingAction.move-to-workspace-11': 61,
|
|
276
|
+
'MetaKeyBindingAction.move-to-workspace-12': 62,
|
|
277
|
+
'MetaKeyBindingAction.move-to-workspace-2': 52,
|
|
278
|
+
'MetaKeyBindingAction.move-to-workspace-3': 53,
|
|
279
|
+
'MetaKeyBindingAction.move-to-workspace-4': 54,
|
|
280
|
+
'MetaKeyBindingAction.move-to-workspace-5': 55,
|
|
281
|
+
'MetaKeyBindingAction.move-to-workspace-6': 56,
|
|
282
|
+
'MetaKeyBindingAction.move-to-workspace-7': 57,
|
|
283
|
+
'MetaKeyBindingAction.move-to-workspace-8': 58,
|
|
284
|
+
'MetaKeyBindingAction.move-to-workspace-9': 59,
|
|
285
|
+
'MetaKeyBindingAction.move-to-workspace-down': 66,
|
|
286
|
+
'MetaKeyBindingAction.move-to-workspace-last': 67,
|
|
287
|
+
'MetaKeyBindingAction.move-to-workspace-left': 63,
|
|
288
|
+
'MetaKeyBindingAction.move-to-workspace-right': 64,
|
|
289
|
+
'MetaKeyBindingAction.move-to-workspace-up': 65,
|
|
290
|
+
'MetaKeyBindingAction.none': 0,
|
|
291
|
+
'MetaKeyBindingAction.overlay-key': 86,
|
|
292
|
+
'MetaKeyBindingAction.panel-main-menu': 33,
|
|
293
|
+
'MetaKeyBindingAction.panel-run-dialog': 34,
|
|
294
|
+
'MetaKeyBindingAction.raise': 73,
|
|
295
|
+
'MetaKeyBindingAction.raise-or-lower': 72,
|
|
296
|
+
'MetaKeyBindingAction.rotate-monitor': 91,
|
|
297
|
+
'MetaKeyBindingAction.set-spew-mark': 36,
|
|
298
|
+
'MetaKeyBindingAction.show-desktop': 32,
|
|
299
|
+
'MetaKeyBindingAction.switch-applications': 18,
|
|
300
|
+
'MetaKeyBindingAction.switch-applications-backward': 19,
|
|
301
|
+
'MetaKeyBindingAction.switch-group': 20,
|
|
302
|
+
'MetaKeyBindingAction.switch-group-backward': 21,
|
|
303
|
+
'MetaKeyBindingAction.switch-monitor': 90,
|
|
304
|
+
'MetaKeyBindingAction.switch-panels': 24,
|
|
305
|
+
'MetaKeyBindingAction.switch-panels-backward': 25,
|
|
306
|
+
'MetaKeyBindingAction.switch-windows': 22,
|
|
307
|
+
'MetaKeyBindingAction.switch-windows-backward': 23,
|
|
308
|
+
'MetaKeyBindingAction.toggle-above': 42,
|
|
309
|
+
'MetaKeyBindingAction.toggle-fullscreen': 38,
|
|
310
|
+
'MetaKeyBindingAction.toggle-maximized': 39,
|
|
311
|
+
'MetaKeyBindingAction.toggle-on-all-workspaces': 50,
|
|
312
|
+
'MetaKeyBindingAction.toggle-recording': 35,
|
|
313
|
+
'MetaKeyBindingAction.toggle-shaded': 45,
|
|
314
|
+
'MetaKeyBindingAction.toggle-tiled-left': 40,
|
|
315
|
+
'MetaKeyBindingAction.toggle-tiled-right': 41,
|
|
316
|
+
'MetaKeyBindingAction.unmaximize': 44,
|
|
317
|
+
'MetaKeyBindingAction.workspace-1': 1,
|
|
318
|
+
'MetaKeyBindingAction.workspace-10': 10,
|
|
319
|
+
'MetaKeyBindingAction.workspace-11': 11,
|
|
320
|
+
'MetaKeyBindingAction.workspace-12': 12,
|
|
321
|
+
'MetaKeyBindingAction.workspace-2': 2,
|
|
322
|
+
'MetaKeyBindingAction.workspace-3': 3,
|
|
323
|
+
'MetaKeyBindingAction.workspace-4': 4,
|
|
324
|
+
'MetaKeyBindingAction.workspace-5': 5,
|
|
325
|
+
'MetaKeyBindingAction.workspace-6': 6,
|
|
326
|
+
'MetaKeyBindingAction.workspace-7': 7,
|
|
327
|
+
'MetaKeyBindingAction.workspace-8': 8,
|
|
328
|
+
'MetaKeyBindingAction.workspace-9': 9,
|
|
329
|
+
'MetaKeyBindingAction.workspace-down': 16,
|
|
330
|
+
'MetaKeyBindingAction.workspace-last': 17,
|
|
331
|
+
'MetaKeyBindingAction.workspace-left': 13,
|
|
332
|
+
'MetaKeyBindingAction.workspace-right': 14,
|
|
333
|
+
'MetaKeyBindingAction.workspace-up': 15,
|
|
334
|
+
'MetaLaterType.before-redraw': 4,
|
|
335
|
+
'MetaLaterType.calc-showing': 1,
|
|
336
|
+
'MetaLaterType.check-fullscreen': 2,
|
|
337
|
+
'MetaLaterType.idle': 5,
|
|
338
|
+
'MetaLaterType.resize': 0,
|
|
339
|
+
'MetaLaterType.sync-stack': 3,
|
|
340
|
+
'MetaLocaleDirection.ltr': 0,
|
|
341
|
+
'MetaLocaleDirection.rtl': 1,
|
|
342
|
+
'MetaMonitorSwitchConfigType.all-linear': 1,
|
|
343
|
+
'MetaMonitorSwitchConfigType.all-mirror': 0,
|
|
344
|
+
'MetaMonitorSwitchConfigType.builtin': 3,
|
|
345
|
+
'MetaMonitorSwitchConfigType.external': 2,
|
|
346
|
+
'MetaMonitorSwitchConfigType.unknown': 4,
|
|
347
|
+
'MetaMotionDirection.down': -2,
|
|
348
|
+
'MetaMotionDirection.down-left': -7,
|
|
349
|
+
'MetaMotionDirection.down-right': -8,
|
|
350
|
+
'MetaMotionDirection.left': -3,
|
|
351
|
+
'MetaMotionDirection.right': -4,
|
|
352
|
+
'MetaMotionDirection.up': -1,
|
|
353
|
+
'MetaMotionDirection.up-left': -5,
|
|
354
|
+
'MetaMotionDirection.up-right': -6,
|
|
355
|
+
'MetaPadActionType.button': 0,
|
|
356
|
+
'MetaPadActionType.ring': 1,
|
|
357
|
+
'MetaPadActionType.strip': 2,
|
|
358
|
+
'MetaPreference.action-double-click-titlebar': 5,
|
|
359
|
+
'MetaPreference.action-middle-click-titlebar': 6,
|
|
360
|
+
'MetaPreference.action-right-click-titlebar': 7,
|
|
361
|
+
'MetaPreference.attach-modal-dialogs': 3,
|
|
362
|
+
'MetaPreference.audible-bell': 19,
|
|
363
|
+
'MetaPreference.auto-maximize': 30,
|
|
364
|
+
'MetaPreference.auto-raise': 8,
|
|
365
|
+
'MetaPreference.auto-raise-delay': 9,
|
|
366
|
+
'MetaPreference.button-layout': 16,
|
|
367
|
+
'MetaPreference.center-new-windows': 31,
|
|
368
|
+
'MetaPreference.check-alive-timeout': 34,
|
|
369
|
+
'MetaPreference.cursor-size': 24,
|
|
370
|
+
'MetaPreference.cursor-theme': 23,
|
|
371
|
+
'MetaPreference.disable-workarounds': 15,
|
|
372
|
+
'MetaPreference.drag-threshold': 32,
|
|
373
|
+
'MetaPreference.draggable-border-width': 29,
|
|
374
|
+
'MetaPreference.dynamic-workspaces': 13,
|
|
375
|
+
'MetaPreference.edge-tiling': 26,
|
|
376
|
+
'MetaPreference.focus-change-on-pointer-rest': 10,
|
|
377
|
+
'MetaPreference.focus-mode': 1,
|
|
378
|
+
'MetaPreference.focus-new-windows': 2,
|
|
379
|
+
'MetaPreference.force-fullscreen': 27,
|
|
380
|
+
'MetaPreference.gnome-accessibility': 21,
|
|
381
|
+
'MetaPreference.gnome-animations': 22,
|
|
382
|
+
'MetaPreference.keybindings': 14,
|
|
383
|
+
'MetaPreference.locate-pointer': 33,
|
|
384
|
+
'MetaPreference.mouse-button-mods': 0,
|
|
385
|
+
'MetaPreference.num-workspaces': 12,
|
|
386
|
+
'MetaPreference.raise-on-click': 4,
|
|
387
|
+
'MetaPreference.resize-with-right-button': 25,
|
|
388
|
+
'MetaPreference.titlebar-font': 11,
|
|
389
|
+
'MetaPreference.visual-bell': 18,
|
|
390
|
+
'MetaPreference.visual-bell-type': 20,
|
|
391
|
+
'MetaPreference.workspace-names': 17,
|
|
392
|
+
'MetaPreference.workspaces-only-on-primary': 28,
|
|
393
|
+
'MetaSelectionType.n-selection-types': 3,
|
|
394
|
+
'MetaSelectionType.selection-clipboard': 1,
|
|
395
|
+
'MetaSelectionType.selection-dnd': 2,
|
|
396
|
+
'MetaSelectionType.selection-primary': 0,
|
|
397
|
+
'MetaShadowMode.auto': 0,
|
|
398
|
+
'MetaShadowMode.forced-off': 1,
|
|
399
|
+
'MetaShadowMode.forced-on': 2,
|
|
400
|
+
'MetaSide.bottom': 8,
|
|
401
|
+
'MetaSide.left': 1,
|
|
402
|
+
'MetaSide.right': 2,
|
|
403
|
+
'MetaSide.top': 4,
|
|
404
|
+
'MetaSizeChange.fullscreen': 2,
|
|
405
|
+
'MetaSizeChange.maximize': 0,
|
|
406
|
+
'MetaSizeChange.unfullscreen': 3,
|
|
407
|
+
'MetaSizeChange.unmaximize': 1,
|
|
408
|
+
'MetaStackLayer.bottom': 1,
|
|
409
|
+
'MetaStackLayer.desktop': 0,
|
|
410
|
+
'MetaStackLayer.dock': 4,
|
|
411
|
+
'MetaStackLayer.last': 8,
|
|
412
|
+
'MetaStackLayer.normal': 2,
|
|
413
|
+
'MetaStackLayer.override-redirect': 7,
|
|
414
|
+
'MetaStackLayer.top': 4,
|
|
415
|
+
'MetaTabList.docks': 1,
|
|
416
|
+
'MetaTabList.group': 2,
|
|
417
|
+
'MetaTabList.normal': 0,
|
|
418
|
+
'MetaTabList.normal-all': 3,
|
|
419
|
+
'MetaTabShowType.icon': 0,
|
|
420
|
+
'MetaTabShowType.instantly': 1,
|
|
421
|
+
'MetaWindowClientType.wayland': 0,
|
|
422
|
+
'MetaWindowClientType.x11': 1,
|
|
423
|
+
'MetaWindowMenuType.app': 1,
|
|
424
|
+
'MetaWindowMenuType.wm': 0,
|
|
425
|
+
'MetaWindowType.combo': 13,
|
|
426
|
+
'MetaWindowType.desktop': 1,
|
|
427
|
+
'MetaWindowType.dialog': 3,
|
|
428
|
+
'MetaWindowType.dnd': 14,
|
|
429
|
+
'MetaWindowType.dock': 2,
|
|
430
|
+
'MetaWindowType.dropdown-menu': 9,
|
|
431
|
+
'MetaWindowType.menu': 6,
|
|
432
|
+
'MetaWindowType.modal-dialog': 4,
|
|
433
|
+
'MetaWindowType.normal': 0,
|
|
434
|
+
'MetaWindowType.notification': 12,
|
|
435
|
+
'MetaWindowType.override-other': 15,
|
|
436
|
+
'MetaWindowType.popup-menu': 10,
|
|
437
|
+
'MetaWindowType.splashscreen': 8,
|
|
438
|
+
'MetaWindowType.toolbar': 5,
|
|
439
|
+
'MetaWindowType.tooltip': 11,
|
|
440
|
+
'MetaWindowType.utility': 7,
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
// The nicks GIR marks `deprecated="1"`.
|
|
444
|
+
//
|
|
445
|
+
// Two members of one enum may share a value -- that is how GObject spells an alias, and
|
|
446
|
+
// `GTK_ALIGN_BASELINE` and `GTK_ALIGN_BASELINE_FILL` are both 4. `ENUM_VALUES` keeps
|
|
447
|
+
// both names, so nothing is lost, and this is what says which of the two a number should be
|
|
448
|
+
// spelled back as. Stated rather than derived: the pairing is visible in the values, the
|
|
449
|
+
// DIRECTION is not.
|
|
450
|
+
//
|
|
451
|
+
// Read it as evidence, not as a negative: 4 registered-enum members in the 718 GIRs carry
|
|
452
|
+
// the attribute at all, and 179 of the 182 value-sharing pairs carry it on neither half.
|
|
453
|
+
// A nick missing from here is a nick GIR says nothing about, not a nick GIR calls current.
|
|
454
|
+
export const ENUM_DEPRECATED = [];
|
|
455
|
+
|
|
456
|
+
// The declared remainder: nicks whose GIR `value` is not a number this can carry.
|
|
457
|
+
//
|
|
458
|
+
// Every nick in `ENUM_NICKS` is in `ENUM_VALUES` or here -- a nick in neither would be a
|
|
459
|
+
// silent drop. GIR carries two shapes no integer holds: a symbolic or absent value (Vala
|
|
460
|
+
// writes `(null)`, a char enum writes a letter) and an integer past
|
|
461
|
+
// `Number.MAX_SAFE_INTEGER`. The value kept here is the raw attribute, so the entry says
|
|
462
|
+
// WHAT was unreadable rather than only that something was. Measured over the 718 GIRs in
|
|
463
|
+
// ts-for-gir's `girs/`: 32 of 34096 registered-enum members, none in Gtk, Adw, GLib or Gio.
|
|
464
|
+
export const ENUM_VALUES_UNREADABLE = {};
|
|
465
|
+
|
|
466
|
+
// The number behind each member of a registered BITFIELD, keyed the same way.
|
|
467
|
+
//
|
|
468
|
+
// `ENUM_NICKS` refuses a bitfield because GObject cannot resolve a nick SET, and that
|
|
469
|
+
// reason says nothing about one member's number. 23 settable properties in Gtk-4.0 and
|
|
470
|
+
// Adw-1 are bitfield-typed -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`,
|
|
471
|
+
// `AdwTabView:shortcuts`, `GtkDropTarget:actions`, ... -- and they are typed bare
|
|
472
|
+
// `number`, so a host without GI has nothing to compute one from. Counting is worst
|
|
473
|
+
// exactly here: 119 of the 156 Gtk-4.0 bitfield members this vocabulary carries disagree
|
|
474
|
+
// with their declaration position, against 29 of 672 enumeration members.
|
|
475
|
+
//
|
|
476
|
+
// A table of its own rather than more rows in `ENUM_VALUES`, so that "every nick in
|
|
477
|
+
// `ENUM_NICKS` has a number or a declared reason" stays a claim about one set.
|
|
478
|
+
export const FLAG_VALUES = {
|
|
479
|
+
'MetaBarrierDirection.negative-x': 4,
|
|
480
|
+
'MetaBarrierDirection.negative-y': 8,
|
|
481
|
+
'MetaBarrierDirection.positive-x': 1,
|
|
482
|
+
'MetaBarrierDirection.positive-y': 2,
|
|
483
|
+
'MetaDebugPaintFlag.none': 0,
|
|
484
|
+
'MetaDebugPaintFlag.opaque-region': 1,
|
|
485
|
+
'MetaDebugTopic.compositor': 1048576,
|
|
486
|
+
'MetaDebugTopic.dbus': 4194304,
|
|
487
|
+
'MetaDebugTopic.edge-resistance': 2097152,
|
|
488
|
+
'MetaDebugTopic.errors': 16384,
|
|
489
|
+
'MetaDebugTopic.events': 32,
|
|
490
|
+
'MetaDebugTopic.focus': 1,
|
|
491
|
+
'MetaDebugTopic.geometry': 256,
|
|
492
|
+
'MetaDebugTopic.groups': 131072,
|
|
493
|
+
'MetaDebugTopic.input': 8388608,
|
|
494
|
+
'MetaDebugTopic.keybindings': 4096,
|
|
495
|
+
'MetaDebugTopic.ping': 1024,
|
|
496
|
+
'MetaDebugTopic.placement': 512,
|
|
497
|
+
'MetaDebugTopic.prefs': 65536,
|
|
498
|
+
'MetaDebugTopic.resizing': 262144,
|
|
499
|
+
'MetaDebugTopic.shapes': 524288,
|
|
500
|
+
'MetaDebugTopic.sm': 16,
|
|
501
|
+
'MetaDebugTopic.stack': 4,
|
|
502
|
+
'MetaDebugTopic.startup': 32768,
|
|
503
|
+
'MetaDebugTopic.sync': 8192,
|
|
504
|
+
'MetaDebugTopic.themes': 8,
|
|
505
|
+
'MetaDebugTopic.verbose': -1,
|
|
506
|
+
'MetaDebugTopic.window-ops': 128,
|
|
507
|
+
'MetaDebugTopic.window-state': 64,
|
|
508
|
+
'MetaDebugTopic.workarea': 2,
|
|
509
|
+
'MetaDebugTopic.xinerama': 2048,
|
|
510
|
+
'MetaDirection.bottom': 8,
|
|
511
|
+
'MetaDirection.down': 8,
|
|
512
|
+
'MetaDirection.horizontal': 3,
|
|
513
|
+
'MetaDirection.left': 1,
|
|
514
|
+
'MetaDirection.right': 2,
|
|
515
|
+
'MetaDirection.top': 4,
|
|
516
|
+
'MetaDirection.up': 4,
|
|
517
|
+
'MetaDirection.vertical': 12,
|
|
518
|
+
'MetaFrameFlags.above': 8192,
|
|
519
|
+
'MetaFrameFlags.allows-delete': 1,
|
|
520
|
+
'MetaFrameFlags.allows-horizontal-resize': 32,
|
|
521
|
+
'MetaFrameFlags.allows-maximize': 8,
|
|
522
|
+
'MetaFrameFlags.allows-menu': 2,
|
|
523
|
+
'MetaFrameFlags.allows-minimize': 4,
|
|
524
|
+
'MetaFrameFlags.allows-move': 2048,
|
|
525
|
+
'MetaFrameFlags.allows-shade': 1024,
|
|
526
|
+
'MetaFrameFlags.allows-vertical-resize': 16,
|
|
527
|
+
'MetaFrameFlags.fullscreen': 4096,
|
|
528
|
+
'MetaFrameFlags.has-focus': 64,
|
|
529
|
+
'MetaFrameFlags.maximized': 512,
|
|
530
|
+
'MetaFrameFlags.shaded': 128,
|
|
531
|
+
'MetaFrameFlags.stuck': 256,
|
|
532
|
+
'MetaFrameFlags.tiled-left': 16384,
|
|
533
|
+
'MetaFrameFlags.tiled-right': 32768,
|
|
534
|
+
'MetaKeyBindingFlags.builtin': 2,
|
|
535
|
+
'MetaKeyBindingFlags.ignore-autorepeat': 16,
|
|
536
|
+
'MetaKeyBindingFlags.is-reversed': 4,
|
|
537
|
+
'MetaKeyBindingFlags.no-auto-grab': 32,
|
|
538
|
+
'MetaKeyBindingFlags.non-maskable': 8,
|
|
539
|
+
'MetaKeyBindingFlags.none': 0,
|
|
540
|
+
'MetaKeyBindingFlags.per-window': 1,
|
|
541
|
+
'MetaMaximizeFlags.both': 3,
|
|
542
|
+
'MetaMaximizeFlags.horizontal': 1,
|
|
543
|
+
'MetaMaximizeFlags.vertical': 2,
|
|
544
|
+
'MetaModalOptions.keyboard-already-grabbed': 2,
|
|
545
|
+
'MetaModalOptions.pointer-already-grabbed': 1,
|
|
546
|
+
'MetaVirtualModifier.alt-mask': 128,
|
|
547
|
+
'MetaVirtualModifier.control-mask': 64,
|
|
548
|
+
'MetaVirtualModifier.hyper-mask': 1024,
|
|
549
|
+
'MetaVirtualModifier.meta-mask': 256,
|
|
550
|
+
'MetaVirtualModifier.mod2-mask': 2048,
|
|
551
|
+
'MetaVirtualModifier.mod3-mask': 4096,
|
|
552
|
+
'MetaVirtualModifier.mod4-mask': 8192,
|
|
553
|
+
'MetaVirtualModifier.mod5-mask': 16384,
|
|
554
|
+
'MetaVirtualModifier.shift-mask': 32,
|
|
555
|
+
'MetaVirtualModifier.super-mask': 512,
|
|
556
|
+
};
|
|
557
|
+
|
|
558
|
+
// The same declared remainder for the bitfields. Every one of the 13 members in ts-for-gir's
|
|
559
|
+
// `girs/` whose value is past `Number.MAX_SAFE_INTEGER` is a bitfield member (Fwupd, Qmi),
|
|
560
|
+
// so this is the table that shape actually reaches.
|
|
561
|
+
export const FLAG_VALUES_UNREADABLE = {};
|
|
562
|
+
|
|
563
|
+
// Declaration GType + property name -> the GType of that property's enum or bitfield.
|
|
564
|
+
//
|
|
565
|
+
// Without it the value tables above are half an answer. A host with no GI knows it must set
|
|
566
|
+
// `orientation` to the number behind the nick `vertical`; `ENUM_VALUES` is keyed
|
|
567
|
+
// `GtkOrientation.vertical`, and nothing else says that `orientation` is a
|
|
568
|
+
// `GtkOrientation`. Deriving it is not available: `never` is a member of several Gtk enums,
|
|
569
|
+
// and choosing between them produces a wrong number rather than a missing one.
|
|
570
|
+
//
|
|
571
|
+
// Only where the property's OWN type is the enum. An array of them and a union that mentions
|
|
572
|
+
// one are both entries a consumer would resolve wrongly, so neither is written.
|
|
573
|
+
//
|
|
574
|
+
// A GType named here has numbers in SOME vocabulary, not necessarily this one: the namespace
|
|
575
|
+
// that OWNS an enum publishes it, so 83 of the 909 entries a full run emits want the owner's
|
|
576
|
+
// vocabulary loaded too. Owners that emit none (Gdk, Pango) are inlined into the tables above.
|
|
577
|
+
export const PROP_ENUMS = {
|
|
578
|
+
'MetaBarrier.directions': 'MetaBarrierDirection',
|
|
579
|
+
};
|
|
580
|
+
|
|
581
|
+
// `<declaration GType>.<property>` -> the GType of that property's own type.
|
|
582
|
+
//
|
|
583
|
+
// `PROP_ENUMS` one case wider, and a SEPARATE table on purpose. That one is a join with a
|
|
584
|
+
// contract — the GType it names has numbers, in this vocabulary or the owner's — and folding a
|
|
585
|
+
// plain type table in would mix "resolvable to numbers" with "not" and hand the distinction to
|
|
586
|
+
// the consumer. `ARIA_VALUE_ENUMS` beside `ARIA_VALUE_TYPES` is the same split.
|
|
587
|
+
//
|
|
588
|
+
// A row is ABSENT where no GType can be stated: a fundamental spelling outside the generator's
|
|
589
|
+
// closed map, a registered type with no `glib:type-name`, or a property with no `<type>`
|
|
590
|
+
// child. Absence therefore reads as "unknown" and never as "scalar".
|
|
591
|
+
export const PROP_TYPES = {
|
|
592
|
+
'MetaBackground.meta-display': 'MetaDisplay',
|
|
593
|
+
'MetaBackgroundActor.meta-display': 'MetaDisplay',
|
|
594
|
+
'MetaBackgroundActor.monitor': 'gint',
|
|
595
|
+
'MetaBackgroundContent.background': 'MetaBackground',
|
|
596
|
+
'MetaBackgroundContent.brightness': 'gdouble',
|
|
597
|
+
'MetaBackgroundContent.gradient': 'gboolean',
|
|
598
|
+
'MetaBackgroundContent.gradient-height': 'gint',
|
|
599
|
+
'MetaBackgroundContent.gradient-max-darkness': 'gdouble',
|
|
600
|
+
'MetaBackgroundContent.meta-display': 'MetaDisplay',
|
|
601
|
+
'MetaBackgroundContent.monitor': 'gint',
|
|
602
|
+
'MetaBackgroundContent.vignette': 'gboolean',
|
|
603
|
+
'MetaBackgroundContent.vignette-sharpness': 'gdouble',
|
|
604
|
+
'MetaBarrier.directions': 'MetaBarrierDirection',
|
|
605
|
+
'MetaBarrier.display': 'MetaDisplay',
|
|
606
|
+
'MetaBarrier.x1': 'gint',
|
|
607
|
+
'MetaBarrier.x2': 'gint',
|
|
608
|
+
'MetaBarrier.y1': 'gint',
|
|
609
|
+
'MetaBarrier.y2': 'gint',
|
|
610
|
+
'MetaCursorTracker.backend': 'MetaBackend',
|
|
611
|
+
'MetaIdleMonitor.device': 'ClutterInputDevice',
|
|
612
|
+
'MetaLaunchContext.display': 'MetaDisplay',
|
|
613
|
+
'MetaLaunchContext.timestamp': 'guint',
|
|
614
|
+
'MetaLaunchContext.workspace': 'MetaWorkspace',
|
|
615
|
+
'MetaMonitorManager.backend': 'MetaBackend',
|
|
616
|
+
'MetaRemoteAccessHandle.is-recording': 'gboolean',
|
|
617
|
+
'MetaStartupNotification.display': 'MetaDisplay',
|
|
618
|
+
'MetaStartupSequence.application-id': 'gchararray',
|
|
619
|
+
'MetaStartupSequence.icon-name': 'gchararray',
|
|
620
|
+
'MetaStartupSequence.id': 'gchararray',
|
|
621
|
+
'MetaStartupSequence.name': 'gchararray',
|
|
622
|
+
'MetaStartupSequence.timestamp': 'guint64',
|
|
623
|
+
'MetaStartupSequence.wmclass': 'gchararray',
|
|
624
|
+
'MetaStartupSequence.workspace': 'gint',
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
// `<enum GType>.<nick>` -> the kind of value that ARIA slot takes.
|
|
628
|
+
//
|
|
629
|
+
// The one table here that is not about a ParamSpec. A GtkBuilder or Blueprint
|
|
630
|
+
// `accessibility { … }` block is typed by GTK's ARIA table instead, and the two disagree
|
|
631
|
+
// where it matters: `orientation` is settable on a `GtkLabel` that implements no
|
|
632
|
+
// `GtkOrientable` and has no such property, and `checked` is a `GtkAccessibleTristate`, so
|
|
633
|
+
// `checked: true` means the number 1 and not the boolean. A consumer typing those slots
|
|
634
|
+
// from the widget gets both wrong, silently.
|
|
635
|
+
//
|
|
636
|
+
// Read from each member's own documentation, which is where GTK keeps the table --
|
|
637
|
+
// `gtk_accessible_property_init_value()` is the C half and is not introspectable, the
|
|
638
|
+
// sentence is. Complete or absent, never partial: a member whose documentation states no
|
|
639
|
+
// value type fails generation and names itself, because a missing row is indistinguishable
|
|
640
|
+
// from "GTK has no such name" and the plausible fallback emits `true` where GTK means 1.
|
|
641
|
+
export const ARIA_VALUE_TYPES = {};
|
|
642
|
+
|
|
643
|
+
// The same keys, for the `'enum'` rows only -> the GType of the enum.
|
|
644
|
+
//
|
|
645
|
+
// The join on from a kind to a number, and a table of its own for the reason `PROP_ENUMS`
|
|
646
|
+
// is one: folding the GType into `ARIA_VALUE_TYPES` would make its values a mix of six
|
|
647
|
+
// reserved words and arbitrary GTypes, and telling them apart would be the consumer's
|
|
648
|
+
// problem. With this, `ARIA_VALUE_TYPES[k] === 'enum'` is the whole test, and
|
|
649
|
+
// `ENUM_NICKS[ARIA_VALUE_ENUMS[k]]` is the nick list.
|
|
650
|
+
export const ARIA_VALUE_ENUMS = {};
|
|
651
|
+
|
|
652
|
+
export const SLOT_CANDIDATES = {};
|
|
653
|
+
|
|
654
|
+
export const SINCE = {};
|