@gjsify/iframe 0.1.13 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/lib/esm/html-iframe-element.js +3 -3
- package/lib/esm/{iframe-widget.js → iframe-bridge.js} +4 -4
- package/lib/esm/index.js +2 -2
- package/lib/esm/message-bridge.js +1 -1
- package/lib/types/html-iframe-element.d.ts +4 -4
- package/lib/types/{iframe-widget.d.ts → iframe-bridge.d.ts} +140 -141
- package/lib/types/index.d.ts +2 -2
- package/lib/types/message-bridge.d.ts +1 -1
- package/lib/types/types/index.d.ts +3 -3
- package/package.json +11 -11
- package/src/html-iframe-element.ts +5 -5
- package/src/{iframe-widget.ts → iframe-bridge.ts} +10 -11
- package/src/index.spec.ts +1 -1
- package/src/index.ts +2 -2
- package/src/message-bridge.ts +1 -1
- package/src/property-symbol.ts +1 -1
- package/src/types/index.ts +3 -3
- package/tmp/.tsbuildinfo +1 -1
|
@@ -2,7 +2,7 @@ import GObject from 'gi://GObject';
|
|
|
2
2
|
import WebKit from 'gi://WebKit?version=6.0';
|
|
3
3
|
import { HTMLIFrameElement } from './html-iframe-element.js';
|
|
4
4
|
import { MessageBridge } from './message-bridge.js';
|
|
5
|
-
import type {
|
|
5
|
+
import type { IFrameBridgeOptions, IFrameReadyCallback } from './types/index.js';
|
|
6
6
|
/**
|
|
7
7
|
* A `WebKit.WebView` subclass that handles iframe bootstrapping:
|
|
8
8
|
* - Sets up WebKit settings (JavaScript, developer extras)
|
|
@@ -13,7 +13,7 @@ import type { IFrameWidgetOptions, IFrameReadyCallback } from './types/index.js'
|
|
|
13
13
|
*
|
|
14
14
|
* Usage:
|
|
15
15
|
* ```ts
|
|
16
|
-
* const iframeWidget = new
|
|
16
|
+
* const iframeWidget = new IFrameBridge();
|
|
17
17
|
* iframeWidget.installGlobals();
|
|
18
18
|
* iframeWidget.onReady((iframe) => {
|
|
19
19
|
* iframe.contentWindow?.addEventListener('message', (e) => {
|
|
@@ -24,12 +24,12 @@ import type { IFrameWidgetOptions, IFrameReadyCallback } from './types/index.js'
|
|
|
24
24
|
* window.set_child(iframeWidget);
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
|
-
export declare const
|
|
28
|
-
new (options?:
|
|
27
|
+
export declare const IFrameBridge: {
|
|
28
|
+
new (options?: IFrameBridgeOptions & Partial<WebKit.WebView.ConstructorProps>): {
|
|
29
29
|
_iframe: HTMLIFrameElement;
|
|
30
30
|
_messageBridge: MessageBridge;
|
|
31
31
|
_readyCallbacks: IFrameReadyCallback[];
|
|
32
|
-
_options:
|
|
32
|
+
_options: IFrameBridgeOptions;
|
|
33
33
|
/** The HTMLIFrameElement wrapping this WebView. */
|
|
34
34
|
get iframeElement(): HTMLIFrameElement;
|
|
35
35
|
/**
|
|
@@ -62,8 +62,8 @@ export declare const IFrameWidget: {
|
|
|
62
62
|
set camera_capture_state(val: WebKit.MediaCaptureState);
|
|
63
63
|
get cameraCaptureState(): WebKit.MediaCaptureState;
|
|
64
64
|
set cameraCaptureState(val: WebKit.MediaCaptureState);
|
|
65
|
-
get default_content_security_policy(): string;
|
|
66
|
-
get defaultContentSecurityPolicy(): string;
|
|
65
|
+
get default_content_security_policy(): (string | null);
|
|
66
|
+
get defaultContentSecurityPolicy(): (string | null);
|
|
67
67
|
get display_capture_state(): WebKit.MediaCaptureState;
|
|
68
68
|
set display_capture_state(val: WebKit.MediaCaptureState);
|
|
69
69
|
get displayCaptureState(): WebKit.MediaCaptureState;
|
|
@@ -149,21 +149,21 @@ export declare const IFrameWidget: {
|
|
|
149
149
|
vfunc_user_message_received(message: WebKit.UserMessage): boolean;
|
|
150
150
|
vfunc_web_process_crashed(): boolean;
|
|
151
151
|
vfunc_web_process_terminated(reason: WebKit.WebProcessTerminationReason): void;
|
|
152
|
-
call_async_javascript_function(body: string, length: bigint | number, _arguments
|
|
153
|
-
call_async_javascript_function(body: string, length: bigint | 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: bigint | number, _arguments
|
|
152
|
+
call_async_javascript_function(body: string, length: (bigint | 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: (bigint | 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: (bigint | 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
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
|
|
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
|
|
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
159
|
can_execute_editing_command_finish(result: import("@girs/gio-2.0").default.AsyncResult): boolean;
|
|
160
160
|
can_go_back(): boolean;
|
|
161
161
|
can_go_forward(): boolean;
|
|
162
162
|
can_show_mime_type(mime_type: string): boolean;
|
|
163
163
|
download_uri(uri: string): WebKit.Download;
|
|
164
|
-
evaluate_javascript(script: string, length: bigint | number, world_name
|
|
165
|
-
evaluate_javascript(script: string, length: bigint | 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: bigint | number, world_name
|
|
164
|
+
evaluate_javascript(script: string, length: (bigint | 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: (bigint | 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: (bigint | 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
167
|
evaluate_javascript_finish(result: import("@girs/gio-2.0").default.AsyncResult): import("@girs/javascriptcore-6.0").default.Value;
|
|
168
168
|
execute_editing_command(command: string): void;
|
|
169
169
|
execute_editing_command_with_argument(command: string, argument: string): void;
|
|
@@ -173,13 +173,13 @@ export declare const IFrameWidget: {
|
|
|
173
173
|
get_camera_capture_state(): WebKit.MediaCaptureState;
|
|
174
174
|
get_context(): WebKit.WebContext;
|
|
175
175
|
get_custom_charset(): string;
|
|
176
|
-
get_default_content_security_policy(): string | null;
|
|
176
|
+
get_default_content_security_policy(): (string | null);
|
|
177
177
|
get_display_capture_state(): WebKit.MediaCaptureState;
|
|
178
178
|
get_editor_state(): WebKit.EditorState;
|
|
179
179
|
get_estimated_load_progress(): number;
|
|
180
180
|
get_favicon(): import("@girs/gdk-4.0").default.Texture;
|
|
181
181
|
get_find_controller(): WebKit.FindController;
|
|
182
|
-
get_input_method_context(): WebKit.InputMethodContext | null;
|
|
182
|
+
get_input_method_context(): (WebKit.InputMethodContext | null);
|
|
183
183
|
get_inspector(): WebKit.WebInspector;
|
|
184
184
|
get_is_muted(): boolean;
|
|
185
185
|
get_is_web_process_responsive(): boolean;
|
|
@@ -190,9 +190,9 @@ export declare const IFrameWidget: {
|
|
|
190
190
|
get_session_state(): WebKit.WebViewSessionState;
|
|
191
191
|
get_settings(): WebKit.Settings;
|
|
192
192
|
get_settings(...args: never[]): any;
|
|
193
|
-
get_snapshot(region: WebKit.SnapshotRegion, options: WebKit.SnapshotOptions, cancellable
|
|
194
|
-
get_snapshot(region: WebKit.SnapshotRegion, options: WebKit.SnapshotOptions, 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, options: WebKit.SnapshotOptions, cancellable
|
|
193
|
+
get_snapshot(region: WebKit.SnapshotRegion, options: WebKit.SnapshotOptions, cancellable: (import("@girs/gio-2.0").default.Cancellable | null)): globalThis.Promise<import("@girs/gdk-4.0").default.Texture>;
|
|
194
|
+
get_snapshot(region: WebKit.SnapshotRegion, options: WebKit.SnapshotOptions, 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, options: WebKit.SnapshotOptions, 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
196
|
get_snapshot_finish(result: import("@girs/gio-2.0").default.AsyncResult): import("@girs/gdk-4.0").default.Texture;
|
|
197
197
|
get_theme_color(): [boolean, import("@girs/gdk-4.0").default.RGBA];
|
|
198
198
|
get_title(): string;
|
|
@@ -208,34 +208,34 @@ export declare const IFrameWidget: {
|
|
|
208
208
|
go_to_back_forward_list_item(list_item: WebKit.BackForwardListItem): void;
|
|
209
209
|
is_editable(): boolean;
|
|
210
210
|
leave_immersive_mode(): void;
|
|
211
|
-
load_alternate_html(content: string, content_uri: string, base_uri
|
|
212
|
-
load_bytes(bytes: import("@girs/glib-2.0").default.Bytes | Uint8Array, mime_type
|
|
213
|
-
load_html(content: string, base_uri
|
|
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
214
|
load_plain_text(plain_text: string): void;
|
|
215
215
|
load_request(request: WebKit.URIRequest): void;
|
|
216
216
|
load_uri(uri: string): void;
|
|
217
217
|
reload(): void;
|
|
218
218
|
reload_bypass_cache(): void;
|
|
219
219
|
restore_session_state(state: WebKit.WebViewSessionState): void;
|
|
220
|
-
save(save_mode: WebKit.SaveMode, cancellable
|
|
221
|
-
save(save_mode: WebKit.SaveMode, 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, cancellable
|
|
220
|
+
save(save_mode: WebKit.SaveMode, cancellable: (import("@girs/gio-2.0").default.Cancellable | null)): globalThis.Promise<import("@girs/gio-2.0").default.InputStream>;
|
|
221
|
+
save(save_mode: WebKit.SaveMode, 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, 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
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, cancellable
|
|
225
|
-
save_to_file(file: import("@girs/gio-2.0").default.File, save_mode: WebKit.SaveMode, 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, cancellable
|
|
224
|
+
save_to_file(file: import("@girs/gio-2.0").default.File, save_mode: WebKit.SaveMode, 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, 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, cancellable: (import("@girs/gio-2.0").default.Cancellable | null), callback?: import("@girs/gio-2.0").default.AsyncReadyCallback</*elided*/ any>): (globalThis.Promise<boolean> | void);
|
|
227
227
|
save_to_file_finish(result: import("@girs/gio-2.0").default.AsyncResult): boolean;
|
|
228
|
-
send_message_to_page(message: WebKit.UserMessage, cancellable
|
|
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
|
|
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
231
|
send_message_to_page_finish(result: import("@girs/gio-2.0").default.AsyncResult): WebKit.UserMessage;
|
|
232
232
|
set_background_color(rgba: import("@girs/gdk-4.0").default.RGBA): void;
|
|
233
233
|
set_camera_capture_state(state: WebKit.MediaCaptureState): void;
|
|
234
|
-
set_cors_allowlist(allowlist
|
|
235
|
-
set_custom_charset(charset
|
|
234
|
+
set_cors_allowlist(allowlist: (string[] | null)): void;
|
|
235
|
+
set_custom_charset(charset: (string | null)): void;
|
|
236
236
|
set_display_capture_state(state: WebKit.MediaCaptureState): void;
|
|
237
237
|
set_editable(editable: boolean): void;
|
|
238
|
-
set_input_method_context(context
|
|
238
|
+
set_input_method_context(context: (WebKit.InputMethodContext | null)): void;
|
|
239
239
|
set_is_muted(muted: boolean): void;
|
|
240
240
|
set_microphone_capture_state(state: WebKit.MediaCaptureState): void;
|
|
241
241
|
set_settings(settings: WebKit.Settings): void;
|
|
@@ -243,76 +243,40 @@ export declare const IFrameWidget: {
|
|
|
243
243
|
stop_loading(): void;
|
|
244
244
|
terminate_web_process(): void;
|
|
245
245
|
try_close(): void;
|
|
246
|
-
bind_property(source_property: string, target: GObject.Object, target_property: string, flags: GObject.BindingFlags): GObject.Binding;
|
|
247
|
-
bind_property_full(source_property: string, target: GObject.Object, target_property: string, flags: GObject.BindingFlags, 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: unknown, pspec: GObject.ParamSpec): void;
|
|
273
|
-
vfunc_notify(pspec: GObject.ParamSpec): void;
|
|
274
|
-
vfunc_set_property(property_id: number, value: unknown, 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
246
|
get accessible_role(): import("@girs/gtk-4.0").default.AccessibleRole;
|
|
283
247
|
set accessible_role(val: import("@girs/gtk-4.0").default.AccessibleRole);
|
|
284
248
|
get accessibleRole(): import("@girs/gtk-4.0").default.AccessibleRole;
|
|
285
249
|
set accessibleRole(val: import("@girs/gtk-4.0").default.AccessibleRole);
|
|
286
250
|
announce(message: string, priority: import("@girs/gtk-4.0").default.AccessibleAnnouncementPriority): void;
|
|
287
|
-
get_accessible_id(): string | null;
|
|
288
|
-
get_accessible_parent(): import("@girs/gtk-4.0").default.Accessible | null;
|
|
251
|
+
get_accessible_id(): (string | null);
|
|
252
|
+
get_accessible_parent(): (import("@girs/gtk-4.0").default.Accessible | null);
|
|
289
253
|
get_accessible_role(): import("@girs/gtk-4.0").default.AccessibleRole;
|
|
290
254
|
get_at_context(): import("@girs/gtk-4.0").default.ATContext;
|
|
291
255
|
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;
|
|
256
|
+
get_first_accessible_child(): (import("@girs/gtk-4.0").default.Accessible | null);
|
|
257
|
+
get_next_accessible_sibling(): (import("@girs/gtk-4.0").default.Accessible | null);
|
|
294
258
|
get_platform_state(state: import("@girs/gtk-4.0").default.AccessiblePlatformState): boolean;
|
|
295
259
|
reset_property(property: import("@girs/gtk-4.0").default.AccessibleProperty): void;
|
|
296
260
|
reset_relation(relation: import("@girs/gtk-4.0").default.AccessibleRelation): void;
|
|
297
261
|
reset_state(state: import("@girs/gtk-4.0").default.AccessibleState): void;
|
|
298
|
-
set_accessible_parent(parent
|
|
299
|
-
update_next_accessible_sibling(new_sibling
|
|
262
|
+
set_accessible_parent(parent: (import("@girs/gtk-4.0").default.Accessible | null), next_sibling: (import("@girs/gtk-4.0").default.Accessible | null)): void;
|
|
263
|
+
update_next_accessible_sibling(new_sibling: (import("@girs/gtk-4.0").default.Accessible | null)): void;
|
|
300
264
|
update_platform_state(state: import("@girs/gtk-4.0").default.AccessiblePlatformState): void;
|
|
301
265
|
update_property(properties: import("@girs/gtk-4.0").default.AccessibleProperty[], values: (GObject.Value | any)[]): void;
|
|
302
266
|
update_relation(relations: import("@girs/gtk-4.0").default.AccessibleRelation[], values: (GObject.Value | any)[]): void;
|
|
303
267
|
update_state(states: import("@girs/gtk-4.0").default.AccessibleState[], 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;
|
|
268
|
+
vfunc_get_accessible_id(): (string | null);
|
|
269
|
+
vfunc_get_accessible_parent(): (import("@girs/gtk-4.0").default.Accessible | null);
|
|
270
|
+
vfunc_get_at_context(): (import("@girs/gtk-4.0").default.ATContext | null);
|
|
307
271
|
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;
|
|
272
|
+
vfunc_get_first_accessible_child(): (import("@girs/gtk-4.0").default.Accessible | null);
|
|
273
|
+
vfunc_get_next_accessible_sibling(): (import("@girs/gtk-4.0").default.Accessible | null);
|
|
310
274
|
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
|
|
313
|
-
vfunc_custom_finished(builder: import("@girs/gtk-4.0").default.Builder, child: GObject.Object | null, tagname: string, data
|
|
314
|
-
vfunc_custom_tag_end(builder: import("@girs/gtk-4.0").default.Builder, child: GObject.Object | null, tagname: string, data
|
|
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];
|
|
275
|
+
get_buildable_id(): (string | null);
|
|
276
|
+
vfunc_add_child(builder: import("@girs/gtk-4.0").default.Builder, child: GObject.Object, type: (string | null)): void;
|
|
277
|
+
vfunc_custom_finished(builder: import("@girs/gtk-4.0").default.Builder, child: (GObject.Object | null), tagname: string, data: (any | null)): void;
|
|
278
|
+
vfunc_custom_tag_end(builder: import("@girs/gtk-4.0").default.Builder, child: (GObject.Object | null), tagname: string, data: (any | null)): void;
|
|
279
|
+
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
280
|
vfunc_get_id(): string;
|
|
317
281
|
vfunc_get_internal_child<T = GObject.Object>(builder: import("@girs/gtk-4.0").default.Builder, childname: string): T;
|
|
318
282
|
vfunc_parser_finished(builder: import("@girs/gtk-4.0").default.Builder): void;
|
|
@@ -332,8 +296,8 @@ export declare const IFrameWidget: {
|
|
|
332
296
|
set cssClasses(val: string[]);
|
|
333
297
|
get css_name(): string;
|
|
334
298
|
get cssName(): string;
|
|
335
|
-
get cursor(): import("@girs/gdk-4.0").default.Cursor;
|
|
336
|
-
set cursor(val: import("@girs/gdk-4.0").default.Cursor);
|
|
299
|
+
get cursor(): (import("@girs/gdk-4.0").default.Cursor | null);
|
|
300
|
+
set cursor(val: (import("@girs/gdk-4.0").default.Cursor | null));
|
|
337
301
|
get focus_on_click(): boolean;
|
|
338
302
|
set focus_on_click(val: boolean);
|
|
339
303
|
get focusOnClick(): boolean;
|
|
@@ -360,10 +324,10 @@ export declare const IFrameWidget: {
|
|
|
360
324
|
set hexpand_set(val: boolean);
|
|
361
325
|
get hexpandSet(): boolean;
|
|
362
326
|
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);
|
|
327
|
+
get layout_manager(): (import("@girs/gtk-4.0").default.LayoutManager | null);
|
|
328
|
+
set layout_manager(val: (import("@girs/gtk-4.0").default.LayoutManager | null));
|
|
329
|
+
get layoutManager(): (import("@girs/gtk-4.0").default.LayoutManager | null);
|
|
330
|
+
set layoutManager(val: (import("@girs/gtk-4.0").default.LayoutManager | null));
|
|
367
331
|
get limit_events(): boolean;
|
|
368
332
|
set limit_events(val: boolean);
|
|
369
333
|
get limitEvents(): boolean;
|
|
@@ -390,24 +354,24 @@ export declare const IFrameWidget: {
|
|
|
390
354
|
set opacity(val: number);
|
|
391
355
|
get overflow(): import("@girs/gtk-4.0").default.Overflow;
|
|
392
356
|
set overflow(val: import("@girs/gtk-4.0").default.Overflow);
|
|
393
|
-
get parent(): import("@girs/gtk-4.0").default.Widget;
|
|
357
|
+
get parent(): (import("@girs/gtk-4.0").default.Widget | null);
|
|
394
358
|
get receives_default(): boolean;
|
|
395
359
|
set receives_default(val: boolean);
|
|
396
360
|
get receivesDefault(): boolean;
|
|
397
361
|
set receivesDefault(val: boolean);
|
|
398
|
-
get root(): import("@girs/gtk-4.0").default.Root;
|
|
362
|
+
get root(): (import("@girs/gtk-4.0").default.Root | null);
|
|
399
363
|
get scale_factor(): number;
|
|
400
364
|
get scaleFactor(): number;
|
|
401
365
|
get sensitive(): boolean;
|
|
402
366
|
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);
|
|
367
|
+
get tooltip_markup(): (string | null);
|
|
368
|
+
set tooltip_markup(val: (string | null));
|
|
369
|
+
get tooltipMarkup(): (string | null);
|
|
370
|
+
set tooltipMarkup(val: (string | null));
|
|
371
|
+
get tooltip_text(): (string | null);
|
|
372
|
+
set tooltip_text(val: (string | null));
|
|
373
|
+
get tooltipText(): (string | null);
|
|
374
|
+
set tooltipText(val: (string | null));
|
|
411
375
|
get valign(): import("@girs/gtk-4.0").default.Align;
|
|
412
376
|
set valign(val: import("@girs/gtk-4.0").default.Align);
|
|
413
377
|
get vexpand(): boolean;
|
|
@@ -438,7 +402,7 @@ export declare const IFrameWidget: {
|
|
|
438
402
|
vfunc_query_tooltip(x: number, y: number, keyboard_tooltip: boolean, tooltip: import("@girs/gtk-4.0").default.Tooltip): boolean;
|
|
439
403
|
vfunc_realize(): void;
|
|
440
404
|
vfunc_root(): void;
|
|
441
|
-
vfunc_set_focus_child(child
|
|
405
|
+
vfunc_set_focus_child(child: (import("@girs/gtk-4.0").default.Widget | null)): void;
|
|
442
406
|
vfunc_show(): void;
|
|
443
407
|
vfunc_size_allocate(width: number, height: number, baseline: number): void;
|
|
444
408
|
vfunc_snapshot(snapshot: import("@girs/gtk-4.0").default.Snapshot): void;
|
|
@@ -449,13 +413,13 @@ export declare const IFrameWidget: {
|
|
|
449
413
|
vfunc_unroot(): void;
|
|
450
414
|
action_set_enabled(action_name: string, enabled: boolean): void;
|
|
451
415
|
activate(): boolean;
|
|
452
|
-
activate_action(name: string, args
|
|
416
|
+
activate_action(name: string, args: (import("@girs/glib-2.0").default.Variant | null)): boolean;
|
|
453
417
|
activate_default(): void;
|
|
454
418
|
add_controller(controller: import("@girs/gtk-4.0").default.EventController): void;
|
|
455
419
|
add_css_class(css_class: string): void;
|
|
456
420
|
add_mnemonic_label(label: import("@girs/gtk-4.0").default.Widget): void;
|
|
457
421
|
add_tick_callback(callback: import("@girs/gtk-4.0").default.TickCallback): number;
|
|
458
|
-
allocate(width: number, height: number, baseline: number, transform
|
|
422
|
+
allocate(width: number, height: number, baseline: number, transform: (import("@girs/gsk-4.0").default.Transform | null)): void;
|
|
459
423
|
child_focus(direction: import("@girs/gtk-4.0").default.DirectionType): boolean;
|
|
460
424
|
compute_bounds(target: import("@girs/gtk-4.0").default.Widget): [boolean, import("@girs/graphene-1.0").default.Rect];
|
|
461
425
|
compute_expand(orientation: import("@girs/gtk-4.0").default.Orientation): boolean;
|
|
@@ -463,7 +427,7 @@ export declare const IFrameWidget: {
|
|
|
463
427
|
compute_transform(target: import("@girs/gtk-4.0").default.Widget): [boolean, import("@girs/graphene-1.0").default.Matrix];
|
|
464
428
|
contains(x: number, y: number): boolean;
|
|
465
429
|
create_pango_context(): import("@girs/pango-1.0").default.Context;
|
|
466
|
-
create_pango_layout(text
|
|
430
|
+
create_pango_layout(text: (string | null)): import("@girs/pango-1.0").default.Layout;
|
|
467
431
|
dispose_template(widget_type: GObject.GType): void;
|
|
468
432
|
drag_check_threshold(start_x: number, start_y: number, current_x: number, current_y: number): boolean;
|
|
469
433
|
error_bell(): void;
|
|
@@ -471,7 +435,7 @@ export declare const IFrameWidget: {
|
|
|
471
435
|
get_allocated_height(): number;
|
|
472
436
|
get_allocated_width(): number;
|
|
473
437
|
get_allocation(): import("@girs/gtk-4.0").default.Allocation;
|
|
474
|
-
get_ancestor(widget_type: GObject.GType): import("@girs/gtk-4.0").default.Widget | null;
|
|
438
|
+
get_ancestor(widget_type: GObject.GType): (import("@girs/gtk-4.0").default.Widget | null);
|
|
475
439
|
get_baseline(): number;
|
|
476
440
|
get_can_focus(): boolean;
|
|
477
441
|
get_can_target(): boolean;
|
|
@@ -480,23 +444,23 @@ export declare const IFrameWidget: {
|
|
|
480
444
|
get_color(): import("@girs/gdk-4.0").default.RGBA;
|
|
481
445
|
get_css_classes(): string[];
|
|
482
446
|
get_css_name(): string;
|
|
483
|
-
get_cursor(): import("@girs/gdk-4.0").default.Cursor | null;
|
|
447
|
+
get_cursor(): (import("@girs/gdk-4.0").default.Cursor | null);
|
|
484
448
|
get_direction(): import("@girs/gtk-4.0").default.TextDirection;
|
|
485
449
|
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;
|
|
450
|
+
get_first_child(): (import("@girs/gtk-4.0").default.Widget | null);
|
|
451
|
+
get_focus_child(): (import("@girs/gtk-4.0").default.Widget | null);
|
|
488
452
|
get_focus_on_click(): boolean;
|
|
489
453
|
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;
|
|
454
|
+
get_font_map(): (import("@girs/pango-1.0").default.FontMap | null);
|
|
455
|
+
get_font_options(): (import("@girs/gjs/cairo").default.FontOptions | null);
|
|
456
|
+
get_frame_clock(): (import("@girs/gdk-4.0").default.FrameClock | null);
|
|
493
457
|
get_halign(): import("@girs/gtk-4.0").default.Align;
|
|
494
458
|
get_has_tooltip(): boolean;
|
|
495
459
|
get_height(): number;
|
|
496
460
|
get_hexpand(): boolean;
|
|
497
461
|
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;
|
|
462
|
+
get_last_child(): (import("@girs/gtk-4.0").default.Widget | null);
|
|
463
|
+
get_layout_manager(): (import("@girs/gtk-4.0").default.LayoutManager | null);
|
|
500
464
|
get_limit_events(): boolean;
|
|
501
465
|
get_mapped(): boolean;
|
|
502
466
|
get_margin_bottom(): number;
|
|
@@ -504,19 +468,19 @@ export declare const IFrameWidget: {
|
|
|
504
468
|
get_margin_start(): number;
|
|
505
469
|
get_margin_top(): number;
|
|
506
470
|
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;
|
|
471
|
+
get_native(): (import("@girs/gtk-4.0").default.Native | null);
|
|
472
|
+
get_next_sibling(): (import("@girs/gtk-4.0").default.Widget | null);
|
|
509
473
|
get_opacity(): number;
|
|
510
474
|
get_overflow(): import("@girs/gtk-4.0").default.Overflow;
|
|
511
475
|
get_pango_context(): import("@girs/pango-1.0").default.Context;
|
|
512
|
-
get_parent(): import("@girs/gtk-4.0").default.Widget | null;
|
|
476
|
+
get_parent(): (import("@girs/gtk-4.0").default.Widget | null);
|
|
513
477
|
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;
|
|
478
|
+
get_prev_sibling(): (import("@girs/gtk-4.0").default.Widget | null);
|
|
515
479
|
get_primary_clipboard(): import("@girs/gdk-4.0").default.Clipboard;
|
|
516
480
|
get_realized(): boolean;
|
|
517
481
|
get_receives_default(): boolean;
|
|
518
482
|
get_request_mode(): import("@girs/gtk-4.0").default.SizeRequestMode;
|
|
519
|
-
get_root(): import("@girs/gtk-4.0").default.Root | null;
|
|
483
|
+
get_root(): (import("@girs/gtk-4.0").default.Root | null);
|
|
520
484
|
get_scale_factor(): number;
|
|
521
485
|
get_sensitive(): boolean;
|
|
522
486
|
get_size(orientation: import("@girs/gtk-4.0").default.Orientation): number;
|
|
@@ -524,8 +488,8 @@ export declare const IFrameWidget: {
|
|
|
524
488
|
get_state_flags(): import("@girs/gtk-4.0").default.StateFlags;
|
|
525
489
|
get_style_context(): import("@girs/gtk-4.0").default.StyleContext;
|
|
526
490
|
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;
|
|
491
|
+
get_tooltip_markup(): (string | null);
|
|
492
|
+
get_tooltip_text(): (string | null);
|
|
529
493
|
get_valign(): import("@girs/gtk-4.0").default.Align;
|
|
530
494
|
get_vexpand(): boolean;
|
|
531
495
|
get_vexpand_set(): boolean;
|
|
@@ -537,9 +501,9 @@ export declare const IFrameWidget: {
|
|
|
537
501
|
hide(): void;
|
|
538
502
|
in_destruction(): boolean;
|
|
539
503
|
init_template(): void;
|
|
540
|
-
insert_action_group(name: string, group
|
|
541
|
-
insert_after(parent: import("@girs/gtk-4.0").default.Widget, previous_sibling
|
|
542
|
-
insert_before(parent: import("@girs/gtk-4.0").default.Widget, next_sibling
|
|
504
|
+
insert_action_group(name: string, group: (import("@girs/gio-2.0").default.ActionGroup | null)): void;
|
|
505
|
+
insert_after(parent: import("@girs/gtk-4.0").default.Widget, previous_sibling: (import("@girs/gtk-4.0").default.Widget | null)): void;
|
|
506
|
+
insert_before(parent: import("@girs/gtk-4.0").default.Widget, next_sibling: (import("@girs/gtk-4.0").default.Widget | null)): void;
|
|
543
507
|
is_ancestor(ancestor: import("@girs/gtk-4.0").default.Widget): boolean;
|
|
544
508
|
is_drawable(): boolean;
|
|
545
509
|
is_focus(): boolean;
|
|
@@ -552,7 +516,7 @@ export declare const IFrameWidget: {
|
|
|
552
516
|
mnemonic_activate(group_cycling: boolean): boolean;
|
|
553
517
|
observe_children(): import("@girs/gio-2.0").default.ListModel;
|
|
554
518
|
observe_controllers(): import("@girs/gio-2.0").default.ListModel;
|
|
555
|
-
pick(x: number, y: number, flags: import("@girs/gtk-4.0").default.PickFlags): import("@girs/gtk-4.0").default.Widget | null;
|
|
519
|
+
pick(x: number, y: number, flags: import("@girs/gtk-4.0").default.PickFlags): (import("@girs/gtk-4.0").default.Widget | null);
|
|
556
520
|
queue_allocate(): void;
|
|
557
521
|
queue_draw(): void;
|
|
558
522
|
queue_resize(): void;
|
|
@@ -565,19 +529,19 @@ export declare const IFrameWidget: {
|
|
|
565
529
|
set_can_target(can_target: boolean): void;
|
|
566
530
|
set_child_visible(child_visible: boolean): void;
|
|
567
531
|
set_css_classes(classes: string[]): void;
|
|
568
|
-
set_cursor(cursor
|
|
569
|
-
set_cursor_from_name(name
|
|
532
|
+
set_cursor(cursor: (import("@girs/gdk-4.0").default.Cursor | null)): void;
|
|
533
|
+
set_cursor_from_name(name: (string | null)): void;
|
|
570
534
|
set_direction(dir: import("@girs/gtk-4.0").default.TextDirection): void;
|
|
571
|
-
set_focus_child(child
|
|
535
|
+
set_focus_child(child: (import("@girs/gtk-4.0").default.Widget | null)): void;
|
|
572
536
|
set_focus_on_click(focus_on_click: boolean): void;
|
|
573
537
|
set_focusable(focusable: boolean): void;
|
|
574
|
-
set_font_map(font_map
|
|
575
|
-
set_font_options(options
|
|
538
|
+
set_font_map(font_map: (import("@girs/pango-1.0").default.FontMap | null)): void;
|
|
539
|
+
set_font_options(options: (import("@girs/gjs/cairo").default.FontOptions | null)): void;
|
|
576
540
|
set_halign(align: import("@girs/gtk-4.0").default.Align): void;
|
|
577
541
|
set_has_tooltip(has_tooltip: boolean): void;
|
|
578
542
|
set_hexpand(expand: boolean): void;
|
|
579
543
|
set_hexpand_set(set: boolean): void;
|
|
580
|
-
set_layout_manager(layout_manager
|
|
544
|
+
set_layout_manager(layout_manager: (import("@girs/gtk-4.0").default.LayoutManager | null)): void;
|
|
581
545
|
set_limit_events(limit_events: boolean): void;
|
|
582
546
|
set_margin_bottom(margin: number): void;
|
|
583
547
|
set_margin_end(margin: number): void;
|
|
@@ -591,8 +555,8 @@ export declare const IFrameWidget: {
|
|
|
591
555
|
set_sensitive(sensitive: boolean): void;
|
|
592
556
|
set_size_request(width: number, height: number): void;
|
|
593
557
|
set_state_flags(flags: import("@girs/gtk-4.0").default.StateFlags, clear: boolean): void;
|
|
594
|
-
set_tooltip_markup(markup
|
|
595
|
-
set_tooltip_text(text
|
|
558
|
+
set_tooltip_markup(markup: (string | null)): void;
|
|
559
|
+
set_tooltip_text(text: (string | null)): void;
|
|
596
560
|
set_valign(align: import("@girs/gtk-4.0").default.Align): void;
|
|
597
561
|
set_vexpand(expand: boolean): void;
|
|
598
562
|
set_vexpand_set(set: boolean): void;
|
|
@@ -608,6 +572,41 @@ export declare const IFrameWidget: {
|
|
|
608
572
|
unrealize(): void;
|
|
609
573
|
unset_state_flags(flags: import("@girs/gtk-4.0").default.StateFlags): void;
|
|
610
574
|
[Symbol.iterator]: () => IterableIterator<import("@girs/gtk-4.0").default.Widget>;
|
|
575
|
+
vfunc_constructed(): void;
|
|
576
|
+
vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: GObject.ParamSpec): void;
|
|
577
|
+
vfunc_dispose(): void;
|
|
578
|
+
vfunc_finalize(): void;
|
|
579
|
+
vfunc_get_property(property_id: number, value: unknown, pspec: GObject.ParamSpec): void;
|
|
580
|
+
vfunc_notify(pspec: GObject.ParamSpec): void;
|
|
581
|
+
vfunc_set_property(property_id: number, value: unknown, pspec: GObject.ParamSpec): void;
|
|
582
|
+
bind_property(source_property: string, target: GObject.Object, target_property: string, flags: GObject.BindingFlags): GObject.Binding;
|
|
583
|
+
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;
|
|
584
|
+
force_floating(): void;
|
|
585
|
+
freeze_notify(): void;
|
|
586
|
+
get_data(key: string): (any | null);
|
|
587
|
+
get_property(property_name: string, value: (GObject.Value | any)): any;
|
|
588
|
+
get_qdata(quark: import("@girs/glib-2.0").default.Quark): (any | null);
|
|
589
|
+
getv(names: string[], values: (GObject.Value | any)[]): void;
|
|
590
|
+
is_floating(): boolean;
|
|
591
|
+
notify(property_name: string): void;
|
|
592
|
+
notify_by_pspec(pspec: GObject.ParamSpec): void;
|
|
593
|
+
ref(): GObject.Object;
|
|
594
|
+
ref_sink(): GObject.Object;
|
|
595
|
+
run_dispose(): void;
|
|
596
|
+
set_data(key: string, data: (any | null)): void;
|
|
597
|
+
set_property(property_name: string, value: (GObject.Value | any)): void;
|
|
598
|
+
steal_data(key: string): (any | null);
|
|
599
|
+
steal_qdata(quark: import("@girs/glib-2.0").default.Quark): (any | null);
|
|
600
|
+
thaw_notify(): void;
|
|
601
|
+
unref(): void;
|
|
602
|
+
watch_closure(closure: GObject.Closure): void;
|
|
603
|
+
disconnect(id: number): void;
|
|
604
|
+
set(properties: {
|
|
605
|
+
[key: string]: any;
|
|
606
|
+
}): void;
|
|
607
|
+
block_signal_handler(id: number): void;
|
|
608
|
+
unblock_signal_handler(id: number): void;
|
|
609
|
+
stop_emission_by_name(detailedName: string): void;
|
|
611
610
|
};
|
|
612
611
|
$gtype: GObject.GType<WebKit.WebView>;
|
|
613
612
|
"new"(): WebKit.WebView;
|
|
@@ -615,12 +614,12 @@ export declare const IFrameWidget: {
|
|
|
615
614
|
set_default_direction(dir: import("@girs/gtk-4.0").default.TextDirection): void;
|
|
616
615
|
add_shortcut(shortcut: import("@girs/gtk-4.0").default.Shortcut): void;
|
|
617
616
|
bind_template_callback_full(callback_name: string, callback_symbol: GObject.Callback): void;
|
|
618
|
-
bind_template_child_full(name: string, internal_child: boolean, struct_offset: bigint | number): void;
|
|
617
|
+
bind_template_child_full(name: string, internal_child: boolean, struct_offset: (bigint | number)): void;
|
|
619
618
|
get_accessible_role(): import("@girs/gtk-4.0").default.AccessibleRole;
|
|
620
619
|
get_activate_signal(): number;
|
|
621
620
|
get_css_name(): string;
|
|
622
621
|
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;
|
|
622
|
+
install_action(action_name: string, parameter_type: (string | null), activate: import("@girs/gtk-4.0").default.WidgetActionActivateFunc): void;
|
|
624
623
|
install_property_action(action_name: string, property_name: string): void;
|
|
625
624
|
query_action(index_: number): [boolean, GObject.GType, string, import("@girs/glib-2.0").default.VariantType | null, string];
|
|
626
625
|
set_accessible_role(accessible_role: import("@girs/gtk-4.0").default.AccessibleRole): void;
|
|
@@ -628,11 +627,11 @@ export declare const IFrameWidget: {
|
|
|
628
627
|
set_activate_signal_from_name(signal_name: string): void;
|
|
629
628
|
set_css_name(name: string): void;
|
|
630
629
|
set_layout_manager_type(type: GObject.GType): void;
|
|
631
|
-
set_template(template_bytes: import("@girs/glib-2.0").default.Bytes | Uint8Array): void;
|
|
630
|
+
set_template(template_bytes: (import("@girs/glib-2.0").default.Bytes | Uint8Array)): void;
|
|
632
631
|
set_template_from_resource(resource_name: string): void;
|
|
633
632
|
set_template_scope(scope: import("@girs/gtk-4.0").default.BuilderScope): void;
|
|
634
633
|
newv(object_type: GObject.GType, parameters: GObject.Parameter[]): GObject.Object;
|
|
635
|
-
compat_control(what: bigint | number, data
|
|
634
|
+
compat_control(what: (bigint | number), data: (any | null)): number;
|
|
636
635
|
interface_find_property(g_iface: GObject.TypeInterface, property_name: string): GObject.ParamSpec;
|
|
637
636
|
interface_install_property(g_iface: GObject.TypeInterface, pspec: GObject.ParamSpec): void;
|
|
638
637
|
interface_list_properties(g_iface: GObject.TypeInterface): GObject.ParamSpec[];
|
|
@@ -643,4 +642,4 @@ export declare const IFrameWidget: {
|
|
|
643
642
|
override_property(property_id: number, name: string): void;
|
|
644
643
|
_classInit(klass: any): any;
|
|
645
644
|
};
|
|
646
|
-
export type
|
|
645
|
+
export type IFrameBridge = InstanceType<typeof IFrameBridge>;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { HTMLIFrameElement } from './html-iframe-element.js';
|
|
2
|
-
export {
|
|
2
|
+
export { IFrameBridge } from './iframe-bridge.js';
|
|
3
3
|
export { IFrameWindowProxy } from './iframe-window-proxy.js';
|
|
4
4
|
export { MessageBridge } from './message-bridge.js';
|
|
5
|
-
export type {
|
|
5
|
+
export type { IFrameBridgeOptions, IFrameReadyCallback, IFrameMessageData } from './types/index.js';
|
|
@@ -20,7 +20,7 @@ export declare class MessageBridge {
|
|
|
20
20
|
constructor(webView: WebKit.WebView);
|
|
21
21
|
/** Connect the IFrameWindowProxy that will receive messages from the WebView */
|
|
22
22
|
setWindowProxy(proxy: IFrameWindowProxy): void;
|
|
23
|
-
/** Update current URI (called by
|
|
23
|
+
/** Update current URI (called by IFrameBridge on load-changed) */
|
|
24
24
|
updateUri(uri: string): void;
|
|
25
25
|
/** Get current location info for the IFrameWindowProxy */
|
|
26
26
|
getLocation(): {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/** Options passed to
|
|
2
|
-
export interface
|
|
1
|
+
/** Options passed to IFrameBridge constructor */
|
|
2
|
+
export interface IFrameBridgeOptions {
|
|
3
3
|
/** Enable developer extras (Web Inspector). Default: true */
|
|
4
4
|
enableDeveloperExtras?: boolean;
|
|
5
5
|
/** Enable JavaScript execution in the WebView. Default: true */
|
|
@@ -11,5 +11,5 @@ export interface IFrameMessageData {
|
|
|
11
11
|
targetOrigin: string;
|
|
12
12
|
origin: string;
|
|
13
13
|
}
|
|
14
|
-
/** Callback for when the
|
|
14
|
+
/** Callback for when the IFrameBridge is ready */
|
|
15
15
|
export type IFrameReadyCallback = (iframe: globalThis.HTMLIFrameElement) => void;
|