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