@girs/panel-1 4.0.4 → 4.2.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 +1 -1
- package/package.json +22 -17
- package/panel-1-surface.d.ts +424 -0
- package/panel-1-surface.js +78 -0
- package/tsconfig.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Panel-1, generated from library version 1.10.4 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.
|
|
8
|
+
GJS TypeScript type definitions for Panel-1, generated from library version 1.10.4 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.2.0.
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/panel-1",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"libraryVersion": "1.10.4",
|
|
5
5
|
"description": "GJS TypeScript type definitions for Panel-1, generated from library version 1.10.4",
|
|
6
6
|
"type": "module",
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
"import": "./panel-1-import.js",
|
|
18
18
|
"default": "./panel-1-import.js"
|
|
19
19
|
},
|
|
20
|
+
"./surface": {
|
|
21
|
+
"types": "./panel-1-surface.d.ts",
|
|
22
|
+
"import": "./panel-1-surface.js",
|
|
23
|
+
"default": "./panel-1-surface.js"
|
|
24
|
+
},
|
|
20
25
|
"./panel-1": {
|
|
21
26
|
"types": "./panel-1.d.ts",
|
|
22
27
|
"import": "./panel-1.js",
|
|
@@ -32,22 +37,22 @@
|
|
|
32
37
|
"test": "tsc --project tsconfig.json"
|
|
33
38
|
},
|
|
34
39
|
"dependencies": {
|
|
35
|
-
"@girs/gjs": "^4.0
|
|
36
|
-
"@girs/gtk-4.0": "^4.0
|
|
37
|
-
"@girs/gsk-4.0": "^4.0
|
|
38
|
-
"@girs/graphene-1.0": "^4.0
|
|
39
|
-
"@girs/gobject-2.0": "^4.0
|
|
40
|
-
"@girs/glib-2.0": "^4.0
|
|
41
|
-
"@girs/gdk-4.0": "^4.0
|
|
42
|
-
"@girs/cairo-1.0": "^4.0
|
|
43
|
-
"@girs/pangocairo-1.0": "^4.0
|
|
44
|
-
"@girs/pango-1.0": "^4.0
|
|
45
|
-
"@girs/harfbuzz-0.0": "^4.0
|
|
46
|
-
"@girs/freetype2-2.0": "^4.0
|
|
47
|
-
"@girs/gio-2.0": "^4.0
|
|
48
|
-
"@girs/gmodule-2.0": "^4.0
|
|
49
|
-
"@girs/gdkpixbuf-2.0": "^4.0
|
|
50
|
-
"@girs/adw-1": "^4.0
|
|
40
|
+
"@girs/gjs": "^4.2.0",
|
|
41
|
+
"@girs/gtk-4.0": "^4.2.0",
|
|
42
|
+
"@girs/gsk-4.0": "^4.2.0",
|
|
43
|
+
"@girs/graphene-1.0": "^4.2.0",
|
|
44
|
+
"@girs/gobject-2.0": "^4.2.0",
|
|
45
|
+
"@girs/glib-2.0": "^4.2.0",
|
|
46
|
+
"@girs/gdk-4.0": "^4.2.0",
|
|
47
|
+
"@girs/cairo-1.0": "^4.2.0",
|
|
48
|
+
"@girs/pangocairo-1.0": "^4.2.0",
|
|
49
|
+
"@girs/pango-1.0": "^4.2.0",
|
|
50
|
+
"@girs/harfbuzz-0.0": "^4.2.0",
|
|
51
|
+
"@girs/freetype2-2.0": "^4.2.0",
|
|
52
|
+
"@girs/gio-2.0": "^4.2.0",
|
|
53
|
+
"@girs/gmodule-2.0": "^4.2.0",
|
|
54
|
+
"@girs/gdkpixbuf-2.0": "^4.2.0",
|
|
55
|
+
"@girs/adw-1": "^4.2.0" },
|
|
51
56
|
"devDependencies": {
|
|
52
57
|
"typescript": "*"
|
|
53
58
|
},
|
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The GIR-derived widget VOCABULARY for Panel-1.
|
|
3
|
+
*
|
|
4
|
+
* GENERATED — do not edit. Provenance: Panel-1 — library 1.10.4 — dropped empty base(s): GObject.InitiallyUnowned GObject.Object Gio.ActionGroup Gio.ActionMap
|
|
5
|
+
*
|
|
6
|
+
* 17 concrete widgets, 18 declarations, 1 enum nick unions, 6 slot candidates.
|
|
7
|
+
*
|
|
8
|
+
* Module-scoped exports only. There is no `JSX` namespace here, no tag spelling and
|
|
9
|
+
* no `on<Signal>` prop name: those are DIALECT, and every framework answers them
|
|
10
|
+
* differently. The shape to avoid is the GLOBAL AUGMENT — a `declare global` on
|
|
11
|
+
* `React.JSX` collides with every other library on a shared tag — while a
|
|
12
|
+
* module-scoped `JSX` behind a `jsxImportSource` does not. This package is used by
|
|
13
|
+
* projects that want nothing to do with JSX, so it emits neither; a consumer declaring
|
|
14
|
+
* a module-scoped namespace over these names is doing it right.
|
|
15
|
+
*
|
|
16
|
+
* Three things this is and `ConstructorProps` is not: WRITABLE-only (measured on
|
|
17
|
+
* Gtk-4.0, `ConstructorProps` offers 150 read-only properties across 68 classes as
|
|
18
|
+
* settable, and GTK's failure mode for writing one is exit 0), OPTIONAL, and keyed
|
|
19
|
+
* by the name GObject actually REGISTERED — the dashed spelling `g_object_set`,
|
|
20
|
+
* GtkBuilder XML and Blueprint all use.
|
|
21
|
+
*
|
|
22
|
+
* Signal handler types are not re-derived: `X.SignalSignatures`, which this package
|
|
23
|
+
* already emits for every class with the parent chain, every implemented interface
|
|
24
|
+
* and the `notify::` keys folded in, is what `Widgets[G]['signals']` points at.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
import type Gio from '@girs/gio-2.0';
|
|
28
|
+
import type Gtk from '@girs/gtk-4.0';
|
|
29
|
+
import type Panel from './panel-1.js';
|
|
30
|
+
import type { AdwAlertDialogConstructOnly, AdwAlertDialogProps, AdwApplicationWindowConstructOnly, AdwApplicationWindowProps, AdwDialogConstructOnly, AdwDialogProps, AdwMessageDialogConstructOnly, AdwMessageDialogProps } from '@girs/adw-1/surface';
|
|
31
|
+
import type { GtkAccessibleConstructOnly, GtkAccessibleProps, GtkActionableConstructOnly, GtkActionableProps, GtkApplicationWindowConstructOnly, GtkApplicationWindowProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkConstraintTargetConstructOnly, GtkConstraintTargetProps, GtkNativeConstructOnly, GtkNativeProps, GtkOrientableConstructOnly, GtkOrientableProps, GtkRootConstructOnly, GtkRootProps, GtkShortcutManagerConstructOnly, GtkShortcutManagerProps, GtkWidgetConstructOnly, GtkWidgetProps, GtkWindowConstructOnly, GtkWindowProps } from '@girs/gtk-4.0/surface';
|
|
32
|
+
|
|
33
|
+
// ---------------------------------------------------------------------------
|
|
34
|
+
// Enum nicks — the string vocabulary GObject registered, from GIR's `glib:nick`.
|
|
35
|
+
//
|
|
36
|
+
// Not derived from the member name. Substituting underscores for dashes is not a law:
|
|
37
|
+
// some nicks keep an underscore the substitution would have replaced, and only the
|
|
38
|
+
// attribute knows which. Gtk-4.0 and Adw-1 contradict no derivation at all, which is
|
|
39
|
+
// how a derived nick passes review and breaks elsewhere.
|
|
40
|
+
// Re-measure with `scripts/check-nick-derivation.mjs` in ts-for-gir.
|
|
41
|
+
// ---------------------------------------------------------------------------
|
|
42
|
+
|
|
43
|
+
export type PanelAreaNick = 'start' | 'end' | 'top' | 'bottom' | 'center';
|
|
44
|
+
|
|
45
|
+
// ---------------------------------------------------------------------------
|
|
46
|
+
// Property surfaces — one interface per GIR DECLARATION, mirroring GIR's own
|
|
47
|
+
// inheritance rather than flattening per widget.
|
|
48
|
+
//
|
|
49
|
+
// The interfaces are load-bearing, not tidiness: `GtkBox` declares four properties
|
|
50
|
+
// of its own and `orientation` is not among them — it lives on `Gtk.Orientable`,
|
|
51
|
+
// because GObject installs interface properties on the implementor at runtime while
|
|
52
|
+
// GIR keeps them once, on the interface.
|
|
53
|
+
// ---------------------------------------------------------------------------
|
|
54
|
+
|
|
55
|
+
export interface PanelChangesDialogProps extends AdwAlertDialogProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkShortcutManagerProps {
|
|
56
|
+
/** This property requests that the widget close after saving. */
|
|
57
|
+
'close-after-save'?: boolean;
|
|
58
|
+
}
|
|
59
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
60
|
+
export type PanelChangesDialogConstructOnly = AdwAlertDialogConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly | GtkShortcutManagerConstructOnly;
|
|
61
|
+
|
|
62
|
+
/** The #PanelDock is a widget designed to contain widgets that can be docked. */
|
|
63
|
+
export interface PanelDockProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
64
|
+
'bottom-height'?: number;
|
|
65
|
+
'end-width'?: number;
|
|
66
|
+
'reveal-bottom'?: boolean;
|
|
67
|
+
'reveal-end'?: boolean;
|
|
68
|
+
'reveal-start'?: boolean;
|
|
69
|
+
'reveal-top'?: boolean;
|
|
70
|
+
'start-width'?: number;
|
|
71
|
+
'top-height'?: number;
|
|
72
|
+
}
|
|
73
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
74
|
+
export type PanelDockConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly;
|
|
75
|
+
|
|
76
|
+
export interface PanelDocumentWorkspaceProps extends PanelWorkspaceProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
77
|
+
}
|
|
78
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
79
|
+
export type PanelDocumentWorkspaceConstructOnly = PanelWorkspaceConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly | GtkNativeConstructOnly | GtkRootConstructOnly | GtkShortcutManagerConstructOnly;
|
|
80
|
+
|
|
81
|
+
/** The #PanelFrame is a widget containing panels to display in an area. */
|
|
82
|
+
export interface PanelFrameProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
83
|
+
placeholder?: Gtk.Widget | null;
|
|
84
|
+
'visible-child'?: Panel.Widget | null;
|
|
85
|
+
}
|
|
86
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
87
|
+
export type PanelFrameConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly | GtkOrientableConstructOnly;
|
|
88
|
+
|
|
89
|
+
/** An interface implemented by the header of a #PanelFrame. */
|
|
90
|
+
export interface PanelFrameHeaderProps extends GtkWidgetProps {
|
|
91
|
+
/** The frame the header is attached to, or %NULL. */
|
|
92
|
+
frame?: Panel.Frame | null;
|
|
93
|
+
}
|
|
94
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
95
|
+
export type PanelFrameHeaderConstructOnly = GtkWidgetConstructOnly;
|
|
96
|
+
|
|
97
|
+
/** A header bar for #PanelFrame. */
|
|
98
|
+
export interface PanelFrameHeaderBarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, PanelFrameHeaderProps {
|
|
99
|
+
/** Whether to show the icon or not. */
|
|
100
|
+
'show-icon'?: boolean;
|
|
101
|
+
}
|
|
102
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
103
|
+
export type PanelFrameHeaderBarConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly | PanelFrameHeaderConstructOnly;
|
|
104
|
+
|
|
105
|
+
/** A #PanelFrameSwitcher is a #PanelFrameHeader that shows a row of buttons to switch between #GtkStack pages, not disimilar to a #GtkStackSwitcher. */
|
|
106
|
+
export interface PanelFrameSwitcherProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps, PanelFrameHeaderProps {
|
|
107
|
+
}
|
|
108
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
109
|
+
export type PanelFrameSwitcherConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly | GtkOrientableConstructOnly | PanelFrameHeaderConstructOnly;
|
|
110
|
+
|
|
111
|
+
/** A #PanelFrameHeader that implements switching between tab views in a #PanelFrame. */
|
|
112
|
+
export interface PanelFrameTabBarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, PanelFrameHeaderProps {
|
|
113
|
+
/** Whether the tabs automatically hide. */
|
|
114
|
+
autohide?: boolean;
|
|
115
|
+
/** Whether tabs expand to full width. */
|
|
116
|
+
'expand-tabs'?: boolean;
|
|
117
|
+
/** Whether tabs use inverted layout. */
|
|
118
|
+
inverted?: boolean;
|
|
119
|
+
}
|
|
120
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
121
|
+
export type PanelFrameTabBarConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly | PanelFrameHeaderConstructOnly;
|
|
122
|
+
|
|
123
|
+
/** The #PanelGrid is a widget used to layout the dock item in the center area. */
|
|
124
|
+
export interface PanelGridProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
125
|
+
}
|
|
126
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
127
|
+
export type PanelGridConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly;
|
|
128
|
+
|
|
129
|
+
export interface PanelGridColumnProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
130
|
+
}
|
|
131
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
132
|
+
export type PanelGridColumnConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly;
|
|
133
|
+
|
|
134
|
+
/** A multi-use widget for user interaction in the window header bar. */
|
|
135
|
+
export interface PanelOmniBarProps extends GtkWidgetProps, GtkAccessibleProps, GtkActionableProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
136
|
+
/** The tooltip for the action. */
|
|
137
|
+
'action-tooltip'?: string;
|
|
138
|
+
/** The name of the icon to use. */
|
|
139
|
+
'icon-name'?: string;
|
|
140
|
+
/** The menu model of the omni bar menu. */
|
|
141
|
+
'menu-model'?: Gio.MenuModel;
|
|
142
|
+
/** The popover to show. */
|
|
143
|
+
popover?: Gtk.Popover | null;
|
|
144
|
+
/** The current progress value. */
|
|
145
|
+
progress?: number;
|
|
146
|
+
}
|
|
147
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
148
|
+
export type PanelOmniBarConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkActionableConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly;
|
|
149
|
+
|
|
150
|
+
/** A #PanelPaned is the concrete widget for a panel area. */
|
|
151
|
+
export interface PanelPanedProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkOrientableProps {
|
|
152
|
+
}
|
|
153
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
154
|
+
export type PanelPanedConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly | GtkOrientableConstructOnly;
|
|
155
|
+
|
|
156
|
+
export interface PanelSaveDialogProps extends AdwMessageDialogProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
157
|
+
/** This property requests that the widget close after saving. */
|
|
158
|
+
'close-after-save'?: boolean;
|
|
159
|
+
}
|
|
160
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
161
|
+
export type PanelSaveDialogConstructOnly = AdwMessageDialogConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly | GtkNativeConstructOnly | GtkRootConstructOnly | GtkShortcutManagerConstructOnly;
|
|
162
|
+
|
|
163
|
+
/** A panel status bar is meant to be displayed at the bottom of the window. */
|
|
164
|
+
export interface PanelStatusbarProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
165
|
+
}
|
|
166
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
167
|
+
export type PanelStatusbarConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly;
|
|
168
|
+
|
|
169
|
+
/** A widget that allow selecting theme preference between "dark", "light" and "follow" the system preference. */
|
|
170
|
+
export interface PanelThemeSelectorProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
171
|
+
/** The name of the action activated on activation. */
|
|
172
|
+
'action-name'?: string;
|
|
173
|
+
}
|
|
174
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
175
|
+
export type PanelThemeSelectorConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly;
|
|
176
|
+
|
|
177
|
+
/** The `PanelToggleButton` is a button used to toggle the visibility of a [class@Panel.Dock] area. */
|
|
178
|
+
export interface PanelToggleButtonProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
179
|
+
/** The area this button will reveal. */
|
|
180
|
+
area?: PanelAreaNick | Panel.Area;
|
|
181
|
+
/** The associated [class@Panel.Dock] */
|
|
182
|
+
dock?: Panel.Dock;
|
|
183
|
+
}
|
|
184
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
185
|
+
export type PanelToggleButtonConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly | 'area';
|
|
186
|
+
|
|
187
|
+
/** PanelWidget is the base widget class for widgets added to a #PanelFrame. */
|
|
188
|
+
export interface PanelWidgetProps extends GtkWidgetProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps {
|
|
189
|
+
'can-maximize'?: boolean;
|
|
190
|
+
/** The child inside this widget. */
|
|
191
|
+
child?: Gtk.Widget | null;
|
|
192
|
+
/** The icon for this widget. */
|
|
193
|
+
icon?: Gio.Icon | null;
|
|
194
|
+
/** The icon name for this widget. */
|
|
195
|
+
'icon-name'?: string | null;
|
|
196
|
+
id?: string;
|
|
197
|
+
kind?: string;
|
|
198
|
+
/** A menu model to display additional options for the page to the user via menus. */
|
|
199
|
+
'menu-model'?: Gio.MenuModel | null;
|
|
200
|
+
modified?: boolean;
|
|
201
|
+
'needs-attention'?: boolean;
|
|
202
|
+
reorderable?: boolean;
|
|
203
|
+
/** The save delegate attached to this widget. */
|
|
204
|
+
'save-delegate'?: Panel.SaveDelegate | null;
|
|
205
|
+
/** The title for this widget. */
|
|
206
|
+
title?: string | null;
|
|
207
|
+
/**
|
|
208
|
+
* The tooltip to display in tabs for the widget.
|
|
209
|
+
* @since 1.2
|
|
210
|
+
*/
|
|
211
|
+
tooltip?: string | null;
|
|
212
|
+
}
|
|
213
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
214
|
+
export type PanelWidgetConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly;
|
|
215
|
+
|
|
216
|
+
export interface PanelWorkspaceProps extends AdwApplicationWindowProps, GtkAccessibleProps, GtkBuildableProps, GtkConstraintTargetProps, GtkNativeProps, GtkRootProps, GtkShortcutManagerProps {
|
|
217
|
+
/**
|
|
218
|
+
* The "id" of the workspace.
|
|
219
|
+
* @since 1.4
|
|
220
|
+
*/
|
|
221
|
+
id?: string;
|
|
222
|
+
}
|
|
223
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
224
|
+
export type PanelWorkspaceConstructOnly = AdwApplicationWindowConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly | GtkNativeConstructOnly | GtkRootConstructOnly | GtkShortcutManagerConstructOnly;
|
|
225
|
+
|
|
226
|
+
// ---------------------------------------------------------------------------
|
|
227
|
+
// The GType-keyed widget map.
|
|
228
|
+
//
|
|
229
|
+
// Keyed by GType because that is also the GtkBuilder XML key and the typelib key. A
|
|
230
|
+
// consumer maps GTypes to tags in ITS convention — kebab for JSX intrinsics, Pascal
|
|
231
|
+
// for a Vue `GlobalComponents`, the class itself for a renderer whose element type
|
|
232
|
+
// is the class. None of those is baked in here.
|
|
233
|
+
//
|
|
234
|
+
// `slotCandidates` is a candidate list and never an answer: derived from methods
|
|
235
|
+
// taking exactly one widget argument. The GIR cannot tell adoption from reference —
|
|
236
|
+
// `set_title_widget` parents its argument and `set_activatable_widget` does not, and
|
|
237
|
+
// both are `void f(GtkWidget*)` at `transfer-ownership="none"`. Curation decides;
|
|
238
|
+
// this is what notices when a release adds a candidate.
|
|
239
|
+
// ---------------------------------------------------------------------------
|
|
240
|
+
|
|
241
|
+
export interface Widgets {
|
|
242
|
+
PanelChangesDialog: {
|
|
243
|
+
class: Panel.ChangesDialog;
|
|
244
|
+
props: PanelChangesDialogProps;
|
|
245
|
+
signals: Panel.ChangesDialog.SignalSignatures;
|
|
246
|
+
constructOnly: PanelChangesDialogConstructOnly;
|
|
247
|
+
slotCandidates: {};
|
|
248
|
+
};
|
|
249
|
+
PanelDock: {
|
|
250
|
+
class: Panel.Dock;
|
|
251
|
+
props: PanelDockProps;
|
|
252
|
+
signals: Panel.Dock.SignalSignatures;
|
|
253
|
+
constructOnly: PanelDockConstructOnly;
|
|
254
|
+
slotCandidates: {};
|
|
255
|
+
};
|
|
256
|
+
PanelDocumentWorkspace: {
|
|
257
|
+
class: Panel.DocumentWorkspace;
|
|
258
|
+
props: PanelDocumentWorkspaceProps;
|
|
259
|
+
signals: Panel.DocumentWorkspace.SignalSignatures;
|
|
260
|
+
constructOnly: PanelDocumentWorkspaceConstructOnly;
|
|
261
|
+
slotCandidates: {
|
|
262
|
+
'titlebar': 'set_titlebar';
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
PanelFrame: {
|
|
266
|
+
class: Panel.Frame;
|
|
267
|
+
props: PanelFrameProps;
|
|
268
|
+
signals: Panel.Frame.SignalSignatures;
|
|
269
|
+
constructOnly: PanelFrameConstructOnly;
|
|
270
|
+
slotCandidates: {
|
|
271
|
+
'header': 'set_header';
|
|
272
|
+
'placeholder': 'set_placeholder';
|
|
273
|
+
'visible-child': 'set_visible_child';
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
PanelFrameHeaderBar: {
|
|
277
|
+
class: Panel.FrameHeaderBar;
|
|
278
|
+
props: PanelFrameHeaderBarProps;
|
|
279
|
+
signals: Panel.FrameHeaderBar.SignalSignatures;
|
|
280
|
+
constructOnly: PanelFrameHeaderBarConstructOnly;
|
|
281
|
+
slotCandidates: {};
|
|
282
|
+
};
|
|
283
|
+
PanelFrameSwitcher: {
|
|
284
|
+
class: Panel.FrameSwitcher;
|
|
285
|
+
props: PanelFrameSwitcherProps;
|
|
286
|
+
signals: Panel.FrameSwitcher.SignalSignatures;
|
|
287
|
+
constructOnly: PanelFrameSwitcherConstructOnly;
|
|
288
|
+
slotCandidates: {};
|
|
289
|
+
};
|
|
290
|
+
PanelFrameTabBar: {
|
|
291
|
+
class: Panel.FrameTabBar;
|
|
292
|
+
props: PanelFrameTabBarProps;
|
|
293
|
+
signals: Panel.FrameTabBar.SignalSignatures;
|
|
294
|
+
constructOnly: PanelFrameTabBarConstructOnly;
|
|
295
|
+
slotCandidates: {};
|
|
296
|
+
};
|
|
297
|
+
PanelGrid: {
|
|
298
|
+
class: Panel.Grid;
|
|
299
|
+
props: PanelGridProps;
|
|
300
|
+
signals: Panel.Grid.SignalSignatures;
|
|
301
|
+
constructOnly: PanelGridConstructOnly;
|
|
302
|
+
slotCandidates: {};
|
|
303
|
+
};
|
|
304
|
+
PanelGridColumn: {
|
|
305
|
+
class: Panel.GridColumn;
|
|
306
|
+
props: PanelGridColumnProps;
|
|
307
|
+
signals: Panel.GridColumn.SignalSignatures;
|
|
308
|
+
constructOnly: PanelGridColumnConstructOnly;
|
|
309
|
+
slotCandidates: {};
|
|
310
|
+
};
|
|
311
|
+
PanelOmniBar: {
|
|
312
|
+
class: Panel.OmniBar;
|
|
313
|
+
props: PanelOmniBarProps;
|
|
314
|
+
signals: Panel.OmniBar.SignalSignatures;
|
|
315
|
+
constructOnly: PanelOmniBarConstructOnly;
|
|
316
|
+
slotCandidates: {
|
|
317
|
+
'popover': 'set_popover';
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
PanelPaned: {
|
|
321
|
+
class: Panel.Paned;
|
|
322
|
+
props: PanelPanedProps;
|
|
323
|
+
signals: Panel.Paned.SignalSignatures;
|
|
324
|
+
constructOnly: PanelPanedConstructOnly;
|
|
325
|
+
slotCandidates: {};
|
|
326
|
+
};
|
|
327
|
+
PanelSaveDialog: {
|
|
328
|
+
class: Panel.SaveDialog;
|
|
329
|
+
props: PanelSaveDialogProps;
|
|
330
|
+
signals: Panel.SaveDialog.SignalSignatures;
|
|
331
|
+
constructOnly: PanelSaveDialogConstructOnly;
|
|
332
|
+
slotCandidates: {};
|
|
333
|
+
};
|
|
334
|
+
PanelStatusbar: {
|
|
335
|
+
class: Panel.Statusbar;
|
|
336
|
+
props: PanelStatusbarProps;
|
|
337
|
+
signals: Panel.Statusbar.SignalSignatures;
|
|
338
|
+
constructOnly: PanelStatusbarConstructOnly;
|
|
339
|
+
slotCandidates: {};
|
|
340
|
+
};
|
|
341
|
+
PanelThemeSelector: {
|
|
342
|
+
class: Panel.ThemeSelector;
|
|
343
|
+
props: PanelThemeSelectorProps;
|
|
344
|
+
signals: Panel.ThemeSelector.SignalSignatures;
|
|
345
|
+
constructOnly: PanelThemeSelectorConstructOnly;
|
|
346
|
+
slotCandidates: {};
|
|
347
|
+
};
|
|
348
|
+
PanelToggleButton: {
|
|
349
|
+
class: Panel.ToggleButton;
|
|
350
|
+
props: PanelToggleButtonProps;
|
|
351
|
+
signals: Panel.ToggleButton.SignalSignatures;
|
|
352
|
+
constructOnly: PanelToggleButtonConstructOnly;
|
|
353
|
+
slotCandidates: {};
|
|
354
|
+
};
|
|
355
|
+
PanelWidget: {
|
|
356
|
+
class: Panel.Widget;
|
|
357
|
+
props: PanelWidgetProps;
|
|
358
|
+
signals: Panel.Widget.SignalSignatures;
|
|
359
|
+
constructOnly: PanelWidgetConstructOnly;
|
|
360
|
+
slotCandidates: {
|
|
361
|
+
'child': 'set_child';
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
PanelWorkspace: {
|
|
365
|
+
class: Panel.Workspace;
|
|
366
|
+
props: PanelWorkspaceProps;
|
|
367
|
+
signals: Panel.Workspace.SignalSignatures;
|
|
368
|
+
constructOnly: PanelWorkspaceConstructOnly;
|
|
369
|
+
slotCandidates: {};
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/** Every GType this namespace can create. A consumer derives its own tag map. */
|
|
374
|
+
export type WidgetGType = keyof Widgets;
|
|
375
|
+
|
|
376
|
+
/** The writable, optional, GObject-keyed property surface of one GType. */
|
|
377
|
+
export type PropsOf<G extends WidgetGType> = Widgets[G]['props'];
|
|
378
|
+
|
|
379
|
+
/** The signal table this package already emits, reached by GType. */
|
|
380
|
+
export type SignalsOf<G extends WidgetGType> = Widgets[G]['signals'];
|
|
381
|
+
|
|
382
|
+
/** The instance type — what a `ref`-shaped prop should infer. */
|
|
383
|
+
export type InstanceOf<G extends WidgetGType> = Widgets[G]['class'];
|
|
384
|
+
|
|
385
|
+
/** Property names that can only be set at construction. */
|
|
386
|
+
export type ConstructOnlyOf<G extends WidgetGType> = Widgets[G]['constructOnly'];
|
|
387
|
+
|
|
388
|
+
/** Candidate child slots — see the note above; curation decides. */
|
|
389
|
+
export type SlotCandidatesOf<G extends WidgetGType> = keyof Widgets[G]['slotCandidates'];
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* The same facts as runtime data, for a consumer that CHECKS them.
|
|
393
|
+
*
|
|
394
|
+
* Types are erased, so a spec that asks the installed GTK whether every property
|
|
395
|
+
* here is a writable ParamSpec, every signal resolvable by `GObject.signal_lookup`
|
|
396
|
+
* and every nick resolvable through an enum lookup cannot read the interfaces
|
|
397
|
+
* above. Emitted headlessly with no GTK present, which is exactly why the checking
|
|
398
|
+
* belongs to the consumer and the DATA belongs here.
|
|
399
|
+
*/
|
|
400
|
+
export const SURFACE_PROVENANCE: string;
|
|
401
|
+
|
|
402
|
+
/** Declaration GType -> its own settable properties, as GObject registered them. */
|
|
403
|
+
export const OWN_PROPS: Readonly<Record<string, readonly string[]>>;
|
|
404
|
+
|
|
405
|
+
/** Widget GType -> its own signals. */
|
|
406
|
+
export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
|
|
407
|
+
|
|
408
|
+
/** Widget GType -> every declaration its members come from, self first. */
|
|
409
|
+
export const DECLS: Readonly<Record<string, readonly string[]>>;
|
|
410
|
+
|
|
411
|
+
/** Enum GType -> the nicks this surface offers. */
|
|
412
|
+
export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
|
|
413
|
+
|
|
414
|
+
/** Widget GType -> slot name -> the method that may adopt a child there. */
|
|
415
|
+
export const SLOT_CANDIDATES: Readonly<Record<string, Readonly<Record<string, string>>>>;
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* `Type.property` -> the release that introduced it.
|
|
419
|
+
*
|
|
420
|
+
* What keeps a runtime cross-check honest across a version gap without an
|
|
421
|
+
* allowlist: a member the installed library lacks is a defect UNLESS the version
|
|
422
|
+
* here is newer than the one running.
|
|
423
|
+
*/
|
|
424
|
+
export const SINCE: Readonly<Record<string, string>>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// The widget vocabulary of Panel-1 as runtime data.
|
|
2
|
+
//
|
|
3
|
+
// GENERATED — do not edit. Provenance: Panel-1 — library 1.10.4 — dropped empty base(s): GObject.InitiallyUnowned GObject.Object Gio.ActionGroup Gio.ActionMap
|
|
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 SURFACE_PROVENANCE = 'Panel-1 — library 1.10.4 — dropped empty base(s): GObject.InitiallyUnowned GObject.Object Gio.ActionGroup Gio.ActionMap';
|
|
10
|
+
|
|
11
|
+
export const OWN_PROPS = {
|
|
12
|
+
PanelChangesDialog: ['close-after-save'],
|
|
13
|
+
PanelDock: ['bottom-height', 'end-width', 'reveal-bottom', 'reveal-end', 'reveal-start', 'reveal-top', 'start-width', 'top-height'],
|
|
14
|
+
PanelFrame: ['placeholder', 'visible-child'],
|
|
15
|
+
PanelFrameHeader: ['frame'],
|
|
16
|
+
PanelFrameHeaderBar: ['show-icon'],
|
|
17
|
+
PanelFrameTabBar: ['autohide', 'expand-tabs', 'inverted'],
|
|
18
|
+
PanelOmniBar: ['action-tooltip', 'icon-name', 'menu-model', 'popover', 'progress'],
|
|
19
|
+
PanelSaveDialog: ['close-after-save'],
|
|
20
|
+
PanelThemeSelector: ['action-name'],
|
|
21
|
+
PanelToggleButton: ['area', 'dock'],
|
|
22
|
+
PanelWidget: ['can-maximize', 'child', 'icon', 'icon-name', 'id', 'kind', 'menu-model', 'modified', 'needs-attention', 'reorderable', 'save-delegate', 'title', 'tooltip'],
|
|
23
|
+
PanelWorkspace: ['id'],
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const OWN_SIGNALS = {
|
|
27
|
+
PanelDock: ['adopt-widget', 'create-frame', 'panel-drag-begin', 'panel-drag-end'],
|
|
28
|
+
PanelDocumentWorkspace: ['add-widget', 'create-frame'],
|
|
29
|
+
PanelFrame: ['adopt-widget', 'page-closed'],
|
|
30
|
+
PanelGrid: ['create-frame'],
|
|
31
|
+
PanelWidget: ['get-default-focus', 'presented'],
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export const DECLS = {
|
|
35
|
+
PanelChangesDialog: ['PanelChangesDialog', 'AdwAlertDialog', 'AdwDialog', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget', 'GtkShortcutManager'],
|
|
36
|
+
PanelDock: ['PanelDock', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
37
|
+
PanelDocumentWorkspace: ['PanelDocumentWorkspace', 'PanelWorkspace', 'AdwApplicationWindow', 'GtkApplicationWindow', 'GtkWindow', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget', 'GtkNative', 'GtkRoot', 'GtkShortcutManager'],
|
|
38
|
+
PanelFrame: ['PanelFrame', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget', 'GtkOrientable'],
|
|
39
|
+
PanelFrameHeaderBar: ['PanelFrameHeaderBar', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget', 'PanelFrameHeader'],
|
|
40
|
+
PanelFrameSwitcher: ['PanelFrameSwitcher', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget', 'GtkOrientable', 'PanelFrameHeader'],
|
|
41
|
+
PanelFrameTabBar: ['PanelFrameTabBar', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget', 'PanelFrameHeader'],
|
|
42
|
+
PanelGrid: ['PanelGrid', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
43
|
+
PanelGridColumn: ['PanelGridColumn', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
44
|
+
PanelOmniBar: ['PanelOmniBar', 'GtkWidget', 'GtkAccessible', 'GtkActionable', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
45
|
+
PanelPaned: ['PanelPaned', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget', 'GtkOrientable'],
|
|
46
|
+
PanelSaveDialog: ['PanelSaveDialog', 'AdwMessageDialog', 'GtkWindow', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget', 'GtkNative', 'GtkRoot', 'GtkShortcutManager'],
|
|
47
|
+
PanelStatusbar: ['PanelStatusbar', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
48
|
+
PanelThemeSelector: ['PanelThemeSelector', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
49
|
+
PanelToggleButton: ['PanelToggleButton', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
50
|
+
PanelWidget: ['PanelWidget', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
|
|
51
|
+
PanelWorkspace: ['PanelWorkspace', 'AdwApplicationWindow', 'GtkApplicationWindow', 'GtkWindow', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget', 'GtkNative', 'GtkRoot', 'GtkShortcutManager'],
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export const ENUM_NICKS = {
|
|
55
|
+
PanelArea: ['start', 'end', 'top', 'bottom', 'center'],
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export const SLOT_CANDIDATES = {
|
|
59
|
+
PanelDocumentWorkspace: {
|
|
60
|
+
'titlebar': 'set_titlebar',
|
|
61
|
+
},
|
|
62
|
+
PanelFrame: {
|
|
63
|
+
'header': 'set_header',
|
|
64
|
+
'placeholder': 'set_placeholder',
|
|
65
|
+
'visible-child': 'set_visible_child',
|
|
66
|
+
},
|
|
67
|
+
PanelOmniBar: {
|
|
68
|
+
'popover': 'set_popover',
|
|
69
|
+
},
|
|
70
|
+
PanelWidget: {
|
|
71
|
+
'child': 'set_child',
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export const SINCE = {
|
|
76
|
+
'PanelWidget.tooltip': '1.2',
|
|
77
|
+
'PanelWorkspace.id': '1.4',
|
|
78
|
+
};
|