@gjsify/canvas2d 0.4.20 → 0.4.22
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/lib/esm/canvas2d-bridge.js +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/types/canvas2d-bridge.d.ts +2212 -103
- package/package.json +17 -17
|
@@ -25,7 +25,7 @@ type Canvas2DReadyCallback = (canvas: globalThis.HTMLCanvasElement, ctx: CanvasR
|
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
27
|
export declare const Canvas2DBridge: {
|
|
28
|
-
new (
|
|
28
|
+
new (...args: any[]): GObject.RegisteredPrototype<{
|
|
29
29
|
_canvas: GjsifyHTMLCanvasElement | null;
|
|
30
30
|
_ctx: CanvasRenderingContext2D | null;
|
|
31
31
|
_readyCallbacks: Canvas2DReadyCallback[];
|
|
@@ -83,41 +83,41 @@ export declare const Canvas2DBridge: {
|
|
|
83
83
|
get_content_width(): number;
|
|
84
84
|
set_content_height(height: number): void;
|
|
85
85
|
set_content_width(width: number): void;
|
|
86
|
-
set_draw_func(draw_func:
|
|
86
|
+
set_draw_func(draw_func: Gtk.DrawingAreaDrawFunc | null): void;
|
|
87
87
|
get accessible_role(): Gtk.AccessibleRole;
|
|
88
88
|
set accessible_role(val: Gtk.AccessibleRole);
|
|
89
89
|
get accessibleRole(): Gtk.AccessibleRole;
|
|
90
90
|
set accessibleRole(val: Gtk.AccessibleRole);
|
|
91
91
|
announce(message: string, priority: Gtk.AccessibleAnnouncementPriority): void;
|
|
92
|
-
get_accessible_id():
|
|
93
|
-
get_accessible_parent():
|
|
92
|
+
get_accessible_id(): string | null;
|
|
93
|
+
get_accessible_parent(): Gtk.Accessible | null;
|
|
94
94
|
get_accessible_role(): Gtk.AccessibleRole;
|
|
95
95
|
get_at_context(): Gtk.ATContext;
|
|
96
96
|
get_bounds(): [boolean, number, number, number, number];
|
|
97
|
-
get_first_accessible_child():
|
|
98
|
-
get_next_accessible_sibling():
|
|
97
|
+
get_first_accessible_child(): Gtk.Accessible | null;
|
|
98
|
+
get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
99
99
|
get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
100
100
|
reset_property(property: Gtk.AccessibleProperty): void;
|
|
101
101
|
reset_relation(relation: Gtk.AccessibleRelation): void;
|
|
102
102
|
reset_state(state: Gtk.AccessibleState): void;
|
|
103
|
-
set_accessible_parent(parent:
|
|
104
|
-
update_next_accessible_sibling(new_sibling:
|
|
103
|
+
set_accessible_parent(parent: Gtk.Accessible | null, next_sibling: Gtk.Accessible | null): void;
|
|
104
|
+
update_next_accessible_sibling(new_sibling: Gtk.Accessible | null): void;
|
|
105
105
|
update_platform_state(state: Gtk.AccessiblePlatformState): void;
|
|
106
106
|
update_property(properties: Gtk.AccessibleProperty[], values: (GObject.Value | any)[]): void;
|
|
107
107
|
update_relation(relations: Gtk.AccessibleRelation[], values: (GObject.Value | any)[]): void;
|
|
108
108
|
update_state(states: Gtk.AccessibleState[], values: (GObject.Value | any)[]): void;
|
|
109
|
-
vfunc_get_accessible_id():
|
|
110
|
-
vfunc_get_accessible_parent():
|
|
111
|
-
vfunc_get_at_context():
|
|
109
|
+
vfunc_get_accessible_id(): string | null;
|
|
110
|
+
vfunc_get_accessible_parent(): Gtk.Accessible | null;
|
|
111
|
+
vfunc_get_at_context(): Gtk.ATContext | null;
|
|
112
112
|
vfunc_get_bounds(): [boolean, number, number, number, number];
|
|
113
|
-
vfunc_get_first_accessible_child():
|
|
114
|
-
vfunc_get_next_accessible_sibling():
|
|
113
|
+
vfunc_get_first_accessible_child(): Gtk.Accessible | null;
|
|
114
|
+
vfunc_get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
115
115
|
vfunc_get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
116
|
-
get_buildable_id():
|
|
117
|
-
vfunc_add_child(builder: Gtk.Builder, child: GObject.Object, type:
|
|
118
|
-
vfunc_custom_finished(builder: Gtk.Builder, child:
|
|
119
|
-
vfunc_custom_tag_end(builder: Gtk.Builder, child:
|
|
120
|
-
vfunc_custom_tag_start(builder: Gtk.Builder, child:
|
|
116
|
+
get_buildable_id(): string | null;
|
|
117
|
+
vfunc_add_child(builder: Gtk.Builder, child: GObject.Object, type: string | null): void;
|
|
118
|
+
vfunc_custom_finished(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
|
|
119
|
+
vfunc_custom_tag_end(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
|
|
120
|
+
vfunc_custom_tag_start(builder: Gtk.Builder, child: GObject.Object | null, tagname: string): [boolean, Gtk.BuildableParser, never];
|
|
121
121
|
vfunc_get_id(): string;
|
|
122
122
|
vfunc_get_internal_child<T = GObject.Object>(builder: Gtk.Builder, childname: string): T;
|
|
123
123
|
vfunc_parser_finished(builder: Gtk.Builder): void;
|
|
@@ -137,8 +137,8 @@ export declare const Canvas2DBridge: {
|
|
|
137
137
|
set cssClasses(val: string[]);
|
|
138
138
|
get css_name(): string;
|
|
139
139
|
get cssName(): string;
|
|
140
|
-
get cursor():
|
|
141
|
-
set cursor(val:
|
|
140
|
+
get cursor(): Gdk.Cursor | null;
|
|
141
|
+
set cursor(val: Gdk.Cursor | null);
|
|
142
142
|
get focus_on_click(): boolean;
|
|
143
143
|
set focus_on_click(val: boolean);
|
|
144
144
|
get focusOnClick(): boolean;
|
|
@@ -165,10 +165,10 @@ export declare const Canvas2DBridge: {
|
|
|
165
165
|
set hexpand_set(val: boolean);
|
|
166
166
|
get hexpandSet(): boolean;
|
|
167
167
|
set hexpandSet(val: boolean);
|
|
168
|
-
get layout_manager():
|
|
169
|
-
set layout_manager(val:
|
|
170
|
-
get layoutManager():
|
|
171
|
-
set layoutManager(val:
|
|
168
|
+
get layout_manager(): Gtk.LayoutManager | null;
|
|
169
|
+
set layout_manager(val: Gtk.LayoutManager | null);
|
|
170
|
+
get layoutManager(): Gtk.LayoutManager | null;
|
|
171
|
+
set layoutManager(val: Gtk.LayoutManager | null);
|
|
172
172
|
get limit_events(): boolean;
|
|
173
173
|
set limit_events(val: boolean);
|
|
174
174
|
get limitEvents(): boolean;
|
|
@@ -195,24 +195,24 @@ export declare const Canvas2DBridge: {
|
|
|
195
195
|
set opacity(val: number);
|
|
196
196
|
get overflow(): Gtk.Overflow;
|
|
197
197
|
set overflow(val: Gtk.Overflow);
|
|
198
|
-
get parent():
|
|
198
|
+
get parent(): Gtk.Widget | null;
|
|
199
199
|
get receives_default(): boolean;
|
|
200
200
|
set receives_default(val: boolean);
|
|
201
201
|
get receivesDefault(): boolean;
|
|
202
202
|
set receivesDefault(val: boolean);
|
|
203
|
-
get root():
|
|
203
|
+
get root(): Gtk.Root | null;
|
|
204
204
|
get scale_factor(): number;
|
|
205
205
|
get scaleFactor(): number;
|
|
206
206
|
get sensitive(): boolean;
|
|
207
207
|
set sensitive(val: boolean);
|
|
208
|
-
get tooltip_markup():
|
|
209
|
-
set tooltip_markup(val:
|
|
210
|
-
get tooltipMarkup():
|
|
211
|
-
set tooltipMarkup(val:
|
|
212
|
-
get tooltip_text():
|
|
213
|
-
set tooltip_text(val:
|
|
214
|
-
get tooltipText():
|
|
215
|
-
set tooltipText(val:
|
|
208
|
+
get tooltip_markup(): string | null;
|
|
209
|
+
set tooltip_markup(val: string | null);
|
|
210
|
+
get tooltipMarkup(): string | null;
|
|
211
|
+
set tooltipMarkup(val: string | null);
|
|
212
|
+
get tooltip_text(): string | null;
|
|
213
|
+
set tooltip_text(val: string | null);
|
|
214
|
+
get tooltipText(): string | null;
|
|
215
|
+
set tooltipText(val: string | null);
|
|
216
216
|
get valign(): Gtk.Align;
|
|
217
217
|
set valign(val: Gtk.Align);
|
|
218
218
|
get vexpand(): boolean;
|
|
@@ -243,7 +243,7 @@ export declare const Canvas2DBridge: {
|
|
|
243
243
|
vfunc_query_tooltip(x: number, y: number, keyboard_tooltip: boolean, tooltip: Gtk.Tooltip): boolean;
|
|
244
244
|
vfunc_realize(): void;
|
|
245
245
|
vfunc_root(): void;
|
|
246
|
-
vfunc_set_focus_child(child:
|
|
246
|
+
vfunc_set_focus_child(child: Gtk.Widget | null): void;
|
|
247
247
|
vfunc_show(): void;
|
|
248
248
|
vfunc_size_allocate(width: number, height: number, baseline: number): void;
|
|
249
249
|
vfunc_snapshot(snapshot: Gtk.Snapshot): void;
|
|
@@ -254,13 +254,13 @@ export declare const Canvas2DBridge: {
|
|
|
254
254
|
vfunc_unroot(): void;
|
|
255
255
|
action_set_enabled(action_name: string, enabled: boolean): void;
|
|
256
256
|
activate(): boolean;
|
|
257
|
-
activate_action(name: string, args:
|
|
257
|
+
activate_action(name: string, args: GLib.Variant | null): boolean;
|
|
258
258
|
activate_default(): void;
|
|
259
259
|
add_controller(controller: Gtk.EventController): void;
|
|
260
260
|
add_css_class(css_class: string): void;
|
|
261
261
|
add_mnemonic_label(label: Gtk.Widget): void;
|
|
262
262
|
add_tick_callback(callback: Gtk.TickCallback): number;
|
|
263
|
-
allocate(width: number, height: number, baseline: number, transform:
|
|
263
|
+
allocate(width: number, height: number, baseline: number, transform: import("@girs/gsk-4.0").default.Transform | null): void;
|
|
264
264
|
child_focus(direction: Gtk.DirectionType): boolean;
|
|
265
265
|
compute_bounds(target: Gtk.Widget): [boolean, import("@girs/graphene-1.0").default.Rect];
|
|
266
266
|
compute_expand(orientation: Gtk.Orientation): boolean;
|
|
@@ -268,7 +268,7 @@ export declare const Canvas2DBridge: {
|
|
|
268
268
|
compute_transform(target: Gtk.Widget): [boolean, import("@girs/graphene-1.0").default.Matrix];
|
|
269
269
|
contains(x: number, y: number): boolean;
|
|
270
270
|
create_pango_context(): import("@girs/pango-1.0").default.Context;
|
|
271
|
-
create_pango_layout(text:
|
|
271
|
+
create_pango_layout(text: string | null): import("@girs/pango-1.0").default.Layout;
|
|
272
272
|
dispose_template(widget_type: GObject.GType): void;
|
|
273
273
|
drag_check_threshold(start_x: number, start_y: number, current_x: number, current_y: number): boolean;
|
|
274
274
|
error_bell(): void;
|
|
@@ -276,7 +276,7 @@ export declare const Canvas2DBridge: {
|
|
|
276
276
|
get_allocated_height(): number;
|
|
277
277
|
get_allocated_width(): number;
|
|
278
278
|
get_allocation(): Gtk.Allocation;
|
|
279
|
-
get_ancestor(widget_type: GObject.GType):
|
|
279
|
+
get_ancestor(widget_type: GObject.GType): Gtk.Widget | null;
|
|
280
280
|
get_baseline(): number;
|
|
281
281
|
get_can_focus(): boolean;
|
|
282
282
|
get_can_target(): boolean;
|
|
@@ -285,23 +285,23 @@ export declare const Canvas2DBridge: {
|
|
|
285
285
|
get_color(): Gdk.RGBA;
|
|
286
286
|
get_css_classes(): string[];
|
|
287
287
|
get_css_name(): string;
|
|
288
|
-
get_cursor():
|
|
288
|
+
get_cursor(): Gdk.Cursor | null;
|
|
289
289
|
get_direction(): Gtk.TextDirection;
|
|
290
290
|
get_display(): Gdk.Display;
|
|
291
|
-
get_first_child():
|
|
292
|
-
get_focus_child():
|
|
291
|
+
get_first_child(): Gtk.Widget | null;
|
|
292
|
+
get_focus_child(): Gtk.Widget | null;
|
|
293
293
|
get_focus_on_click(): boolean;
|
|
294
294
|
get_focusable(): boolean;
|
|
295
|
-
get_font_map():
|
|
296
|
-
get_font_options():
|
|
297
|
-
get_frame_clock():
|
|
295
|
+
get_font_map(): import("@girs/pango-1.0").default.FontMap | null;
|
|
296
|
+
get_font_options(): import("@girs/gjs/cairo").default.FontOptions | null;
|
|
297
|
+
get_frame_clock(): Gdk.FrameClock | null;
|
|
298
298
|
get_halign(): Gtk.Align;
|
|
299
299
|
get_has_tooltip(): boolean;
|
|
300
300
|
get_height(): number;
|
|
301
301
|
get_hexpand(): boolean;
|
|
302
302
|
get_hexpand_set(): boolean;
|
|
303
|
-
get_last_child():
|
|
304
|
-
get_layout_manager():
|
|
303
|
+
get_last_child(): Gtk.Widget | null;
|
|
304
|
+
get_layout_manager(): Gtk.LayoutManager | null;
|
|
305
305
|
get_limit_events(): boolean;
|
|
306
306
|
get_mapped(): boolean;
|
|
307
307
|
get_margin_bottom(): number;
|
|
@@ -309,19 +309,19 @@ export declare const Canvas2DBridge: {
|
|
|
309
309
|
get_margin_start(): number;
|
|
310
310
|
get_margin_top(): number;
|
|
311
311
|
get_name(): string;
|
|
312
|
-
get_native():
|
|
313
|
-
get_next_sibling():
|
|
312
|
+
get_native(): Gtk.Native | null;
|
|
313
|
+
get_next_sibling(): Gtk.Widget | null;
|
|
314
314
|
get_opacity(): number;
|
|
315
315
|
get_overflow(): Gtk.Overflow;
|
|
316
316
|
get_pango_context(): import("@girs/pango-1.0").default.Context;
|
|
317
|
-
get_parent():
|
|
317
|
+
get_parent(): Gtk.Widget | null;
|
|
318
318
|
get_preferred_size(): [Gtk.Requisition | null, Gtk.Requisition | null];
|
|
319
|
-
get_prev_sibling():
|
|
319
|
+
get_prev_sibling(): Gtk.Widget | null;
|
|
320
320
|
get_primary_clipboard(): Gdk.Clipboard;
|
|
321
321
|
get_realized(): boolean;
|
|
322
322
|
get_receives_default(): boolean;
|
|
323
323
|
get_request_mode(): Gtk.SizeRequestMode;
|
|
324
|
-
get_root():
|
|
324
|
+
get_root(): Gtk.Root | null;
|
|
325
325
|
get_scale_factor(): number;
|
|
326
326
|
get_sensitive(): boolean;
|
|
327
327
|
get_settings(): Gtk.Settings;
|
|
@@ -330,8 +330,8 @@ export declare const Canvas2DBridge: {
|
|
|
330
330
|
get_state_flags(): Gtk.StateFlags;
|
|
331
331
|
get_style_context(): Gtk.StyleContext;
|
|
332
332
|
get_template_child<T = GObject.Object>(widget_type: GObject.GType, name: string): T;
|
|
333
|
-
get_tooltip_markup():
|
|
334
|
-
get_tooltip_text():
|
|
333
|
+
get_tooltip_markup(): string | null;
|
|
334
|
+
get_tooltip_text(): string | null;
|
|
335
335
|
get_valign(): Gtk.Align;
|
|
336
336
|
get_vexpand(): boolean;
|
|
337
337
|
get_vexpand_set(): boolean;
|
|
@@ -343,9 +343,9 @@ export declare const Canvas2DBridge: {
|
|
|
343
343
|
hide(): void;
|
|
344
344
|
in_destruction(): boolean;
|
|
345
345
|
init_template(): void;
|
|
346
|
-
insert_action_group(name: string, group:
|
|
347
|
-
insert_after(parent: Gtk.Widget, previous_sibling:
|
|
348
|
-
insert_before(parent: Gtk.Widget, next_sibling:
|
|
346
|
+
insert_action_group(name: string, group: import("@girs/gio-2.0").default.ActionGroup | null): void;
|
|
347
|
+
insert_after(parent: Gtk.Widget, previous_sibling: Gtk.Widget | null): void;
|
|
348
|
+
insert_before(parent: Gtk.Widget, next_sibling: Gtk.Widget | null): void;
|
|
349
349
|
is_ancestor(ancestor: Gtk.Widget): boolean;
|
|
350
350
|
is_drawable(): boolean;
|
|
351
351
|
is_focus(): boolean;
|
|
@@ -358,7 +358,7 @@ export declare const Canvas2DBridge: {
|
|
|
358
358
|
mnemonic_activate(group_cycling: boolean): boolean;
|
|
359
359
|
observe_children(): import("@girs/gio-2.0").default.ListModel;
|
|
360
360
|
observe_controllers(): import("@girs/gio-2.0").default.ListModel;
|
|
361
|
-
pick(x: number, y: number, flags: Gtk.PickFlags):
|
|
361
|
+
pick(x: number, y: number, flags: Gtk.PickFlags): Gtk.Widget | null;
|
|
362
362
|
queue_allocate(): void;
|
|
363
363
|
queue_draw(): void;
|
|
364
364
|
queue_resize(): void;
|
|
@@ -371,19 +371,19 @@ export declare const Canvas2DBridge: {
|
|
|
371
371
|
set_can_target(can_target: boolean): void;
|
|
372
372
|
set_child_visible(child_visible: boolean): void;
|
|
373
373
|
set_css_classes(classes: string[]): void;
|
|
374
|
-
set_cursor(cursor:
|
|
375
|
-
set_cursor_from_name(name:
|
|
374
|
+
set_cursor(cursor: Gdk.Cursor | null): void;
|
|
375
|
+
set_cursor_from_name(name: string | null): void;
|
|
376
376
|
set_direction(dir: Gtk.TextDirection): void;
|
|
377
|
-
set_focus_child(child:
|
|
377
|
+
set_focus_child(child: Gtk.Widget | null): void;
|
|
378
378
|
set_focus_on_click(focus_on_click: boolean): void;
|
|
379
379
|
set_focusable(focusable: boolean): void;
|
|
380
|
-
set_font_map(font_map:
|
|
381
|
-
set_font_options(options:
|
|
380
|
+
set_font_map(font_map: import("@girs/pango-1.0").default.FontMap | null): void;
|
|
381
|
+
set_font_options(options: import("@girs/gjs/cairo").default.FontOptions | null): void;
|
|
382
382
|
set_halign(align: Gtk.Align): void;
|
|
383
383
|
set_has_tooltip(has_tooltip: boolean): void;
|
|
384
384
|
set_hexpand(expand: boolean): void;
|
|
385
385
|
set_hexpand_set(set: boolean): void;
|
|
386
|
-
set_layout_manager(layout_manager:
|
|
386
|
+
set_layout_manager(layout_manager: Gtk.LayoutManager | null): void;
|
|
387
387
|
set_limit_events(limit_events: boolean): void;
|
|
388
388
|
set_margin_bottom(margin: number): void;
|
|
389
389
|
set_margin_end(margin: number): void;
|
|
@@ -397,8 +397,8 @@ export declare const Canvas2DBridge: {
|
|
|
397
397
|
set_sensitive(sensitive: boolean): void;
|
|
398
398
|
set_size_request(width: number, height: number): void;
|
|
399
399
|
set_state_flags(flags: Gtk.StateFlags, clear: boolean): void;
|
|
400
|
-
set_tooltip_markup(markup:
|
|
401
|
-
set_tooltip_text(text:
|
|
400
|
+
set_tooltip_markup(markup: string | null): void;
|
|
401
|
+
set_tooltip_text(text: string | null): void;
|
|
402
402
|
set_valign(align: Gtk.Align): void;
|
|
403
403
|
set_vexpand(expand: boolean): void;
|
|
404
404
|
set_vexpand_set(set: boolean): void;
|
|
@@ -422,11 +422,11 @@ export declare const Canvas2DBridge: {
|
|
|
422
422
|
vfunc_notify(pspec: GObject.ParamSpec): void;
|
|
423
423
|
vfunc_set_property(property_id: number, value: unknown, pspec: GObject.ParamSpec): void;
|
|
424
424
|
bind_property(source_property: string, target: GObject.Object, target_property: string, flags: GObject.BindingFlags): GObject.Binding;
|
|
425
|
-
bind_property_full(source_property: string, target: GObject.Object, target_property: string, flags: GObject.BindingFlags, transform_to:
|
|
425
|
+
bind_property_full(source_property: string, target: GObject.Object, target_property: string, flags: GObject.BindingFlags, transform_to: GObject.Closure | null, transform_from: GObject.Closure | null): GObject.Binding;
|
|
426
426
|
force_floating(): void;
|
|
427
427
|
freeze_notify(): void;
|
|
428
428
|
get_data(key: string): null;
|
|
429
|
-
get_property(property_name: string, value:
|
|
429
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
430
430
|
get_qdata(quark: GLib.Quark): null;
|
|
431
431
|
getv(names: string[], values: (GObject.Value | any)[]): void;
|
|
432
432
|
is_floating(): boolean;
|
|
@@ -436,7 +436,7 @@ export declare const Canvas2DBridge: {
|
|
|
436
436
|
ref_sink(): GObject.Object;
|
|
437
437
|
run_dispose(): void;
|
|
438
438
|
set_data(key: string, data: null): void;
|
|
439
|
-
set_property(property_name: string, value:
|
|
439
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
440
440
|
steal_data(key: string): null;
|
|
441
441
|
steal_qdata(quark: GLib.Quark): null;
|
|
442
442
|
thaw_notify(): void;
|
|
@@ -449,40 +449,2149 @@ export declare const Canvas2DBridge: {
|
|
|
449
449
|
block_signal_handler(id: number): void;
|
|
450
450
|
unblock_signal_handler(id: number): void;
|
|
451
451
|
stop_emission_by_name(detailedName: string): void;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
452
|
+
}, {
|
|
453
|
+
[key: string]: GObject.ParamSpec<unknown>;
|
|
454
|
+
}, unknown[]>;
|
|
455
|
+
$gtype: GObject.GType<{
|
|
456
|
+
new (...args: any[]): GObject.RegisteredPrototype<{
|
|
457
|
+
_canvas: GjsifyHTMLCanvasElement | null;
|
|
458
|
+
_ctx: CanvasRenderingContext2D | null;
|
|
459
|
+
_readyCallbacks: Canvas2DReadyCallback[];
|
|
460
|
+
_resizeCallbacks: ((w: number, h: number) => void)[];
|
|
461
|
+
_tickCallbackId: number | null;
|
|
462
|
+
_frameCallback: FrameRequestCallback | null;
|
|
463
|
+
_timeOrigin: number;
|
|
464
|
+
/** @internal Draw function called by GTK. Blits the Cairo surface to screen. */
|
|
465
|
+
_onDraw(_area: Gtk.DrawingArea, cr: any, width: number, height: number): void;
|
|
466
|
+
/** The HTMLCanvasElement backing this widget. Available after the first draw. */
|
|
467
|
+
get canvas(): globalThis.HTMLCanvasElement | null;
|
|
468
|
+
/** Get the 2D rendering context. Available after the first draw. */
|
|
469
|
+
getContext(_id: "2d"): CanvasRenderingContext2D | null;
|
|
470
|
+
/**
|
|
471
|
+
* Register a callback to be invoked once the Canvas 2D context is ready.
|
|
472
|
+
* If the context is already available, the callback fires synchronously.
|
|
473
|
+
*/
|
|
474
|
+
onReady(cb: Canvas2DReadyCallback): void;
|
|
475
|
+
/**
|
|
476
|
+
* Register a callback invoked whenever the GTK widget is resized.
|
|
477
|
+
* Canvas dimensions are already updated when the callback fires.
|
|
478
|
+
* Call `queue_draw()` after re-rendering to push the new surface to screen.
|
|
479
|
+
*/
|
|
480
|
+
onResize(cb: (width: number, height: number) => void): void;
|
|
481
|
+
/**
|
|
482
|
+
* Schedules a single animation frame callback, matching the browser `requestAnimationFrame` API.
|
|
483
|
+
* Backed by GTK frame clock (vsync-synced, typically ~60 FPS).
|
|
484
|
+
* Returns 0 (handle — cancel not yet implemented).
|
|
485
|
+
*/
|
|
486
|
+
requestAnimationFrame(cb: FrameRequestCallback): number;
|
|
487
|
+
/**
|
|
488
|
+
* Sets browser globals (`requestAnimationFrame`, `performance`) so that
|
|
489
|
+
* browser-targeted code works unchanged on GJS.
|
|
490
|
+
*/
|
|
491
|
+
installGlobals(): void;
|
|
492
|
+
get content_height(): number;
|
|
493
|
+
set content_height(val: number);
|
|
494
|
+
get contentHeight(): number;
|
|
495
|
+
set contentHeight(val: number);
|
|
496
|
+
get content_width(): number;
|
|
497
|
+
set content_width(val: number);
|
|
498
|
+
get contentWidth(): number;
|
|
499
|
+
set contentWidth(val: number);
|
|
500
|
+
$signals: Gtk.DrawingArea.SignalSignatures;
|
|
501
|
+
widget: Gtk.Widget;
|
|
502
|
+
_init(...args: any[]): void;
|
|
503
|
+
connect<K extends keyof Gtk.DrawingArea.SignalSignatures>(signal: K, callback: GObject.SignalCallback</*elided*/ any, Gtk.DrawingArea.SignalSignatures[K]>): number;
|
|
504
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
505
|
+
connect_after<K extends keyof Gtk.DrawingArea.SignalSignatures>(signal: K, callback: GObject.SignalCallback</*elided*/ any, Gtk.DrawingArea.SignalSignatures[K]>): number;
|
|
506
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
507
|
+
emit<K extends keyof Gtk.DrawingArea.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Gtk.DrawingArea.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
508
|
+
emit(signal: string, ...args: any[]): void;
|
|
509
|
+
vfunc_resize(width: number, height: number): void;
|
|
510
|
+
get_content_height(): number;
|
|
511
|
+
get_content_width(): number;
|
|
512
|
+
set_content_height(height: number): void;
|
|
513
|
+
set_content_width(width: number): void;
|
|
514
|
+
set_draw_func(draw_func: Gtk.DrawingAreaDrawFunc | null): void;
|
|
515
|
+
get accessible_role(): Gtk.AccessibleRole;
|
|
516
|
+
set accessible_role(val: Gtk.AccessibleRole);
|
|
517
|
+
get accessibleRole(): Gtk.AccessibleRole;
|
|
518
|
+
set accessibleRole(val: Gtk.AccessibleRole);
|
|
519
|
+
announce(message: string, priority: Gtk.AccessibleAnnouncementPriority): void;
|
|
520
|
+
get_accessible_id(): string | null;
|
|
521
|
+
get_accessible_parent(): Gtk.Accessible | null;
|
|
522
|
+
get_accessible_role(): Gtk.AccessibleRole;
|
|
523
|
+
get_at_context(): Gtk.ATContext;
|
|
524
|
+
get_bounds(): [boolean, number, number, number, number];
|
|
525
|
+
get_first_accessible_child(): Gtk.Accessible | null;
|
|
526
|
+
get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
527
|
+
get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
528
|
+
reset_property(property: Gtk.AccessibleProperty): void;
|
|
529
|
+
reset_relation(relation: Gtk.AccessibleRelation): void;
|
|
530
|
+
reset_state(state: Gtk.AccessibleState): void;
|
|
531
|
+
set_accessible_parent(parent: Gtk.Accessible | null, next_sibling: Gtk.Accessible | null): void;
|
|
532
|
+
update_next_accessible_sibling(new_sibling: Gtk.Accessible | null): void;
|
|
533
|
+
update_platform_state(state: Gtk.AccessiblePlatformState): void;
|
|
534
|
+
update_property(properties: Gtk.AccessibleProperty[], values: (GObject.Value | any)[]): void;
|
|
535
|
+
update_relation(relations: Gtk.AccessibleRelation[], values: (GObject.Value | any)[]): void;
|
|
536
|
+
update_state(states: Gtk.AccessibleState[], values: (GObject.Value | any)[]): void;
|
|
537
|
+
vfunc_get_accessible_id(): string | null;
|
|
538
|
+
vfunc_get_accessible_parent(): Gtk.Accessible | null;
|
|
539
|
+
vfunc_get_at_context(): Gtk.ATContext | null;
|
|
540
|
+
vfunc_get_bounds(): [boolean, number, number, number, number];
|
|
541
|
+
vfunc_get_first_accessible_child(): Gtk.Accessible | null;
|
|
542
|
+
vfunc_get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
543
|
+
vfunc_get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
544
|
+
get_buildable_id(): string | null;
|
|
545
|
+
vfunc_add_child(builder: Gtk.Builder, child: GObject.Object, type: string | null): void;
|
|
546
|
+
vfunc_custom_finished(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
|
|
547
|
+
vfunc_custom_tag_end(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
|
|
548
|
+
vfunc_custom_tag_start(builder: Gtk.Builder, child: GObject.Object | null, tagname: string): [boolean, Gtk.BuildableParser, never];
|
|
549
|
+
vfunc_get_id(): string;
|
|
550
|
+
vfunc_get_internal_child<T = GObject.Object>(builder: Gtk.Builder, childname: string): T;
|
|
551
|
+
vfunc_parser_finished(builder: Gtk.Builder): void;
|
|
552
|
+
vfunc_set_buildable_property(builder: Gtk.Builder, name: string, value: unknown): void;
|
|
553
|
+
vfunc_set_id(id: string): void;
|
|
554
|
+
get can_focus(): boolean;
|
|
555
|
+
set can_focus(val: boolean);
|
|
556
|
+
get canFocus(): boolean;
|
|
557
|
+
set canFocus(val: boolean);
|
|
558
|
+
get can_target(): boolean;
|
|
559
|
+
set can_target(val: boolean);
|
|
560
|
+
get canTarget(): boolean;
|
|
561
|
+
set canTarget(val: boolean);
|
|
562
|
+
get css_classes(): string[];
|
|
563
|
+
set css_classes(val: string[]);
|
|
564
|
+
get cssClasses(): string[];
|
|
565
|
+
set cssClasses(val: string[]);
|
|
566
|
+
get css_name(): string;
|
|
567
|
+
get cssName(): string;
|
|
568
|
+
get cursor(): Gdk.Cursor | null;
|
|
569
|
+
set cursor(val: Gdk.Cursor | null);
|
|
570
|
+
get focus_on_click(): boolean;
|
|
571
|
+
set focus_on_click(val: boolean);
|
|
572
|
+
get focusOnClick(): boolean;
|
|
573
|
+
set focusOnClick(val: boolean);
|
|
574
|
+
get focusable(): boolean;
|
|
575
|
+
set focusable(val: boolean);
|
|
576
|
+
get halign(): Gtk.Align;
|
|
577
|
+
set halign(val: Gtk.Align);
|
|
578
|
+
get has_default(): boolean;
|
|
579
|
+
get hasDefault(): boolean;
|
|
580
|
+
get has_focus(): boolean;
|
|
581
|
+
get hasFocus(): boolean;
|
|
582
|
+
get has_tooltip(): boolean;
|
|
583
|
+
set has_tooltip(val: boolean);
|
|
584
|
+
get hasTooltip(): boolean;
|
|
585
|
+
set hasTooltip(val: boolean);
|
|
586
|
+
get height_request(): number;
|
|
587
|
+
set height_request(val: number);
|
|
588
|
+
get heightRequest(): number;
|
|
589
|
+
set heightRequest(val: number);
|
|
590
|
+
get hexpand(): boolean;
|
|
591
|
+
set hexpand(val: boolean);
|
|
592
|
+
get hexpand_set(): boolean;
|
|
593
|
+
set hexpand_set(val: boolean);
|
|
594
|
+
get hexpandSet(): boolean;
|
|
595
|
+
set hexpandSet(val: boolean);
|
|
596
|
+
get layout_manager(): Gtk.LayoutManager | null;
|
|
597
|
+
set layout_manager(val: Gtk.LayoutManager | null);
|
|
598
|
+
get layoutManager(): Gtk.LayoutManager | null;
|
|
599
|
+
set layoutManager(val: Gtk.LayoutManager | null);
|
|
600
|
+
get limit_events(): boolean;
|
|
601
|
+
set limit_events(val: boolean);
|
|
602
|
+
get limitEvents(): boolean;
|
|
603
|
+
set limitEvents(val: boolean);
|
|
604
|
+
get margin_bottom(): number;
|
|
605
|
+
set margin_bottom(val: number);
|
|
606
|
+
get marginBottom(): number;
|
|
607
|
+
set marginBottom(val: number);
|
|
608
|
+
get margin_end(): number;
|
|
609
|
+
set margin_end(val: number);
|
|
610
|
+
get marginEnd(): number;
|
|
611
|
+
set marginEnd(val: number);
|
|
612
|
+
get margin_start(): number;
|
|
613
|
+
set margin_start(val: number);
|
|
614
|
+
get marginStart(): number;
|
|
615
|
+
set marginStart(val: number);
|
|
616
|
+
get margin_top(): number;
|
|
617
|
+
set margin_top(val: number);
|
|
618
|
+
get marginTop(): number;
|
|
619
|
+
set marginTop(val: number);
|
|
620
|
+
get name(): string;
|
|
621
|
+
set name(val: string);
|
|
622
|
+
get opacity(): number;
|
|
623
|
+
set opacity(val: number);
|
|
624
|
+
get overflow(): Gtk.Overflow;
|
|
625
|
+
set overflow(val: Gtk.Overflow);
|
|
626
|
+
get parent(): Gtk.Widget | null;
|
|
627
|
+
get receives_default(): boolean;
|
|
628
|
+
set receives_default(val: boolean);
|
|
629
|
+
get receivesDefault(): boolean;
|
|
630
|
+
set receivesDefault(val: boolean);
|
|
631
|
+
get root(): Gtk.Root | null;
|
|
632
|
+
get scale_factor(): number;
|
|
633
|
+
get scaleFactor(): number;
|
|
634
|
+
get sensitive(): boolean;
|
|
635
|
+
set sensitive(val: boolean);
|
|
636
|
+
get tooltip_markup(): string | null;
|
|
637
|
+
set tooltip_markup(val: string | null);
|
|
638
|
+
get tooltipMarkup(): string | null;
|
|
639
|
+
set tooltipMarkup(val: string | null);
|
|
640
|
+
get tooltip_text(): string | null;
|
|
641
|
+
set tooltip_text(val: string | null);
|
|
642
|
+
get tooltipText(): string | null;
|
|
643
|
+
set tooltipText(val: string | null);
|
|
644
|
+
get valign(): Gtk.Align;
|
|
645
|
+
set valign(val: Gtk.Align);
|
|
646
|
+
get vexpand(): boolean;
|
|
647
|
+
set vexpand(val: boolean);
|
|
648
|
+
get vexpand_set(): boolean;
|
|
649
|
+
set vexpand_set(val: boolean);
|
|
650
|
+
get vexpandSet(): boolean;
|
|
651
|
+
set vexpandSet(val: boolean);
|
|
652
|
+
get visible(): boolean;
|
|
653
|
+
set visible(val: boolean);
|
|
654
|
+
get width_request(): number;
|
|
655
|
+
set width_request(val: number);
|
|
656
|
+
get widthRequest(): number;
|
|
657
|
+
set widthRequest(val: number);
|
|
658
|
+
vfunc_compute_expand(hexpand_p: boolean, vexpand_p: boolean): void;
|
|
659
|
+
vfunc_contains(x: number, y: number): boolean;
|
|
660
|
+
vfunc_css_changed(change: Gtk.CssStyleChange): void;
|
|
661
|
+
vfunc_direction_changed(previous_direction: Gtk.TextDirection): void;
|
|
662
|
+
vfunc_focus(direction: Gtk.DirectionType): boolean;
|
|
663
|
+
vfunc_get_request_mode(): Gtk.SizeRequestMode;
|
|
664
|
+
vfunc_grab_focus(): boolean;
|
|
665
|
+
vfunc_hide(): void;
|
|
666
|
+
vfunc_keynav_failed(direction: Gtk.DirectionType): boolean;
|
|
667
|
+
vfunc_map(): void;
|
|
668
|
+
vfunc_measure(orientation: Gtk.Orientation, for_size: number): [number, number, number, number];
|
|
669
|
+
vfunc_mnemonic_activate(group_cycling: boolean): boolean;
|
|
670
|
+
vfunc_move_focus(direction: Gtk.DirectionType): void;
|
|
671
|
+
vfunc_query_tooltip(x: number, y: number, keyboard_tooltip: boolean, tooltip: Gtk.Tooltip): boolean;
|
|
672
|
+
vfunc_realize(): void;
|
|
673
|
+
vfunc_root(): void;
|
|
674
|
+
vfunc_set_focus_child(child: Gtk.Widget | null): void;
|
|
675
|
+
vfunc_show(): void;
|
|
676
|
+
vfunc_size_allocate(width: number, height: number, baseline: number): void;
|
|
677
|
+
vfunc_snapshot(snapshot: Gtk.Snapshot): void;
|
|
678
|
+
vfunc_state_flags_changed(previous_state_flags: Gtk.StateFlags): void;
|
|
679
|
+
vfunc_system_setting_changed(settings: Gtk.SystemSetting): void;
|
|
680
|
+
vfunc_unmap(): void;
|
|
681
|
+
vfunc_unrealize(): void;
|
|
682
|
+
vfunc_unroot(): void;
|
|
683
|
+
action_set_enabled(action_name: string, enabled: boolean): void;
|
|
684
|
+
activate(): boolean;
|
|
685
|
+
activate_action(name: string, args: GLib.Variant | null): boolean;
|
|
686
|
+
activate_default(): void;
|
|
687
|
+
add_controller(controller: Gtk.EventController): void;
|
|
688
|
+
add_css_class(css_class: string): void;
|
|
689
|
+
add_mnemonic_label(label: Gtk.Widget): void;
|
|
690
|
+
add_tick_callback(callback: Gtk.TickCallback): number;
|
|
691
|
+
allocate(width: number, height: number, baseline: number, transform: import("@girs/gsk-4.0").default.Transform | null): void;
|
|
692
|
+
child_focus(direction: Gtk.DirectionType): boolean;
|
|
693
|
+
compute_bounds(target: Gtk.Widget): [boolean, import("@girs/graphene-1.0").default.Rect];
|
|
694
|
+
compute_expand(orientation: Gtk.Orientation): boolean;
|
|
695
|
+
compute_point(target: Gtk.Widget, point: import("@girs/graphene-1.0").default.Point): [boolean, import("@girs/graphene-1.0").default.Point];
|
|
696
|
+
compute_transform(target: Gtk.Widget): [boolean, import("@girs/graphene-1.0").default.Matrix];
|
|
697
|
+
contains(x: number, y: number): boolean;
|
|
698
|
+
create_pango_context(): import("@girs/pango-1.0").default.Context;
|
|
699
|
+
create_pango_layout(text: string | null): import("@girs/pango-1.0").default.Layout;
|
|
700
|
+
dispose_template(widget_type: GObject.GType): void;
|
|
701
|
+
drag_check_threshold(start_x: number, start_y: number, current_x: number, current_y: number): boolean;
|
|
702
|
+
error_bell(): void;
|
|
703
|
+
get_allocated_baseline(): number;
|
|
704
|
+
get_allocated_height(): number;
|
|
705
|
+
get_allocated_width(): number;
|
|
706
|
+
get_allocation(): Gtk.Allocation;
|
|
707
|
+
get_ancestor(widget_type: GObject.GType): Gtk.Widget | null;
|
|
708
|
+
get_baseline(): number;
|
|
709
|
+
get_can_focus(): boolean;
|
|
710
|
+
get_can_target(): boolean;
|
|
711
|
+
get_child_visible(): boolean;
|
|
712
|
+
get_clipboard(): Gdk.Clipboard;
|
|
713
|
+
get_color(): Gdk.RGBA;
|
|
714
|
+
get_css_classes(): string[];
|
|
715
|
+
get_css_name(): string;
|
|
716
|
+
get_cursor(): Gdk.Cursor | null;
|
|
717
|
+
get_direction(): Gtk.TextDirection;
|
|
718
|
+
get_display(): Gdk.Display;
|
|
719
|
+
get_first_child(): Gtk.Widget | null;
|
|
720
|
+
get_focus_child(): Gtk.Widget | null;
|
|
721
|
+
get_focus_on_click(): boolean;
|
|
722
|
+
get_focusable(): boolean;
|
|
723
|
+
get_font_map(): import("@girs/pango-1.0").default.FontMap | null;
|
|
724
|
+
get_font_options(): import("@girs/gjs/cairo").default.FontOptions | null;
|
|
725
|
+
get_frame_clock(): Gdk.FrameClock | null;
|
|
726
|
+
get_halign(): Gtk.Align;
|
|
727
|
+
get_has_tooltip(): boolean;
|
|
728
|
+
get_height(): number;
|
|
729
|
+
get_hexpand(): boolean;
|
|
730
|
+
get_hexpand_set(): boolean;
|
|
731
|
+
get_last_child(): Gtk.Widget | null;
|
|
732
|
+
get_layout_manager(): Gtk.LayoutManager | null;
|
|
733
|
+
get_limit_events(): boolean;
|
|
734
|
+
get_mapped(): boolean;
|
|
735
|
+
get_margin_bottom(): number;
|
|
736
|
+
get_margin_end(): number;
|
|
737
|
+
get_margin_start(): number;
|
|
738
|
+
get_margin_top(): number;
|
|
739
|
+
get_name(): string;
|
|
740
|
+
get_native(): Gtk.Native | null;
|
|
741
|
+
get_next_sibling(): Gtk.Widget | null;
|
|
742
|
+
get_opacity(): number;
|
|
743
|
+
get_overflow(): Gtk.Overflow;
|
|
744
|
+
get_pango_context(): import("@girs/pango-1.0").default.Context;
|
|
745
|
+
get_parent(): Gtk.Widget | null;
|
|
746
|
+
get_preferred_size(): [Gtk.Requisition | null, Gtk.Requisition | null];
|
|
747
|
+
get_prev_sibling(): Gtk.Widget | null;
|
|
748
|
+
get_primary_clipboard(): Gdk.Clipboard;
|
|
749
|
+
get_realized(): boolean;
|
|
750
|
+
get_receives_default(): boolean;
|
|
751
|
+
get_request_mode(): Gtk.SizeRequestMode;
|
|
752
|
+
get_root(): Gtk.Root | null;
|
|
753
|
+
get_scale_factor(): number;
|
|
754
|
+
get_sensitive(): boolean;
|
|
755
|
+
get_settings(): Gtk.Settings;
|
|
756
|
+
get_size(orientation: Gtk.Orientation): number;
|
|
757
|
+
get_size_request(): [number, number];
|
|
758
|
+
get_state_flags(): Gtk.StateFlags;
|
|
759
|
+
get_style_context(): Gtk.StyleContext;
|
|
760
|
+
get_template_child<T = GObject.Object>(widget_type: GObject.GType, name: string): T;
|
|
761
|
+
get_tooltip_markup(): string | null;
|
|
762
|
+
get_tooltip_text(): string | null;
|
|
763
|
+
get_valign(): Gtk.Align;
|
|
764
|
+
get_vexpand(): boolean;
|
|
765
|
+
get_vexpand_set(): boolean;
|
|
766
|
+
get_visible(): boolean;
|
|
767
|
+
get_width(): number;
|
|
768
|
+
grab_focus(): boolean;
|
|
769
|
+
has_css_class(css_class: string): boolean;
|
|
770
|
+
has_visible_focus(): boolean;
|
|
771
|
+
hide(): void;
|
|
772
|
+
in_destruction(): boolean;
|
|
773
|
+
init_template(): void;
|
|
774
|
+
insert_action_group(name: string, group: import("@girs/gio-2.0").default.ActionGroup | null): void;
|
|
775
|
+
insert_after(parent: Gtk.Widget, previous_sibling: Gtk.Widget | null): void;
|
|
776
|
+
insert_before(parent: Gtk.Widget, next_sibling: Gtk.Widget | null): void;
|
|
777
|
+
is_ancestor(ancestor: Gtk.Widget): boolean;
|
|
778
|
+
is_drawable(): boolean;
|
|
779
|
+
is_focus(): boolean;
|
|
780
|
+
is_sensitive(): boolean;
|
|
781
|
+
is_visible(): boolean;
|
|
782
|
+
keynav_failed(direction: Gtk.DirectionType): boolean;
|
|
783
|
+
list_mnemonic_labels(): Gtk.Widget[];
|
|
784
|
+
map(): void;
|
|
785
|
+
measure(orientation: Gtk.Orientation, for_size: number): [number, number, number, number];
|
|
786
|
+
mnemonic_activate(group_cycling: boolean): boolean;
|
|
787
|
+
observe_children(): import("@girs/gio-2.0").default.ListModel;
|
|
788
|
+
observe_controllers(): import("@girs/gio-2.0").default.ListModel;
|
|
789
|
+
pick(x: number, y: number, flags: Gtk.PickFlags): Gtk.Widget | null;
|
|
790
|
+
queue_allocate(): void;
|
|
791
|
+
queue_draw(): void;
|
|
792
|
+
queue_resize(): void;
|
|
793
|
+
realize(): void;
|
|
794
|
+
remove_controller(controller: Gtk.EventController): void;
|
|
795
|
+
remove_css_class(css_class: string): void;
|
|
796
|
+
remove_mnemonic_label(label: Gtk.Widget): void;
|
|
797
|
+
remove_tick_callback(id: number): void;
|
|
798
|
+
set_can_focus(can_focus: boolean): void;
|
|
799
|
+
set_can_target(can_target: boolean): void;
|
|
800
|
+
set_child_visible(child_visible: boolean): void;
|
|
801
|
+
set_css_classes(classes: string[]): void;
|
|
802
|
+
set_cursor(cursor: Gdk.Cursor | null): void;
|
|
803
|
+
set_cursor_from_name(name: string | null): void;
|
|
804
|
+
set_direction(dir: Gtk.TextDirection): void;
|
|
805
|
+
set_focus_child(child: Gtk.Widget | null): void;
|
|
806
|
+
set_focus_on_click(focus_on_click: boolean): void;
|
|
807
|
+
set_focusable(focusable: boolean): void;
|
|
808
|
+
set_font_map(font_map: import("@girs/pango-1.0").default.FontMap | null): void;
|
|
809
|
+
set_font_options(options: import("@girs/gjs/cairo").default.FontOptions | null): void;
|
|
810
|
+
set_halign(align: Gtk.Align): void;
|
|
811
|
+
set_has_tooltip(has_tooltip: boolean): void;
|
|
812
|
+
set_hexpand(expand: boolean): void;
|
|
813
|
+
set_hexpand_set(set: boolean): void;
|
|
814
|
+
set_layout_manager(layout_manager: Gtk.LayoutManager | null): void;
|
|
815
|
+
set_limit_events(limit_events: boolean): void;
|
|
816
|
+
set_margin_bottom(margin: number): void;
|
|
817
|
+
set_margin_end(margin: number): void;
|
|
818
|
+
set_margin_start(margin: number): void;
|
|
819
|
+
set_margin_top(margin: number): void;
|
|
820
|
+
set_name(name: string): void;
|
|
821
|
+
set_opacity(opacity: number): void;
|
|
822
|
+
set_overflow(overflow: Gtk.Overflow): void;
|
|
823
|
+
set_parent(parent: Gtk.Widget): void;
|
|
824
|
+
set_receives_default(receives_default: boolean): void;
|
|
825
|
+
set_sensitive(sensitive: boolean): void;
|
|
826
|
+
set_size_request(width: number, height: number): void;
|
|
827
|
+
set_state_flags(flags: Gtk.StateFlags, clear: boolean): void;
|
|
828
|
+
set_tooltip_markup(markup: string | null): void;
|
|
829
|
+
set_tooltip_text(text: string | null): void;
|
|
830
|
+
set_valign(align: Gtk.Align): void;
|
|
831
|
+
set_vexpand(expand: boolean): void;
|
|
832
|
+
set_vexpand_set(set: boolean): void;
|
|
833
|
+
set_visible(visible: boolean): void;
|
|
834
|
+
should_layout(): boolean;
|
|
835
|
+
show(): void;
|
|
836
|
+
size_allocate(allocation: Gtk.Allocation, baseline: number): void;
|
|
837
|
+
snapshot_child(child: Gtk.Widget, snapshot: Gtk.Snapshot): void;
|
|
838
|
+
translate_coordinates(dest_widget: Gtk.Widget, src_x: number, src_y: number): [boolean, number, number];
|
|
839
|
+
trigger_tooltip_query(): void;
|
|
840
|
+
unmap(): void;
|
|
841
|
+
unparent(): void;
|
|
842
|
+
unrealize(): void;
|
|
843
|
+
unset_state_flags(flags: Gtk.StateFlags): void;
|
|
844
|
+
[Symbol.iterator]: () => IterableIterator<Gtk.Widget>;
|
|
845
|
+
vfunc_constructed(): void;
|
|
846
|
+
vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
|
|
847
|
+
vfunc_dispose(): void;
|
|
848
|
+
vfunc_finalize(): void;
|
|
849
|
+
vfunc_get_property(property_id: number, value: unknown, pspec: GObject.ParamSpec): void;
|
|
850
|
+
vfunc_notify(pspec: GObject.ParamSpec): void;
|
|
851
|
+
vfunc_set_property(property_id: number, value: unknown, pspec: GObject.ParamSpec): void;
|
|
852
|
+
bind_property(source_property: string, target: GObject.Object, target_property: string, flags: GObject.BindingFlags): GObject.Binding;
|
|
853
|
+
bind_property_full(source_property: string, target: GObject.Object, target_property: string, flags: GObject.BindingFlags, transform_to: GObject.Closure | null, transform_from: GObject.Closure | null): GObject.Binding;
|
|
854
|
+
force_floating(): void;
|
|
855
|
+
freeze_notify(): void;
|
|
856
|
+
get_data(key: string): null;
|
|
857
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
858
|
+
get_qdata(quark: GLib.Quark): null;
|
|
859
|
+
getv(names: string[], values: (GObject.Value | any)[]): void;
|
|
860
|
+
is_floating(): boolean;
|
|
861
|
+
notify(property_name: string): void;
|
|
862
|
+
notify_by_pspec(pspec: GObject.ParamSpec): void;
|
|
863
|
+
ref(): GObject.Object;
|
|
864
|
+
ref_sink(): GObject.Object;
|
|
865
|
+
run_dispose(): void;
|
|
866
|
+
set_data(key: string, data: null): void;
|
|
867
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
868
|
+
steal_data(key: string): null;
|
|
869
|
+
steal_qdata(quark: GLib.Quark): null;
|
|
870
|
+
thaw_notify(): void;
|
|
871
|
+
unref(): void;
|
|
872
|
+
watch_closure(closure: GObject.Closure): void;
|
|
873
|
+
disconnect(id: number): void;
|
|
874
|
+
set(properties: {
|
|
875
|
+
[key: string]: any;
|
|
876
|
+
}): void;
|
|
877
|
+
block_signal_handler(id: number): void;
|
|
878
|
+
unblock_signal_handler(id: number): void;
|
|
879
|
+
stop_emission_by_name(detailedName: string): void;
|
|
880
|
+
}, {
|
|
881
|
+
[key: string]: GObject.ParamSpec<unknown>;
|
|
882
|
+
}, never[]>;
|
|
883
|
+
$gtype: GObject.GType<{
|
|
884
|
+
new (...args: any[]): GObject.RegisteredPrototype<{
|
|
885
|
+
_canvas: GjsifyHTMLCanvasElement | null;
|
|
886
|
+
_ctx: CanvasRenderingContext2D | null;
|
|
887
|
+
_readyCallbacks: Canvas2DReadyCallback[];
|
|
888
|
+
_resizeCallbacks: ((w: number, h: number) => void)[];
|
|
889
|
+
_tickCallbackId: number | null;
|
|
890
|
+
_frameCallback: FrameRequestCallback | null;
|
|
891
|
+
_timeOrigin: number;
|
|
892
|
+
/** @internal Draw function called by GTK. Blits the Cairo surface to screen. */
|
|
893
|
+
_onDraw(_area: Gtk.DrawingArea, cr: any, width: number, height: number): void;
|
|
894
|
+
/** The HTMLCanvasElement backing this widget. Available after the first draw. */
|
|
895
|
+
get canvas(): globalThis.HTMLCanvasElement | null;
|
|
896
|
+
/** Get the 2D rendering context. Available after the first draw. */
|
|
897
|
+
getContext(_id: "2d"): CanvasRenderingContext2D | null;
|
|
898
|
+
/**
|
|
899
|
+
* Register a callback to be invoked once the Canvas 2D context is ready.
|
|
900
|
+
* If the context is already available, the callback fires synchronously.
|
|
901
|
+
*/
|
|
902
|
+
onReady(cb: Canvas2DReadyCallback): void;
|
|
903
|
+
/**
|
|
904
|
+
* Register a callback invoked whenever the GTK widget is resized.
|
|
905
|
+
* Canvas dimensions are already updated when the callback fires.
|
|
906
|
+
* Call `queue_draw()` after re-rendering to push the new surface to screen.
|
|
907
|
+
*/
|
|
908
|
+
onResize(cb: (width: number, height: number) => void): void;
|
|
909
|
+
/**
|
|
910
|
+
* Schedules a single animation frame callback, matching the browser `requestAnimationFrame` API.
|
|
911
|
+
* Backed by GTK frame clock (vsync-synced, typically ~60 FPS).
|
|
912
|
+
* Returns 0 (handle — cancel not yet implemented).
|
|
913
|
+
*/
|
|
914
|
+
requestAnimationFrame(cb: FrameRequestCallback): number;
|
|
915
|
+
/**
|
|
916
|
+
* Sets browser globals (`requestAnimationFrame`, `performance`) so that
|
|
917
|
+
* browser-targeted code works unchanged on GJS.
|
|
918
|
+
*/
|
|
919
|
+
installGlobals(): void;
|
|
920
|
+
get content_height(): number;
|
|
921
|
+
set content_height(val: number);
|
|
922
|
+
get contentHeight(): number;
|
|
923
|
+
set contentHeight(val: number);
|
|
924
|
+
get content_width(): number;
|
|
925
|
+
set content_width(val: number);
|
|
926
|
+
get contentWidth(): number;
|
|
927
|
+
set contentWidth(val: number);
|
|
928
|
+
$signals: Gtk.DrawingArea.SignalSignatures;
|
|
929
|
+
widget: Gtk.Widget;
|
|
930
|
+
_init(...args: any[]): void;
|
|
931
|
+
connect<K extends keyof Gtk.DrawingArea.SignalSignatures>(signal: K, callback: GObject.SignalCallback</*elided*/ any, Gtk.DrawingArea.SignalSignatures[K]>): number;
|
|
932
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
933
|
+
connect_after<K extends keyof Gtk.DrawingArea.SignalSignatures>(signal: K, callback: GObject.SignalCallback</*elided*/ any, Gtk.DrawingArea.SignalSignatures[K]>): number;
|
|
934
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
935
|
+
emit<K extends keyof Gtk.DrawingArea.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Gtk.DrawingArea.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
936
|
+
emit(signal: string, ...args: any[]): void;
|
|
937
|
+
vfunc_resize(width: number, height: number): void;
|
|
938
|
+
get_content_height(): number;
|
|
939
|
+
get_content_width(): number;
|
|
940
|
+
set_content_height(height: number): void;
|
|
941
|
+
set_content_width(width: number): void;
|
|
942
|
+
set_draw_func(draw_func: Gtk.DrawingAreaDrawFunc | null): void;
|
|
943
|
+
get accessible_role(): Gtk.AccessibleRole;
|
|
944
|
+
set accessible_role(val: Gtk.AccessibleRole);
|
|
945
|
+
get accessibleRole(): Gtk.AccessibleRole;
|
|
946
|
+
set accessibleRole(val: Gtk.AccessibleRole);
|
|
947
|
+
announce(message: string, priority: Gtk.AccessibleAnnouncementPriority): void;
|
|
948
|
+
get_accessible_id(): string | null;
|
|
949
|
+
get_accessible_parent(): Gtk.Accessible | null;
|
|
950
|
+
get_accessible_role(): Gtk.AccessibleRole;
|
|
951
|
+
get_at_context(): Gtk.ATContext;
|
|
952
|
+
get_bounds(): [boolean, number, number, number, number];
|
|
953
|
+
get_first_accessible_child(): Gtk.Accessible | null;
|
|
954
|
+
get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
955
|
+
get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
956
|
+
reset_property(property: Gtk.AccessibleProperty): void;
|
|
957
|
+
reset_relation(relation: Gtk.AccessibleRelation): void;
|
|
958
|
+
reset_state(state: Gtk.AccessibleState): void;
|
|
959
|
+
set_accessible_parent(parent: Gtk.Accessible | null, next_sibling: Gtk.Accessible | null): void;
|
|
960
|
+
update_next_accessible_sibling(new_sibling: Gtk.Accessible | null): void;
|
|
961
|
+
update_platform_state(state: Gtk.AccessiblePlatformState): void;
|
|
962
|
+
update_property(properties: Gtk.AccessibleProperty[], values: (GObject.Value | any)[]): void;
|
|
963
|
+
update_relation(relations: Gtk.AccessibleRelation[], values: (GObject.Value | any)[]): void;
|
|
964
|
+
update_state(states: Gtk.AccessibleState[], values: (GObject.Value | any)[]): void;
|
|
965
|
+
vfunc_get_accessible_id(): string | null;
|
|
966
|
+
vfunc_get_accessible_parent(): Gtk.Accessible | null;
|
|
967
|
+
vfunc_get_at_context(): Gtk.ATContext | null;
|
|
968
|
+
vfunc_get_bounds(): [boolean, number, number, number, number];
|
|
969
|
+
vfunc_get_first_accessible_child(): Gtk.Accessible | null;
|
|
970
|
+
vfunc_get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
971
|
+
vfunc_get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
972
|
+
get_buildable_id(): string | null;
|
|
973
|
+
vfunc_add_child(builder: Gtk.Builder, child: GObject.Object, type: string | null): void;
|
|
974
|
+
vfunc_custom_finished(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
|
|
975
|
+
vfunc_custom_tag_end(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
|
|
976
|
+
vfunc_custom_tag_start(builder: Gtk.Builder, child: GObject.Object | null, tagname: string): [boolean, Gtk.BuildableParser, never];
|
|
977
|
+
vfunc_get_id(): string;
|
|
978
|
+
vfunc_get_internal_child<T = GObject.Object>(builder: Gtk.Builder, childname: string): T;
|
|
979
|
+
vfunc_parser_finished(builder: Gtk.Builder): void;
|
|
980
|
+
vfunc_set_buildable_property(builder: Gtk.Builder, name: string, value: unknown): void;
|
|
981
|
+
vfunc_set_id(id: string): void;
|
|
982
|
+
get can_focus(): boolean;
|
|
983
|
+
set can_focus(val: boolean);
|
|
984
|
+
get canFocus(): boolean;
|
|
985
|
+
set canFocus(val: boolean);
|
|
986
|
+
get can_target(): boolean;
|
|
987
|
+
set can_target(val: boolean);
|
|
988
|
+
get canTarget(): boolean;
|
|
989
|
+
set canTarget(val: boolean);
|
|
990
|
+
get css_classes(): string[];
|
|
991
|
+
set css_classes(val: string[]);
|
|
992
|
+
get cssClasses(): string[];
|
|
993
|
+
set cssClasses(val: string[]);
|
|
994
|
+
get css_name(): string;
|
|
995
|
+
get cssName(): string;
|
|
996
|
+
get cursor(): Gdk.Cursor | null;
|
|
997
|
+
set cursor(val: Gdk.Cursor | null);
|
|
998
|
+
get focus_on_click(): boolean;
|
|
999
|
+
set focus_on_click(val: boolean);
|
|
1000
|
+
get focusOnClick(): boolean;
|
|
1001
|
+
set focusOnClick(val: boolean);
|
|
1002
|
+
get focusable(): boolean;
|
|
1003
|
+
set focusable(val: boolean);
|
|
1004
|
+
get halign(): Gtk.Align;
|
|
1005
|
+
set halign(val: Gtk.Align);
|
|
1006
|
+
get has_default(): boolean;
|
|
1007
|
+
get hasDefault(): boolean;
|
|
1008
|
+
get has_focus(): boolean;
|
|
1009
|
+
get hasFocus(): boolean;
|
|
1010
|
+
get has_tooltip(): boolean;
|
|
1011
|
+
set has_tooltip(val: boolean);
|
|
1012
|
+
get hasTooltip(): boolean;
|
|
1013
|
+
set hasTooltip(val: boolean);
|
|
1014
|
+
get height_request(): number;
|
|
1015
|
+
set height_request(val: number);
|
|
1016
|
+
get heightRequest(): number;
|
|
1017
|
+
set heightRequest(val: number);
|
|
1018
|
+
get hexpand(): boolean;
|
|
1019
|
+
set hexpand(val: boolean);
|
|
1020
|
+
get hexpand_set(): boolean;
|
|
1021
|
+
set hexpand_set(val: boolean);
|
|
1022
|
+
get hexpandSet(): boolean;
|
|
1023
|
+
set hexpandSet(val: boolean);
|
|
1024
|
+
get layout_manager(): Gtk.LayoutManager | null;
|
|
1025
|
+
set layout_manager(val: Gtk.LayoutManager | null);
|
|
1026
|
+
get layoutManager(): Gtk.LayoutManager | null;
|
|
1027
|
+
set layoutManager(val: Gtk.LayoutManager | null);
|
|
1028
|
+
get limit_events(): boolean;
|
|
1029
|
+
set limit_events(val: boolean);
|
|
1030
|
+
get limitEvents(): boolean;
|
|
1031
|
+
set limitEvents(val: boolean);
|
|
1032
|
+
get margin_bottom(): number;
|
|
1033
|
+
set margin_bottom(val: number);
|
|
1034
|
+
get marginBottom(): number;
|
|
1035
|
+
set marginBottom(val: number);
|
|
1036
|
+
get margin_end(): number;
|
|
1037
|
+
set margin_end(val: number);
|
|
1038
|
+
get marginEnd(): number;
|
|
1039
|
+
set marginEnd(val: number);
|
|
1040
|
+
get margin_start(): number;
|
|
1041
|
+
set margin_start(val: number);
|
|
1042
|
+
get marginStart(): number;
|
|
1043
|
+
set marginStart(val: number);
|
|
1044
|
+
get margin_top(): number;
|
|
1045
|
+
set margin_top(val: number);
|
|
1046
|
+
get marginTop(): number;
|
|
1047
|
+
set marginTop(val: number);
|
|
1048
|
+
get name(): string;
|
|
1049
|
+
set name(val: string);
|
|
1050
|
+
get opacity(): number;
|
|
1051
|
+
set opacity(val: number);
|
|
1052
|
+
get overflow(): Gtk.Overflow;
|
|
1053
|
+
set overflow(val: Gtk.Overflow);
|
|
1054
|
+
get parent(): Gtk.Widget | null;
|
|
1055
|
+
get receives_default(): boolean;
|
|
1056
|
+
set receives_default(val: boolean);
|
|
1057
|
+
get receivesDefault(): boolean;
|
|
1058
|
+
set receivesDefault(val: boolean);
|
|
1059
|
+
get root(): Gtk.Root | null;
|
|
1060
|
+
get scale_factor(): number;
|
|
1061
|
+
get scaleFactor(): number;
|
|
1062
|
+
get sensitive(): boolean;
|
|
1063
|
+
set sensitive(val: boolean);
|
|
1064
|
+
get tooltip_markup(): string | null;
|
|
1065
|
+
set tooltip_markup(val: string | null);
|
|
1066
|
+
get tooltipMarkup(): string | null;
|
|
1067
|
+
set tooltipMarkup(val: string | null);
|
|
1068
|
+
get tooltip_text(): string | null;
|
|
1069
|
+
set tooltip_text(val: string | null);
|
|
1070
|
+
get tooltipText(): string | null;
|
|
1071
|
+
set tooltipText(val: string | null);
|
|
1072
|
+
get valign(): Gtk.Align;
|
|
1073
|
+
set valign(val: Gtk.Align);
|
|
1074
|
+
get vexpand(): boolean;
|
|
1075
|
+
set vexpand(val: boolean);
|
|
1076
|
+
get vexpand_set(): boolean;
|
|
1077
|
+
set vexpand_set(val: boolean);
|
|
1078
|
+
get vexpandSet(): boolean;
|
|
1079
|
+
set vexpandSet(val: boolean);
|
|
1080
|
+
get visible(): boolean;
|
|
1081
|
+
set visible(val: boolean);
|
|
1082
|
+
get width_request(): number;
|
|
1083
|
+
set width_request(val: number);
|
|
1084
|
+
get widthRequest(): number;
|
|
1085
|
+
set widthRequest(val: number);
|
|
1086
|
+
vfunc_compute_expand(hexpand_p: boolean, vexpand_p: boolean): void;
|
|
1087
|
+
vfunc_contains(x: number, y: number): boolean;
|
|
1088
|
+
vfunc_css_changed(change: Gtk.CssStyleChange): void;
|
|
1089
|
+
vfunc_direction_changed(previous_direction: Gtk.TextDirection): void;
|
|
1090
|
+
vfunc_focus(direction: Gtk.DirectionType): boolean;
|
|
1091
|
+
vfunc_get_request_mode(): Gtk.SizeRequestMode;
|
|
1092
|
+
vfunc_grab_focus(): boolean;
|
|
1093
|
+
vfunc_hide(): void;
|
|
1094
|
+
vfunc_keynav_failed(direction: Gtk.DirectionType): boolean;
|
|
1095
|
+
vfunc_map(): void;
|
|
1096
|
+
vfunc_measure(orientation: Gtk.Orientation, for_size: number): [number, number, number, number];
|
|
1097
|
+
vfunc_mnemonic_activate(group_cycling: boolean): boolean;
|
|
1098
|
+
vfunc_move_focus(direction: Gtk.DirectionType): void;
|
|
1099
|
+
vfunc_query_tooltip(x: number, y: number, keyboard_tooltip: boolean, tooltip: Gtk.Tooltip): boolean;
|
|
1100
|
+
vfunc_realize(): void;
|
|
1101
|
+
vfunc_root(): void;
|
|
1102
|
+
vfunc_set_focus_child(child: Gtk.Widget | null): void;
|
|
1103
|
+
vfunc_show(): void;
|
|
1104
|
+
vfunc_size_allocate(width: number, height: number, baseline: number): void;
|
|
1105
|
+
vfunc_snapshot(snapshot: Gtk.Snapshot): void;
|
|
1106
|
+
vfunc_state_flags_changed(previous_state_flags: Gtk.StateFlags): void;
|
|
1107
|
+
vfunc_system_setting_changed(settings: Gtk.SystemSetting): void;
|
|
1108
|
+
vfunc_unmap(): void;
|
|
1109
|
+
vfunc_unrealize(): void;
|
|
1110
|
+
vfunc_unroot(): void;
|
|
1111
|
+
action_set_enabled(action_name: string, enabled: boolean): void;
|
|
1112
|
+
activate(): boolean;
|
|
1113
|
+
activate_action(name: string, args: GLib.Variant | null): boolean;
|
|
1114
|
+
activate_default(): void;
|
|
1115
|
+
add_controller(controller: Gtk.EventController): void;
|
|
1116
|
+
add_css_class(css_class: string): void;
|
|
1117
|
+
add_mnemonic_label(label: Gtk.Widget): void;
|
|
1118
|
+
add_tick_callback(callback: Gtk.TickCallback): number;
|
|
1119
|
+
allocate(width: number, height: number, baseline: number, transform: import("@girs/gsk-4.0").default.Transform | null): void;
|
|
1120
|
+
child_focus(direction: Gtk.DirectionType): boolean;
|
|
1121
|
+
compute_bounds(target: Gtk.Widget): [boolean, import("@girs/graphene-1.0").default.Rect];
|
|
1122
|
+
compute_expand(orientation: Gtk.Orientation): boolean;
|
|
1123
|
+
compute_point(target: Gtk.Widget, point: import("@girs/graphene-1.0").default.Point): [boolean, import("@girs/graphene-1.0").default.Point];
|
|
1124
|
+
compute_transform(target: Gtk.Widget): [boolean, import("@girs/graphene-1.0").default.Matrix];
|
|
1125
|
+
contains(x: number, y: number): boolean;
|
|
1126
|
+
create_pango_context(): import("@girs/pango-1.0").default.Context;
|
|
1127
|
+
create_pango_layout(text: string | null): import("@girs/pango-1.0").default.Layout;
|
|
1128
|
+
dispose_template(widget_type: GObject.GType): void;
|
|
1129
|
+
drag_check_threshold(start_x: number, start_y: number, current_x: number, current_y: number): boolean;
|
|
1130
|
+
error_bell(): void;
|
|
1131
|
+
get_allocated_baseline(): number;
|
|
1132
|
+
get_allocated_height(): number;
|
|
1133
|
+
get_allocated_width(): number;
|
|
1134
|
+
get_allocation(): Gtk.Allocation;
|
|
1135
|
+
get_ancestor(widget_type: GObject.GType): Gtk.Widget | null;
|
|
1136
|
+
get_baseline(): number;
|
|
1137
|
+
get_can_focus(): boolean;
|
|
1138
|
+
get_can_target(): boolean;
|
|
1139
|
+
get_child_visible(): boolean;
|
|
1140
|
+
get_clipboard(): Gdk.Clipboard;
|
|
1141
|
+
get_color(): Gdk.RGBA;
|
|
1142
|
+
get_css_classes(): string[];
|
|
1143
|
+
get_css_name(): string;
|
|
1144
|
+
get_cursor(): Gdk.Cursor | null;
|
|
1145
|
+
get_direction(): Gtk.TextDirection;
|
|
1146
|
+
get_display(): Gdk.Display;
|
|
1147
|
+
get_first_child(): Gtk.Widget | null;
|
|
1148
|
+
get_focus_child(): Gtk.Widget | null;
|
|
1149
|
+
get_focus_on_click(): boolean;
|
|
1150
|
+
get_focusable(): boolean;
|
|
1151
|
+
get_font_map(): import("@girs/pango-1.0").default.FontMap | null;
|
|
1152
|
+
get_font_options(): import("@girs/gjs/cairo").default.FontOptions | null;
|
|
1153
|
+
get_frame_clock(): Gdk.FrameClock | null;
|
|
1154
|
+
get_halign(): Gtk.Align;
|
|
1155
|
+
get_has_tooltip(): boolean;
|
|
1156
|
+
get_height(): number;
|
|
1157
|
+
get_hexpand(): boolean;
|
|
1158
|
+
get_hexpand_set(): boolean;
|
|
1159
|
+
get_last_child(): Gtk.Widget | null;
|
|
1160
|
+
get_layout_manager(): Gtk.LayoutManager | null;
|
|
1161
|
+
get_limit_events(): boolean;
|
|
1162
|
+
get_mapped(): boolean;
|
|
1163
|
+
get_margin_bottom(): number;
|
|
1164
|
+
get_margin_end(): number;
|
|
1165
|
+
get_margin_start(): number;
|
|
1166
|
+
get_margin_top(): number;
|
|
1167
|
+
get_name(): string;
|
|
1168
|
+
get_native(): Gtk.Native | null;
|
|
1169
|
+
get_next_sibling(): Gtk.Widget | null;
|
|
1170
|
+
get_opacity(): number;
|
|
1171
|
+
get_overflow(): Gtk.Overflow;
|
|
1172
|
+
get_pango_context(): import("@girs/pango-1.0").default.Context;
|
|
1173
|
+
get_parent(): Gtk.Widget | null;
|
|
1174
|
+
get_preferred_size(): [Gtk.Requisition | null, Gtk.Requisition | null];
|
|
1175
|
+
get_prev_sibling(): Gtk.Widget | null;
|
|
1176
|
+
get_primary_clipboard(): Gdk.Clipboard;
|
|
1177
|
+
get_realized(): boolean;
|
|
1178
|
+
get_receives_default(): boolean;
|
|
1179
|
+
get_request_mode(): Gtk.SizeRequestMode;
|
|
1180
|
+
get_root(): Gtk.Root | null;
|
|
1181
|
+
get_scale_factor(): number;
|
|
1182
|
+
get_sensitive(): boolean;
|
|
1183
|
+
get_settings(): Gtk.Settings;
|
|
1184
|
+
get_size(orientation: Gtk.Orientation): number;
|
|
1185
|
+
get_size_request(): [number, number];
|
|
1186
|
+
get_state_flags(): Gtk.StateFlags;
|
|
1187
|
+
get_style_context(): Gtk.StyleContext;
|
|
1188
|
+
get_template_child<T = GObject.Object>(widget_type: GObject.GType, name: string): T;
|
|
1189
|
+
get_tooltip_markup(): string | null;
|
|
1190
|
+
get_tooltip_text(): string | null;
|
|
1191
|
+
get_valign(): Gtk.Align;
|
|
1192
|
+
get_vexpand(): boolean;
|
|
1193
|
+
get_vexpand_set(): boolean;
|
|
1194
|
+
get_visible(): boolean;
|
|
1195
|
+
get_width(): number;
|
|
1196
|
+
grab_focus(): boolean;
|
|
1197
|
+
has_css_class(css_class: string): boolean;
|
|
1198
|
+
has_visible_focus(): boolean;
|
|
1199
|
+
hide(): void;
|
|
1200
|
+
in_destruction(): boolean;
|
|
1201
|
+
init_template(): void;
|
|
1202
|
+
insert_action_group(name: string, group: import("@girs/gio-2.0").default.ActionGroup | null): void;
|
|
1203
|
+
insert_after(parent: Gtk.Widget, previous_sibling: Gtk.Widget | null): void;
|
|
1204
|
+
insert_before(parent: Gtk.Widget, next_sibling: Gtk.Widget | null): void;
|
|
1205
|
+
is_ancestor(ancestor: Gtk.Widget): boolean;
|
|
1206
|
+
is_drawable(): boolean;
|
|
1207
|
+
is_focus(): boolean;
|
|
1208
|
+
is_sensitive(): boolean;
|
|
1209
|
+
is_visible(): boolean;
|
|
1210
|
+
keynav_failed(direction: Gtk.DirectionType): boolean;
|
|
1211
|
+
list_mnemonic_labels(): Gtk.Widget[];
|
|
1212
|
+
map(): void;
|
|
1213
|
+
measure(orientation: Gtk.Orientation, for_size: number): [number, number, number, number];
|
|
1214
|
+
mnemonic_activate(group_cycling: boolean): boolean;
|
|
1215
|
+
observe_children(): import("@girs/gio-2.0").default.ListModel;
|
|
1216
|
+
observe_controllers(): import("@girs/gio-2.0").default.ListModel;
|
|
1217
|
+
pick(x: number, y: number, flags: Gtk.PickFlags): Gtk.Widget | null;
|
|
1218
|
+
queue_allocate(): void;
|
|
1219
|
+
queue_draw(): void;
|
|
1220
|
+
queue_resize(): void;
|
|
1221
|
+
realize(): void;
|
|
1222
|
+
remove_controller(controller: Gtk.EventController): void;
|
|
1223
|
+
remove_css_class(css_class: string): void;
|
|
1224
|
+
remove_mnemonic_label(label: Gtk.Widget): void;
|
|
1225
|
+
remove_tick_callback(id: number): void;
|
|
1226
|
+
set_can_focus(can_focus: boolean): void;
|
|
1227
|
+
set_can_target(can_target: boolean): void;
|
|
1228
|
+
set_child_visible(child_visible: boolean): void;
|
|
1229
|
+
set_css_classes(classes: string[]): void;
|
|
1230
|
+
set_cursor(cursor: Gdk.Cursor | null): void;
|
|
1231
|
+
set_cursor_from_name(name: string | null): void;
|
|
1232
|
+
set_direction(dir: Gtk.TextDirection): void;
|
|
1233
|
+
set_focus_child(child: Gtk.Widget | null): void;
|
|
1234
|
+
set_focus_on_click(focus_on_click: boolean): void;
|
|
1235
|
+
set_focusable(focusable: boolean): void;
|
|
1236
|
+
set_font_map(font_map: import("@girs/pango-1.0").default.FontMap | null): void;
|
|
1237
|
+
set_font_options(options: import("@girs/gjs/cairo").default.FontOptions | null): void;
|
|
1238
|
+
set_halign(align: Gtk.Align): void;
|
|
1239
|
+
set_has_tooltip(has_tooltip: boolean): void;
|
|
1240
|
+
set_hexpand(expand: boolean): void;
|
|
1241
|
+
set_hexpand_set(set: boolean): void;
|
|
1242
|
+
set_layout_manager(layout_manager: Gtk.LayoutManager | null): void;
|
|
1243
|
+
set_limit_events(limit_events: boolean): void;
|
|
1244
|
+
set_margin_bottom(margin: number): void;
|
|
1245
|
+
set_margin_end(margin: number): void;
|
|
1246
|
+
set_margin_start(margin: number): void;
|
|
1247
|
+
set_margin_top(margin: number): void;
|
|
1248
|
+
set_name(name: string): void;
|
|
1249
|
+
set_opacity(opacity: number): void;
|
|
1250
|
+
set_overflow(overflow: Gtk.Overflow): void;
|
|
1251
|
+
set_parent(parent: Gtk.Widget): void;
|
|
1252
|
+
set_receives_default(receives_default: boolean): void;
|
|
1253
|
+
set_sensitive(sensitive: boolean): void;
|
|
1254
|
+
set_size_request(width: number, height: number): void;
|
|
1255
|
+
set_state_flags(flags: Gtk.StateFlags, clear: boolean): void;
|
|
1256
|
+
set_tooltip_markup(markup: string | null): void;
|
|
1257
|
+
set_tooltip_text(text: string | null): void;
|
|
1258
|
+
set_valign(align: Gtk.Align): void;
|
|
1259
|
+
set_vexpand(expand: boolean): void;
|
|
1260
|
+
set_vexpand_set(set: boolean): void;
|
|
1261
|
+
set_visible(visible: boolean): void;
|
|
1262
|
+
should_layout(): boolean;
|
|
1263
|
+
show(): void;
|
|
1264
|
+
size_allocate(allocation: Gtk.Allocation, baseline: number): void;
|
|
1265
|
+
snapshot_child(child: Gtk.Widget, snapshot: Gtk.Snapshot): void;
|
|
1266
|
+
translate_coordinates(dest_widget: Gtk.Widget, src_x: number, src_y: number): [boolean, number, number];
|
|
1267
|
+
trigger_tooltip_query(): void;
|
|
1268
|
+
unmap(): void;
|
|
1269
|
+
unparent(): void;
|
|
1270
|
+
unrealize(): void;
|
|
1271
|
+
unset_state_flags(flags: Gtk.StateFlags): void;
|
|
1272
|
+
[Symbol.iterator]: () => IterableIterator<Gtk.Widget>;
|
|
1273
|
+
vfunc_constructed(): void;
|
|
1274
|
+
vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
|
|
1275
|
+
vfunc_dispose(): void;
|
|
1276
|
+
vfunc_finalize(): void;
|
|
1277
|
+
vfunc_get_property(property_id: number, value: unknown, pspec: GObject.ParamSpec): void;
|
|
1278
|
+
vfunc_notify(pspec: GObject.ParamSpec): void;
|
|
1279
|
+
vfunc_set_property(property_id: number, value: unknown, pspec: GObject.ParamSpec): void;
|
|
1280
|
+
bind_property(source_property: string, target: GObject.Object, target_property: string, flags: GObject.BindingFlags): GObject.Binding;
|
|
1281
|
+
bind_property_full(source_property: string, target: GObject.Object, target_property: string, flags: GObject.BindingFlags, transform_to: GObject.Closure | null, transform_from: GObject.Closure | null): GObject.Binding;
|
|
1282
|
+
force_floating(): void;
|
|
1283
|
+
freeze_notify(): void;
|
|
1284
|
+
get_data(key: string): null;
|
|
1285
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
1286
|
+
get_qdata(quark: GLib.Quark): null;
|
|
1287
|
+
getv(names: string[], values: (GObject.Value | any)[]): void;
|
|
1288
|
+
is_floating(): boolean;
|
|
1289
|
+
notify(property_name: string): void;
|
|
1290
|
+
notify_by_pspec(pspec: GObject.ParamSpec): void;
|
|
1291
|
+
ref(): GObject.Object;
|
|
1292
|
+
ref_sink(): GObject.Object;
|
|
1293
|
+
run_dispose(): void;
|
|
1294
|
+
set_data(key: string, data: null): void;
|
|
1295
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
1296
|
+
steal_data(key: string): null;
|
|
1297
|
+
steal_qdata(quark: GLib.Quark): null;
|
|
1298
|
+
thaw_notify(): void;
|
|
1299
|
+
unref(): void;
|
|
1300
|
+
watch_closure(closure: GObject.Closure): void;
|
|
1301
|
+
disconnect(id: number): void;
|
|
1302
|
+
set(properties: {
|
|
1303
|
+
[key: string]: any;
|
|
1304
|
+
}): void;
|
|
1305
|
+
block_signal_handler(id: number): void;
|
|
1306
|
+
unblock_signal_handler(id: number): void;
|
|
1307
|
+
stop_emission_by_name(detailedName: string): void;
|
|
1308
|
+
}, {
|
|
1309
|
+
[key: string]: GObject.ParamSpec<unknown>;
|
|
1310
|
+
}, unknown[]>;
|
|
1311
|
+
$gtype: GObject.GType</*elided*/ any>;
|
|
1312
|
+
prototype: GObject.RegisteredPrototype<{
|
|
1313
|
+
_canvas: GjsifyHTMLCanvasElement | null;
|
|
1314
|
+
_ctx: CanvasRenderingContext2D | null;
|
|
1315
|
+
_readyCallbacks: Canvas2DReadyCallback[];
|
|
1316
|
+
_resizeCallbacks: ((w: number, h: number) => void)[];
|
|
1317
|
+
_tickCallbackId: number | null;
|
|
1318
|
+
_frameCallback: FrameRequestCallback | null;
|
|
1319
|
+
_timeOrigin: number;
|
|
1320
|
+
/** @internal Draw function called by GTK. Blits the Cairo surface to screen. */
|
|
1321
|
+
_onDraw(_area: Gtk.DrawingArea, cr: any, width: number, height: number): void;
|
|
1322
|
+
/** The HTMLCanvasElement backing this widget. Available after the first draw. */
|
|
1323
|
+
get canvas(): globalThis.HTMLCanvasElement | null;
|
|
1324
|
+
/** Get the 2D rendering context. Available after the first draw. */
|
|
1325
|
+
getContext(_id: "2d"): CanvasRenderingContext2D | null;
|
|
1326
|
+
/**
|
|
1327
|
+
* Register a callback to be invoked once the Canvas 2D context is ready.
|
|
1328
|
+
* If the context is already available, the callback fires synchronously.
|
|
1329
|
+
*/
|
|
1330
|
+
onReady(cb: Canvas2DReadyCallback): void;
|
|
1331
|
+
/**
|
|
1332
|
+
* Register a callback invoked whenever the GTK widget is resized.
|
|
1333
|
+
* Canvas dimensions are already updated when the callback fires.
|
|
1334
|
+
* Call `queue_draw()` after re-rendering to push the new surface to screen.
|
|
1335
|
+
*/
|
|
1336
|
+
onResize(cb: (width: number, height: number) => void): void;
|
|
1337
|
+
/**
|
|
1338
|
+
* Schedules a single animation frame callback, matching the browser `requestAnimationFrame` API.
|
|
1339
|
+
* Backed by GTK frame clock (vsync-synced, typically ~60 FPS).
|
|
1340
|
+
* Returns 0 (handle — cancel not yet implemented).
|
|
1341
|
+
*/
|
|
1342
|
+
requestAnimationFrame(cb: FrameRequestCallback): number;
|
|
1343
|
+
/**
|
|
1344
|
+
* Sets browser globals (`requestAnimationFrame`, `performance`) so that
|
|
1345
|
+
* browser-targeted code works unchanged on GJS.
|
|
1346
|
+
*/
|
|
1347
|
+
installGlobals(): void;
|
|
1348
|
+
get content_height(): number;
|
|
1349
|
+
set content_height(val: number);
|
|
1350
|
+
get contentHeight(): number;
|
|
1351
|
+
set contentHeight(val: number);
|
|
1352
|
+
get content_width(): number;
|
|
1353
|
+
set content_width(val: number);
|
|
1354
|
+
get contentWidth(): number;
|
|
1355
|
+
set contentWidth(val: number);
|
|
1356
|
+
$signals: Gtk.DrawingArea.SignalSignatures;
|
|
1357
|
+
widget: Gtk.Widget;
|
|
1358
|
+
_init(...args: any[]): void;
|
|
1359
|
+
connect<K extends keyof Gtk.DrawingArea.SignalSignatures>(signal: K, callback: GObject.SignalCallback</*elided*/ any, Gtk.DrawingArea.SignalSignatures[K]>): number;
|
|
1360
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1361
|
+
connect_after<K extends keyof Gtk.DrawingArea.SignalSignatures>(signal: K, callback: GObject.SignalCallback</*elided*/ any, Gtk.DrawingArea.SignalSignatures[K]>): number;
|
|
1362
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1363
|
+
emit<K extends keyof Gtk.DrawingArea.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Gtk.DrawingArea.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
1364
|
+
emit(signal: string, ...args: any[]): void;
|
|
1365
|
+
vfunc_resize(width: number, height: number): void;
|
|
1366
|
+
get_content_height(): number;
|
|
1367
|
+
get_content_width(): number;
|
|
1368
|
+
set_content_height(height: number): void;
|
|
1369
|
+
set_content_width(width: number): void;
|
|
1370
|
+
set_draw_func(draw_func: Gtk.DrawingAreaDrawFunc | null): void;
|
|
1371
|
+
get accessible_role(): Gtk.AccessibleRole;
|
|
1372
|
+
set accessible_role(val: Gtk.AccessibleRole);
|
|
1373
|
+
get accessibleRole(): Gtk.AccessibleRole;
|
|
1374
|
+
set accessibleRole(val: Gtk.AccessibleRole);
|
|
1375
|
+
announce(message: string, priority: Gtk.AccessibleAnnouncementPriority): void;
|
|
1376
|
+
get_accessible_id(): string | null;
|
|
1377
|
+
get_accessible_parent(): Gtk.Accessible | null;
|
|
1378
|
+
get_accessible_role(): Gtk.AccessibleRole;
|
|
1379
|
+
get_at_context(): Gtk.ATContext;
|
|
1380
|
+
get_bounds(): [boolean, number, number, number, number];
|
|
1381
|
+
get_first_accessible_child(): Gtk.Accessible | null;
|
|
1382
|
+
get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
1383
|
+
get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
1384
|
+
reset_property(property: Gtk.AccessibleProperty): void;
|
|
1385
|
+
reset_relation(relation: Gtk.AccessibleRelation): void;
|
|
1386
|
+
reset_state(state: Gtk.AccessibleState): void;
|
|
1387
|
+
set_accessible_parent(parent: Gtk.Accessible | null, next_sibling: Gtk.Accessible | null): void;
|
|
1388
|
+
update_next_accessible_sibling(new_sibling: Gtk.Accessible | null): void;
|
|
1389
|
+
update_platform_state(state: Gtk.AccessiblePlatformState): void;
|
|
1390
|
+
update_property(properties: Gtk.AccessibleProperty[], values: (GObject.Value | any)[]): void;
|
|
1391
|
+
update_relation(relations: Gtk.AccessibleRelation[], values: (GObject.Value | any)[]): void;
|
|
1392
|
+
update_state(states: Gtk.AccessibleState[], values: (GObject.Value | any)[]): void;
|
|
1393
|
+
vfunc_get_accessible_id(): string | null;
|
|
1394
|
+
vfunc_get_accessible_parent(): Gtk.Accessible | null;
|
|
1395
|
+
vfunc_get_at_context(): Gtk.ATContext | null;
|
|
1396
|
+
vfunc_get_bounds(): [boolean, number, number, number, number];
|
|
1397
|
+
vfunc_get_first_accessible_child(): Gtk.Accessible | null;
|
|
1398
|
+
vfunc_get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
1399
|
+
vfunc_get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
1400
|
+
get_buildable_id(): string | null;
|
|
1401
|
+
vfunc_add_child(builder: Gtk.Builder, child: GObject.Object, type: string | null): void;
|
|
1402
|
+
vfunc_custom_finished(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
|
|
1403
|
+
vfunc_custom_tag_end(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
|
|
1404
|
+
vfunc_custom_tag_start(builder: Gtk.Builder, child: GObject.Object | null, tagname: string): [boolean, Gtk.BuildableParser, never];
|
|
1405
|
+
vfunc_get_id(): string;
|
|
1406
|
+
vfunc_get_internal_child<T = GObject.Object>(builder: Gtk.Builder, childname: string): T;
|
|
1407
|
+
vfunc_parser_finished(builder: Gtk.Builder): void;
|
|
1408
|
+
vfunc_set_buildable_property(builder: Gtk.Builder, name: string, value: unknown): void;
|
|
1409
|
+
vfunc_set_id(id: string): void;
|
|
1410
|
+
get can_focus(): boolean;
|
|
1411
|
+
set can_focus(val: boolean);
|
|
1412
|
+
get canFocus(): boolean;
|
|
1413
|
+
set canFocus(val: boolean);
|
|
1414
|
+
get can_target(): boolean;
|
|
1415
|
+
set can_target(val: boolean);
|
|
1416
|
+
get canTarget(): boolean;
|
|
1417
|
+
set canTarget(val: boolean);
|
|
1418
|
+
get css_classes(): string[];
|
|
1419
|
+
set css_classes(val: string[]);
|
|
1420
|
+
get cssClasses(): string[];
|
|
1421
|
+
set cssClasses(val: string[]);
|
|
1422
|
+
get css_name(): string;
|
|
1423
|
+
get cssName(): string;
|
|
1424
|
+
get cursor(): Gdk.Cursor | null;
|
|
1425
|
+
set cursor(val: Gdk.Cursor | null);
|
|
1426
|
+
get focus_on_click(): boolean;
|
|
1427
|
+
set focus_on_click(val: boolean);
|
|
1428
|
+
get focusOnClick(): boolean;
|
|
1429
|
+
set focusOnClick(val: boolean);
|
|
1430
|
+
get focusable(): boolean;
|
|
1431
|
+
set focusable(val: boolean);
|
|
1432
|
+
get halign(): Gtk.Align;
|
|
1433
|
+
set halign(val: Gtk.Align);
|
|
1434
|
+
get has_default(): boolean;
|
|
1435
|
+
get hasDefault(): boolean;
|
|
1436
|
+
get has_focus(): boolean;
|
|
1437
|
+
get hasFocus(): boolean;
|
|
1438
|
+
get has_tooltip(): boolean;
|
|
1439
|
+
set has_tooltip(val: boolean);
|
|
1440
|
+
get hasTooltip(): boolean;
|
|
1441
|
+
set hasTooltip(val: boolean);
|
|
1442
|
+
get height_request(): number;
|
|
1443
|
+
set height_request(val: number);
|
|
1444
|
+
get heightRequest(): number;
|
|
1445
|
+
set heightRequest(val: number);
|
|
1446
|
+
get hexpand(): boolean;
|
|
1447
|
+
set hexpand(val: boolean);
|
|
1448
|
+
get hexpand_set(): boolean;
|
|
1449
|
+
set hexpand_set(val: boolean);
|
|
1450
|
+
get hexpandSet(): boolean;
|
|
1451
|
+
set hexpandSet(val: boolean);
|
|
1452
|
+
get layout_manager(): Gtk.LayoutManager | null;
|
|
1453
|
+
set layout_manager(val: Gtk.LayoutManager | null);
|
|
1454
|
+
get layoutManager(): Gtk.LayoutManager | null;
|
|
1455
|
+
set layoutManager(val: Gtk.LayoutManager | null);
|
|
1456
|
+
get limit_events(): boolean;
|
|
1457
|
+
set limit_events(val: boolean);
|
|
1458
|
+
get limitEvents(): boolean;
|
|
1459
|
+
set limitEvents(val: boolean);
|
|
1460
|
+
get margin_bottom(): number;
|
|
1461
|
+
set margin_bottom(val: number);
|
|
1462
|
+
get marginBottom(): number;
|
|
1463
|
+
set marginBottom(val: number);
|
|
1464
|
+
get margin_end(): number;
|
|
1465
|
+
set margin_end(val: number);
|
|
1466
|
+
get marginEnd(): number;
|
|
1467
|
+
set marginEnd(val: number);
|
|
1468
|
+
get margin_start(): number;
|
|
1469
|
+
set margin_start(val: number);
|
|
1470
|
+
get marginStart(): number;
|
|
1471
|
+
set marginStart(val: number);
|
|
1472
|
+
get margin_top(): number;
|
|
1473
|
+
set margin_top(val: number);
|
|
1474
|
+
get marginTop(): number;
|
|
1475
|
+
set marginTop(val: number);
|
|
1476
|
+
get name(): string;
|
|
1477
|
+
set name(val: string);
|
|
1478
|
+
get opacity(): number;
|
|
1479
|
+
set opacity(val: number);
|
|
1480
|
+
get overflow(): Gtk.Overflow;
|
|
1481
|
+
set overflow(val: Gtk.Overflow);
|
|
1482
|
+
get parent(): Gtk.Widget | null;
|
|
1483
|
+
get receives_default(): boolean;
|
|
1484
|
+
set receives_default(val: boolean);
|
|
1485
|
+
get receivesDefault(): boolean;
|
|
1486
|
+
set receivesDefault(val: boolean);
|
|
1487
|
+
get root(): Gtk.Root | null;
|
|
1488
|
+
get scale_factor(): number;
|
|
1489
|
+
get scaleFactor(): number;
|
|
1490
|
+
get sensitive(): boolean;
|
|
1491
|
+
set sensitive(val: boolean);
|
|
1492
|
+
get tooltip_markup(): string | null;
|
|
1493
|
+
set tooltip_markup(val: string | null);
|
|
1494
|
+
get tooltipMarkup(): string | null;
|
|
1495
|
+
set tooltipMarkup(val: string | null);
|
|
1496
|
+
get tooltip_text(): string | null;
|
|
1497
|
+
set tooltip_text(val: string | null);
|
|
1498
|
+
get tooltipText(): string | null;
|
|
1499
|
+
set tooltipText(val: string | null);
|
|
1500
|
+
get valign(): Gtk.Align;
|
|
1501
|
+
set valign(val: Gtk.Align);
|
|
1502
|
+
get vexpand(): boolean;
|
|
1503
|
+
set vexpand(val: boolean);
|
|
1504
|
+
get vexpand_set(): boolean;
|
|
1505
|
+
set vexpand_set(val: boolean);
|
|
1506
|
+
get vexpandSet(): boolean;
|
|
1507
|
+
set vexpandSet(val: boolean);
|
|
1508
|
+
get visible(): boolean;
|
|
1509
|
+
set visible(val: boolean);
|
|
1510
|
+
get width_request(): number;
|
|
1511
|
+
set width_request(val: number);
|
|
1512
|
+
get widthRequest(): number;
|
|
1513
|
+
set widthRequest(val: number);
|
|
1514
|
+
vfunc_compute_expand(hexpand_p: boolean, vexpand_p: boolean): void;
|
|
1515
|
+
vfunc_contains(x: number, y: number): boolean;
|
|
1516
|
+
vfunc_css_changed(change: Gtk.CssStyleChange): void;
|
|
1517
|
+
vfunc_direction_changed(previous_direction: Gtk.TextDirection): void;
|
|
1518
|
+
vfunc_focus(direction: Gtk.DirectionType): boolean;
|
|
1519
|
+
vfunc_get_request_mode(): Gtk.SizeRequestMode;
|
|
1520
|
+
vfunc_grab_focus(): boolean;
|
|
1521
|
+
vfunc_hide(): void;
|
|
1522
|
+
vfunc_keynav_failed(direction: Gtk.DirectionType): boolean;
|
|
1523
|
+
vfunc_map(): void;
|
|
1524
|
+
vfunc_measure(orientation: Gtk.Orientation, for_size: number): [number, number, number, number];
|
|
1525
|
+
vfunc_mnemonic_activate(group_cycling: boolean): boolean;
|
|
1526
|
+
vfunc_move_focus(direction: Gtk.DirectionType): void;
|
|
1527
|
+
vfunc_query_tooltip(x: number, y: number, keyboard_tooltip: boolean, tooltip: Gtk.Tooltip): boolean;
|
|
1528
|
+
vfunc_realize(): void;
|
|
1529
|
+
vfunc_root(): void;
|
|
1530
|
+
vfunc_set_focus_child(child: Gtk.Widget | null): void;
|
|
1531
|
+
vfunc_show(): void;
|
|
1532
|
+
vfunc_size_allocate(width: number, height: number, baseline: number): void;
|
|
1533
|
+
vfunc_snapshot(snapshot: Gtk.Snapshot): void;
|
|
1534
|
+
vfunc_state_flags_changed(previous_state_flags: Gtk.StateFlags): void;
|
|
1535
|
+
vfunc_system_setting_changed(settings: Gtk.SystemSetting): void;
|
|
1536
|
+
vfunc_unmap(): void;
|
|
1537
|
+
vfunc_unrealize(): void;
|
|
1538
|
+
vfunc_unroot(): void;
|
|
1539
|
+
action_set_enabled(action_name: string, enabled: boolean): void;
|
|
1540
|
+
activate(): boolean;
|
|
1541
|
+
activate_action(name: string, args: GLib.Variant | null): boolean;
|
|
1542
|
+
activate_default(): void;
|
|
1543
|
+
add_controller(controller: Gtk.EventController): void;
|
|
1544
|
+
add_css_class(css_class: string): void;
|
|
1545
|
+
add_mnemonic_label(label: Gtk.Widget): void;
|
|
1546
|
+
add_tick_callback(callback: Gtk.TickCallback): number;
|
|
1547
|
+
allocate(width: number, height: number, baseline: number, transform: import("@girs/gsk-4.0").default.Transform | null): void;
|
|
1548
|
+
child_focus(direction: Gtk.DirectionType): boolean;
|
|
1549
|
+
compute_bounds(target: Gtk.Widget): [boolean, import("@girs/graphene-1.0").default.Rect];
|
|
1550
|
+
compute_expand(orientation: Gtk.Orientation): boolean;
|
|
1551
|
+
compute_point(target: Gtk.Widget, point: import("@girs/graphene-1.0").default.Point): [boolean, import("@girs/graphene-1.0").default.Point];
|
|
1552
|
+
compute_transform(target: Gtk.Widget): [boolean, import("@girs/graphene-1.0").default.Matrix];
|
|
1553
|
+
contains(x: number, y: number): boolean;
|
|
1554
|
+
create_pango_context(): import("@girs/pango-1.0").default.Context;
|
|
1555
|
+
create_pango_layout(text: string | null): import("@girs/pango-1.0").default.Layout;
|
|
1556
|
+
dispose_template(widget_type: GObject.GType): void;
|
|
1557
|
+
drag_check_threshold(start_x: number, start_y: number, current_x: number, current_y: number): boolean;
|
|
1558
|
+
error_bell(): void;
|
|
1559
|
+
get_allocated_baseline(): number;
|
|
1560
|
+
get_allocated_height(): number;
|
|
1561
|
+
get_allocated_width(): number;
|
|
1562
|
+
get_allocation(): Gtk.Allocation;
|
|
1563
|
+
get_ancestor(widget_type: GObject.GType): Gtk.Widget | null;
|
|
1564
|
+
get_baseline(): number;
|
|
1565
|
+
get_can_focus(): boolean;
|
|
1566
|
+
get_can_target(): boolean;
|
|
1567
|
+
get_child_visible(): boolean;
|
|
1568
|
+
get_clipboard(): Gdk.Clipboard;
|
|
1569
|
+
get_color(): Gdk.RGBA;
|
|
1570
|
+
get_css_classes(): string[];
|
|
1571
|
+
get_css_name(): string;
|
|
1572
|
+
get_cursor(): Gdk.Cursor | null;
|
|
1573
|
+
get_direction(): Gtk.TextDirection;
|
|
1574
|
+
get_display(): Gdk.Display;
|
|
1575
|
+
get_first_child(): Gtk.Widget | null;
|
|
1576
|
+
get_focus_child(): Gtk.Widget | null;
|
|
1577
|
+
get_focus_on_click(): boolean;
|
|
1578
|
+
get_focusable(): boolean;
|
|
1579
|
+
get_font_map(): import("@girs/pango-1.0").default.FontMap | null;
|
|
1580
|
+
get_font_options(): import("@girs/gjs/cairo").default.FontOptions | null;
|
|
1581
|
+
get_frame_clock(): Gdk.FrameClock | null;
|
|
1582
|
+
get_halign(): Gtk.Align;
|
|
1583
|
+
get_has_tooltip(): boolean;
|
|
1584
|
+
get_height(): number;
|
|
1585
|
+
get_hexpand(): boolean;
|
|
1586
|
+
get_hexpand_set(): boolean;
|
|
1587
|
+
get_last_child(): Gtk.Widget | null;
|
|
1588
|
+
get_layout_manager(): Gtk.LayoutManager | null;
|
|
1589
|
+
get_limit_events(): boolean;
|
|
1590
|
+
get_mapped(): boolean;
|
|
1591
|
+
get_margin_bottom(): number;
|
|
1592
|
+
get_margin_end(): number;
|
|
1593
|
+
get_margin_start(): number;
|
|
1594
|
+
get_margin_top(): number;
|
|
1595
|
+
get_name(): string;
|
|
1596
|
+
get_native(): Gtk.Native | null;
|
|
1597
|
+
get_next_sibling(): Gtk.Widget | null;
|
|
1598
|
+
get_opacity(): number;
|
|
1599
|
+
get_overflow(): Gtk.Overflow;
|
|
1600
|
+
get_pango_context(): import("@girs/pango-1.0").default.Context;
|
|
1601
|
+
get_parent(): Gtk.Widget | null;
|
|
1602
|
+
get_preferred_size(): [Gtk.Requisition | null, Gtk.Requisition | null];
|
|
1603
|
+
get_prev_sibling(): Gtk.Widget | null;
|
|
1604
|
+
get_primary_clipboard(): Gdk.Clipboard;
|
|
1605
|
+
get_realized(): boolean;
|
|
1606
|
+
get_receives_default(): boolean;
|
|
1607
|
+
get_request_mode(): Gtk.SizeRequestMode;
|
|
1608
|
+
get_root(): Gtk.Root | null;
|
|
1609
|
+
get_scale_factor(): number;
|
|
1610
|
+
get_sensitive(): boolean;
|
|
1611
|
+
get_settings(): Gtk.Settings;
|
|
1612
|
+
get_size(orientation: Gtk.Orientation): number;
|
|
1613
|
+
get_size_request(): [number, number];
|
|
1614
|
+
get_state_flags(): Gtk.StateFlags;
|
|
1615
|
+
get_style_context(): Gtk.StyleContext;
|
|
1616
|
+
get_template_child<T = GObject.Object>(widget_type: GObject.GType, name: string): T;
|
|
1617
|
+
get_tooltip_markup(): string | null;
|
|
1618
|
+
get_tooltip_text(): string | null;
|
|
1619
|
+
get_valign(): Gtk.Align;
|
|
1620
|
+
get_vexpand(): boolean;
|
|
1621
|
+
get_vexpand_set(): boolean;
|
|
1622
|
+
get_visible(): boolean;
|
|
1623
|
+
get_width(): number;
|
|
1624
|
+
grab_focus(): boolean;
|
|
1625
|
+
has_css_class(css_class: string): boolean;
|
|
1626
|
+
has_visible_focus(): boolean;
|
|
1627
|
+
hide(): void;
|
|
1628
|
+
in_destruction(): boolean;
|
|
1629
|
+
init_template(): void;
|
|
1630
|
+
insert_action_group(name: string, group: import("@girs/gio-2.0").default.ActionGroup | null): void;
|
|
1631
|
+
insert_after(parent: Gtk.Widget, previous_sibling: Gtk.Widget | null): void;
|
|
1632
|
+
insert_before(parent: Gtk.Widget, next_sibling: Gtk.Widget | null): void;
|
|
1633
|
+
is_ancestor(ancestor: Gtk.Widget): boolean;
|
|
1634
|
+
is_drawable(): boolean;
|
|
1635
|
+
is_focus(): boolean;
|
|
1636
|
+
is_sensitive(): boolean;
|
|
1637
|
+
is_visible(): boolean;
|
|
1638
|
+
keynav_failed(direction: Gtk.DirectionType): boolean;
|
|
1639
|
+
list_mnemonic_labels(): Gtk.Widget[];
|
|
1640
|
+
map(): void;
|
|
1641
|
+
measure(orientation: Gtk.Orientation, for_size: number): [number, number, number, number];
|
|
1642
|
+
mnemonic_activate(group_cycling: boolean): boolean;
|
|
1643
|
+
observe_children(): import("@girs/gio-2.0").default.ListModel;
|
|
1644
|
+
observe_controllers(): import("@girs/gio-2.0").default.ListModel;
|
|
1645
|
+
pick(x: number, y: number, flags: Gtk.PickFlags): Gtk.Widget | null;
|
|
1646
|
+
queue_allocate(): void;
|
|
1647
|
+
queue_draw(): void;
|
|
1648
|
+
queue_resize(): void;
|
|
1649
|
+
realize(): void;
|
|
1650
|
+
remove_controller(controller: Gtk.EventController): void;
|
|
1651
|
+
remove_css_class(css_class: string): void;
|
|
1652
|
+
remove_mnemonic_label(label: Gtk.Widget): void;
|
|
1653
|
+
remove_tick_callback(id: number): void;
|
|
1654
|
+
set_can_focus(can_focus: boolean): void;
|
|
1655
|
+
set_can_target(can_target: boolean): void;
|
|
1656
|
+
set_child_visible(child_visible: boolean): void;
|
|
1657
|
+
set_css_classes(classes: string[]): void;
|
|
1658
|
+
set_cursor(cursor: Gdk.Cursor | null): void;
|
|
1659
|
+
set_cursor_from_name(name: string | null): void;
|
|
1660
|
+
set_direction(dir: Gtk.TextDirection): void;
|
|
1661
|
+
set_focus_child(child: Gtk.Widget | null): void;
|
|
1662
|
+
set_focus_on_click(focus_on_click: boolean): void;
|
|
1663
|
+
set_focusable(focusable: boolean): void;
|
|
1664
|
+
set_font_map(font_map: import("@girs/pango-1.0").default.FontMap | null): void;
|
|
1665
|
+
set_font_options(options: import("@girs/gjs/cairo").default.FontOptions | null): void;
|
|
1666
|
+
set_halign(align: Gtk.Align): void;
|
|
1667
|
+
set_has_tooltip(has_tooltip: boolean): void;
|
|
1668
|
+
set_hexpand(expand: boolean): void;
|
|
1669
|
+
set_hexpand_set(set: boolean): void;
|
|
1670
|
+
set_layout_manager(layout_manager: Gtk.LayoutManager | null): void;
|
|
1671
|
+
set_limit_events(limit_events: boolean): void;
|
|
1672
|
+
set_margin_bottom(margin: number): void;
|
|
1673
|
+
set_margin_end(margin: number): void;
|
|
1674
|
+
set_margin_start(margin: number): void;
|
|
1675
|
+
set_margin_top(margin: number): void;
|
|
1676
|
+
set_name(name: string): void;
|
|
1677
|
+
set_opacity(opacity: number): void;
|
|
1678
|
+
set_overflow(overflow: Gtk.Overflow): void;
|
|
1679
|
+
set_parent(parent: Gtk.Widget): void;
|
|
1680
|
+
set_receives_default(receives_default: boolean): void;
|
|
1681
|
+
set_sensitive(sensitive: boolean): void;
|
|
1682
|
+
set_size_request(width: number, height: number): void;
|
|
1683
|
+
set_state_flags(flags: Gtk.StateFlags, clear: boolean): void;
|
|
1684
|
+
set_tooltip_markup(markup: string | null): void;
|
|
1685
|
+
set_tooltip_text(text: string | null): void;
|
|
1686
|
+
set_valign(align: Gtk.Align): void;
|
|
1687
|
+
set_vexpand(expand: boolean): void;
|
|
1688
|
+
set_vexpand_set(set: boolean): void;
|
|
1689
|
+
set_visible(visible: boolean): void;
|
|
1690
|
+
should_layout(): boolean;
|
|
1691
|
+
show(): void;
|
|
1692
|
+
size_allocate(allocation: Gtk.Allocation, baseline: number): void;
|
|
1693
|
+
snapshot_child(child: Gtk.Widget, snapshot: Gtk.Snapshot): void;
|
|
1694
|
+
translate_coordinates(dest_widget: Gtk.Widget, src_x: number, src_y: number): [boolean, number, number];
|
|
1695
|
+
trigger_tooltip_query(): void;
|
|
1696
|
+
unmap(): void;
|
|
1697
|
+
unparent(): void;
|
|
1698
|
+
unrealize(): void;
|
|
1699
|
+
unset_state_flags(flags: Gtk.StateFlags): void;
|
|
1700
|
+
[Symbol.iterator]: () => IterableIterator<Gtk.Widget>;
|
|
1701
|
+
vfunc_constructed(): void;
|
|
1702
|
+
vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
|
|
1703
|
+
vfunc_dispose(): void;
|
|
1704
|
+
vfunc_finalize(): void;
|
|
1705
|
+
vfunc_get_property(property_id: number, value: unknown, pspec: GObject.ParamSpec): void;
|
|
1706
|
+
vfunc_notify(pspec: GObject.ParamSpec): void;
|
|
1707
|
+
vfunc_set_property(property_id: number, value: unknown, pspec: GObject.ParamSpec): void;
|
|
1708
|
+
bind_property(source_property: string, target: GObject.Object, target_property: string, flags: GObject.BindingFlags): GObject.Binding;
|
|
1709
|
+
bind_property_full(source_property: string, target: GObject.Object, target_property: string, flags: GObject.BindingFlags, transform_to: GObject.Closure | null, transform_from: GObject.Closure | null): GObject.Binding;
|
|
1710
|
+
force_floating(): void;
|
|
1711
|
+
freeze_notify(): void;
|
|
1712
|
+
get_data(key: string): null;
|
|
1713
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
1714
|
+
get_qdata(quark: GLib.Quark): null;
|
|
1715
|
+
getv(names: string[], values: (GObject.Value | any)[]): void;
|
|
1716
|
+
is_floating(): boolean;
|
|
1717
|
+
notify(property_name: string): void;
|
|
1718
|
+
notify_by_pspec(pspec: GObject.ParamSpec): void;
|
|
1719
|
+
ref(): GObject.Object;
|
|
1720
|
+
ref_sink(): GObject.Object;
|
|
1721
|
+
run_dispose(): void;
|
|
1722
|
+
set_data(key: string, data: null): void;
|
|
1723
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
1724
|
+
steal_data(key: string): null;
|
|
1725
|
+
steal_qdata(quark: GLib.Quark): null;
|
|
1726
|
+
thaw_notify(): void;
|
|
1727
|
+
unref(): void;
|
|
1728
|
+
watch_closure(closure: GObject.Closure): void;
|
|
1729
|
+
disconnect(id: number): void;
|
|
1730
|
+
set(properties: {
|
|
1731
|
+
[key: string]: any;
|
|
1732
|
+
}): void;
|
|
1733
|
+
block_signal_handler(id: number): void;
|
|
1734
|
+
unblock_signal_handler(id: number): void;
|
|
1735
|
+
stop_emission_by_name(detailedName: string): void;
|
|
1736
|
+
}, {
|
|
1737
|
+
[key: string]: GObject.ParamSpec<unknown>;
|
|
1738
|
+
}, unknown[]>;
|
|
1739
|
+
}>;
|
|
1740
|
+
prototype: GObject.RegisteredPrototype<{
|
|
1741
|
+
_canvas: GjsifyHTMLCanvasElement | null;
|
|
1742
|
+
_ctx: CanvasRenderingContext2D | null;
|
|
1743
|
+
_readyCallbacks: Canvas2DReadyCallback[];
|
|
1744
|
+
_resizeCallbacks: ((w: number, h: number) => void)[];
|
|
1745
|
+
_tickCallbackId: number | null;
|
|
1746
|
+
_frameCallback: FrameRequestCallback | null;
|
|
1747
|
+
_timeOrigin: number;
|
|
1748
|
+
/** @internal Draw function called by GTK. Blits the Cairo surface to screen. */
|
|
1749
|
+
_onDraw(_area: Gtk.DrawingArea, cr: any, width: number, height: number): void;
|
|
1750
|
+
/** The HTMLCanvasElement backing this widget. Available after the first draw. */
|
|
1751
|
+
get canvas(): globalThis.HTMLCanvasElement | null;
|
|
1752
|
+
/** Get the 2D rendering context. Available after the first draw. */
|
|
1753
|
+
getContext(_id: "2d"): CanvasRenderingContext2D | null;
|
|
1754
|
+
/**
|
|
1755
|
+
* Register a callback to be invoked once the Canvas 2D context is ready.
|
|
1756
|
+
* If the context is already available, the callback fires synchronously.
|
|
1757
|
+
*/
|
|
1758
|
+
onReady(cb: Canvas2DReadyCallback): void;
|
|
1759
|
+
/**
|
|
1760
|
+
* Register a callback invoked whenever the GTK widget is resized.
|
|
1761
|
+
* Canvas dimensions are already updated when the callback fires.
|
|
1762
|
+
* Call `queue_draw()` after re-rendering to push the new surface to screen.
|
|
1763
|
+
*/
|
|
1764
|
+
onResize(cb: (width: number, height: number) => void): void;
|
|
1765
|
+
/**
|
|
1766
|
+
* Schedules a single animation frame callback, matching the browser `requestAnimationFrame` API.
|
|
1767
|
+
* Backed by GTK frame clock (vsync-synced, typically ~60 FPS).
|
|
1768
|
+
* Returns 0 (handle — cancel not yet implemented).
|
|
1769
|
+
*/
|
|
1770
|
+
requestAnimationFrame(cb: FrameRequestCallback): number;
|
|
1771
|
+
/**
|
|
1772
|
+
* Sets browser globals (`requestAnimationFrame`, `performance`) so that
|
|
1773
|
+
* browser-targeted code works unchanged on GJS.
|
|
1774
|
+
*/
|
|
1775
|
+
installGlobals(): void;
|
|
1776
|
+
get content_height(): number;
|
|
1777
|
+
set content_height(val: number);
|
|
1778
|
+
get contentHeight(): number;
|
|
1779
|
+
set contentHeight(val: number);
|
|
1780
|
+
get content_width(): number;
|
|
1781
|
+
set content_width(val: number);
|
|
1782
|
+
get contentWidth(): number;
|
|
1783
|
+
set contentWidth(val: number);
|
|
1784
|
+
$signals: Gtk.DrawingArea.SignalSignatures;
|
|
1785
|
+
widget: Gtk.Widget;
|
|
1786
|
+
_init(...args: any[]): void;
|
|
1787
|
+
connect<K extends keyof Gtk.DrawingArea.SignalSignatures>(signal: K, callback: GObject.SignalCallback</*elided*/ any, Gtk.DrawingArea.SignalSignatures[K]>): number;
|
|
1788
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1789
|
+
connect_after<K extends keyof Gtk.DrawingArea.SignalSignatures>(signal: K, callback: GObject.SignalCallback</*elided*/ any, Gtk.DrawingArea.SignalSignatures[K]>): number;
|
|
1790
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1791
|
+
emit<K extends keyof Gtk.DrawingArea.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Gtk.DrawingArea.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
1792
|
+
emit(signal: string, ...args: any[]): void;
|
|
1793
|
+
vfunc_resize(width: number, height: number): void;
|
|
1794
|
+
get_content_height(): number;
|
|
1795
|
+
get_content_width(): number;
|
|
1796
|
+
set_content_height(height: number): void;
|
|
1797
|
+
set_content_width(width: number): void;
|
|
1798
|
+
set_draw_func(draw_func: Gtk.DrawingAreaDrawFunc | null): void;
|
|
1799
|
+
get accessible_role(): Gtk.AccessibleRole;
|
|
1800
|
+
set accessible_role(val: Gtk.AccessibleRole);
|
|
1801
|
+
get accessibleRole(): Gtk.AccessibleRole;
|
|
1802
|
+
set accessibleRole(val: Gtk.AccessibleRole);
|
|
1803
|
+
announce(message: string, priority: Gtk.AccessibleAnnouncementPriority): void;
|
|
1804
|
+
get_accessible_id(): string | null;
|
|
1805
|
+
get_accessible_parent(): Gtk.Accessible | null;
|
|
1806
|
+
get_accessible_role(): Gtk.AccessibleRole;
|
|
1807
|
+
get_at_context(): Gtk.ATContext;
|
|
1808
|
+
get_bounds(): [boolean, number, number, number, number];
|
|
1809
|
+
get_first_accessible_child(): Gtk.Accessible | null;
|
|
1810
|
+
get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
1811
|
+
get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
1812
|
+
reset_property(property: Gtk.AccessibleProperty): void;
|
|
1813
|
+
reset_relation(relation: Gtk.AccessibleRelation): void;
|
|
1814
|
+
reset_state(state: Gtk.AccessibleState): void;
|
|
1815
|
+
set_accessible_parent(parent: Gtk.Accessible | null, next_sibling: Gtk.Accessible | null): void;
|
|
1816
|
+
update_next_accessible_sibling(new_sibling: Gtk.Accessible | null): void;
|
|
1817
|
+
update_platform_state(state: Gtk.AccessiblePlatformState): void;
|
|
1818
|
+
update_property(properties: Gtk.AccessibleProperty[], values: (GObject.Value | any)[]): void;
|
|
1819
|
+
update_relation(relations: Gtk.AccessibleRelation[], values: (GObject.Value | any)[]): void;
|
|
1820
|
+
update_state(states: Gtk.AccessibleState[], values: (GObject.Value | any)[]): void;
|
|
1821
|
+
vfunc_get_accessible_id(): string | null;
|
|
1822
|
+
vfunc_get_accessible_parent(): Gtk.Accessible | null;
|
|
1823
|
+
vfunc_get_at_context(): Gtk.ATContext | null;
|
|
1824
|
+
vfunc_get_bounds(): [boolean, number, number, number, number];
|
|
1825
|
+
vfunc_get_first_accessible_child(): Gtk.Accessible | null;
|
|
1826
|
+
vfunc_get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
1827
|
+
vfunc_get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
1828
|
+
get_buildable_id(): string | null;
|
|
1829
|
+
vfunc_add_child(builder: Gtk.Builder, child: GObject.Object, type: string | null): void;
|
|
1830
|
+
vfunc_custom_finished(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
|
|
1831
|
+
vfunc_custom_tag_end(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
|
|
1832
|
+
vfunc_custom_tag_start(builder: Gtk.Builder, child: GObject.Object | null, tagname: string): [boolean, Gtk.BuildableParser, never];
|
|
1833
|
+
vfunc_get_id(): string;
|
|
1834
|
+
vfunc_get_internal_child<T = GObject.Object>(builder: Gtk.Builder, childname: string): T;
|
|
1835
|
+
vfunc_parser_finished(builder: Gtk.Builder): void;
|
|
1836
|
+
vfunc_set_buildable_property(builder: Gtk.Builder, name: string, value: unknown): void;
|
|
1837
|
+
vfunc_set_id(id: string): void;
|
|
1838
|
+
get can_focus(): boolean;
|
|
1839
|
+
set can_focus(val: boolean);
|
|
1840
|
+
get canFocus(): boolean;
|
|
1841
|
+
set canFocus(val: boolean);
|
|
1842
|
+
get can_target(): boolean;
|
|
1843
|
+
set can_target(val: boolean);
|
|
1844
|
+
get canTarget(): boolean;
|
|
1845
|
+
set canTarget(val: boolean);
|
|
1846
|
+
get css_classes(): string[];
|
|
1847
|
+
set css_classes(val: string[]);
|
|
1848
|
+
get cssClasses(): string[];
|
|
1849
|
+
set cssClasses(val: string[]);
|
|
1850
|
+
get css_name(): string;
|
|
1851
|
+
get cssName(): string;
|
|
1852
|
+
get cursor(): Gdk.Cursor | null;
|
|
1853
|
+
set cursor(val: Gdk.Cursor | null);
|
|
1854
|
+
get focus_on_click(): boolean;
|
|
1855
|
+
set focus_on_click(val: boolean);
|
|
1856
|
+
get focusOnClick(): boolean;
|
|
1857
|
+
set focusOnClick(val: boolean);
|
|
1858
|
+
get focusable(): boolean;
|
|
1859
|
+
set focusable(val: boolean);
|
|
1860
|
+
get halign(): Gtk.Align;
|
|
1861
|
+
set halign(val: Gtk.Align);
|
|
1862
|
+
get has_default(): boolean;
|
|
1863
|
+
get hasDefault(): boolean;
|
|
1864
|
+
get has_focus(): boolean;
|
|
1865
|
+
get hasFocus(): boolean;
|
|
1866
|
+
get has_tooltip(): boolean;
|
|
1867
|
+
set has_tooltip(val: boolean);
|
|
1868
|
+
get hasTooltip(): boolean;
|
|
1869
|
+
set hasTooltip(val: boolean);
|
|
1870
|
+
get height_request(): number;
|
|
1871
|
+
set height_request(val: number);
|
|
1872
|
+
get heightRequest(): number;
|
|
1873
|
+
set heightRequest(val: number);
|
|
1874
|
+
get hexpand(): boolean;
|
|
1875
|
+
set hexpand(val: boolean);
|
|
1876
|
+
get hexpand_set(): boolean;
|
|
1877
|
+
set hexpand_set(val: boolean);
|
|
1878
|
+
get hexpandSet(): boolean;
|
|
1879
|
+
set hexpandSet(val: boolean);
|
|
1880
|
+
get layout_manager(): Gtk.LayoutManager | null;
|
|
1881
|
+
set layout_manager(val: Gtk.LayoutManager | null);
|
|
1882
|
+
get layoutManager(): Gtk.LayoutManager | null;
|
|
1883
|
+
set layoutManager(val: Gtk.LayoutManager | null);
|
|
1884
|
+
get limit_events(): boolean;
|
|
1885
|
+
set limit_events(val: boolean);
|
|
1886
|
+
get limitEvents(): boolean;
|
|
1887
|
+
set limitEvents(val: boolean);
|
|
1888
|
+
get margin_bottom(): number;
|
|
1889
|
+
set margin_bottom(val: number);
|
|
1890
|
+
get marginBottom(): number;
|
|
1891
|
+
set marginBottom(val: number);
|
|
1892
|
+
get margin_end(): number;
|
|
1893
|
+
set margin_end(val: number);
|
|
1894
|
+
get marginEnd(): number;
|
|
1895
|
+
set marginEnd(val: number);
|
|
1896
|
+
get margin_start(): number;
|
|
1897
|
+
set margin_start(val: number);
|
|
1898
|
+
get marginStart(): number;
|
|
1899
|
+
set marginStart(val: number);
|
|
1900
|
+
get margin_top(): number;
|
|
1901
|
+
set margin_top(val: number);
|
|
1902
|
+
get marginTop(): number;
|
|
1903
|
+
set marginTop(val: number);
|
|
1904
|
+
get name(): string;
|
|
1905
|
+
set name(val: string);
|
|
1906
|
+
get opacity(): number;
|
|
1907
|
+
set opacity(val: number);
|
|
1908
|
+
get overflow(): Gtk.Overflow;
|
|
1909
|
+
set overflow(val: Gtk.Overflow);
|
|
1910
|
+
get parent(): Gtk.Widget | null;
|
|
1911
|
+
get receives_default(): boolean;
|
|
1912
|
+
set receives_default(val: boolean);
|
|
1913
|
+
get receivesDefault(): boolean;
|
|
1914
|
+
set receivesDefault(val: boolean);
|
|
1915
|
+
get root(): Gtk.Root | null;
|
|
1916
|
+
get scale_factor(): number;
|
|
1917
|
+
get scaleFactor(): number;
|
|
1918
|
+
get sensitive(): boolean;
|
|
1919
|
+
set sensitive(val: boolean);
|
|
1920
|
+
get tooltip_markup(): string | null;
|
|
1921
|
+
set tooltip_markup(val: string | null);
|
|
1922
|
+
get tooltipMarkup(): string | null;
|
|
1923
|
+
set tooltipMarkup(val: string | null);
|
|
1924
|
+
get tooltip_text(): string | null;
|
|
1925
|
+
set tooltip_text(val: string | null);
|
|
1926
|
+
get tooltipText(): string | null;
|
|
1927
|
+
set tooltipText(val: string | null);
|
|
1928
|
+
get valign(): Gtk.Align;
|
|
1929
|
+
set valign(val: Gtk.Align);
|
|
1930
|
+
get vexpand(): boolean;
|
|
1931
|
+
set vexpand(val: boolean);
|
|
1932
|
+
get vexpand_set(): boolean;
|
|
1933
|
+
set vexpand_set(val: boolean);
|
|
1934
|
+
get vexpandSet(): boolean;
|
|
1935
|
+
set vexpandSet(val: boolean);
|
|
1936
|
+
get visible(): boolean;
|
|
1937
|
+
set visible(val: boolean);
|
|
1938
|
+
get width_request(): number;
|
|
1939
|
+
set width_request(val: number);
|
|
1940
|
+
get widthRequest(): number;
|
|
1941
|
+
set widthRequest(val: number);
|
|
1942
|
+
vfunc_compute_expand(hexpand_p: boolean, vexpand_p: boolean): void;
|
|
1943
|
+
vfunc_contains(x: number, y: number): boolean;
|
|
1944
|
+
vfunc_css_changed(change: Gtk.CssStyleChange): void;
|
|
1945
|
+
vfunc_direction_changed(previous_direction: Gtk.TextDirection): void;
|
|
1946
|
+
vfunc_focus(direction: Gtk.DirectionType): boolean;
|
|
1947
|
+
vfunc_get_request_mode(): Gtk.SizeRequestMode;
|
|
1948
|
+
vfunc_grab_focus(): boolean;
|
|
1949
|
+
vfunc_hide(): void;
|
|
1950
|
+
vfunc_keynav_failed(direction: Gtk.DirectionType): boolean;
|
|
1951
|
+
vfunc_map(): void;
|
|
1952
|
+
vfunc_measure(orientation: Gtk.Orientation, for_size: number): [number, number, number, number];
|
|
1953
|
+
vfunc_mnemonic_activate(group_cycling: boolean): boolean;
|
|
1954
|
+
vfunc_move_focus(direction: Gtk.DirectionType): void;
|
|
1955
|
+
vfunc_query_tooltip(x: number, y: number, keyboard_tooltip: boolean, tooltip: Gtk.Tooltip): boolean;
|
|
1956
|
+
vfunc_realize(): void;
|
|
1957
|
+
vfunc_root(): void;
|
|
1958
|
+
vfunc_set_focus_child(child: Gtk.Widget | null): void;
|
|
1959
|
+
vfunc_show(): void;
|
|
1960
|
+
vfunc_size_allocate(width: number, height: number, baseline: number): void;
|
|
1961
|
+
vfunc_snapshot(snapshot: Gtk.Snapshot): void;
|
|
1962
|
+
vfunc_state_flags_changed(previous_state_flags: Gtk.StateFlags): void;
|
|
1963
|
+
vfunc_system_setting_changed(settings: Gtk.SystemSetting): void;
|
|
1964
|
+
vfunc_unmap(): void;
|
|
1965
|
+
vfunc_unrealize(): void;
|
|
1966
|
+
vfunc_unroot(): void;
|
|
1967
|
+
action_set_enabled(action_name: string, enabled: boolean): void;
|
|
1968
|
+
activate(): boolean;
|
|
1969
|
+
activate_action(name: string, args: GLib.Variant | null): boolean;
|
|
1970
|
+
activate_default(): void;
|
|
1971
|
+
add_controller(controller: Gtk.EventController): void;
|
|
1972
|
+
add_css_class(css_class: string): void;
|
|
1973
|
+
add_mnemonic_label(label: Gtk.Widget): void;
|
|
1974
|
+
add_tick_callback(callback: Gtk.TickCallback): number;
|
|
1975
|
+
allocate(width: number, height: number, baseline: number, transform: import("@girs/gsk-4.0").default.Transform | null): void;
|
|
1976
|
+
child_focus(direction: Gtk.DirectionType): boolean;
|
|
1977
|
+
compute_bounds(target: Gtk.Widget): [boolean, import("@girs/graphene-1.0").default.Rect];
|
|
1978
|
+
compute_expand(orientation: Gtk.Orientation): boolean;
|
|
1979
|
+
compute_point(target: Gtk.Widget, point: import("@girs/graphene-1.0").default.Point): [boolean, import("@girs/graphene-1.0").default.Point];
|
|
1980
|
+
compute_transform(target: Gtk.Widget): [boolean, import("@girs/graphene-1.0").default.Matrix];
|
|
1981
|
+
contains(x: number, y: number): boolean;
|
|
1982
|
+
create_pango_context(): import("@girs/pango-1.0").default.Context;
|
|
1983
|
+
create_pango_layout(text: string | null): import("@girs/pango-1.0").default.Layout;
|
|
1984
|
+
dispose_template(widget_type: GObject.GType): void;
|
|
1985
|
+
drag_check_threshold(start_x: number, start_y: number, current_x: number, current_y: number): boolean;
|
|
1986
|
+
error_bell(): void;
|
|
1987
|
+
get_allocated_baseline(): number;
|
|
1988
|
+
get_allocated_height(): number;
|
|
1989
|
+
get_allocated_width(): number;
|
|
1990
|
+
get_allocation(): Gtk.Allocation;
|
|
1991
|
+
get_ancestor(widget_type: GObject.GType): Gtk.Widget | null;
|
|
1992
|
+
get_baseline(): number;
|
|
1993
|
+
get_can_focus(): boolean;
|
|
1994
|
+
get_can_target(): boolean;
|
|
1995
|
+
get_child_visible(): boolean;
|
|
1996
|
+
get_clipboard(): Gdk.Clipboard;
|
|
1997
|
+
get_color(): Gdk.RGBA;
|
|
1998
|
+
get_css_classes(): string[];
|
|
1999
|
+
get_css_name(): string;
|
|
2000
|
+
get_cursor(): Gdk.Cursor | null;
|
|
2001
|
+
get_direction(): Gtk.TextDirection;
|
|
2002
|
+
get_display(): Gdk.Display;
|
|
2003
|
+
get_first_child(): Gtk.Widget | null;
|
|
2004
|
+
get_focus_child(): Gtk.Widget | null;
|
|
2005
|
+
get_focus_on_click(): boolean;
|
|
2006
|
+
get_focusable(): boolean;
|
|
2007
|
+
get_font_map(): import("@girs/pango-1.0").default.FontMap | null;
|
|
2008
|
+
get_font_options(): import("@girs/gjs/cairo").default.FontOptions | null;
|
|
2009
|
+
get_frame_clock(): Gdk.FrameClock | null;
|
|
2010
|
+
get_halign(): Gtk.Align;
|
|
2011
|
+
get_has_tooltip(): boolean;
|
|
2012
|
+
get_height(): number;
|
|
2013
|
+
get_hexpand(): boolean;
|
|
2014
|
+
get_hexpand_set(): boolean;
|
|
2015
|
+
get_last_child(): Gtk.Widget | null;
|
|
2016
|
+
get_layout_manager(): Gtk.LayoutManager | null;
|
|
2017
|
+
get_limit_events(): boolean;
|
|
2018
|
+
get_mapped(): boolean;
|
|
2019
|
+
get_margin_bottom(): number;
|
|
2020
|
+
get_margin_end(): number;
|
|
2021
|
+
get_margin_start(): number;
|
|
2022
|
+
get_margin_top(): number;
|
|
2023
|
+
get_name(): string;
|
|
2024
|
+
get_native(): Gtk.Native | null;
|
|
2025
|
+
get_next_sibling(): Gtk.Widget | null;
|
|
2026
|
+
get_opacity(): number;
|
|
2027
|
+
get_overflow(): Gtk.Overflow;
|
|
2028
|
+
get_pango_context(): import("@girs/pango-1.0").default.Context;
|
|
2029
|
+
get_parent(): Gtk.Widget | null;
|
|
2030
|
+
get_preferred_size(): [Gtk.Requisition | null, Gtk.Requisition | null];
|
|
2031
|
+
get_prev_sibling(): Gtk.Widget | null;
|
|
2032
|
+
get_primary_clipboard(): Gdk.Clipboard;
|
|
2033
|
+
get_realized(): boolean;
|
|
2034
|
+
get_receives_default(): boolean;
|
|
2035
|
+
get_request_mode(): Gtk.SizeRequestMode;
|
|
2036
|
+
get_root(): Gtk.Root | null;
|
|
2037
|
+
get_scale_factor(): number;
|
|
2038
|
+
get_sensitive(): boolean;
|
|
2039
|
+
get_settings(): Gtk.Settings;
|
|
2040
|
+
get_size(orientation: Gtk.Orientation): number;
|
|
2041
|
+
get_size_request(): [number, number];
|
|
2042
|
+
get_state_flags(): Gtk.StateFlags;
|
|
2043
|
+
get_style_context(): Gtk.StyleContext;
|
|
2044
|
+
get_template_child<T = GObject.Object>(widget_type: GObject.GType, name: string): T;
|
|
2045
|
+
get_tooltip_markup(): string | null;
|
|
2046
|
+
get_tooltip_text(): string | null;
|
|
2047
|
+
get_valign(): Gtk.Align;
|
|
2048
|
+
get_vexpand(): boolean;
|
|
2049
|
+
get_vexpand_set(): boolean;
|
|
2050
|
+
get_visible(): boolean;
|
|
2051
|
+
get_width(): number;
|
|
2052
|
+
grab_focus(): boolean;
|
|
2053
|
+
has_css_class(css_class: string): boolean;
|
|
2054
|
+
has_visible_focus(): boolean;
|
|
2055
|
+
hide(): void;
|
|
2056
|
+
in_destruction(): boolean;
|
|
2057
|
+
init_template(): void;
|
|
2058
|
+
insert_action_group(name: string, group: import("@girs/gio-2.0").default.ActionGroup | null): void;
|
|
2059
|
+
insert_after(parent: Gtk.Widget, previous_sibling: Gtk.Widget | null): void;
|
|
2060
|
+
insert_before(parent: Gtk.Widget, next_sibling: Gtk.Widget | null): void;
|
|
2061
|
+
is_ancestor(ancestor: Gtk.Widget): boolean;
|
|
2062
|
+
is_drawable(): boolean;
|
|
2063
|
+
is_focus(): boolean;
|
|
2064
|
+
is_sensitive(): boolean;
|
|
2065
|
+
is_visible(): boolean;
|
|
2066
|
+
keynav_failed(direction: Gtk.DirectionType): boolean;
|
|
2067
|
+
list_mnemonic_labels(): Gtk.Widget[];
|
|
2068
|
+
map(): void;
|
|
2069
|
+
measure(orientation: Gtk.Orientation, for_size: number): [number, number, number, number];
|
|
2070
|
+
mnemonic_activate(group_cycling: boolean): boolean;
|
|
2071
|
+
observe_children(): import("@girs/gio-2.0").default.ListModel;
|
|
2072
|
+
observe_controllers(): import("@girs/gio-2.0").default.ListModel;
|
|
2073
|
+
pick(x: number, y: number, flags: Gtk.PickFlags): Gtk.Widget | null;
|
|
2074
|
+
queue_allocate(): void;
|
|
2075
|
+
queue_draw(): void;
|
|
2076
|
+
queue_resize(): void;
|
|
2077
|
+
realize(): void;
|
|
2078
|
+
remove_controller(controller: Gtk.EventController): void;
|
|
2079
|
+
remove_css_class(css_class: string): void;
|
|
2080
|
+
remove_mnemonic_label(label: Gtk.Widget): void;
|
|
2081
|
+
remove_tick_callback(id: number): void;
|
|
2082
|
+
set_can_focus(can_focus: boolean): void;
|
|
2083
|
+
set_can_target(can_target: boolean): void;
|
|
2084
|
+
set_child_visible(child_visible: boolean): void;
|
|
2085
|
+
set_css_classes(classes: string[]): void;
|
|
2086
|
+
set_cursor(cursor: Gdk.Cursor | null): void;
|
|
2087
|
+
set_cursor_from_name(name: string | null): void;
|
|
2088
|
+
set_direction(dir: Gtk.TextDirection): void;
|
|
2089
|
+
set_focus_child(child: Gtk.Widget | null): void;
|
|
2090
|
+
set_focus_on_click(focus_on_click: boolean): void;
|
|
2091
|
+
set_focusable(focusable: boolean): void;
|
|
2092
|
+
set_font_map(font_map: import("@girs/pango-1.0").default.FontMap | null): void;
|
|
2093
|
+
set_font_options(options: import("@girs/gjs/cairo").default.FontOptions | null): void;
|
|
2094
|
+
set_halign(align: Gtk.Align): void;
|
|
2095
|
+
set_has_tooltip(has_tooltip: boolean): void;
|
|
2096
|
+
set_hexpand(expand: boolean): void;
|
|
2097
|
+
set_hexpand_set(set: boolean): void;
|
|
2098
|
+
set_layout_manager(layout_manager: Gtk.LayoutManager | null): void;
|
|
2099
|
+
set_limit_events(limit_events: boolean): void;
|
|
2100
|
+
set_margin_bottom(margin: number): void;
|
|
2101
|
+
set_margin_end(margin: number): void;
|
|
2102
|
+
set_margin_start(margin: number): void;
|
|
2103
|
+
set_margin_top(margin: number): void;
|
|
2104
|
+
set_name(name: string): void;
|
|
2105
|
+
set_opacity(opacity: number): void;
|
|
2106
|
+
set_overflow(overflow: Gtk.Overflow): void;
|
|
2107
|
+
set_parent(parent: Gtk.Widget): void;
|
|
2108
|
+
set_receives_default(receives_default: boolean): void;
|
|
2109
|
+
set_sensitive(sensitive: boolean): void;
|
|
2110
|
+
set_size_request(width: number, height: number): void;
|
|
2111
|
+
set_state_flags(flags: Gtk.StateFlags, clear: boolean): void;
|
|
2112
|
+
set_tooltip_markup(markup: string | null): void;
|
|
2113
|
+
set_tooltip_text(text: string | null): void;
|
|
2114
|
+
set_valign(align: Gtk.Align): void;
|
|
2115
|
+
set_vexpand(expand: boolean): void;
|
|
2116
|
+
set_vexpand_set(set: boolean): void;
|
|
2117
|
+
set_visible(visible: boolean): void;
|
|
2118
|
+
should_layout(): boolean;
|
|
2119
|
+
show(): void;
|
|
2120
|
+
size_allocate(allocation: Gtk.Allocation, baseline: number): void;
|
|
2121
|
+
snapshot_child(child: Gtk.Widget, snapshot: Gtk.Snapshot): void;
|
|
2122
|
+
translate_coordinates(dest_widget: Gtk.Widget, src_x: number, src_y: number): [boolean, number, number];
|
|
2123
|
+
trigger_tooltip_query(): void;
|
|
2124
|
+
unmap(): void;
|
|
2125
|
+
unparent(): void;
|
|
2126
|
+
unrealize(): void;
|
|
2127
|
+
unset_state_flags(flags: Gtk.StateFlags): void;
|
|
2128
|
+
[Symbol.iterator]: () => IterableIterator<Gtk.Widget>;
|
|
2129
|
+
vfunc_constructed(): void;
|
|
2130
|
+
vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
|
|
2131
|
+
vfunc_dispose(): void;
|
|
2132
|
+
vfunc_finalize(): void;
|
|
2133
|
+
vfunc_get_property(property_id: number, value: unknown, pspec: GObject.ParamSpec): void;
|
|
2134
|
+
vfunc_notify(pspec: GObject.ParamSpec): void;
|
|
2135
|
+
vfunc_set_property(property_id: number, value: unknown, pspec: GObject.ParamSpec): void;
|
|
2136
|
+
bind_property(source_property: string, target: GObject.Object, target_property: string, flags: GObject.BindingFlags): GObject.Binding;
|
|
2137
|
+
bind_property_full(source_property: string, target: GObject.Object, target_property: string, flags: GObject.BindingFlags, transform_to: GObject.Closure | null, transform_from: GObject.Closure | null): GObject.Binding;
|
|
2138
|
+
force_floating(): void;
|
|
2139
|
+
freeze_notify(): void;
|
|
2140
|
+
get_data(key: string): null;
|
|
2141
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
2142
|
+
get_qdata(quark: GLib.Quark): null;
|
|
2143
|
+
getv(names: string[], values: (GObject.Value | any)[]): void;
|
|
2144
|
+
is_floating(): boolean;
|
|
2145
|
+
notify(property_name: string): void;
|
|
2146
|
+
notify_by_pspec(pspec: GObject.ParamSpec): void;
|
|
2147
|
+
ref(): GObject.Object;
|
|
2148
|
+
ref_sink(): GObject.Object;
|
|
2149
|
+
run_dispose(): void;
|
|
2150
|
+
set_data(key: string, data: null): void;
|
|
2151
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
2152
|
+
steal_data(key: string): null;
|
|
2153
|
+
steal_qdata(quark: GLib.Quark): null;
|
|
2154
|
+
thaw_notify(): void;
|
|
2155
|
+
unref(): void;
|
|
2156
|
+
watch_closure(closure: GObject.Closure): void;
|
|
2157
|
+
disconnect(id: number): void;
|
|
2158
|
+
set(properties: {
|
|
2159
|
+
[key: string]: any;
|
|
2160
|
+
}): void;
|
|
2161
|
+
block_signal_handler(id: number): void;
|
|
2162
|
+
unblock_signal_handler(id: number): void;
|
|
2163
|
+
stop_emission_by_name(detailedName: string): void;
|
|
2164
|
+
}, {
|
|
2165
|
+
[key: string]: GObject.ParamSpec<unknown>;
|
|
2166
|
+
}, never[]>;
|
|
2167
|
+
}>;
|
|
2168
|
+
prototype: GObject.RegisteredPrototype<{
|
|
2169
|
+
_canvas: GjsifyHTMLCanvasElement | null;
|
|
2170
|
+
_ctx: CanvasRenderingContext2D | null;
|
|
2171
|
+
_readyCallbacks: Canvas2DReadyCallback[];
|
|
2172
|
+
_resizeCallbacks: ((w: number, h: number) => void)[];
|
|
2173
|
+
_tickCallbackId: number | null;
|
|
2174
|
+
_frameCallback: FrameRequestCallback | null;
|
|
2175
|
+
_timeOrigin: number;
|
|
2176
|
+
/** @internal Draw function called by GTK. Blits the Cairo surface to screen. */
|
|
2177
|
+
_onDraw(_area: Gtk.DrawingArea, cr: any, width: number, height: number): void;
|
|
2178
|
+
/** The HTMLCanvasElement backing this widget. Available after the first draw. */
|
|
2179
|
+
get canvas(): globalThis.HTMLCanvasElement | null;
|
|
2180
|
+
/** Get the 2D rendering context. Available after the first draw. */
|
|
2181
|
+
getContext(_id: "2d"): CanvasRenderingContext2D | null;
|
|
2182
|
+
/**
|
|
2183
|
+
* Register a callback to be invoked once the Canvas 2D context is ready.
|
|
2184
|
+
* If the context is already available, the callback fires synchronously.
|
|
2185
|
+
*/
|
|
2186
|
+
onReady(cb: Canvas2DReadyCallback): void;
|
|
2187
|
+
/**
|
|
2188
|
+
* Register a callback invoked whenever the GTK widget is resized.
|
|
2189
|
+
* Canvas dimensions are already updated when the callback fires.
|
|
2190
|
+
* Call `queue_draw()` after re-rendering to push the new surface to screen.
|
|
2191
|
+
*/
|
|
2192
|
+
onResize(cb: (width: number, height: number) => void): void;
|
|
2193
|
+
/**
|
|
2194
|
+
* Schedules a single animation frame callback, matching the browser `requestAnimationFrame` API.
|
|
2195
|
+
* Backed by GTK frame clock (vsync-synced, typically ~60 FPS).
|
|
2196
|
+
* Returns 0 (handle — cancel not yet implemented).
|
|
2197
|
+
*/
|
|
2198
|
+
requestAnimationFrame(cb: FrameRequestCallback): number;
|
|
2199
|
+
/**
|
|
2200
|
+
* Sets browser globals (`requestAnimationFrame`, `performance`) so that
|
|
2201
|
+
* browser-targeted code works unchanged on GJS.
|
|
2202
|
+
*/
|
|
2203
|
+
installGlobals(): void;
|
|
2204
|
+
get content_height(): number;
|
|
2205
|
+
set content_height(val: number);
|
|
2206
|
+
get contentHeight(): number;
|
|
2207
|
+
set contentHeight(val: number);
|
|
2208
|
+
get content_width(): number;
|
|
2209
|
+
set content_width(val: number);
|
|
2210
|
+
get contentWidth(): number;
|
|
2211
|
+
set contentWidth(val: number);
|
|
2212
|
+
$signals: Gtk.DrawingArea.SignalSignatures;
|
|
2213
|
+
widget: Gtk.Widget;
|
|
2214
|
+
_init(...args: any[]): void;
|
|
2215
|
+
connect<K extends keyof Gtk.DrawingArea.SignalSignatures>(signal: K, callback: GObject.SignalCallback</*elided*/ any, Gtk.DrawingArea.SignalSignatures[K]>): number;
|
|
2216
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
2217
|
+
connect_after<K extends keyof Gtk.DrawingArea.SignalSignatures>(signal: K, callback: GObject.SignalCallback</*elided*/ any, Gtk.DrawingArea.SignalSignatures[K]>): number;
|
|
2218
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
2219
|
+
emit<K extends keyof Gtk.DrawingArea.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Gtk.DrawingArea.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
2220
|
+
emit(signal: string, ...args: any[]): void;
|
|
2221
|
+
vfunc_resize(width: number, height: number): void;
|
|
2222
|
+
get_content_height(): number;
|
|
2223
|
+
get_content_width(): number;
|
|
2224
|
+
set_content_height(height: number): void;
|
|
2225
|
+
set_content_width(width: number): void;
|
|
2226
|
+
set_draw_func(draw_func: Gtk.DrawingAreaDrawFunc | null): void;
|
|
2227
|
+
get accessible_role(): Gtk.AccessibleRole;
|
|
2228
|
+
set accessible_role(val: Gtk.AccessibleRole);
|
|
2229
|
+
get accessibleRole(): Gtk.AccessibleRole;
|
|
2230
|
+
set accessibleRole(val: Gtk.AccessibleRole);
|
|
2231
|
+
announce(message: string, priority: Gtk.AccessibleAnnouncementPriority): void;
|
|
2232
|
+
get_accessible_id(): string | null;
|
|
2233
|
+
get_accessible_parent(): Gtk.Accessible | null;
|
|
2234
|
+
get_accessible_role(): Gtk.AccessibleRole;
|
|
2235
|
+
get_at_context(): Gtk.ATContext;
|
|
2236
|
+
get_bounds(): [boolean, number, number, number, number];
|
|
2237
|
+
get_first_accessible_child(): Gtk.Accessible | null;
|
|
2238
|
+
get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
2239
|
+
get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
2240
|
+
reset_property(property: Gtk.AccessibleProperty): void;
|
|
2241
|
+
reset_relation(relation: Gtk.AccessibleRelation): void;
|
|
2242
|
+
reset_state(state: Gtk.AccessibleState): void;
|
|
2243
|
+
set_accessible_parent(parent: Gtk.Accessible | null, next_sibling: Gtk.Accessible | null): void;
|
|
2244
|
+
update_next_accessible_sibling(new_sibling: Gtk.Accessible | null): void;
|
|
2245
|
+
update_platform_state(state: Gtk.AccessiblePlatformState): void;
|
|
2246
|
+
update_property(properties: Gtk.AccessibleProperty[], values: (GObject.Value | any)[]): void;
|
|
2247
|
+
update_relation(relations: Gtk.AccessibleRelation[], values: (GObject.Value | any)[]): void;
|
|
2248
|
+
update_state(states: Gtk.AccessibleState[], values: (GObject.Value | any)[]): void;
|
|
2249
|
+
vfunc_get_accessible_id(): string | null;
|
|
2250
|
+
vfunc_get_accessible_parent(): Gtk.Accessible | null;
|
|
2251
|
+
vfunc_get_at_context(): Gtk.ATContext | null;
|
|
2252
|
+
vfunc_get_bounds(): [boolean, number, number, number, number];
|
|
2253
|
+
vfunc_get_first_accessible_child(): Gtk.Accessible | null;
|
|
2254
|
+
vfunc_get_next_accessible_sibling(): Gtk.Accessible | null;
|
|
2255
|
+
vfunc_get_platform_state(state: Gtk.AccessiblePlatformState): boolean;
|
|
2256
|
+
get_buildable_id(): string | null;
|
|
2257
|
+
vfunc_add_child(builder: Gtk.Builder, child: GObject.Object, type: string | null): void;
|
|
2258
|
+
vfunc_custom_finished(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
|
|
2259
|
+
vfunc_custom_tag_end(builder: Gtk.Builder, child: GObject.Object | null, tagname: string, data: null): void;
|
|
2260
|
+
vfunc_custom_tag_start(builder: Gtk.Builder, child: GObject.Object | null, tagname: string): [boolean, Gtk.BuildableParser, never];
|
|
2261
|
+
vfunc_get_id(): string;
|
|
2262
|
+
vfunc_get_internal_child<T = GObject.Object>(builder: Gtk.Builder, childname: string): T;
|
|
2263
|
+
vfunc_parser_finished(builder: Gtk.Builder): void;
|
|
2264
|
+
vfunc_set_buildable_property(builder: Gtk.Builder, name: string, value: unknown): void;
|
|
2265
|
+
vfunc_set_id(id: string): void;
|
|
2266
|
+
get can_focus(): boolean;
|
|
2267
|
+
set can_focus(val: boolean);
|
|
2268
|
+
get canFocus(): boolean;
|
|
2269
|
+
set canFocus(val: boolean);
|
|
2270
|
+
get can_target(): boolean;
|
|
2271
|
+
set can_target(val: boolean);
|
|
2272
|
+
get canTarget(): boolean;
|
|
2273
|
+
set canTarget(val: boolean);
|
|
2274
|
+
get css_classes(): string[];
|
|
2275
|
+
set css_classes(val: string[]);
|
|
2276
|
+
get cssClasses(): string[];
|
|
2277
|
+
set cssClasses(val: string[]);
|
|
2278
|
+
get css_name(): string;
|
|
2279
|
+
get cssName(): string;
|
|
2280
|
+
get cursor(): Gdk.Cursor | null;
|
|
2281
|
+
set cursor(val: Gdk.Cursor | null);
|
|
2282
|
+
get focus_on_click(): boolean;
|
|
2283
|
+
set focus_on_click(val: boolean);
|
|
2284
|
+
get focusOnClick(): boolean;
|
|
2285
|
+
set focusOnClick(val: boolean);
|
|
2286
|
+
get focusable(): boolean;
|
|
2287
|
+
set focusable(val: boolean);
|
|
2288
|
+
get halign(): Gtk.Align;
|
|
2289
|
+
set halign(val: Gtk.Align);
|
|
2290
|
+
get has_default(): boolean;
|
|
2291
|
+
get hasDefault(): boolean;
|
|
2292
|
+
get has_focus(): boolean;
|
|
2293
|
+
get hasFocus(): boolean;
|
|
2294
|
+
get has_tooltip(): boolean;
|
|
2295
|
+
set has_tooltip(val: boolean);
|
|
2296
|
+
get hasTooltip(): boolean;
|
|
2297
|
+
set hasTooltip(val: boolean);
|
|
2298
|
+
get height_request(): number;
|
|
2299
|
+
set height_request(val: number);
|
|
2300
|
+
get heightRequest(): number;
|
|
2301
|
+
set heightRequest(val: number);
|
|
2302
|
+
get hexpand(): boolean;
|
|
2303
|
+
set hexpand(val: boolean);
|
|
2304
|
+
get hexpand_set(): boolean;
|
|
2305
|
+
set hexpand_set(val: boolean);
|
|
2306
|
+
get hexpandSet(): boolean;
|
|
2307
|
+
set hexpandSet(val: boolean);
|
|
2308
|
+
get layout_manager(): Gtk.LayoutManager | null;
|
|
2309
|
+
set layout_manager(val: Gtk.LayoutManager | null);
|
|
2310
|
+
get layoutManager(): Gtk.LayoutManager | null;
|
|
2311
|
+
set layoutManager(val: Gtk.LayoutManager | null);
|
|
2312
|
+
get limit_events(): boolean;
|
|
2313
|
+
set limit_events(val: boolean);
|
|
2314
|
+
get limitEvents(): boolean;
|
|
2315
|
+
set limitEvents(val: boolean);
|
|
2316
|
+
get margin_bottom(): number;
|
|
2317
|
+
set margin_bottom(val: number);
|
|
2318
|
+
get marginBottom(): number;
|
|
2319
|
+
set marginBottom(val: number);
|
|
2320
|
+
get margin_end(): number;
|
|
2321
|
+
set margin_end(val: number);
|
|
2322
|
+
get marginEnd(): number;
|
|
2323
|
+
set marginEnd(val: number);
|
|
2324
|
+
get margin_start(): number;
|
|
2325
|
+
set margin_start(val: number);
|
|
2326
|
+
get marginStart(): number;
|
|
2327
|
+
set marginStart(val: number);
|
|
2328
|
+
get margin_top(): number;
|
|
2329
|
+
set margin_top(val: number);
|
|
2330
|
+
get marginTop(): number;
|
|
2331
|
+
set marginTop(val: number);
|
|
2332
|
+
get name(): string;
|
|
2333
|
+
set name(val: string);
|
|
2334
|
+
get opacity(): number;
|
|
2335
|
+
set opacity(val: number);
|
|
2336
|
+
get overflow(): Gtk.Overflow;
|
|
2337
|
+
set overflow(val: Gtk.Overflow);
|
|
2338
|
+
get parent(): Gtk.Widget | null;
|
|
2339
|
+
get receives_default(): boolean;
|
|
2340
|
+
set receives_default(val: boolean);
|
|
2341
|
+
get receivesDefault(): boolean;
|
|
2342
|
+
set receivesDefault(val: boolean);
|
|
2343
|
+
get root(): Gtk.Root | null;
|
|
2344
|
+
get scale_factor(): number;
|
|
2345
|
+
get scaleFactor(): number;
|
|
2346
|
+
get sensitive(): boolean;
|
|
2347
|
+
set sensitive(val: boolean);
|
|
2348
|
+
get tooltip_markup(): string | null;
|
|
2349
|
+
set tooltip_markup(val: string | null);
|
|
2350
|
+
get tooltipMarkup(): string | null;
|
|
2351
|
+
set tooltipMarkup(val: string | null);
|
|
2352
|
+
get tooltip_text(): string | null;
|
|
2353
|
+
set tooltip_text(val: string | null);
|
|
2354
|
+
get tooltipText(): string | null;
|
|
2355
|
+
set tooltipText(val: string | null);
|
|
2356
|
+
get valign(): Gtk.Align;
|
|
2357
|
+
set valign(val: Gtk.Align);
|
|
2358
|
+
get vexpand(): boolean;
|
|
2359
|
+
set vexpand(val: boolean);
|
|
2360
|
+
get vexpand_set(): boolean;
|
|
2361
|
+
set vexpand_set(val: boolean);
|
|
2362
|
+
get vexpandSet(): boolean;
|
|
2363
|
+
set vexpandSet(val: boolean);
|
|
2364
|
+
get visible(): boolean;
|
|
2365
|
+
set visible(val: boolean);
|
|
2366
|
+
get width_request(): number;
|
|
2367
|
+
set width_request(val: number);
|
|
2368
|
+
get widthRequest(): number;
|
|
2369
|
+
set widthRequest(val: number);
|
|
2370
|
+
vfunc_compute_expand(hexpand_p: boolean, vexpand_p: boolean): void;
|
|
2371
|
+
vfunc_contains(x: number, y: number): boolean;
|
|
2372
|
+
vfunc_css_changed(change: Gtk.CssStyleChange): void;
|
|
2373
|
+
vfunc_direction_changed(previous_direction: Gtk.TextDirection): void;
|
|
2374
|
+
vfunc_focus(direction: Gtk.DirectionType): boolean;
|
|
2375
|
+
vfunc_get_request_mode(): Gtk.SizeRequestMode;
|
|
2376
|
+
vfunc_grab_focus(): boolean;
|
|
2377
|
+
vfunc_hide(): void;
|
|
2378
|
+
vfunc_keynav_failed(direction: Gtk.DirectionType): boolean;
|
|
2379
|
+
vfunc_map(): void;
|
|
2380
|
+
vfunc_measure(orientation: Gtk.Orientation, for_size: number): [number, number, number, number];
|
|
2381
|
+
vfunc_mnemonic_activate(group_cycling: boolean): boolean;
|
|
2382
|
+
vfunc_move_focus(direction: Gtk.DirectionType): void;
|
|
2383
|
+
vfunc_query_tooltip(x: number, y: number, keyboard_tooltip: boolean, tooltip: Gtk.Tooltip): boolean;
|
|
2384
|
+
vfunc_realize(): void;
|
|
2385
|
+
vfunc_root(): void;
|
|
2386
|
+
vfunc_set_focus_child(child: Gtk.Widget | null): void;
|
|
2387
|
+
vfunc_show(): void;
|
|
2388
|
+
vfunc_size_allocate(width: number, height: number, baseline: number): void;
|
|
2389
|
+
vfunc_snapshot(snapshot: Gtk.Snapshot): void;
|
|
2390
|
+
vfunc_state_flags_changed(previous_state_flags: Gtk.StateFlags): void;
|
|
2391
|
+
vfunc_system_setting_changed(settings: Gtk.SystemSetting): void;
|
|
2392
|
+
vfunc_unmap(): void;
|
|
2393
|
+
vfunc_unrealize(): void;
|
|
2394
|
+
vfunc_unroot(): void;
|
|
2395
|
+
action_set_enabled(action_name: string, enabled: boolean): void;
|
|
2396
|
+
activate(): boolean;
|
|
2397
|
+
activate_action(name: string, args: GLib.Variant | null): boolean;
|
|
2398
|
+
activate_default(): void;
|
|
2399
|
+
add_controller(controller: Gtk.EventController): void;
|
|
2400
|
+
add_css_class(css_class: string): void;
|
|
2401
|
+
add_mnemonic_label(label: Gtk.Widget): void;
|
|
2402
|
+
add_tick_callback(callback: Gtk.TickCallback): number;
|
|
2403
|
+
allocate(width: number, height: number, baseline: number, transform: import("@girs/gsk-4.0").default.Transform | null): void;
|
|
2404
|
+
child_focus(direction: Gtk.DirectionType): boolean;
|
|
2405
|
+
compute_bounds(target: Gtk.Widget): [boolean, import("@girs/graphene-1.0").default.Rect];
|
|
2406
|
+
compute_expand(orientation: Gtk.Orientation): boolean;
|
|
2407
|
+
compute_point(target: Gtk.Widget, point: import("@girs/graphene-1.0").default.Point): [boolean, import("@girs/graphene-1.0").default.Point];
|
|
2408
|
+
compute_transform(target: Gtk.Widget): [boolean, import("@girs/graphene-1.0").default.Matrix];
|
|
2409
|
+
contains(x: number, y: number): boolean;
|
|
2410
|
+
create_pango_context(): import("@girs/pango-1.0").default.Context;
|
|
2411
|
+
create_pango_layout(text: string | null): import("@girs/pango-1.0").default.Layout;
|
|
2412
|
+
dispose_template(widget_type: GObject.GType): void;
|
|
2413
|
+
drag_check_threshold(start_x: number, start_y: number, current_x: number, current_y: number): boolean;
|
|
2414
|
+
error_bell(): void;
|
|
2415
|
+
get_allocated_baseline(): number;
|
|
2416
|
+
get_allocated_height(): number;
|
|
2417
|
+
get_allocated_width(): number;
|
|
2418
|
+
get_allocation(): Gtk.Allocation;
|
|
2419
|
+
get_ancestor(widget_type: GObject.GType): Gtk.Widget | null;
|
|
2420
|
+
get_baseline(): number;
|
|
2421
|
+
get_can_focus(): boolean;
|
|
2422
|
+
get_can_target(): boolean;
|
|
2423
|
+
get_child_visible(): boolean;
|
|
2424
|
+
get_clipboard(): Gdk.Clipboard;
|
|
2425
|
+
get_color(): Gdk.RGBA;
|
|
2426
|
+
get_css_classes(): string[];
|
|
2427
|
+
get_css_name(): string;
|
|
2428
|
+
get_cursor(): Gdk.Cursor | null;
|
|
2429
|
+
get_direction(): Gtk.TextDirection;
|
|
2430
|
+
get_display(): Gdk.Display;
|
|
2431
|
+
get_first_child(): Gtk.Widget | null;
|
|
2432
|
+
get_focus_child(): Gtk.Widget | null;
|
|
2433
|
+
get_focus_on_click(): boolean;
|
|
2434
|
+
get_focusable(): boolean;
|
|
2435
|
+
get_font_map(): import("@girs/pango-1.0").default.FontMap | null;
|
|
2436
|
+
get_font_options(): import("@girs/gjs/cairo").default.FontOptions | null;
|
|
2437
|
+
get_frame_clock(): Gdk.FrameClock | null;
|
|
2438
|
+
get_halign(): Gtk.Align;
|
|
2439
|
+
get_has_tooltip(): boolean;
|
|
2440
|
+
get_height(): number;
|
|
2441
|
+
get_hexpand(): boolean;
|
|
2442
|
+
get_hexpand_set(): boolean;
|
|
2443
|
+
get_last_child(): Gtk.Widget | null;
|
|
2444
|
+
get_layout_manager(): Gtk.LayoutManager | null;
|
|
2445
|
+
get_limit_events(): boolean;
|
|
2446
|
+
get_mapped(): boolean;
|
|
2447
|
+
get_margin_bottom(): number;
|
|
2448
|
+
get_margin_end(): number;
|
|
2449
|
+
get_margin_start(): number;
|
|
2450
|
+
get_margin_top(): number;
|
|
2451
|
+
get_name(): string;
|
|
2452
|
+
get_native(): Gtk.Native | null;
|
|
2453
|
+
get_next_sibling(): Gtk.Widget | null;
|
|
2454
|
+
get_opacity(): number;
|
|
2455
|
+
get_overflow(): Gtk.Overflow;
|
|
2456
|
+
get_pango_context(): import("@girs/pango-1.0").default.Context;
|
|
2457
|
+
get_parent(): Gtk.Widget | null;
|
|
2458
|
+
get_preferred_size(): [Gtk.Requisition | null, Gtk.Requisition | null];
|
|
2459
|
+
get_prev_sibling(): Gtk.Widget | null;
|
|
2460
|
+
get_primary_clipboard(): Gdk.Clipboard;
|
|
2461
|
+
get_realized(): boolean;
|
|
2462
|
+
get_receives_default(): boolean;
|
|
2463
|
+
get_request_mode(): Gtk.SizeRequestMode;
|
|
2464
|
+
get_root(): Gtk.Root | null;
|
|
2465
|
+
get_scale_factor(): number;
|
|
2466
|
+
get_sensitive(): boolean;
|
|
2467
|
+
get_settings(): Gtk.Settings;
|
|
2468
|
+
get_size(orientation: Gtk.Orientation): number;
|
|
2469
|
+
get_size_request(): [number, number];
|
|
2470
|
+
get_state_flags(): Gtk.StateFlags;
|
|
2471
|
+
get_style_context(): Gtk.StyleContext;
|
|
2472
|
+
get_template_child<T = GObject.Object>(widget_type: GObject.GType, name: string): T;
|
|
2473
|
+
get_tooltip_markup(): string | null;
|
|
2474
|
+
get_tooltip_text(): string | null;
|
|
2475
|
+
get_valign(): Gtk.Align;
|
|
2476
|
+
get_vexpand(): boolean;
|
|
2477
|
+
get_vexpand_set(): boolean;
|
|
2478
|
+
get_visible(): boolean;
|
|
2479
|
+
get_width(): number;
|
|
2480
|
+
grab_focus(): boolean;
|
|
2481
|
+
has_css_class(css_class: string): boolean;
|
|
2482
|
+
has_visible_focus(): boolean;
|
|
2483
|
+
hide(): void;
|
|
2484
|
+
in_destruction(): boolean;
|
|
2485
|
+
init_template(): void;
|
|
2486
|
+
insert_action_group(name: string, group: import("@girs/gio-2.0").default.ActionGroup | null): void;
|
|
2487
|
+
insert_after(parent: Gtk.Widget, previous_sibling: Gtk.Widget | null): void;
|
|
2488
|
+
insert_before(parent: Gtk.Widget, next_sibling: Gtk.Widget | null): void;
|
|
2489
|
+
is_ancestor(ancestor: Gtk.Widget): boolean;
|
|
2490
|
+
is_drawable(): boolean;
|
|
2491
|
+
is_focus(): boolean;
|
|
2492
|
+
is_sensitive(): boolean;
|
|
2493
|
+
is_visible(): boolean;
|
|
2494
|
+
keynav_failed(direction: Gtk.DirectionType): boolean;
|
|
2495
|
+
list_mnemonic_labels(): Gtk.Widget[];
|
|
2496
|
+
map(): void;
|
|
2497
|
+
measure(orientation: Gtk.Orientation, for_size: number): [number, number, number, number];
|
|
2498
|
+
mnemonic_activate(group_cycling: boolean): boolean;
|
|
2499
|
+
observe_children(): import("@girs/gio-2.0").default.ListModel;
|
|
2500
|
+
observe_controllers(): import("@girs/gio-2.0").default.ListModel;
|
|
2501
|
+
pick(x: number, y: number, flags: Gtk.PickFlags): Gtk.Widget | null;
|
|
2502
|
+
queue_allocate(): void;
|
|
2503
|
+
queue_draw(): void;
|
|
2504
|
+
queue_resize(): void;
|
|
2505
|
+
realize(): void;
|
|
2506
|
+
remove_controller(controller: Gtk.EventController): void;
|
|
2507
|
+
remove_css_class(css_class: string): void;
|
|
2508
|
+
remove_mnemonic_label(label: Gtk.Widget): void;
|
|
2509
|
+
remove_tick_callback(id: number): void;
|
|
2510
|
+
set_can_focus(can_focus: boolean): void;
|
|
2511
|
+
set_can_target(can_target: boolean): void;
|
|
2512
|
+
set_child_visible(child_visible: boolean): void;
|
|
2513
|
+
set_css_classes(classes: string[]): void;
|
|
2514
|
+
set_cursor(cursor: Gdk.Cursor | null): void;
|
|
2515
|
+
set_cursor_from_name(name: string | null): void;
|
|
2516
|
+
set_direction(dir: Gtk.TextDirection): void;
|
|
2517
|
+
set_focus_child(child: Gtk.Widget | null): void;
|
|
2518
|
+
set_focus_on_click(focus_on_click: boolean): void;
|
|
2519
|
+
set_focusable(focusable: boolean): void;
|
|
2520
|
+
set_font_map(font_map: import("@girs/pango-1.0").default.FontMap | null): void;
|
|
2521
|
+
set_font_options(options: import("@girs/gjs/cairo").default.FontOptions | null): void;
|
|
2522
|
+
set_halign(align: Gtk.Align): void;
|
|
2523
|
+
set_has_tooltip(has_tooltip: boolean): void;
|
|
2524
|
+
set_hexpand(expand: boolean): void;
|
|
2525
|
+
set_hexpand_set(set: boolean): void;
|
|
2526
|
+
set_layout_manager(layout_manager: Gtk.LayoutManager | null): void;
|
|
2527
|
+
set_limit_events(limit_events: boolean): void;
|
|
2528
|
+
set_margin_bottom(margin: number): void;
|
|
2529
|
+
set_margin_end(margin: number): void;
|
|
2530
|
+
set_margin_start(margin: number): void;
|
|
2531
|
+
set_margin_top(margin: number): void;
|
|
2532
|
+
set_name(name: string): void;
|
|
2533
|
+
set_opacity(opacity: number): void;
|
|
2534
|
+
set_overflow(overflow: Gtk.Overflow): void;
|
|
2535
|
+
set_parent(parent: Gtk.Widget): void;
|
|
2536
|
+
set_receives_default(receives_default: boolean): void;
|
|
2537
|
+
set_sensitive(sensitive: boolean): void;
|
|
2538
|
+
set_size_request(width: number, height: number): void;
|
|
2539
|
+
set_state_flags(flags: Gtk.StateFlags, clear: boolean): void;
|
|
2540
|
+
set_tooltip_markup(markup: string | null): void;
|
|
2541
|
+
set_tooltip_text(text: string | null): void;
|
|
2542
|
+
set_valign(align: Gtk.Align): void;
|
|
2543
|
+
set_vexpand(expand: boolean): void;
|
|
2544
|
+
set_vexpand_set(set: boolean): void;
|
|
2545
|
+
set_visible(visible: boolean): void;
|
|
2546
|
+
should_layout(): boolean;
|
|
2547
|
+
show(): void;
|
|
2548
|
+
size_allocate(allocation: Gtk.Allocation, baseline: number): void;
|
|
2549
|
+
snapshot_child(child: Gtk.Widget, snapshot: Gtk.Snapshot): void;
|
|
2550
|
+
translate_coordinates(dest_widget: Gtk.Widget, src_x: number, src_y: number): [boolean, number, number];
|
|
2551
|
+
trigger_tooltip_query(): void;
|
|
2552
|
+
unmap(): void;
|
|
2553
|
+
unparent(): void;
|
|
2554
|
+
unrealize(): void;
|
|
2555
|
+
unset_state_flags(flags: Gtk.StateFlags): void;
|
|
2556
|
+
[Symbol.iterator]: () => IterableIterator<Gtk.Widget>;
|
|
2557
|
+
vfunc_constructed(): void;
|
|
2558
|
+
vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
|
|
2559
|
+
vfunc_dispose(): void;
|
|
2560
|
+
vfunc_finalize(): void;
|
|
2561
|
+
vfunc_get_property(property_id: number, value: unknown, pspec: GObject.ParamSpec): void;
|
|
2562
|
+
vfunc_notify(pspec: GObject.ParamSpec): void;
|
|
2563
|
+
vfunc_set_property(property_id: number, value: unknown, pspec: GObject.ParamSpec): void;
|
|
2564
|
+
bind_property(source_property: string, target: GObject.Object, target_property: string, flags: GObject.BindingFlags): GObject.Binding;
|
|
2565
|
+
bind_property_full(source_property: string, target: GObject.Object, target_property: string, flags: GObject.BindingFlags, transform_to: GObject.Closure | null, transform_from: GObject.Closure | null): GObject.Binding;
|
|
2566
|
+
force_floating(): void;
|
|
2567
|
+
freeze_notify(): void;
|
|
2568
|
+
get_data(key: string): null;
|
|
2569
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
2570
|
+
get_qdata(quark: GLib.Quark): null;
|
|
2571
|
+
getv(names: string[], values: (GObject.Value | any)[]): void;
|
|
2572
|
+
is_floating(): boolean;
|
|
2573
|
+
notify(property_name: string): void;
|
|
2574
|
+
notify_by_pspec(pspec: GObject.ParamSpec): void;
|
|
2575
|
+
ref(): GObject.Object;
|
|
2576
|
+
ref_sink(): GObject.Object;
|
|
2577
|
+
run_dispose(): void;
|
|
2578
|
+
set_data(key: string, data: null): void;
|
|
2579
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
2580
|
+
steal_data(key: string): null;
|
|
2581
|
+
steal_qdata(quark: GLib.Quark): null;
|
|
2582
|
+
thaw_notify(): void;
|
|
2583
|
+
unref(): void;
|
|
2584
|
+
watch_closure(closure: GObject.Closure): void;
|
|
2585
|
+
disconnect(id: number): void;
|
|
2586
|
+
set(properties: {
|
|
2587
|
+
[key: string]: any;
|
|
2588
|
+
}): void;
|
|
2589
|
+
block_signal_handler(id: number): void;
|
|
2590
|
+
unblock_signal_handler(id: number): void;
|
|
2591
|
+
stop_emission_by_name(detailedName: string): void;
|
|
2592
|
+
}, {
|
|
2593
|
+
[key: string]: GObject.ParamSpec<unknown>;
|
|
2594
|
+
}, unknown[]>;
|
|
486
2595
|
};
|
|
487
2596
|
export type Canvas2DBridge = InstanceType<typeof Canvas2DBridge>;
|
|
488
2597
|
export {};
|