Gjsify LogoGjsify Logo

Hierarchy

Index

Constructors

Properties

Methods

Constructors

Properties

allow_file_access_from_file_urls: boolean

Whether file access is allowed from file URLs. By default, when something is loaded in a #WebKitWebView using a file URI, cross origin requests to other file resources are not allowed. This setting allows you to change that behaviour, so that it would be possible to do a XMLHttpRequest of a local file, for example.

allow_modal_dialogs: boolean

Determine whether it's allowed to create and run modal dialogs from a #WebKitWebView through JavaScript with window.showModalDialog. If it's set to %FALSE, the associated #WebKitWebView won't be able to create new modal dialogs, so not even the #WebKitWebView::create signal will be emitted.

allow_top_navigation_to_data_urls: boolean

Whether or not the top frame is allowed to navigate to data URLs. It is disabled by default due to the risk it poses when loading untrusted URLs, with data URLs being used in scamming and phishing attacks. In contrast, a scenario where it could be enabled could be an app that embeds a WebView and you have control of the pages being show instead of a generic browser.

allow_universal_access_from_file_urls: boolean

Whether or not JavaScript running in the context of a file scheme URL should be allowed to access content from any origin. By default, when something is loaded in a #WebKitWebView using a file scheme URL, access to the local file system and arbitrary local storage is not allowed. This setting allows you to change that behaviour, so that it would be possible to use local storage, for example.

auto_load_images: boolean

Determines whether images should be automatically loaded or not. On devices where network bandwidth is of concern, it might be useful to turn this property off.

cursive_font_family: string

The font family used as the default for content using a cursive font.

default_charset: string

The default text charset used when interpreting content with an unspecified charset.

default_font_family: string

The font family to use as the default for content that does not specify a font.

default_font_size: number

The default font size in pixels to use for content displayed if no font size is specified.

default_monospace_font_size: number

The default font size in pixels to use for content displayed in monospace font if no font size is specified.

draw_compositing_indicators: boolean

Whether to draw compositing borders and repaint counters on layers drawn with accelerated compositing. This is useful for debugging issues related to web content that is composited with the GPU.

enable_accelerated_2d_canvas: boolean

Enable or disable accelerated 2D canvas. Accelerated 2D canvas is only available if WebKit was compiled with a version of Cairo including the unstable CairoGL API. When accelerated 2D canvas is enabled, WebKit may render some 2D canvas content using hardware accelerated drawing operations.

enable_back_forward_navigation_gestures: boolean

Enable or disable horizontal swipe gesture for back-forward navigation.

enable_caret_browsing: boolean

Whether to enable accessibility enhanced keyboard navigation.

enable_developer_extras: boolean

Determines whether or not developer tools, such as the Web Inspector, are enabled.

enable_dns_prefetching: boolean

Determines whether or not to prefetch domain names. DNS prefetching attempts to resolve domain names before a user tries to follow a link.

enable_encrypted_media: boolean

Enable or disable support for Encrypted Media API on pages. EncryptedMedia is an experimental JavaScript API for playing encrypted media in HTML. This property will only work as intended if the EncryptedMedia feature is enabled at build time with the ENABLE_ENCRYPTED_MEDIA flag.

enable_frame_flattening: boolean

Whether to enable the frame flattening. With this setting each subframe is expanded to its contents, which will flatten all the frames to become one scrollable page. On touch devices scrollable subframes on a page can result in a confusing user experience.

enable_fullscreen: boolean

Whether to enable the Javascript Fullscreen API. The API allows any HTML element to request fullscreen display. See also the current draft of the spec: http://www.w3.org/TR/fullscreen/

enable_html5_database: boolean

Whether to enable HTML5 client-side SQL database support (IndexedDB).

enable_html5_local_storage: boolean

Whether to enable HTML5 local storage support. Local storage provides simple synchronous storage access.

HTML5 local storage specification is available at http://dev.w3.org/html5/webstorage/.

enable_hyperlink_auditing: boolean

Determines whether or not hyperlink auditing is enabled.

enable_java: boolean

Determines whether or not Java is enabled on the page.

enable_javascript: boolean

Determines whether or not JavaScript executes within a page.

enable_javascript_markup: boolean

Determines whether or not JavaScript markup is allowed in document. When this setting is disabled, all JavaScript-related elements and attributes are removed from the document during parsing. Note that executing JavaScript is still allowed if #WebKitSettings:enable-javascript is %TRUE.

enable_media: boolean

Enable or disable support for media playback on pages. This setting is enabled by default. Disabling it means <audio>, <track> and <video> elements will have playback support disabled.

enable_media_capabilities: boolean

Enable or disable support for MediaCapabilities on pages. This specification intends to provide APIs to allow websites to make an optimal decision when picking media content for the user. The APIs will expose information about the decoding and encoding capabilities for a given format but also output capabilities to find the best match based on the device’s display.

enable_media_stream: boolean

Enable or disable support for MediaStream on pages. MediaStream is an experimental proposal for allowing web pages to access audio and video devices for capture.

enable_mediasource: boolean

Enable or disable support for MediaSource on pages. MediaSource extends HTMLMediaElement to allow JavaScript to generate media streams for playback.

enable_mock_capture_devices: boolean

Enable or disable the Mock Capture Devices. Those are fake Microphone and Camera devices to be used as MediaStream sources.

enable_offline_web_application_cache: boolean

Whether to enable HTML5 offline web application cache support. Offline web application cache allows web applications to run even when the user is not connected to the network.

HTML5 offline web application specification is available at http://dev.w3.org/html5/spec/offline.html.

enable_page_cache: boolean

Enable or disable the page cache. Disabling the page cache is generally only useful for special circumstances like low-memory scenarios or special purpose applications like static HTML viewers. This setting only controls the Page Cache, this cache is different than the disk-based or memory-based traditional resource caches, its point is to make going back and forth between pages much faster. For details about the different types of caches and their purposes see: http://webkit.org/blog/427/webkit-page-cache-i-the-basics/

enable_plugins: boolean

Determines whether or not plugins on the page are enabled.

enable_private_browsing: boolean

Determines whether or not private browsing is enabled. Private browsing will disable history, cache and form auto-fill for any pages visited.

enable_resizable_text_areas: boolean

Determines whether or not text areas can be resized.

enable_site_specific_quirks: boolean

Whether to turn on site-specific quirks. Turning this on will tell WebKit to use some site-specific workarounds for better web compatibility. For example, older versions of MediaWiki will incorrectly send to WebKit a CSS file with KHTML workarounds. By turning on site-specific quirks, WebKit will special-case this and other cases to make some specific sites work.

enable_smooth_scrolling: boolean

Enable or disable smooth scrolling.

enable_spatial_navigation: boolean

Whether to enable Spatial Navigation. This feature consists in the ability to navigate between focusable elements in a Web page, such as hyperlinks and form controls, by using Left, Right, Up and Down arrow keys. For example, if an user presses the Right key, heuristics determine whether there is an element they might be trying to reach towards the right, and if there are multiple elements, which element they probably wants.

enable_tabs_to_links: boolean

Determines whether the tab key cycles through the elements on the page. When this setting is enabled, users will be able to focus the next element in the page by pressing the tab key. If the selected element is editable, then pressing tab key will insert the tab character.

enable_webaudio: boolean

Enable or disable support for WebAudio on pages. WebAudio is an API for processing and synthesizing audio in web applications

enable_webgl: boolean

Enable or disable support for WebGL on pages. WebGL enables web content to use an API based on OpenGL ES 2.0.

enable_write_console_messages_to_stdout: boolean

Enable or disable writing console messages to stdout. These are messages sent to the console with console.log and related methods.

enable_xss_auditor: boolean

Whether to enable the XSS auditor. This feature filters some kinds of reflective XSS attacks on vulnerable web sites.

fantasy_font_family: string

The font family used as the default for content using a fantasy font.

g_type_instance: TypeInstance
hardware_acceleration_policy: WebKit2.HardwareAccelerationPolicy

The #WebKitHardwareAccelerationPolicy to decide how to enable and disable hardware acceleration. The default value %WEBKIT_HARDWARE_ACCELERATION_POLICY_ON_DEMAND enables the hardware acceleration when the web contents request it. It's possible to enforce hardware acceleration to be always enabled by using %WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS. And it's also possible to disable it completely using %WEBKIT_HARDWARE_ACCELERATION_POLICY_NEVER. Note that disabling hardware acceleration might cause some websites to not render correctly or consume more CPU.

Note that changing this setting might not be possible if hardware acceleration is not supported by the hardware or the system. In that case you can get the value to know the actual policy being used, but changing the setting will not have any effect.

javascript_can_access_clipboard: boolean

Whether JavaScript can access the clipboard. The default value is %FALSE. If set to %TRUE, document.execCommand() allows cut, copy and paste commands.

javascript_can_open_windows_automatically: boolean

Whether JavaScript can open popup windows automatically without user intervention.

load_icons_ignoring_image_load_setting: boolean

Determines whether a site can load favicons irrespective of the value of #WebKitSettings:auto-load-images.

media_content_types_requiring_hardware_support: string

List of media content types requiring hardware support, split by semicolons (:). For example: 'video/webm; codecs="vp*":video/mp4; codecs="avc*":video/* codecs="av1*"'.

media_playback_allows_inline: boolean

Whether media playback is full-screen only or inline playback is allowed. This is %TRUE by default, so media playback can be inline. Setting it to %FALSE allows specifying that media playback should be always fullscreen.

media_playback_requires_user_gesture: boolean

Whether a user gesture (such as clicking the play button) would be required to start media playback or load media. This is off by default, so media playback could start automatically. Setting it on requires a gesture by the user to start playback, or to load the media.

minimum_font_size: number

The minimum font size in pixels used to display text. This setting controls the absolute smallest size. Values other than 0 can potentially break page layouts.

monospace_font_family: string

The font family used as the default for content using a monospace font.

parent_instance: GObject.Object
pictograph_font_family: string

The font family used as the default for content using a pictograph font.

print_backgrounds: boolean

Whether background images should be drawn during printing.

sans_serif_font_family: string

The font family used as the default for content using a sans-serif font.

serif_font_family: string

The font family used as the default for content using a serif font.

user_agent: string

The user-agent string used by WebKit. Unusual user-agent strings may cause web content to render incorrectly or fail to run, as many web pages are written to parse the user-agent strings of only the most popular browsers. Therefore, it's typically better to not completely override the standard user-agent, but to use webkit_settings_set_user_agent_with_application_details() instead.

If this property is set to the empty string or %NULL, it will revert to the standard user-agent.

zoom_text_only: boolean

Whether #WebKitWebView:zoom-level affects only the text of the page or all the contents. Other contents containing text like form controls will be also affected by zoom factor when this property is enabled.

name: string

Methods

  • Creates a binding between source_property on source and target_property on target.

    Whenever the source_property is changed the target_property is updated using the same value. For instance:

      g_object_bind_property (action, "active", widget, "sensitive", 0);
    

    Will result in the "sensitive" property of the widget #GObject instance to be updated with the same value of the "active" property of the action #GObject instance.

    If flags contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual: if target_property on target changes then the source_property on source will be updated as well.

    The binding will automatically be removed when either the source or the target instances are finalized. To remove the binding without affecting the source and the target you can just call g_object_unref() on the returned #GBinding instance.

    Removing the binding by calling g_object_unref() on it must only be done if the binding, source and target are only used from a single thread and it is clear that both source and target outlive the binding. Especially it is not safe to rely on this if the binding, source or target can be finalized from different threads. Keep another reference to the binding and use g_binding_unbind() instead to be on the safe side.

    A #GObject can have multiple bindings.

    Parameters

    • source_property: string

      the property on source to bind

    • target: GObject.Object

      the target #GObject

    • target_property: string

      the property on target to bind

    • flags: BindingFlags

      flags to pass to #GBinding

    Returns Binding

  • Creates a binding between source_property on source and target_property on target, allowing you to set the transformation functions to be used by the binding.

    This function is the language bindings friendly version of g_object_bind_property_full(), using #GClosures instead of function pointers.

    Parameters

    • source_property: string

      the property on source to bind

    • target: GObject.Object

      the target #GObject

    • target_property: string

      the property on target to bind

    • flags: BindingFlags

      flags to pass to #GBinding

    • transform_to: TClosure<any, any>

      a #GClosure wrapping the transformation function from the source to the target, or %NULL to use the default

    • transform_from: TClosure<any, any>

      a #GClosure wrapping the transformation function from the target to the source, or %NULL to use the default

    Returns Binding

  • connect(sigName: "notify::allow-file-access-from-file-urls", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::allow-modal-dialogs", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::allow-top-navigation-to-data-urls", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::allow-universal-access-from-file-urls", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::auto-load-images", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::cursive-font-family", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::default-charset", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::default-font-family", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::default-font-size", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::default-monospace-font-size", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::draw-compositing-indicators", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-accelerated-2d-canvas", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-back-forward-navigation-gestures", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-caret-browsing", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-developer-extras", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-dns-prefetching", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-encrypted-media", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-frame-flattening", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-fullscreen", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-html5-database", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-html5-local-storage", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-hyperlink-auditing", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-java", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-javascript", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-javascript-markup", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-media", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-media-capabilities", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-media-stream", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-mediasource", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-mock-capture-devices", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-offline-web-application-cache", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-page-cache", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-plugins", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-private-browsing", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-resizable-text-areas", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-site-specific-quirks", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-smooth-scrolling", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-spatial-navigation", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-tabs-to-links", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-webaudio", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-webgl", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-write-console-messages-to-stdout", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::enable-xss-auditor", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::fantasy-font-family", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::hardware-acceleration-policy", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::javascript-can-access-clipboard", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::javascript-can-open-windows-automatically", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::load-icons-ignoring-image-load-setting", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::media-content-types-requiring-hardware-support", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::media-playback-allows-inline", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::media-playback-requires-user-gesture", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::minimum-font-size", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::monospace-font-family", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::pictograph-font-family", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::print-backgrounds", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::sans-serif-font-family", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::serif-font-family", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::user-agent", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: "notify::zoom-text-only", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect(sigName: string, callback: ((...args: any[]) => void)): number
  • connect_after(sigName: "notify::allow-file-access-from-file-urls", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::allow-modal-dialogs", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::allow-top-navigation-to-data-urls", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::allow-universal-access-from-file-urls", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::auto-load-images", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::cursive-font-family", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::default-charset", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::default-font-family", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::default-font-size", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::default-monospace-font-size", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::draw-compositing-indicators", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-accelerated-2d-canvas", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-back-forward-navigation-gestures", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-caret-browsing", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-developer-extras", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-dns-prefetching", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-encrypted-media", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-frame-flattening", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-fullscreen", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-html5-database", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-html5-local-storage", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-hyperlink-auditing", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-java", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-javascript", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-javascript-markup", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-media", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-media-capabilities", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-media-stream", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-mediasource", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-mock-capture-devices", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-offline-web-application-cache", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-page-cache", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-plugins", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-private-browsing", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-resizable-text-areas", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-site-specific-quirks", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-smooth-scrolling", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-spatial-navigation", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-tabs-to-links", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-webaudio", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-webgl", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-write-console-messages-to-stdout", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::enable-xss-auditor", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::fantasy-font-family", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::hardware-acceleration-policy", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::javascript-can-access-clipboard", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::javascript-can-open-windows-automatically", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::load-icons-ignoring-image-load-setting", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::media-content-types-requiring-hardware-support", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::media-playback-allows-inline", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::media-playback-requires-user-gesture", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::minimum-font-size", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::monospace-font-family", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::pictograph-font-family", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::print-backgrounds", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::sans-serif-font-family", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::serif-font-family", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::user-agent", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: "notify::zoom-text-only", callback: (($obj: WebKit2.Settings, pspec: ParamSpec) => void)): number
  • connect_after(sigName: string, callback: ((...args: any[]) => void)): number
  • disconnect(id: number): void
  • emit(sigName: "notify::allow-file-access-from-file-urls", ...args: any[]): void
  • emit(sigName: "notify::allow-modal-dialogs", ...args: any[]): void
  • emit(sigName: "notify::allow-top-navigation-to-data-urls", ...args: any[]): void
  • emit(sigName: "notify::allow-universal-access-from-file-urls", ...args: any[]): void
  • emit(sigName: "notify::auto-load-images", ...args: any[]): void
  • emit(sigName: "notify::cursive-font-family", ...args: any[]): void
  • emit(sigName: "notify::default-charset", ...args: any[]): void
  • emit(sigName: "notify::default-font-family", ...args: any[]): void
  • emit(sigName: "notify::default-font-size", ...args: any[]): void
  • emit(sigName: "notify::default-monospace-font-size", ...args: any[]): void
  • emit(sigName: "notify::draw-compositing-indicators", ...args: any[]): void
  • emit(sigName: "notify::enable-accelerated-2d-canvas", ...args: any[]): void
  • emit(sigName: "notify::enable-back-forward-navigation-gestures", ...args: any[]): void
  • emit(sigName: "notify::enable-caret-browsing", ...args: any[]): void
  • emit(sigName: "notify::enable-developer-extras", ...args: any[]): void
  • emit(sigName: "notify::enable-dns-prefetching", ...args: any[]): void
  • emit(sigName: "notify::enable-encrypted-media", ...args: any[]): void
  • emit(sigName: "notify::enable-frame-flattening", ...args: any[]): void
  • emit(sigName: "notify::enable-fullscreen", ...args: any[]): void
  • emit(sigName: "notify::enable-html5-database", ...args: any[]): void
  • emit(sigName: "notify::enable-html5-local-storage", ...args: any[]): void
  • emit(sigName: "notify::enable-hyperlink-auditing", ...args: any[]): void
  • emit(sigName: "notify::enable-java", ...args: any[]): void
  • emit(sigName: "notify::enable-javascript", ...args: any[]): void
  • emit(sigName: "notify::enable-javascript-markup", ...args: any[]): void
  • emit(sigName: "notify::enable-media", ...args: any[]): void
  • emit(sigName: "notify::enable-media-capabilities", ...args: any[]): void
  • emit(sigName: "notify::enable-media-stream", ...args: any[]): void
  • emit(sigName: "notify::enable-mediasource", ...args: any[]): void
  • emit(sigName: "notify::enable-mock-capture-devices", ...args: any[]): void
  • emit(sigName: "notify::enable-offline-web-application-cache", ...args: any[]): void
  • emit(sigName: "notify::enable-page-cache", ...args: any[]): void
  • emit(sigName: "notify::enable-plugins", ...args: any[]): void
  • emit(sigName: "notify::enable-private-browsing", ...args: any[]): void
  • emit(sigName: "notify::enable-resizable-text-areas", ...args: any[]): void
  • emit(sigName: "notify::enable-site-specific-quirks", ...args: any[]): void
  • emit(sigName: "notify::enable-smooth-scrolling", ...args: any[]): void
  • emit(sigName: "notify::enable-spatial-navigation", ...args: any[]): void
  • emit(sigName: "notify::enable-tabs-to-links", ...args: any[]): void
  • emit(sigName: "notify::enable-webaudio", ...args: any[]): void
  • emit(sigName: "notify::enable-webgl", ...args: any[]): void
  • emit(sigName: "notify::enable-write-console-messages-to-stdout", ...args: any[]): void
  • emit(sigName: "notify::enable-xss-auditor", ...args: any[]): void
  • emit(sigName: "notify::fantasy-font-family", ...args: any[]): void
  • emit(sigName: "notify::hardware-acceleration-policy", ...args: any[]): void
  • emit(sigName: "notify::javascript-can-access-clipboard", ...args: any[]): void
  • emit(sigName: "notify::javascript-can-open-windows-automatically", ...args: any[]): void
  • emit(sigName: "notify::load-icons-ignoring-image-load-setting", ...args: any[]): void
  • emit(sigName: "notify::media-content-types-requiring-hardware-support", ...args: any[]): void
  • emit(sigName: "notify::media-playback-allows-inline", ...args: any[]): void
  • emit(sigName: "notify::media-playback-requires-user-gesture", ...args: any[]): void
  • emit(sigName: "notify::minimum-font-size", ...args: any[]): void
  • emit(sigName: "notify::monospace-font-family", ...args: any[]): void
  • emit(sigName: "notify::pictograph-font-family", ...args: any[]): void
  • emit(sigName: "notify::print-backgrounds", ...args: any[]): void
  • emit(sigName: "notify::sans-serif-font-family", ...args: any[]): void
  • emit(sigName: "notify::serif-font-family", ...args: any[]): void
  • emit(sigName: "notify::user-agent", ...args: any[]): void
  • emit(sigName: "notify::zoom-text-only", ...args: any[]): void
  • emit(sigName: string, ...args: any[]): void
  • force_floating(): void
  • This function is intended for #GObject implementations to re-enforce a [floating][floating-ref] object reference. Doing this is seldom required: all #GInitiallyUnowneds are created with a floating reference which usually just needs to be sunken by calling g_object_ref_sink().

    Returns void

  • freeze_notify(): void
  • Increases the freeze count on object. If the freeze count is non-zero, the emission of "notify" signals on object is stopped. The signals are queued until the freeze count is decreased to zero. Duplicate notifications are squashed so that at most one #GObject::notify signal is emitted for each property modified while the object is frozen.

    This is necessary for accessors that modify multiple properties to prevent premature notification while the object is still being modified.

    Returns void

  • get_allow_file_access_from_file_urls(): boolean
  • get_allow_modal_dialogs(): boolean
  • get_allow_top_navigation_to_data_urls(): boolean
  • get_allow_universal_access_from_file_urls(): boolean
  • get_auto_load_images(): boolean
  • get_cursive_font_family(): string
  • get_data(key?: string): object
  • Gets a named field from the objects table of associations (see g_object_set_data()).

    Parameters

    • Optional key: string

      name of the key for that association

    Returns object

  • get_default_charset(): string
  • get_default_font_family(): string
  • get_default_font_size(): number
  • get_default_monospace_font_size(): number
  • get_draw_compositing_indicators(): boolean
  • get_enable_accelerated_2d_canvas(): boolean
  • get_enable_back_forward_navigation_gestures(): boolean
  • get_enable_caret_browsing(): boolean
  • get_enable_developer_extras(): boolean
  • get_enable_dns_prefetching(): boolean
  • get_enable_encrypted_media(): boolean
  • get_enable_frame_flattening(): boolean
  • get_enable_fullscreen(): boolean
  • get_enable_html5_database(): boolean
  • get_enable_html5_local_storage(): boolean
  • get_enable_hyperlink_auditing(): boolean
  • get_enable_java(): boolean
  • get_enable_javascript(): boolean
  • get_enable_javascript_markup(): boolean
  • get_enable_media(): boolean
  • get_enable_media_capabilities(): boolean
  • get_enable_media_stream(): boolean
  • get_enable_mediasource(): boolean
  • get_enable_mock_capture_devices(): boolean
  • get_enable_offline_web_application_cache(): boolean
  • get_enable_page_cache(): boolean
  • get_enable_plugins(): boolean
  • get_enable_private_browsing(): boolean
  • get_enable_resizable_text_areas(): boolean
  • get_enable_site_specific_quirks(): boolean
  • get_enable_smooth_scrolling(): boolean
  • get_enable_spatial_navigation(): boolean
  • get_enable_tabs_to_links(): boolean
  • get_enable_webaudio(): boolean
  • get_enable_webgl(): boolean
  • get_enable_write_console_messages_to_stdout(): boolean
  • get_enable_xss_auditor(): boolean
  • get_fantasy_font_family(): string
  • get_javascript_can_access_clipboard(): boolean
  • get_javascript_can_open_windows_automatically(): boolean
  • get_load_icons_ignoring_image_load_setting(): boolean
  • get_media_content_types_requiring_hardware_support(): string
  • get_media_playback_allows_inline(): boolean
  • get_media_playback_requires_user_gesture(): boolean
  • get_minimum_font_size(): number
  • get_monospace_font_family(): string
  • get_pictograph_font_family(): string
  • get_print_backgrounds(): boolean
  • get_property(property_name?: string, value?: any): void
  • Gets a property of an object.

    The value can be:

    • an empty #GValue initialized by %G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
    • a #GValue initialized with the expected type of the property
    • a #GValue initialized with a type to which the expected type of the property can be transformed

    In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling g_value_unset().

    Note that g_object_get_property() is really intended for language bindings, g_object_get() is much more convenient for C programming.

    Parameters

    • Optional property_name: string

      the name of the property to get

    • Optional value: any

      return location for the property value

    Returns void

  • get_qdata(quark: number): object
  • get_sans_serif_font_family(): string
  • get_serif_font_family(): string
  • get_user_agent(): string
  • get_zoom_text_only(): boolean
  • getv(names: string[], values: any[]): void
  • Gets n_properties properties for an object. Obtained properties will be set to values. All properties must be valid. Warnings will be emitted and undefined behaviour may result if invalid properties are passed in.

    Parameters

    • names: string[]

      the names of each property to get

    • values: any[]

      the values of each property to get

    Returns void

  • is_floating(): boolean
  • notify(property_name: string): void
  • Emits a "notify" signal for the property property_name on object.

    When possible, eg. when signaling a property change from within the class that registered the property, you should use g_object_notify_by_pspec() instead.

    Note that emission of the notify signal may be blocked with g_object_freeze_notify(). In this case, the signal emissions are queued and will be emitted (in reverse order) when g_object_thaw_notify() is called.

    Parameters

    • property_name: string

      the name of a property installed on the class of object.

    Returns void

  • Emits a "notify" signal for the property specified by pspec on object.

    This function omits the property name lookup, hence it is faster than g_object_notify().

    One way to avoid using g_object_notify() from within the class that registered the properties, and using g_object_notify_by_pspec() instead, is to store the GParamSpec used with g_object_class_install_property() inside a static array, e.g.:

      enum
    {
    PROP_0,
    PROP_FOO,
    PROP_LAST
    };

    static GParamSpec *properties[PROP_LAST];

    static void
    my_object_class_init (MyObjectClass *klass)
    {
    properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
    0, 100,
    50,
    G_PARAM_READWRITE);
    g_object_class_install_property (gobject_class,
    PROP_FOO,
    properties[PROP_FOO]);
    }

    and then notify a change on the "foo" property with:

      g_object_notify_by_pspec (self, properties[PROP_FOO]);
    

    Parameters

    • pspec: ParamSpec

      the #GParamSpec of a property installed on the class of object.

    Returns void

  • Increases the reference count of object.

    Since GLib 2.56, if GLIB_VERSION_MAX_ALLOWED is 2.56 or greater, the type of object will be propagated to the return type (using the GCC typeof() extension), so any casting the caller needs to do on the return type must be explicit.

    Returns GObject.Object

  • Increase the reference count of object, and possibly remove the [floating][floating-ref] reference, if object has a floating reference.

    In other words, if the object is floating, then this call "assumes ownership" of the floating reference, converting it to a normal reference by clearing the floating flag while leaving the reference count unchanged. If the object is not floating, then this call adds a new normal reference increasing the reference count by one.

    Since GLib 2.56, the type of object will be propagated to the return type under the same conditions as for g_object_ref().

    Returns GObject.Object

  • run_dispose(): void
  • Releases all references to other objects. This can be used to break reference cycles.

    This function should only be called from object system implementations.

    Returns void

  • set_allow_file_access_from_file_urls(allowed: boolean): void
  • Set the #WebKitSettings:allow-file-access-from-file-urls property.

    Parameters

    • allowed: boolean

      Value to be set

    Returns void

  • set_allow_modal_dialogs(allowed: boolean): void
  • set_allow_top_navigation_to_data_urls(allowed: boolean): void
  • Set the #WebKitSettings:allow-top-navigation-to-data-urls property.

    Parameters

    • allowed: boolean

      Value to be set

    Returns void

  • set_allow_universal_access_from_file_urls(allowed: boolean): void
  • Set the #WebKitSettings:allow-universal-access-from-file-urls property.

    Parameters

    • allowed: boolean

      Value to be set

    Returns void

  • set_auto_load_images(enabled: boolean): void
  • set_cursive_font_family(cursive_font_family: string): void
  • Set the #WebKitSettings:cursive-font-family property.

    Parameters

    • cursive_font_family: string

      the new default cursive font family

    Returns void

  • set_data(key: string, data?: object): void
  • Each object carries around a table of associations from strings to pointers. This function lets you set an association.

    If the object already had an association with that name, the old association will be destroyed.

    Internally, the key is converted to a #GQuark using g_quark_from_string(). This means a copy of key is kept permanently (even after object has been finalized) — so it is recommended to only use a small, bounded set of values for key in your program, to avoid the #GQuark storage growing unbounded.

    Parameters

    • key: string

      name of the key

    • Optional data: object

      data to associate with that key

    Returns void

  • set_default_charset(default_charset: string): void
  • Set the #WebKitSettings:default-charset property.

    Parameters

    • default_charset: string

      default charset to be set

    Returns void

  • set_default_font_family(default_font_family: string): void
  • Set the #WebKitSettings:default-font-family property.

    Parameters

    • default_font_family: string

      the new default font family

    Returns void

  • set_default_font_size(font_size: number): void
  • Set the #WebKitSettings:default-font-size property.

    Parameters

    • font_size: number

      default font size to be set in pixels

    Returns void

  • set_default_monospace_font_size(font_size: number): void
  • Set the #WebKitSettings:default-monospace-font-size property.

    Parameters

    • font_size: number

      default monospace font size to be set in pixels

    Returns void

  • set_draw_compositing_indicators(enabled: boolean): void
  • Set the #WebKitSettings:draw-compositing-indicators property.

    Parameters

    • enabled: boolean

      Value to be set

    Returns void

  • set_enable_accelerated_2d_canvas(enabled: boolean): void
  • Set the #WebKitSettings:enable-accelerated-2d-canvas property.

    Parameters

    • enabled: boolean

      Value to be set

    Returns void

  • set_enable_back_forward_navigation_gestures(enabled: boolean): void
  • Set the #WebKitSettings:enable-back-forward-navigation-gestures property.

    Parameters

    • enabled: boolean

      value to be set

    Returns void

  • set_enable_caret_browsing(enabled: boolean): void
  • set_enable_developer_extras(enabled: boolean): void
  • set_enable_dns_prefetching(enabled: boolean): void
  • set_enable_encrypted_media(enabled: boolean): void
  • set_enable_frame_flattening(enabled: boolean): void
  • set_enable_fullscreen(enabled: boolean): void
  • set_enable_html5_database(enabled: boolean): void
  • set_enable_html5_local_storage(enabled: boolean): void
  • Set the #WebKitSettings:enable-html5-local-storage property.

    Parameters

    • enabled: boolean

      Value to be set

    Returns void

  • set_enable_hyperlink_auditing(enabled: boolean): void
  • set_enable_java(enabled: boolean): void
  • set_enable_javascript(enabled: boolean): void
  • set_enable_javascript_markup(enabled: boolean): void
  • set_enable_media(enabled: boolean): void
  • set_enable_media_capabilities(enabled: boolean): void
  • set_enable_media_stream(enabled: boolean): void
  • set_enable_mediasource(enabled: boolean): void
  • set_enable_mock_capture_devices(enabled: boolean): void
  • Set the #WebKitSettings:enable-mock-capture-devices property.

    Parameters

    • enabled: boolean

      Value to be set

    Returns void

  • set_enable_offline_web_application_cache(enabled: boolean): void
  • Set the #WebKitSettings:enable-offline-web-application-cache property.

    Parameters

    • enabled: boolean

      Value to be set

    Returns void

  • set_enable_page_cache(enabled: boolean): void
  • set_enable_plugins(enabled: boolean): void
  • set_enable_private_browsing(enabled: boolean): void
  • set_enable_resizable_text_areas(enabled: boolean): void
  • Set the #WebKitSettings:enable-resizable-text-areas property.

    Parameters

    • enabled: boolean

      Value to be set

    Returns void

  • set_enable_site_specific_quirks(enabled: boolean): void
  • Set the #WebKitSettings:enable-site-specific-quirks property.

    Parameters

    • enabled: boolean

      Value to be set

    Returns void

  • set_enable_smooth_scrolling(enabled: boolean): void
  • set_enable_spatial_navigation(enabled: boolean): void
  • set_enable_tabs_to_links(enabled: boolean): void
  • set_enable_webaudio(enabled: boolean): void
  • set_enable_webgl(enabled: boolean): void
  • set_enable_write_console_messages_to_stdout(enabled: boolean): void
  • Set the #WebKitSettings:enable-write-console-messages-to-stdout property.

    Parameters

    • enabled: boolean

      Value to be set

    Returns void

  • set_enable_xss_auditor(enabled: boolean): void
  • set_fantasy_font_family(fantasy_font_family: string): void
  • Set the #WebKitSettings:fantasy-font-family property.

    Parameters

    • fantasy_font_family: string

      the new default fantasy font family

    Returns void

  • set_javascript_can_access_clipboard(enabled: boolean): void
  • Set the #WebKitSettings:javascript-can-access-clipboard property.

    Parameters

    • enabled: boolean

      Value to be set

    Returns void

  • set_javascript_can_open_windows_automatically(enabled: boolean): void
  • Set the #WebKitSettings:javascript-can-open-windows-automatically property.

    Parameters

    • enabled: boolean

      Value to be set

    Returns void

  • set_load_icons_ignoring_image_load_setting(enabled: boolean): void
  • Set the #WebKitSettings:load-icons-ignoring-image-load-setting property.

    Parameters

    • enabled: boolean

      Value to be set

    Returns void

  • set_media_content_types_requiring_hardware_support(content_types: string): void
  • Set the #WebKitSettings:media-content-types-requiring-hardware-support property.

    Parameters

    • content_types: string

      list of media content types requiring hardware support split by semicolons (:) or %NULL to use the default value.

    Returns void

  • set_media_playback_allows_inline(enabled: boolean): void
  • Set the #WebKitSettings:media-playback-allows-inline property.

    Parameters

    • enabled: boolean

      Value to be set

    Returns void

  • set_media_playback_requires_user_gesture(enabled: boolean): void
  • Set the #WebKitSettings:media-playback-requires-user-gesture property.

    Parameters

    • enabled: boolean

      Value to be set

    Returns void

  • set_minimum_font_size(font_size: number): void
  • Set the #WebKitSettings:minimum-font-size property.

    Parameters

    • font_size: number

      minimum font size to be set in pixels

    Returns void

  • set_monospace_font_family(monospace_font_family: string): void
  • Set the #WebKitSettings:monospace-font-family property.

    Parameters

    • monospace_font_family: string

      the new default monospace font family

    Returns void

  • set_pictograph_font_family(pictograph_font_family: string): void
  • Set the #WebKitSettings:pictograph-font-family property.

    Parameters

    • pictograph_font_family: string

      the new default pictograph font family

    Returns void

  • set_print_backgrounds(print_backgrounds: boolean): void
  • Set the #WebKitSettings:print-backgrounds property.

    Parameters

    • print_backgrounds: boolean

      Value to be set

    Returns void

  • set_property(property_name: string, value?: any): void
  • set_sans_serif_font_family(sans_serif_font_family: string): void
  • Set the #WebKitSettings:sans-serif-font-family property.

    Parameters

    • sans_serif_font_family: string

      the new default sans-serif font family

    Returns void

  • set_serif_font_family(serif_font_family: string): void
  • Set the #WebKitSettings:serif-font-family property.

    Parameters

    • serif_font_family: string

      the new default serif font family

    Returns void

  • set_user_agent(user_agent: string): void
  • Set the #WebKitSettings:user-agent property.

    Parameters

    • user_agent: string

      The new custom user agent string or %NULL to use the default user agent

    Returns void

  • set_user_agent_with_application_details(application_name: string, application_version: string): void
  • Set the #WebKitSettings:user-agent property by appending the application details to the default user agent. If no application name or version is given, the default user agent used will be used. If only the version is given, the default engine version is used with the given application name.

    Parameters

    • application_name: string

      The application name used for the user agent or %NULL to use the default user agent.

    • application_version: string

      The application version for the user agent or %NULL to user the default version.

    Returns void

  • set_zoom_text_only(zoom_text_only: boolean): void
  • steal_data(key?: string): object
  • Remove a specified datum from the object's data associations, without invoking the association's destroy handler.

    Parameters

    • Optional key: string

      name of the key

    Returns object

  • steal_qdata(quark: number): object
  • This function gets back user data pointers stored via g_object_set_qdata() and removes the data from object without invoking its destroy() function (if any was set). Usually, calling this function is only required to update user data pointers with a destroy notifier, for example:

    void
    object_add_to_user_list (GObject *object,
    const gchar *new_string)
    {
    // the quark, naming the object data
    GQuark quark_string_list = g_quark_from_static_string ("my-string-list");
    // retrieve the old string list
    GList *list = g_object_steal_qdata (object, quark_string_list);

    // prepend new string
    list = g_list_prepend (list, g_strdup (new_string));
    // this changed 'list', so we need to set it again
    g_object_set_qdata_full (object, quark_string_list, list, free_string_list);
    }
    static void
    free_string_list (gpointer data)
    {
    GList *node, *list = data;

    for (node = list; node; node = node->next)
    g_free (node->data);
    g_list_free (list);
    }

    Using g_object_get_qdata() in the above example, instead of g_object_steal_qdata() would have left the destroy function set, and thus the partial string list would have been freed upon g_object_set_qdata_full().

    Parameters

    • quark: number

      A #GQuark, naming the user data pointer

    Returns object

  • thaw_notify(): void
  • Reverts the effect of a previous call to g_object_freeze_notify(). The freeze count is decreased on object and when it reaches zero, queued "notify" signals are emitted.

    Duplicate notifications for each property are squashed so that at most one #GObject::notify signal is emitted for each property, in the reverse order in which they have been queued.

    It is an error to call this function when the freeze count is zero.

    Returns void

  • unref(): void
  • Decreases the reference count of object. When its reference count drops to 0, the object is finalized (i.e. its memory is freed).

    If the pointer to the #GObject may be reused in future (for example, if it is an instance variable of another object), it is recommended to clear the pointer to %NULL rather than retain a dangling pointer to a potentially invalid #GObject instance. Use g_clear_object() for this.

    Returns void

  • vfunc_constructed(): void
  • vfunc_dispatch_properties_changed(n_pspecs: number, pspecs: ParamSpec): void
  • vfunc_dispose(): void
  • vfunc_finalize(): void
  • vfunc_get_property(property_id: number, value?: any, pspec?: ParamSpec): void
  • Emits a "notify" signal for the property property_name on object.

    When possible, eg. when signaling a property change from within the class that registered the property, you should use g_object_notify_by_pspec() instead.

    Note that emission of the notify signal may be blocked with g_object_freeze_notify(). In this case, the signal emissions are queued and will be emitted (in reverse order) when g_object_thaw_notify() is called.

    virtual

    Parameters

    Returns void

  • vfunc_set_property(property_id: number, value?: any, pspec?: ParamSpec): void
  • watch_closure(closure: TClosure<any, any>): void
  • This function essentially limits the life time of the closure to the life time of the object. That is, when the object is finalized, the closure is invalidated by calling g_closure_invalidate() on it, in order to prevent invocations of the closure with a finalized (nonexisting) object. Also, g_object_ref() and g_object_unref() are added as marshal guards to the closure, to ensure that an extra reference count is held on object during invocation of the closure. Usually, this function will be called on closures that use this object as closure data.

    Parameters

    • closure: TClosure<any, any>

      #GClosure to watch

    Returns void

  • compat_control(what: number, data: object): number
  • font_size_to_pixels(points: number): number
  • Convert points to the equivalent value in pixels, based on the current screen DPI. Applications can use this function to convert font size values in points to font size values in pixels when setting the font size properties of #WebKitSettings.

    Parameters

    • points: number

      the font size in points to convert to pixels

    Returns number

  • font_size_to_points(pixels: number): number
  • Convert pixels to the equivalent value in points, based on the current screen DPI. Applications can use this function to convert font size values in pixels to font size values in points when getting the font size properties of #WebKitSettings.

    Parameters

    • pixels: number

      the font size in pixels to convert to points

    Returns number

  • Find the #GParamSpec with the given name for an interface. Generally, the interface vtable passed in as g_iface will be the default vtable from g_type_default_interface_ref(), or, if you know the interface has already been loaded, g_type_default_interface_peek().

    Parameters

    • g_iface: TypeInterface

      any interface vtable for the interface, or the default vtable for the interface

    • property_name: string

      name of a property to look up.

    Returns ParamSpec

  • Add a property to an interface; this is only useful for interfaces that are added to GObject-derived types. Adding a property to an interface forces all objects classes with that interface to have a compatible property. The compatible property could be a newly created #GParamSpec, but normally g_object_class_override_property() will be used so that the object class only needs to provide an implementation and inherits the property description, default value, bounds, and so forth from the interface property.

    This function is meant to be called from the interface's default vtable initialization function (the class_init member of #GTypeInfo.) It must not be called after after class_init has been called for any object types implementing this interface.

    If pspec is a floating reference, it will be consumed.

    Parameters

    • g_iface: TypeInterface

      any interface vtable for the interface, or the default vtable for the interface.

    • pspec: ParamSpec

      the #GParamSpec for the new property

    Returns void

  • Lists the properties of an interface.Generally, the interface vtable passed in as g_iface will be the default vtable from g_type_default_interface_ref(), or, if you know the interface has already been loaded, g_type_default_interface_peek().

    Parameters

    • g_iface: TypeInterface

      any interface vtable for the interface, or the default vtable for the interface

    Returns ParamSpec[]

  • Creates a new instance of a #GObject subtype and sets its properties.

    Construction parameters (see %G_PARAM_CONSTRUCT, %G_PARAM_CONSTRUCT_ONLY) which are not explicitly specified are set to their default values.

    Parameters

    • object_type: GType<unknown>

      the type id of the #GObject subtype to instantiate

    • parameters: GObject.Parameter[]

      an array of #GParameter

    Returns GObject.Object

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method