@gjsify/iframe 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -0
- package/lib/esm/html-iframe-element.js +131 -0
- package/lib/esm/iframe-widget.js +107 -0
- package/lib/esm/iframe-window-proxy.js +58 -0
- package/lib/esm/index.js +18 -0
- package/lib/esm/message-bridge.js +129 -0
- package/lib/esm/property-symbol.js +8 -0
- package/lib/esm/types/index.js +0 -0
- package/lib/types/html-iframe-element.d.ts +59 -0
- package/lib/types/iframe-widget.d.ts +646 -0
- package/lib/types/iframe-window-proxy.d.ts +51 -0
- package/lib/types/index.d.ts +5 -0
- package/lib/types/message-bridge.d.ts +47 -0
- package/lib/types/property-symbol.d.ts +3 -0
- package/lib/types/types/index.d.ts +15 -0
- package/package.json +46 -0
- package/src/html-iframe-element.ts +177 -0
- package/src/iframe-widget.ts +158 -0
- package/src/iframe-window-proxy.ts +86 -0
- package/src/index.spec.ts +323 -0
- package/src/index.ts +24 -0
- package/src/message-bridge.ts +175 -0
- package/src/property-symbol.ts +11 -0
- package/src/test.mts +6 -0
- package/src/types/index.ts +19 -0
- package/tmp/.tsbuildinfo +1 -0
- package/tsconfig.json +44 -0
|
@@ -0,0 +1,646 @@
|
|
|
1
|
+
import GObject from 'gi://GObject';
|
|
2
|
+
import WebKit from 'gi://WebKit?version=6.0';
|
|
3
|
+
import { HTMLIFrameElement } from './html-iframe-element.js';
|
|
4
|
+
import { MessageBridge } from './message-bridge.js';
|
|
5
|
+
import type { IFrameWidgetOptions, IFrameReadyCallback } from './types/index.js';
|
|
6
|
+
/**
|
|
7
|
+
* A `WebKit.WebView` subclass that handles iframe bootstrapping:
|
|
8
|
+
* - Sets up WebKit settings (JavaScript, developer extras)
|
|
9
|
+
* - Creates an `HTMLIFrameElement` wrapping this WebView
|
|
10
|
+
* - Sets up postMessage bridge for GJS ↔ WebView communication
|
|
11
|
+
* - Fires `onReady()` callbacks with the iframe element once loaded
|
|
12
|
+
* - `installGlobals()` sets `globalThis.HTMLIFrameElement`
|
|
13
|
+
*
|
|
14
|
+
* Usage:
|
|
15
|
+
* ```ts
|
|
16
|
+
* const iframeWidget = new IFrameWidget();
|
|
17
|
+
* iframeWidget.installGlobals();
|
|
18
|
+
* iframeWidget.onReady((iframe) => {
|
|
19
|
+
* iframe.contentWindow?.addEventListener('message', (e) => {
|
|
20
|
+
* console.log('Message from iframe:', e.data);
|
|
21
|
+
* });
|
|
22
|
+
* });
|
|
23
|
+
* iframeWidget.iframeElement.src = 'https://example.com';
|
|
24
|
+
* window.set_child(iframeWidget);
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare const IFrameWidget: {
|
|
28
|
+
new (options?: IFrameWidgetOptions & Partial<WebKit.WebView.ConstructorProps>): {
|
|
29
|
+
_iframe: HTMLIFrameElement;
|
|
30
|
+
_messageBridge: MessageBridge;
|
|
31
|
+
_readyCallbacks: IFrameReadyCallback[];
|
|
32
|
+
_options: IFrameWidgetOptions;
|
|
33
|
+
/** The HTMLIFrameElement wrapping this WebView. */
|
|
34
|
+
get iframeElement(): HTMLIFrameElement;
|
|
35
|
+
/**
|
|
36
|
+
* Register a callback to be invoked when content has loaded.
|
|
37
|
+
* If content is already loaded, the callback fires on next load.
|
|
38
|
+
*/
|
|
39
|
+
onReady(cb: IFrameReadyCallback): void;
|
|
40
|
+
/**
|
|
41
|
+
* Load a URI into the WebView.
|
|
42
|
+
* Also updates the iframe element's src attribute.
|
|
43
|
+
*/
|
|
44
|
+
loadUri(uri: string): void;
|
|
45
|
+
/**
|
|
46
|
+
* Load inline HTML into the WebView.
|
|
47
|
+
* Also updates the iframe element's srcdoc attribute.
|
|
48
|
+
*/
|
|
49
|
+
loadHtml(html: string, baseUri?: string): void;
|
|
50
|
+
/**
|
|
51
|
+
* Send a message to the WebView content via the standard postMessage API.
|
|
52
|
+
* Equivalent to `this.iframeElement.contentWindow.postMessage(message, targetOrigin)`.
|
|
53
|
+
*/
|
|
54
|
+
postMessage(message: unknown, targetOrigin?: string): void;
|
|
55
|
+
/**
|
|
56
|
+
* Set `globalThis.HTMLIFrameElement` to the gjsify implementation.
|
|
57
|
+
*/
|
|
58
|
+
installGlobals(): void;
|
|
59
|
+
get automation_presentation_type(): WebKit.AutomationBrowsingContextPresentation;
|
|
60
|
+
get automationPresentationType(): WebKit.AutomationBrowsingContextPresentation;
|
|
61
|
+
get camera_capture_state(): WebKit.MediaCaptureState;
|
|
62
|
+
set camera_capture_state(val: WebKit.MediaCaptureState);
|
|
63
|
+
get cameraCaptureState(): WebKit.MediaCaptureState;
|
|
64
|
+
set cameraCaptureState(val: WebKit.MediaCaptureState);
|
|
65
|
+
get default_content_security_policy(): string;
|
|
66
|
+
get defaultContentSecurityPolicy(): string;
|
|
67
|
+
get display_capture_state(): WebKit.MediaCaptureState;
|
|
68
|
+
set display_capture_state(val: WebKit.MediaCaptureState);
|
|
69
|
+
get displayCaptureState(): WebKit.MediaCaptureState;
|
|
70
|
+
set displayCaptureState(val: WebKit.MediaCaptureState);
|
|
71
|
+
get editable(): boolean;
|
|
72
|
+
set editable(val: boolean);
|
|
73
|
+
get estimated_load_progress(): number;
|
|
74
|
+
get estimatedLoadProgress(): number;
|
|
75
|
+
get favicon(): import("@girs/gdk-4.0").default.Texture;
|
|
76
|
+
get is_controlled_by_automation(): boolean;
|
|
77
|
+
get isControlledByAutomation(): boolean;
|
|
78
|
+
get is_immersive_mode_enabled(): boolean;
|
|
79
|
+
get isImmersiveModeEnabled(): boolean;
|
|
80
|
+
get is_loading(): boolean;
|
|
81
|
+
get isLoading(): boolean;
|
|
82
|
+
get is_muted(): boolean;
|
|
83
|
+
set is_muted(val: boolean);
|
|
84
|
+
get isMuted(): boolean;
|
|
85
|
+
set isMuted(val: boolean);
|
|
86
|
+
get is_playing_audio(): boolean;
|
|
87
|
+
get isPlayingAudio(): boolean;
|
|
88
|
+
get is_web_process_responsive(): boolean;
|
|
89
|
+
get isWebProcessResponsive(): boolean;
|
|
90
|
+
get microphone_capture_state(): WebKit.MediaCaptureState;
|
|
91
|
+
set microphone_capture_state(val: WebKit.MediaCaptureState);
|
|
92
|
+
get microphoneCaptureState(): WebKit.MediaCaptureState;
|
|
93
|
+
set microphoneCaptureState(val: WebKit.MediaCaptureState);
|
|
94
|
+
get network_session(): WebKit.NetworkSession;
|
|
95
|
+
get networkSession(): WebKit.NetworkSession;
|
|
96
|
+
get page_id(): number;
|
|
97
|
+
get pageId(): number;
|
|
98
|
+
set related_view(val: WebKit.WebView);
|
|
99
|
+
set relatedView(val: WebKit.WebView);
|
|
100
|
+
set settings(val: WebKit.Settings);
|
|
101
|
+
get theme_color(): import("@girs/gdk-4.0").default.RGBA;
|
|
102
|
+
get themeColor(): import("@girs/gdk-4.0").default.RGBA;
|
|
103
|
+
get title(): string;
|
|
104
|
+
get uri(): string;
|
|
105
|
+
get user_content_manager(): WebKit.UserContentManager;
|
|
106
|
+
get userContentManager(): WebKit.UserContentManager;
|
|
107
|
+
get web_context(): WebKit.WebContext;
|
|
108
|
+
get webContext(): WebKit.WebContext;
|
|
109
|
+
get web_extension_mode(): WebKit.WebExtensionMode;
|
|
110
|
+
get webExtensionMode(): WebKit.WebExtensionMode;
|
|
111
|
+
get website_policies(): WebKit.WebsitePolicies;
|
|
112
|
+
get websitePolicies(): WebKit.WebsitePolicies;
|
|
113
|
+
get zoom_level(): number;
|
|
114
|
+
set zoom_level(val: number);
|
|
115
|
+
get zoomLevel(): number;
|
|
116
|
+
set zoomLevel(val: number);
|
|
117
|
+
$signals: WebKit.WebView.SignalSignatures;
|
|
118
|
+
_init(...args: any[]): void;
|
|
119
|
+
connect<K extends keyof WebKit.WebView.SignalSignatures>(signal: K, callback: GObject.SignalCallback</*elided*/ any, WebKit.WebView.SignalSignatures[K]>): number;
|
|
120
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
121
|
+
connect_after<K extends keyof WebKit.WebView.SignalSignatures>(signal: K, callback: GObject.SignalCallback</*elided*/ any, WebKit.WebView.SignalSignatures[K]>): number;
|
|
122
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
123
|
+
emit<K extends keyof WebKit.WebView.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<WebKit.WebView.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
124
|
+
emit(signal: string, ...args: any[]): void;
|
|
125
|
+
vfunc_authenticate(request: WebKit.AuthenticationRequest): boolean;
|
|
126
|
+
vfunc_close(): void;
|
|
127
|
+
vfunc_context_menu(context_menu: WebKit.ContextMenu, hit_test_result: WebKit.HitTestResult): boolean;
|
|
128
|
+
vfunc_context_menu_dismissed(): void;
|
|
129
|
+
vfunc_decide_policy(decision: WebKit.PolicyDecision, type: WebKit.PolicyDecisionType): boolean;
|
|
130
|
+
vfunc_enter_fullscreen(): boolean;
|
|
131
|
+
vfunc_insecure_content_detected(event: WebKit.InsecureContentEvent): void;
|
|
132
|
+
vfunc_leave_fullscreen(): boolean;
|
|
133
|
+
vfunc_load_changed(load_event: WebKit.LoadEvent): void;
|
|
134
|
+
vfunc_load_failed(load_event: WebKit.LoadEvent, failing_uri: string, error: import("@girs/glib-2.0").default.Error): boolean;
|
|
135
|
+
vfunc_load_failed_with_tls_errors(failing_uri: string, certificate: import("@girs/gio-2.0").default.TlsCertificate, errors: import("@girs/gio-2.0").default.TlsCertificateFlags): boolean;
|
|
136
|
+
vfunc_mouse_target_changed(hit_test_result: WebKit.HitTestResult, modifiers: number): void;
|
|
137
|
+
vfunc_permission_request(permission_request: WebKit.PermissionRequest): boolean;
|
|
138
|
+
vfunc_print(print_operation: WebKit.PrintOperation): boolean;
|
|
139
|
+
vfunc_query_permission_state(query: WebKit.PermissionStateQuery): boolean;
|
|
140
|
+
vfunc_ready_to_show(): void;
|
|
141
|
+
vfunc_resource_load_started(resource: WebKit.WebResource, request: WebKit.URIRequest): void;
|
|
142
|
+
vfunc_run_as_modal(): void;
|
|
143
|
+
vfunc_run_color_chooser(request: WebKit.ColorChooserRequest): boolean;
|
|
144
|
+
vfunc_run_file_chooser(request: WebKit.FileChooserRequest): boolean;
|
|
145
|
+
vfunc_script_dialog(dialog: WebKit.ScriptDialog): boolean;
|
|
146
|
+
vfunc_show_notification(notification: WebKit.Notification): boolean;
|
|
147
|
+
vfunc_show_option_menu(menu: WebKit.OptionMenu, rectangle: import("@girs/gdk-4.0").default.Rectangle): boolean;
|
|
148
|
+
vfunc_submit_form(request: WebKit.FormSubmissionRequest): void;
|
|
149
|
+
vfunc_user_message_received(message: WebKit.UserMessage): boolean;
|
|
150
|
+
vfunc_web_process_crashed(): boolean;
|
|
151
|
+
vfunc_web_process_terminated(reason: WebKit.WebProcessTerminationReason): void;
|
|
152
|
+
call_async_javascript_function(body: string, length: number, _arguments?: import("@girs/glib-2.0").default.Variant | null, world_name?: string | null, source_uri?: string | null, cancellable?: import("@girs/gio-2.0").default.Cancellable | null): globalThis.Promise<import("@girs/javascriptcore-6.0").default.Value>;
|
|
153
|
+
call_async_javascript_function(body: string, length: number, _arguments: import("@girs/glib-2.0").default.Variant | null, world_name: string | null, source_uri: string | null, cancellable: import("@girs/gio-2.0").default.Cancellable | null, callback: import("@girs/gio-2.0").default.AsyncReadyCallback</*elided*/ any>): void;
|
|
154
|
+
call_async_javascript_function(body: string, length: number, _arguments?: import("@girs/glib-2.0").default.Variant | null, world_name?: string | null, source_uri?: string | null, cancellable?: import("@girs/gio-2.0").default.Cancellable | null, callback?: import("@girs/gio-2.0").default.AsyncReadyCallback</*elided*/ any>): globalThis.Promise<import("@girs/javascriptcore-6.0").default.Value> | void;
|
|
155
|
+
call_async_javascript_function_finish(result: import("@girs/gio-2.0").default.AsyncResult): import("@girs/javascriptcore-6.0").default.Value;
|
|
156
|
+
can_execute_editing_command(command: string, cancellable?: import("@girs/gio-2.0").default.Cancellable | null): globalThis.Promise<boolean>;
|
|
157
|
+
can_execute_editing_command(command: string, cancellable: import("@girs/gio-2.0").default.Cancellable | null, callback: import("@girs/gio-2.0").default.AsyncReadyCallback</*elided*/ any>): void;
|
|
158
|
+
can_execute_editing_command(command: string, cancellable?: import("@girs/gio-2.0").default.Cancellable | null, callback?: import("@girs/gio-2.0").default.AsyncReadyCallback</*elided*/ any>): globalThis.Promise<boolean> | void;
|
|
159
|
+
can_execute_editing_command_finish(result: import("@girs/gio-2.0").default.AsyncResult): boolean;
|
|
160
|
+
can_go_back(): boolean;
|
|
161
|
+
can_go_forward(): boolean;
|
|
162
|
+
can_show_mime_type(mime_type: string): boolean;
|
|
163
|
+
download_uri(uri: string): WebKit.Download;
|
|
164
|
+
evaluate_javascript(script: string, length: number, world_name?: string | null, source_uri?: string | null, cancellable?: import("@girs/gio-2.0").default.Cancellable | null): globalThis.Promise<import("@girs/javascriptcore-6.0").default.Value>;
|
|
165
|
+
evaluate_javascript(script: string, length: number, world_name: string | null, source_uri: string | null, cancellable: import("@girs/gio-2.0").default.Cancellable | null, callback: import("@girs/gio-2.0").default.AsyncReadyCallback</*elided*/ any>): void;
|
|
166
|
+
evaluate_javascript(script: string, length: number, world_name?: string | null, source_uri?: string | null, cancellable?: import("@girs/gio-2.0").default.Cancellable | null, callback?: import("@girs/gio-2.0").default.AsyncReadyCallback</*elided*/ any>): globalThis.Promise<import("@girs/javascriptcore-6.0").default.Value> | void;
|
|
167
|
+
evaluate_javascript_finish(result: import("@girs/gio-2.0").default.AsyncResult): import("@girs/javascriptcore-6.0").default.Value;
|
|
168
|
+
execute_editing_command(command: string): void;
|
|
169
|
+
execute_editing_command_with_argument(command: string, argument: string): void;
|
|
170
|
+
get_automation_presentation_type(): WebKit.AutomationBrowsingContextPresentation;
|
|
171
|
+
get_back_forward_list(): WebKit.BackForwardList;
|
|
172
|
+
get_background_color(): import("@girs/gdk-4.0").default.RGBA;
|
|
173
|
+
get_camera_capture_state(): WebKit.MediaCaptureState;
|
|
174
|
+
get_context(): WebKit.WebContext;
|
|
175
|
+
get_custom_charset(): string;
|
|
176
|
+
get_default_content_security_policy(): string | null;
|
|
177
|
+
get_display_capture_state(): WebKit.MediaCaptureState;
|
|
178
|
+
get_editor_state(): WebKit.EditorState;
|
|
179
|
+
get_estimated_load_progress(): number;
|
|
180
|
+
get_favicon(): import("@girs/gdk-4.0").default.Texture;
|
|
181
|
+
get_find_controller(): WebKit.FindController;
|
|
182
|
+
get_input_method_context(): WebKit.InputMethodContext | null;
|
|
183
|
+
get_inspector(): WebKit.WebInspector;
|
|
184
|
+
get_is_muted(): boolean;
|
|
185
|
+
get_is_web_process_responsive(): boolean;
|
|
186
|
+
get_main_resource(): WebKit.WebResource;
|
|
187
|
+
get_microphone_capture_state(): WebKit.MediaCaptureState;
|
|
188
|
+
get_network_session(): WebKit.NetworkSession;
|
|
189
|
+
get_page_id(): number;
|
|
190
|
+
get_session_state(): WebKit.WebViewSessionState;
|
|
191
|
+
get_settings(): WebKit.Settings;
|
|
192
|
+
get_settings(...args: never[]): any;
|
|
193
|
+
get_snapshot(region: WebKit.SnapshotRegion | null, options: WebKit.SnapshotOptions | null, cancellable?: import("@girs/gio-2.0").default.Cancellable | null): globalThis.Promise<import("@girs/gdk-4.0").default.Texture>;
|
|
194
|
+
get_snapshot(region: WebKit.SnapshotRegion | null, options: WebKit.SnapshotOptions | null, cancellable: import("@girs/gio-2.0").default.Cancellable | null, callback: import("@girs/gio-2.0").default.AsyncReadyCallback</*elided*/ any>): void;
|
|
195
|
+
get_snapshot(region: WebKit.SnapshotRegion | null, options: WebKit.SnapshotOptions | null, cancellable?: import("@girs/gio-2.0").default.Cancellable | null, callback?: import("@girs/gio-2.0").default.AsyncReadyCallback</*elided*/ any>): globalThis.Promise<import("@girs/gdk-4.0").default.Texture> | void;
|
|
196
|
+
get_snapshot_finish(result: import("@girs/gio-2.0").default.AsyncResult): import("@girs/gdk-4.0").default.Texture;
|
|
197
|
+
get_theme_color(): [boolean, import("@girs/gdk-4.0").default.RGBA];
|
|
198
|
+
get_title(): string;
|
|
199
|
+
get_tls_info(): [boolean, import("@girs/gio-2.0").default.TlsCertificate, import("@girs/gio-2.0").default.TlsCertificateFlags];
|
|
200
|
+
get_uri(): string;
|
|
201
|
+
get_user_content_manager(): WebKit.UserContentManager;
|
|
202
|
+
get_web_extension_mode(): WebKit.WebExtensionMode;
|
|
203
|
+
get_website_policies(): WebKit.WebsitePolicies;
|
|
204
|
+
get_window_properties(): WebKit.WindowProperties;
|
|
205
|
+
get_zoom_level(): number;
|
|
206
|
+
go_back(): void;
|
|
207
|
+
go_forward(): void;
|
|
208
|
+
go_to_back_forward_list_item(list_item: WebKit.BackForwardListItem): void;
|
|
209
|
+
is_editable(): boolean;
|
|
210
|
+
leave_immersive_mode(): void;
|
|
211
|
+
load_alternate_html(content: string, content_uri: string, base_uri?: string | null): void;
|
|
212
|
+
load_bytes(bytes: import("@girs/glib-2.0").default.Bytes | Uint8Array, mime_type?: string | null, encoding?: string | null, base_uri?: string | null): void;
|
|
213
|
+
load_html(content: string, base_uri?: string | null): void;
|
|
214
|
+
load_plain_text(plain_text: string): void;
|
|
215
|
+
load_request(request: WebKit.URIRequest): void;
|
|
216
|
+
load_uri(uri: string): void;
|
|
217
|
+
reload(): void;
|
|
218
|
+
reload_bypass_cache(): void;
|
|
219
|
+
restore_session_state(state: WebKit.WebViewSessionState): void;
|
|
220
|
+
save(save_mode: WebKit.SaveMode | null, cancellable?: import("@girs/gio-2.0").default.Cancellable | null): globalThis.Promise<import("@girs/gio-2.0").default.InputStream>;
|
|
221
|
+
save(save_mode: WebKit.SaveMode | null, cancellable: import("@girs/gio-2.0").default.Cancellable | null, callback: import("@girs/gio-2.0").default.AsyncReadyCallback</*elided*/ any>): void;
|
|
222
|
+
save(save_mode: WebKit.SaveMode | null, cancellable?: import("@girs/gio-2.0").default.Cancellable | null, callback?: import("@girs/gio-2.0").default.AsyncReadyCallback</*elided*/ any>): globalThis.Promise<import("@girs/gio-2.0").default.InputStream> | void;
|
|
223
|
+
save_finish(result: import("@girs/gio-2.0").default.AsyncResult): import("@girs/gio-2.0").default.InputStream;
|
|
224
|
+
save_to_file(file: import("@girs/gio-2.0").default.File, save_mode: WebKit.SaveMode | null, cancellable?: import("@girs/gio-2.0").default.Cancellable | null): globalThis.Promise<boolean>;
|
|
225
|
+
save_to_file(file: import("@girs/gio-2.0").default.File, save_mode: WebKit.SaveMode | null, cancellable: import("@girs/gio-2.0").default.Cancellable | null, callback: import("@girs/gio-2.0").default.AsyncReadyCallback</*elided*/ any>): void;
|
|
226
|
+
save_to_file(file: import("@girs/gio-2.0").default.File, save_mode: WebKit.SaveMode | null, cancellable?: import("@girs/gio-2.0").default.Cancellable | null, callback?: import("@girs/gio-2.0").default.AsyncReadyCallback</*elided*/ any>): globalThis.Promise<boolean> | void;
|
|
227
|
+
save_to_file_finish(result: import("@girs/gio-2.0").default.AsyncResult): boolean;
|
|
228
|
+
send_message_to_page(message: WebKit.UserMessage, cancellable?: import("@girs/gio-2.0").default.Cancellable | null): globalThis.Promise<WebKit.UserMessage>;
|
|
229
|
+
send_message_to_page(message: WebKit.UserMessage, cancellable: import("@girs/gio-2.0").default.Cancellable | null, callback: import("@girs/gio-2.0").default.AsyncReadyCallback</*elided*/ any>): void;
|
|
230
|
+
send_message_to_page(message: WebKit.UserMessage, cancellable?: import("@girs/gio-2.0").default.Cancellable | null, callback?: import("@girs/gio-2.0").default.AsyncReadyCallback</*elided*/ any>): globalThis.Promise<WebKit.UserMessage> | void;
|
|
231
|
+
send_message_to_page_finish(result: import("@girs/gio-2.0").default.AsyncResult): WebKit.UserMessage;
|
|
232
|
+
set_background_color(rgba: import("@girs/gdk-4.0").default.RGBA): void;
|
|
233
|
+
set_camera_capture_state(state: WebKit.MediaCaptureState | null): void;
|
|
234
|
+
set_cors_allowlist(allowlist?: string[] | null): void;
|
|
235
|
+
set_custom_charset(charset?: string | null): void;
|
|
236
|
+
set_display_capture_state(state: WebKit.MediaCaptureState | null): void;
|
|
237
|
+
set_editable(editable: boolean): void;
|
|
238
|
+
set_input_method_context(context?: WebKit.InputMethodContext | null): void;
|
|
239
|
+
set_is_muted(muted: boolean): void;
|
|
240
|
+
set_microphone_capture_state(state: WebKit.MediaCaptureState | null): void;
|
|
241
|
+
set_settings(settings: WebKit.Settings): void;
|
|
242
|
+
set_zoom_level(zoom_level: number): void;
|
|
243
|
+
stop_loading(): void;
|
|
244
|
+
terminate_web_process(): void;
|
|
245
|
+
try_close(): void;
|
|
246
|
+
bind_property(source_property: string, target: GObject.Object, target_property: string, flags: GObject.BindingFlags | null): GObject.Binding;
|
|
247
|
+
bind_property_full(source_property: string, target: GObject.Object, target_property: string, flags: GObject.BindingFlags | null, transform_to?: GObject.BindingTransformFunc | null, transform_from?: GObject.BindingTransformFunc | null, notify?: import("@girs/glib-2.0").default.DestroyNotify | null): GObject.Binding;
|
|
248
|
+
bind_property_full(...args: never[]): any;
|
|
249
|
+
force_floating(): void;
|
|
250
|
+
freeze_notify(): void;
|
|
251
|
+
get_data(key: string): any | null;
|
|
252
|
+
get_property(property_name: string, value: GObject.Value | any): any;
|
|
253
|
+
get_qdata(quark: import("@girs/glib-2.0").default.Quark): any | null;
|
|
254
|
+
getv(names: string[], values: (GObject.Value | any)[]): void;
|
|
255
|
+
is_floating(): boolean;
|
|
256
|
+
notify(property_name: string): void;
|
|
257
|
+
notify_by_pspec(pspec: GObject.ParamSpec): void;
|
|
258
|
+
ref(): GObject.Object;
|
|
259
|
+
ref_sink(): GObject.Object;
|
|
260
|
+
run_dispose(): void;
|
|
261
|
+
set_data(key: string, data?: any | null): void;
|
|
262
|
+
set_property(property_name: string, value: GObject.Value | any): void;
|
|
263
|
+
steal_data(key: string): any | null;
|
|
264
|
+
steal_qdata(quark: import("@girs/glib-2.0").default.Quark): any | null;
|
|
265
|
+
thaw_notify(): void;
|
|
266
|
+
unref(): void;
|
|
267
|
+
watch_closure(closure: GObject.Closure): void;
|
|
268
|
+
vfunc_constructed(): void;
|
|
269
|
+
vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
|
|
270
|
+
vfunc_dispose(): void;
|
|
271
|
+
vfunc_finalize(): void;
|
|
272
|
+
vfunc_get_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
273
|
+
vfunc_notify(pspec: GObject.ParamSpec): void;
|
|
274
|
+
vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
|
|
275
|
+
disconnect(id: number): void;
|
|
276
|
+
set(properties: {
|
|
277
|
+
[key: string]: any;
|
|
278
|
+
}): void;
|
|
279
|
+
block_signal_handler(id: number): void;
|
|
280
|
+
unblock_signal_handler(id: number): void;
|
|
281
|
+
stop_emission_by_name(detailedName: string): void;
|
|
282
|
+
get accessible_role(): import("@girs/gtk-4.0").default.AccessibleRole;
|
|
283
|
+
set accessible_role(val: import("@girs/gtk-4.0").default.AccessibleRole);
|
|
284
|
+
get accessibleRole(): import("@girs/gtk-4.0").default.AccessibleRole;
|
|
285
|
+
set accessibleRole(val: import("@girs/gtk-4.0").default.AccessibleRole);
|
|
286
|
+
announce(message: string, priority: import("@girs/gtk-4.0").default.AccessibleAnnouncementPriority | null): void;
|
|
287
|
+
get_accessible_id(): string | null;
|
|
288
|
+
get_accessible_parent(): import("@girs/gtk-4.0").default.Accessible | null;
|
|
289
|
+
get_accessible_role(): import("@girs/gtk-4.0").default.AccessibleRole;
|
|
290
|
+
get_at_context(): import("@girs/gtk-4.0").default.ATContext;
|
|
291
|
+
get_bounds(): [boolean, number, number, number, number];
|
|
292
|
+
get_first_accessible_child(): import("@girs/gtk-4.0").default.Accessible | null;
|
|
293
|
+
get_next_accessible_sibling(): import("@girs/gtk-4.0").default.Accessible | null;
|
|
294
|
+
get_platform_state(state: import("@girs/gtk-4.0").default.AccessiblePlatformState | null): boolean;
|
|
295
|
+
reset_property(property: import("@girs/gtk-4.0").default.AccessibleProperty | null): void;
|
|
296
|
+
reset_relation(relation: import("@girs/gtk-4.0").default.AccessibleRelation | null): void;
|
|
297
|
+
reset_state(state: import("@girs/gtk-4.0").default.AccessibleState | null): void;
|
|
298
|
+
set_accessible_parent(parent?: import("@girs/gtk-4.0").default.Accessible | null, next_sibling?: import("@girs/gtk-4.0").default.Accessible | null): void;
|
|
299
|
+
update_next_accessible_sibling(new_sibling?: import("@girs/gtk-4.0").default.Accessible | null): void;
|
|
300
|
+
update_platform_state(state: import("@girs/gtk-4.0").default.AccessiblePlatformState | null): void;
|
|
301
|
+
update_property(properties: import("@girs/gtk-4.0").default.AccessibleProperty[] | null, values: (GObject.Value | any)[]): void;
|
|
302
|
+
update_relation(relations: import("@girs/gtk-4.0").default.AccessibleRelation[] | null, values: (GObject.Value | any)[]): void;
|
|
303
|
+
update_state(states: import("@girs/gtk-4.0").default.AccessibleState[] | null, values: (GObject.Value | any)[]): void;
|
|
304
|
+
vfunc_get_accessible_id(): string | null;
|
|
305
|
+
vfunc_get_accessible_parent(): import("@girs/gtk-4.0").default.Accessible | null;
|
|
306
|
+
vfunc_get_at_context(): import("@girs/gtk-4.0").default.ATContext | null;
|
|
307
|
+
vfunc_get_bounds(): [boolean, number, number, number, number];
|
|
308
|
+
vfunc_get_first_accessible_child(): import("@girs/gtk-4.0").default.Accessible | null;
|
|
309
|
+
vfunc_get_next_accessible_sibling(): import("@girs/gtk-4.0").default.Accessible | null;
|
|
310
|
+
vfunc_get_platform_state(state: import("@girs/gtk-4.0").default.AccessiblePlatformState): boolean;
|
|
311
|
+
get_buildable_id(): string | null;
|
|
312
|
+
vfunc_add_child(builder: import("@girs/gtk-4.0").default.Builder, child: GObject.Object, type?: string | null): void;
|
|
313
|
+
vfunc_custom_finished(builder: import("@girs/gtk-4.0").default.Builder, child: GObject.Object | null, tagname: string, data?: any | null): void;
|
|
314
|
+
vfunc_custom_tag_end(builder: import("@girs/gtk-4.0").default.Builder, child: GObject.Object | null, tagname: string, data?: any | null): void;
|
|
315
|
+
vfunc_custom_tag_start(builder: import("@girs/gtk-4.0").default.Builder, child: GObject.Object | null, tagname: string): [boolean, import("@girs/gtk-4.0").default.BuildableParser, any];
|
|
316
|
+
vfunc_get_id(): string;
|
|
317
|
+
vfunc_get_internal_child<T = GObject.Object>(builder: import("@girs/gtk-4.0").default.Builder, childname: string): T;
|
|
318
|
+
vfunc_parser_finished(builder: import("@girs/gtk-4.0").default.Builder): void;
|
|
319
|
+
vfunc_set_buildable_property(builder: import("@girs/gtk-4.0").default.Builder, name: string, value: GObject.Value | any): void;
|
|
320
|
+
vfunc_set_id(id: string): void;
|
|
321
|
+
get can_focus(): boolean;
|
|
322
|
+
set can_focus(val: boolean);
|
|
323
|
+
get canFocus(): boolean;
|
|
324
|
+
set canFocus(val: boolean);
|
|
325
|
+
get can_target(): boolean;
|
|
326
|
+
set can_target(val: boolean);
|
|
327
|
+
get canTarget(): boolean;
|
|
328
|
+
set canTarget(val: boolean);
|
|
329
|
+
get css_classes(): string[];
|
|
330
|
+
set css_classes(val: string[]);
|
|
331
|
+
get cssClasses(): string[];
|
|
332
|
+
set cssClasses(val: string[]);
|
|
333
|
+
get css_name(): string;
|
|
334
|
+
get cssName(): string;
|
|
335
|
+
get cursor(): import("@girs/gdk-4.0").default.Cursor;
|
|
336
|
+
set cursor(val: import("@girs/gdk-4.0").default.Cursor);
|
|
337
|
+
get focus_on_click(): boolean;
|
|
338
|
+
set focus_on_click(val: boolean);
|
|
339
|
+
get focusOnClick(): boolean;
|
|
340
|
+
set focusOnClick(val: boolean);
|
|
341
|
+
get focusable(): boolean;
|
|
342
|
+
set focusable(val: boolean);
|
|
343
|
+
get halign(): import("@girs/gtk-4.0").default.Align;
|
|
344
|
+
set halign(val: import("@girs/gtk-4.0").default.Align);
|
|
345
|
+
get has_default(): boolean;
|
|
346
|
+
get hasDefault(): boolean;
|
|
347
|
+
get has_focus(): boolean;
|
|
348
|
+
get hasFocus(): boolean;
|
|
349
|
+
get has_tooltip(): boolean;
|
|
350
|
+
set has_tooltip(val: boolean);
|
|
351
|
+
get hasTooltip(): boolean;
|
|
352
|
+
set hasTooltip(val: boolean);
|
|
353
|
+
get height_request(): number;
|
|
354
|
+
set height_request(val: number);
|
|
355
|
+
get heightRequest(): number;
|
|
356
|
+
set heightRequest(val: number);
|
|
357
|
+
get hexpand(): boolean;
|
|
358
|
+
set hexpand(val: boolean);
|
|
359
|
+
get hexpand_set(): boolean;
|
|
360
|
+
set hexpand_set(val: boolean);
|
|
361
|
+
get hexpandSet(): boolean;
|
|
362
|
+
set hexpandSet(val: boolean);
|
|
363
|
+
get layout_manager(): import("@girs/gtk-4.0").default.LayoutManager;
|
|
364
|
+
set layout_manager(val: import("@girs/gtk-4.0").default.LayoutManager);
|
|
365
|
+
get layoutManager(): import("@girs/gtk-4.0").default.LayoutManager;
|
|
366
|
+
set layoutManager(val: import("@girs/gtk-4.0").default.LayoutManager);
|
|
367
|
+
get limit_events(): boolean;
|
|
368
|
+
set limit_events(val: boolean);
|
|
369
|
+
get limitEvents(): boolean;
|
|
370
|
+
set limitEvents(val: boolean);
|
|
371
|
+
get margin_bottom(): number;
|
|
372
|
+
set margin_bottom(val: number);
|
|
373
|
+
get marginBottom(): number;
|
|
374
|
+
set marginBottom(val: number);
|
|
375
|
+
get margin_end(): number;
|
|
376
|
+
set margin_end(val: number);
|
|
377
|
+
get marginEnd(): number;
|
|
378
|
+
set marginEnd(val: number);
|
|
379
|
+
get margin_start(): number;
|
|
380
|
+
set margin_start(val: number);
|
|
381
|
+
get marginStart(): number;
|
|
382
|
+
set marginStart(val: number);
|
|
383
|
+
get margin_top(): number;
|
|
384
|
+
set margin_top(val: number);
|
|
385
|
+
get marginTop(): number;
|
|
386
|
+
set marginTop(val: number);
|
|
387
|
+
get name(): string;
|
|
388
|
+
set name(val: string);
|
|
389
|
+
get opacity(): number;
|
|
390
|
+
set opacity(val: number);
|
|
391
|
+
get overflow(): import("@girs/gtk-4.0").default.Overflow;
|
|
392
|
+
set overflow(val: import("@girs/gtk-4.0").default.Overflow);
|
|
393
|
+
get parent(): import("@girs/gtk-4.0").default.Widget;
|
|
394
|
+
get receives_default(): boolean;
|
|
395
|
+
set receives_default(val: boolean);
|
|
396
|
+
get receivesDefault(): boolean;
|
|
397
|
+
set receivesDefault(val: boolean);
|
|
398
|
+
get root(): import("@girs/gtk-4.0").default.Root;
|
|
399
|
+
get scale_factor(): number;
|
|
400
|
+
get scaleFactor(): number;
|
|
401
|
+
get sensitive(): boolean;
|
|
402
|
+
set sensitive(val: boolean);
|
|
403
|
+
get tooltip_markup(): string;
|
|
404
|
+
set tooltip_markup(val: string);
|
|
405
|
+
get tooltipMarkup(): string;
|
|
406
|
+
set tooltipMarkup(val: string);
|
|
407
|
+
get tooltip_text(): string;
|
|
408
|
+
set tooltip_text(val: string);
|
|
409
|
+
get tooltipText(): string;
|
|
410
|
+
set tooltipText(val: string);
|
|
411
|
+
get valign(): import("@girs/gtk-4.0").default.Align;
|
|
412
|
+
set valign(val: import("@girs/gtk-4.0").default.Align);
|
|
413
|
+
get vexpand(): boolean;
|
|
414
|
+
set vexpand(val: boolean);
|
|
415
|
+
get vexpand_set(): boolean;
|
|
416
|
+
set vexpand_set(val: boolean);
|
|
417
|
+
get vexpandSet(): boolean;
|
|
418
|
+
set vexpandSet(val: boolean);
|
|
419
|
+
get visible(): boolean;
|
|
420
|
+
set visible(val: boolean);
|
|
421
|
+
get width_request(): number;
|
|
422
|
+
set width_request(val: number);
|
|
423
|
+
get widthRequest(): number;
|
|
424
|
+
set widthRequest(val: number);
|
|
425
|
+
vfunc_compute_expand(hexpand_p: boolean, vexpand_p: boolean): void;
|
|
426
|
+
vfunc_contains(x: number, y: number): boolean;
|
|
427
|
+
vfunc_css_changed(change: import("@girs/gtk-4.0").default.CssStyleChange): void;
|
|
428
|
+
vfunc_direction_changed(previous_direction: import("@girs/gtk-4.0").default.TextDirection): void;
|
|
429
|
+
vfunc_focus(direction: import("@girs/gtk-4.0").default.DirectionType): boolean;
|
|
430
|
+
vfunc_get_request_mode(): import("@girs/gtk-4.0").default.SizeRequestMode;
|
|
431
|
+
vfunc_grab_focus(): boolean;
|
|
432
|
+
vfunc_hide(): void;
|
|
433
|
+
vfunc_keynav_failed(direction: import("@girs/gtk-4.0").default.DirectionType): boolean;
|
|
434
|
+
vfunc_map(): void;
|
|
435
|
+
vfunc_measure(orientation: import("@girs/gtk-4.0").default.Orientation, for_size: number): [number, number, number, number];
|
|
436
|
+
vfunc_mnemonic_activate(group_cycling: boolean): boolean;
|
|
437
|
+
vfunc_move_focus(direction: import("@girs/gtk-4.0").default.DirectionType): void;
|
|
438
|
+
vfunc_query_tooltip(x: number, y: number, keyboard_tooltip: boolean, tooltip: import("@girs/gtk-4.0").default.Tooltip): boolean;
|
|
439
|
+
vfunc_realize(): void;
|
|
440
|
+
vfunc_root(): void;
|
|
441
|
+
vfunc_set_focus_child(child?: import("@girs/gtk-4.0").default.Widget | null): void;
|
|
442
|
+
vfunc_show(): void;
|
|
443
|
+
vfunc_size_allocate(width: number, height: number, baseline: number): void;
|
|
444
|
+
vfunc_snapshot(snapshot: import("@girs/gtk-4.0").default.Snapshot): void;
|
|
445
|
+
vfunc_state_flags_changed(previous_state_flags: import("@girs/gtk-4.0").default.StateFlags): void;
|
|
446
|
+
vfunc_system_setting_changed(settings: import("@girs/gtk-4.0").default.SystemSetting): void;
|
|
447
|
+
vfunc_unmap(): void;
|
|
448
|
+
vfunc_unrealize(): void;
|
|
449
|
+
vfunc_unroot(): void;
|
|
450
|
+
action_set_enabled(action_name: string, enabled: boolean): void;
|
|
451
|
+
activate(): boolean;
|
|
452
|
+
activate_action(name: string, args?: import("@girs/glib-2.0").default.Variant | null): boolean;
|
|
453
|
+
activate_default(): void;
|
|
454
|
+
add_controller(controller: import("@girs/gtk-4.0").default.EventController): void;
|
|
455
|
+
add_css_class(css_class: string): void;
|
|
456
|
+
add_mnemonic_label(label: import("@girs/gtk-4.0").default.Widget): void;
|
|
457
|
+
add_tick_callback(callback: import("@girs/gtk-4.0").default.TickCallback): number;
|
|
458
|
+
allocate(width: number, height: number, baseline: number, transform?: import("@girs/gsk-4.0").default.Transform | null): void;
|
|
459
|
+
child_focus(direction: import("@girs/gtk-4.0").default.DirectionType | null): boolean;
|
|
460
|
+
compute_bounds(target: import("@girs/gtk-4.0").default.Widget): [boolean, import("@girs/graphene-1.0").default.Rect];
|
|
461
|
+
compute_expand(orientation: import("@girs/gtk-4.0").default.Orientation | null): boolean;
|
|
462
|
+
compute_point(target: import("@girs/gtk-4.0").default.Widget, point: import("@girs/graphene-1.0").default.Point): [boolean, import("@girs/graphene-1.0").default.Point];
|
|
463
|
+
compute_transform(target: import("@girs/gtk-4.0").default.Widget): [boolean, import("@girs/graphene-1.0").default.Matrix];
|
|
464
|
+
contains(x: number, y: number): boolean;
|
|
465
|
+
create_pango_context(): import("@girs/pango-1.0").default.Context;
|
|
466
|
+
create_pango_layout(text?: string | null): import("@girs/pango-1.0").default.Layout;
|
|
467
|
+
dispose_template(widget_type: GObject.GType): void;
|
|
468
|
+
drag_check_threshold(start_x: number, start_y: number, current_x: number, current_y: number): boolean;
|
|
469
|
+
error_bell(): void;
|
|
470
|
+
get_allocated_baseline(): number;
|
|
471
|
+
get_allocated_height(): number;
|
|
472
|
+
get_allocated_width(): number;
|
|
473
|
+
get_allocation(): import("@girs/gtk-4.0").default.Allocation;
|
|
474
|
+
get_ancestor(widget_type: GObject.GType): import("@girs/gtk-4.0").default.Widget | null;
|
|
475
|
+
get_baseline(): number;
|
|
476
|
+
get_can_focus(): boolean;
|
|
477
|
+
get_can_target(): boolean;
|
|
478
|
+
get_child_visible(): boolean;
|
|
479
|
+
get_clipboard(): import("@girs/gdk-4.0").default.Clipboard;
|
|
480
|
+
get_color(): import("@girs/gdk-4.0").default.RGBA;
|
|
481
|
+
get_css_classes(): string[];
|
|
482
|
+
get_css_name(): string;
|
|
483
|
+
get_cursor(): import("@girs/gdk-4.0").default.Cursor | null;
|
|
484
|
+
get_direction(): import("@girs/gtk-4.0").default.TextDirection;
|
|
485
|
+
get_display(): import("@girs/gdk-4.0").default.Display;
|
|
486
|
+
get_first_child(): import("@girs/gtk-4.0").default.Widget | null;
|
|
487
|
+
get_focus_child(): import("@girs/gtk-4.0").default.Widget | null;
|
|
488
|
+
get_focus_on_click(): boolean;
|
|
489
|
+
get_focusable(): boolean;
|
|
490
|
+
get_font_map(): import("@girs/pango-1.0").default.FontMap | null;
|
|
491
|
+
get_font_options(): import("@girs/gjs/cairo").default.FontOptions | null;
|
|
492
|
+
get_frame_clock(): import("@girs/gdk-4.0").default.FrameClock | null;
|
|
493
|
+
get_halign(): import("@girs/gtk-4.0").default.Align;
|
|
494
|
+
get_has_tooltip(): boolean;
|
|
495
|
+
get_height(): number;
|
|
496
|
+
get_hexpand(): boolean;
|
|
497
|
+
get_hexpand_set(): boolean;
|
|
498
|
+
get_last_child(): import("@girs/gtk-4.0").default.Widget | null;
|
|
499
|
+
get_layout_manager(): import("@girs/gtk-4.0").default.LayoutManager | null;
|
|
500
|
+
get_limit_events(): boolean;
|
|
501
|
+
get_mapped(): boolean;
|
|
502
|
+
get_margin_bottom(): number;
|
|
503
|
+
get_margin_end(): number;
|
|
504
|
+
get_margin_start(): number;
|
|
505
|
+
get_margin_top(): number;
|
|
506
|
+
get_name(): string;
|
|
507
|
+
get_native(): import("@girs/gtk-4.0").default.Native | null;
|
|
508
|
+
get_next_sibling(): import("@girs/gtk-4.0").default.Widget | null;
|
|
509
|
+
get_opacity(): number;
|
|
510
|
+
get_overflow(): import("@girs/gtk-4.0").default.Overflow;
|
|
511
|
+
get_pango_context(): import("@girs/pango-1.0").default.Context;
|
|
512
|
+
get_parent(): import("@girs/gtk-4.0").default.Widget | null;
|
|
513
|
+
get_preferred_size(): [import("@girs/gtk-4.0").default.Requisition | null, import("@girs/gtk-4.0").default.Requisition | null];
|
|
514
|
+
get_prev_sibling(): import("@girs/gtk-4.0").default.Widget | null;
|
|
515
|
+
get_primary_clipboard(): import("@girs/gdk-4.0").default.Clipboard;
|
|
516
|
+
get_realized(): boolean;
|
|
517
|
+
get_receives_default(): boolean;
|
|
518
|
+
get_request_mode(): import("@girs/gtk-4.0").default.SizeRequestMode;
|
|
519
|
+
get_root(): import("@girs/gtk-4.0").default.Root | null;
|
|
520
|
+
get_scale_factor(): number;
|
|
521
|
+
get_sensitive(): boolean;
|
|
522
|
+
get_size(orientation: import("@girs/gtk-4.0").default.Orientation | null): number;
|
|
523
|
+
get_size_request(): [number, number];
|
|
524
|
+
get_state_flags(): import("@girs/gtk-4.0").default.StateFlags;
|
|
525
|
+
get_style_context(): import("@girs/gtk-4.0").default.StyleContext;
|
|
526
|
+
get_template_child<T = GObject.Object>(widget_type: GObject.GType, name: string): T;
|
|
527
|
+
get_tooltip_markup(): string | null;
|
|
528
|
+
get_tooltip_text(): string | null;
|
|
529
|
+
get_valign(): import("@girs/gtk-4.0").default.Align;
|
|
530
|
+
get_vexpand(): boolean;
|
|
531
|
+
get_vexpand_set(): boolean;
|
|
532
|
+
get_visible(): boolean;
|
|
533
|
+
get_width(): number;
|
|
534
|
+
grab_focus(): boolean;
|
|
535
|
+
has_css_class(css_class: string): boolean;
|
|
536
|
+
has_visible_focus(): boolean;
|
|
537
|
+
hide(): void;
|
|
538
|
+
in_destruction(): boolean;
|
|
539
|
+
init_template(): void;
|
|
540
|
+
insert_action_group(name: string, group?: import("@girs/gio-2.0").default.ActionGroup | null): void;
|
|
541
|
+
insert_after(parent: import("@girs/gtk-4.0").default.Widget, previous_sibling?: import("@girs/gtk-4.0").default.Widget | null): void;
|
|
542
|
+
insert_before(parent: import("@girs/gtk-4.0").default.Widget, next_sibling?: import("@girs/gtk-4.0").default.Widget | null): void;
|
|
543
|
+
is_ancestor(ancestor: import("@girs/gtk-4.0").default.Widget): boolean;
|
|
544
|
+
is_drawable(): boolean;
|
|
545
|
+
is_focus(): boolean;
|
|
546
|
+
is_sensitive(): boolean;
|
|
547
|
+
is_visible(): boolean;
|
|
548
|
+
keynav_failed(direction: import("@girs/gtk-4.0").default.DirectionType | null): boolean;
|
|
549
|
+
list_mnemonic_labels(): import("@girs/gtk-4.0").default.Widget[];
|
|
550
|
+
map(): void;
|
|
551
|
+
measure(orientation: import("@girs/gtk-4.0").default.Orientation | null, for_size: number): [number, number, number, number];
|
|
552
|
+
mnemonic_activate(group_cycling: boolean): boolean;
|
|
553
|
+
observe_children(): import("@girs/gio-2.0").default.ListModel;
|
|
554
|
+
observe_controllers(): import("@girs/gio-2.0").default.ListModel;
|
|
555
|
+
pick(x: number, y: number, flags: import("@girs/gtk-4.0").default.PickFlags | null): import("@girs/gtk-4.0").default.Widget | null;
|
|
556
|
+
queue_allocate(): void;
|
|
557
|
+
queue_draw(): void;
|
|
558
|
+
queue_resize(): void;
|
|
559
|
+
realize(): void;
|
|
560
|
+
remove_controller(controller: import("@girs/gtk-4.0").default.EventController): void;
|
|
561
|
+
remove_css_class(css_class: string): void;
|
|
562
|
+
remove_mnemonic_label(label: import("@girs/gtk-4.0").default.Widget): void;
|
|
563
|
+
remove_tick_callback(id: number): void;
|
|
564
|
+
set_can_focus(can_focus: boolean): void;
|
|
565
|
+
set_can_target(can_target: boolean): void;
|
|
566
|
+
set_child_visible(child_visible: boolean): void;
|
|
567
|
+
set_css_classes(classes: string[]): void;
|
|
568
|
+
set_cursor(cursor?: import("@girs/gdk-4.0").default.Cursor | null): void;
|
|
569
|
+
set_cursor_from_name(name?: string | null): void;
|
|
570
|
+
set_direction(dir: import("@girs/gtk-4.0").default.TextDirection | null): void;
|
|
571
|
+
set_focus_child(child?: import("@girs/gtk-4.0").default.Widget | null): void;
|
|
572
|
+
set_focus_on_click(focus_on_click: boolean): void;
|
|
573
|
+
set_focusable(focusable: boolean): void;
|
|
574
|
+
set_font_map(font_map?: import("@girs/pango-1.0").default.FontMap | null): void;
|
|
575
|
+
set_font_options(options?: import("@girs/gjs/cairo").default.FontOptions | null): void;
|
|
576
|
+
set_halign(align: import("@girs/gtk-4.0").default.Align | null): void;
|
|
577
|
+
set_has_tooltip(has_tooltip: boolean): void;
|
|
578
|
+
set_hexpand(expand: boolean): void;
|
|
579
|
+
set_hexpand_set(set: boolean): void;
|
|
580
|
+
set_layout_manager(layout_manager?: import("@girs/gtk-4.0").default.LayoutManager | null): void;
|
|
581
|
+
set_limit_events(limit_events: boolean): void;
|
|
582
|
+
set_margin_bottom(margin: number): void;
|
|
583
|
+
set_margin_end(margin: number): void;
|
|
584
|
+
set_margin_start(margin: number): void;
|
|
585
|
+
set_margin_top(margin: number): void;
|
|
586
|
+
set_name(name: string): void;
|
|
587
|
+
set_opacity(opacity: number): void;
|
|
588
|
+
set_overflow(overflow: import("@girs/gtk-4.0").default.Overflow | null): void;
|
|
589
|
+
set_parent(parent: import("@girs/gtk-4.0").default.Widget): void;
|
|
590
|
+
set_receives_default(receives_default: boolean): void;
|
|
591
|
+
set_sensitive(sensitive: boolean): void;
|
|
592
|
+
set_size_request(width: number, height: number): void;
|
|
593
|
+
set_state_flags(flags: import("@girs/gtk-4.0").default.StateFlags | null, clear: boolean): void;
|
|
594
|
+
set_tooltip_markup(markup?: string | null): void;
|
|
595
|
+
set_tooltip_text(text?: string | null): void;
|
|
596
|
+
set_valign(align: import("@girs/gtk-4.0").default.Align | null): void;
|
|
597
|
+
set_vexpand(expand: boolean): void;
|
|
598
|
+
set_vexpand_set(set: boolean): void;
|
|
599
|
+
set_visible(visible: boolean): void;
|
|
600
|
+
should_layout(): boolean;
|
|
601
|
+
show(): void;
|
|
602
|
+
size_allocate(allocation: import("@girs/gtk-4.0").default.Allocation, baseline: number): void;
|
|
603
|
+
snapshot_child(child: import("@girs/gtk-4.0").default.Widget, snapshot: import("@girs/gtk-4.0").default.Snapshot): void;
|
|
604
|
+
translate_coordinates(dest_widget: import("@girs/gtk-4.0").default.Widget, src_x: number, src_y: number): [boolean, number, number];
|
|
605
|
+
trigger_tooltip_query(): void;
|
|
606
|
+
unmap(): void;
|
|
607
|
+
unparent(): void;
|
|
608
|
+
unrealize(): void;
|
|
609
|
+
unset_state_flags(flags: import("@girs/gtk-4.0").default.StateFlags | null): void;
|
|
610
|
+
[Symbol.iterator]: () => IterableIterator<import("@girs/gtk-4.0").default.Widget>;
|
|
611
|
+
};
|
|
612
|
+
$gtype: GObject.GType<WebKit.WebView>;
|
|
613
|
+
"new"(): WebKit.WebView;
|
|
614
|
+
get_default_direction(): import("@girs/gtk-4.0").default.TextDirection;
|
|
615
|
+
set_default_direction(dir: import("@girs/gtk-4.0").default.TextDirection): void;
|
|
616
|
+
add_shortcut(shortcut: import("@girs/gtk-4.0").default.Shortcut): void;
|
|
617
|
+
bind_template_callback_full(callback_name: string, callback_symbol: GObject.Callback): void;
|
|
618
|
+
bind_template_child_full(name: string, internal_child: boolean, struct_offset: number): void;
|
|
619
|
+
get_accessible_role(): import("@girs/gtk-4.0").default.AccessibleRole;
|
|
620
|
+
get_activate_signal(): number;
|
|
621
|
+
get_css_name(): string;
|
|
622
|
+
get_layout_manager_type(): GObject.GType;
|
|
623
|
+
install_action(action_name: string, parameter_type: string | null, activate: import("@girs/gtk-4.0").default.WidgetActionActivateFunc): void;
|
|
624
|
+
install_property_action(action_name: string, property_name: string): void;
|
|
625
|
+
query_action(index_: number): [boolean, GObject.GType, string, import("@girs/glib-2.0").default.VariantType | null, string];
|
|
626
|
+
set_accessible_role(accessible_role: import("@girs/gtk-4.0").default.AccessibleRole): void;
|
|
627
|
+
set_activate_signal(signal_id: number): void;
|
|
628
|
+
set_activate_signal_from_name(signal_name: string): void;
|
|
629
|
+
set_css_name(name: string): void;
|
|
630
|
+
set_layout_manager_type(type: GObject.GType): void;
|
|
631
|
+
set_template(template_bytes: import("@girs/glib-2.0").default.Bytes | Uint8Array): void;
|
|
632
|
+
set_template_from_resource(resource_name: string): void;
|
|
633
|
+
set_template_scope(scope: import("@girs/gtk-4.0").default.BuilderScope): void;
|
|
634
|
+
newv(object_type: GObject.GType, parameters: GObject.Parameter[]): GObject.Object;
|
|
635
|
+
compat_control(what: number, data?: any | null): number;
|
|
636
|
+
interface_find_property(g_iface: GObject.TypeInterface, property_name: string): GObject.ParamSpec;
|
|
637
|
+
interface_install_property(g_iface: GObject.TypeInterface, pspec: GObject.ParamSpec): void;
|
|
638
|
+
interface_list_properties(g_iface: GObject.TypeInterface): GObject.ParamSpec[];
|
|
639
|
+
find_property(property_name: string): GObject.ParamSpec;
|
|
640
|
+
install_properties(pspecs: GObject.ParamSpec[]): void;
|
|
641
|
+
install_property(property_id: number, pspec: GObject.ParamSpec): void;
|
|
642
|
+
list_properties(): GObject.ParamSpec[];
|
|
643
|
+
override_property(property_id: number, name: string): void;
|
|
644
|
+
_classInit(klass: any): any;
|
|
645
|
+
};
|
|
646
|
+
export type IFrameWidget = InstanceType<typeof IFrameWidget>;
|