webkit.settings

Module for [Settings] class

Types 3

Control the behaviour of a #WebKitWebView.

#WebKitSettings can be applied to a #WebKitWebView to control text charset, color, font sizes, printing mode, script support, loading of images and various other things on a #WebKitWebView. After creation, a #WebKitSettings object contains default settings.

// Disable JavaScript
WebKitSettings *settings = webkit_web_view_group_get_settings (my_view_group);
webkit_settings_set_enable_javascript (settings, FALSE);

Methods
GType _gType() @property
Settings self()Returns `this`, for use in `with` statements.
SettingsGidBuilder builder()Get builder for [webkit.settings.Settings] Returns: New builder object
bool allowFileAccessFromFileUrls() @propertyGet `allowFileAccessFromFileUrls` property. Returns: Whether file access is allowed from file URLs. By default, when something is loaded in a #WebKitWebView using a file URI, cross origin requests ...
void allowFileAccessFromFileUrls(bool propval) @propertySet `allowFileAccessFromFileUrls` property. Params: propval = Whether file access is allowed from file URLs. By default, when something is loaded in a #WebKitWebView using a file URI, cross origin ...
bool allowModalDialogs() @propertyGet `allowModalDialogs` property. Returns: Determine whether it's allowed to create and run modal dialogs from a #WebKitWebView through JavaScript with <function>window.showModalDialog</function>. ...
void allowModalDialogs(bool propval) @propertySet `allowModalDialogs` property. Params: propval = Determine whether it's allowed to create and run modal dialogs from a #WebKitWebView through JavaScript with <function>window.showModalDialog</fu...
bool allowTopNavigationToDataUrls() @propertyGet `allowTopNavigationToDataUrls` property. Returns: 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 URL...
void allowTopNavigationToDataUrls(bool propval) @propertySet `allowTopNavigationToDataUrls` property. Params: propval = 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 untr...
bool allowUniversalAccessFromFileUrls() @propertyGet `allowUniversalAccessFromFileUrls` property. Returns: Whether or not JavaScript running in the context of a file scheme URL should be allowed to access content from any origin. By default, whe...
void allowUniversalAccessFromFileUrls(bool propval) @propertySet `allowUniversalAccessFromFileUrls` property. Params: propval = Whether or not JavaScript running in the context of a file scheme URL should be allowed to access content from any origin. By def...
bool autoLoadImages() @propertyGet `autoLoadImages` property. Returns: 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.
void autoLoadImages(bool propval) @propertySet `autoLoadImages` property. Params: propval = Determines whether images should be automatically loaded or not. On devices where network bandwidth is of concern, it might be useful to turn this p...
string cursiveFontFamily() @propertyGet `cursiveFontFamily` property. Returns: The font family used as the default for content using a cursive font.
void cursiveFontFamily(string propval) @propertySet `cursiveFontFamily` property. Params: propval = The font family used as the default for content using a cursive font.
string defaultCharset() @propertyGet `defaultCharset` property. Returns: The default text charset used when interpreting content with an unspecified charset.
void defaultCharset(string propval) @propertySet `defaultCharset` property. Params: propval = The default text charset used when interpreting content with an unspecified charset.
string defaultFontFamily() @propertyGet `defaultFontFamily` property. Returns: The font family to use as the default for content that does not specify a font.
void defaultFontFamily(string propval) @propertySet `defaultFontFamily` property. Params: propval = The font family to use as the default for content that does not specify a font.
uint defaultFontSize() @propertyGet `defaultFontSize` property. Returns: The default font size in pixels to use for content displayed if no font size is specified.
void defaultFontSize(uint propval) @propertySet `defaultFontSize` property. Params: propval = The default font size in pixels to use for content displayed if no font size is specified.
uint defaultMonospaceFontSize() @propertyGet `defaultMonospaceFontSize` property. Returns: The default font size in pixels to use for content displayed in monospace font if no font size is specified.
void defaultMonospaceFontSize(uint propval) @propertySet `defaultMonospaceFontSize` property. Params: propval = The default font size in pixels to use for content displayed in monospace font if no font size is specified.
bool disableWebSecurity() @propertyGet `disableWebSecurity` property. Returns: Enable or disable support for Web Security on pages.
void disableWebSecurity(bool propval) @propertySet `disableWebSecurity` property. Params: propval = Enable or disable support for Web Security on pages.
bool drawCompositingIndicators() @propertyGet `drawCompositingIndicators` property. Returns: Whether to draw compositing borders and repaint counters on layers drawn with accelerated compositing. This is useful for debugging issues related...
void drawCompositingIndicators(bool propval) @propertySet `drawCompositingIndicators` property. Params: propval = Whether to draw compositing borders and repaint counters on layers drawn with accelerated compositing. This is useful for debugging issue...
bool enable2dCanvasAcceleration() @propertyGet `enable2dCanvasAcceleration` property. Returns: Enable or disable 2D canvas acceleration. If this setting is enabled, the 2D canvas will be accelerated even if Skia CPU is used for rendering. H...
void enable2dCanvasAcceleration(bool propval) @propertySet `enable2dCanvasAcceleration` property. Params: propval = Enable or disable 2D canvas acceleration. If this setting is enabled, the 2D canvas will be accelerated even if Skia CPU is used for ren...
bool enableBackForwardNavigationGestures() @propertyGet `enableBackForwardNavigationGestures` property. Returns: Enable or disable horizontal swipe gesture for back-forward navigation.
void enableBackForwardNavigationGestures(bool propval) @propertySet `enableBackForwardNavigationGestures` property. Params: propval = Enable or disable horizontal swipe gesture for back-forward navigation.
bool enableCaretBrowsing() @propertyGet `enableCaretBrowsing` property. Returns: Whether to enable accessibility enhanced keyboard navigation.
void enableCaretBrowsing(bool propval) @propertySet `enableCaretBrowsing` property. Params: propval = Whether to enable accessibility enhanced keyboard navigation.
bool enableDeveloperExtras() @propertyGet `enableDeveloperExtras` property. Returns: Determines whether or not developer tools, such as the Web Inspector, are enabled.
void enableDeveloperExtras(bool propval) @propertySet `enableDeveloperExtras` property. Params: propval = Determines whether or not developer tools, such as the Web Inspector, are enabled.
bool enableDnsPrefetching() @propertyGet `enableDnsPrefetching` property. Returns: Determines whether or not to prefetch domain names. DNS prefetching attempts to resolve domain names before a user tries to follow a link.
void enableDnsPrefetching(bool propval) @propertySet `enableDnsPrefetching` property. Params: propval = Determines whether or not to prefetch domain names. DNS prefetching attempts to resolve domain names before a user tries to follow a link.
bool enableEncryptedMedia() @propertyGet `enableEncryptedMedia` property. Returns: Enable or disable support for Encrypted Media API on pages. EncryptedMedia is an experimental JavaScript API for playing encrypted media in HTML. This ...
void enableEncryptedMedia(bool propval) @propertySet `enableEncryptedMedia` property. Params: propval = Enable or disable support for Encrypted Media API on pages. EncryptedMedia is an experimental JavaScript API for playing encrypted media in HT...
bool enableFullscreen() @propertyGet `enableFullscreen` property. Returns: 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: htt...
void enableFullscreen(bool propval) @propertySet `enableFullscreen` property. Params: propval = Whether to enable the Javascript Fullscreen API. The API allows any HTML element to request fullscreen display. See also the current draft of the ...
bool enableHtml5Database() @propertyGet `enableHtml5Database` property. Returns: Whether to enable HTML5 client-side SQL database support (IndexedDB).
void enableHtml5Database(bool propval) @propertySet `enableHtml5Database` property. Params: propval = Whether to enable HTML5 client-side SQL database support (IndexedDB).
bool enableHtml5LocalStorage() @propertyGet `enableHtml5LocalStorage` property. Returns: Whether to enable HTML5 local storage support. Local storage provides simple synchronous storage access.
void enableHtml5LocalStorage(bool propval) @propertySet `enableHtml5LocalStorage` property. Params: propval = Whether to enable HTML5 local storage support. Local storage provides simple synchronous storage access.
bool enableHyperlinkAuditing() @propertyGet `enableHyperlinkAuditing` property. Returns: Determines whether or not hyperlink auditing is enabled.
void enableHyperlinkAuditing(bool propval) @propertySet `enableHyperlinkAuditing` property. Params: propval = Determines whether or not hyperlink auditing is enabled.
bool enableJavascript() @propertyGet `enableJavascript` property. Returns: Determines whether or not JavaScript executes within a page.
void enableJavascript(bool propval) @propertySet `enableJavascript` property. Params: propval = Determines whether or not JavaScript executes within a page.
bool enableJavascriptMarkup() @propertyGet `enableJavascriptMarkup` property. Returns: Determines whether or not JavaScript markup is allowed in document. When this setting is disabled, all JavaScript-related elements and attributes are...
void enableJavascriptMarkup(bool propval) @propertySet `enableJavascriptMarkup` property. Params: propval = Determines whether or not JavaScript markup is allowed in document. When this setting is disabled, all JavaScript-related elements and attri...
bool enableMedia() @propertyGet `enableMedia` property. Returns: Enable or disable support for media playback on pages. This setting is enabled by default. Disabling it means `<audio>`, `<track>` and `<video>` elements will h...
void enableMedia(bool propval) @propertySet `enableMedia` property. Params: propval = Enable or disable support for media playback on pages. This setting is enabled by default. Disabling it means `<audio>`, `<track>` and `<video>` elemen...
bool enableMediaCapabilities() @propertyGet `enableMediaCapabilities` property. Returns: Enable or disable support for MediaCapabilities on pages. This specification intends to provide APIs to allow websites to make an optimal decision w...
void enableMediaCapabilities(bool propval) @propertySet `enableMediaCapabilities` property. Params: propval = Enable or disable support for MediaCapabilities on pages. This specification intends to provide APIs to allow websites to make an optimal d...
bool enableMediaStream() @propertyGet `enableMediaStream` property. Returns: Enable or disable support for MediaStream on pages. MediaStream is an experimental proposal for allowing web pages to access audio and video devices for c...
void enableMediaStream(bool propval) @propertySet `enableMediaStream` property. Params: propval = Enable or disable support for MediaStream on pages. MediaStream is an experimental proposal for allowing web pages to access audio and video devi...
bool enableMediasource() @propertyGet `enableMediasource` property. Returns: Enable or disable support for MediaSource on pages. MediaSource extends HTMLMediaElement to allow JavaScript to generate media streams for playback.
void enableMediasource(bool propval) @propertySet `enableMediasource` property. Params: propval = Enable or disable support for MediaSource on pages. MediaSource extends HTMLMediaElement to allow JavaScript to generate media streams for playback.
bool enableMockCaptureDevices() @propertyGet `enableMockCaptureDevices` property. Returns: Enable or disable the Mock Capture Devices. Those are fake Microphone and Camera devices to be used as MediaStream sources.
void enableMockCaptureDevices(bool propval) @propertySet `enableMockCaptureDevices` property. Params: propval = Enable or disable the Mock Capture Devices. Those are fake Microphone and Camera devices to be used as MediaStream sources.
bool enableOfflineWebApplicationCache() @propertyGet `enableOfflineWebApplicationCache` property. Returns: Unsupported setting. This property does nothing.
void enableOfflineWebApplicationCache(bool propval) @propertySet `enableOfflineWebApplicationCache` property. Params: propval = Unsupported setting. This property does nothing.
bool enablePageCache() @propertyGet `enablePageCache` property. Returns: Enable or disable the page cache. Disabling the page cache is generally only useful for special circumstances like low-memory scenarios or special purpose a...
void enablePageCache(bool propval) @propertySet `enablePageCache` property. Params: propval = Enable or disable the page cache. Disabling the page cache is generally only useful for special circumstances like low-memory scenarios or special ...
bool enableResizableTextAreas() @propertyGet `enableResizableTextAreas` property. Returns: Determines whether or not text areas can be resized.
void enableResizableTextAreas(bool propval) @propertySet `enableResizableTextAreas` property. Params: propval = Determines whether or not text areas can be resized.
bool enableSiteSpecificQuirks() @propertyGet `enableSiteSpecificQuirks` property. Returns: Whether to turn on site-specific quirks. Turning this on will tell WebKit to use some site-specific workarounds for better web compatibility. For e...
void enableSiteSpecificQuirks(bool propval) @propertySet `enableSiteSpecificQuirks` property. Params: propval = Whether to turn on site-specific quirks. Turning this on will tell WebKit to use some site-specific workarounds for better web compatibili...
bool enableSmoothScrolling() @propertyGet `enableSmoothScrolling` property. Returns: Enable or disable smooth scrolling.
void enableSmoothScrolling(bool propval) @propertySet `enableSmoothScrolling` property. Params: propval = Enable or disable smooth scrolling.
bool enableSpatialNavigation() @propertyGet `enableSpatialNavigation` property. Returns: Whether to enable Spatial Navigation. This feature consists in the ability to navigate between focusable elements in a Web page, such as hyperlinks ...
void enableSpatialNavigation(bool propval) @propertySet `enableSpatialNavigation` property. Params: propval = Whether to enable Spatial Navigation. This feature consists in the ability to navigate between focusable elements in a Web page, such as hy...
bool enableTabsToLinks() @propertyGet `enableTabsToLinks` property. Returns: 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 ...
void enableTabsToLinks(bool propval) @propertySet `enableTabsToLinks` property. Params: propval = 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 elemen...
bool enableWebaudio() @propertyGet `enableWebaudio` property. Returns: Enable or disable support for WebAudio on pages. WebAudio is an API for processing and synthesizing audio in web applications
void enableWebaudio(bool propval) @propertySet `enableWebaudio` property. Params: propval = Enable or disable support for WebAudio on pages. WebAudio is an API for processing and synthesizing audio in web applications
bool enableWebgl() @propertyGet `enableWebgl` property. Returns: Enable or disable support for WebGL on pages. WebGL enables web content to use an API based on OpenGL ES 2.0.
void enableWebgl(bool propval) @propertySet `enableWebgl` property. Params: propval = Enable or disable support for WebGL on pages. WebGL enables web content to use an API based on OpenGL ES 2.0.
bool enableWebrtc() @propertyGet `enableWebrtc` property. Returns: Enable WebRTC support for loaded pages.
void enableWebrtc(bool propval) @propertySet `enableWebrtc` property. Params: propval = Enable WebRTC support for loaded pages.
bool enableWriteConsoleMessagesToStdout() @propertyGet `enableWriteConsoleMessagesToStdout` property. Returns: Enable or disable writing console messages to stdout. These are messages sent to the console with console.log and related methods.
void enableWriteConsoleMessagesToStdout(bool propval) @propertySet `enableWriteConsoleMessagesToStdout` property. Params: propval = Enable or disable writing console messages to stdout. These are messages sent to the console with console.log and related methods.
string fantasyFontFamily() @propertyGet `fantasyFontFamily` property. Returns: The font family used as the default for content using a fantasy font.
void fantasyFontFamily(string propval) @propertySet `fantasyFontFamily` property. Params: propval = The font family used as the default for content using a fantasy font.
webkit.types.HardwareAccelerationPolicy hardwareAccelerationPolicy() @propertyGet `hardwareAccelerationPolicy` property. Returns: The #WebKitHardwareAccelerationPolicy to decide how to enable and disable hardware acceleration. Disabling hardware acceleration might cause some...
void hardwareAccelerationPolicy(webkit.types.HardwareAccelerationPolicy propval) @propertySet `hardwareAccelerationPolicy` property. Params: propval = The #WebKitHardwareAccelerationPolicy to decide how to enable and disable hardware acceleration. Disabling hardware acceleration might c...
bool javascriptCanAccessClipboard() @propertyGet `javascriptCanAccessClipboard` property. Returns: Whether JavaScript can access the clipboard. The default value is false. If set to true, document.execCommand() allows cut, copy and paste comm...
void javascriptCanAccessClipboard(bool propval) @propertySet `javascriptCanAccessClipboard` property. Params: propval = Whether JavaScript can access the clipboard. The default value is false. If set to true, document.execCommand() allows cut, copy and p...
bool javascriptCanOpenWindowsAutomatically() @propertyGet `javascriptCanOpenWindowsAutomatically` property. Returns: Whether JavaScript can open popup windows automatically without user intervention.
void javascriptCanOpenWindowsAutomatically(bool propval) @propertySet `javascriptCanOpenWindowsAutomatically` property. Params: propval = Whether JavaScript can open popup windows automatically without user intervention.
bool loadIconsIgnoringImageLoadSetting() @propertyGet `loadIconsIgnoringImageLoadSetting` property. Returns: Unsupported setting. This property does nothing.
void loadIconsIgnoringImageLoadSetting(bool propval) @propertySet `loadIconsIgnoringImageLoadSetting` property. Params: propval = Unsupported setting. This property does nothing.
string mediaContentTypesRequiringHardwareSupport() @propertyGet `mediaContentTypesRequiringHardwareSupport` property. Returns: List of media content types requiring hardware support, split by semicolons (:). For example: 'video/webm; codecs="vp":video/mp4; ...
void mediaContentTypesRequiringHardwareSupport(string propval) @propertySet `mediaContentTypesRequiringHardwareSupport` property. Params: propval = List of media content types requiring hardware support, split by semicolons (:). For example: 'video/webm; codecs="vp":vi...
bool mediaPlaybackAllowsInline() @propertyGet `mediaPlaybackAllowsInline` property. Returns: 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 ...
void mediaPlaybackAllowsInline(bool propval) @propertySet `mediaPlaybackAllowsInline` property. Params: propval = Whether media playback is full-screen only or inline playback is allowed. This is true by default, so media playback can be inline. Setti...
bool mediaPlaybackRequiresUserGesture() @propertyGet `mediaPlaybackRequiresUserGesture` property. Returns: 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, ...
void mediaPlaybackRequiresUserGesture(bool propval) @propertySet `mediaPlaybackRequiresUserGesture` property. Params: propval = Whether a user gesture (such as clicking the play button) would be required to start media playback or load media. This is off by ...
uint minimumFontSize() @propertyGet `minimumFontSize` property. Returns: 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.
void minimumFontSize(uint propval) @propertySet `minimumFontSize` property. Params: propval = The minimum font size in pixels used to display text. This setting controls the absolute smallest size. Values other than 0 can potentially break p...
string monospaceFontFamily() @propertyGet `monospaceFontFamily` property. Returns: The font family used as the default for content using a monospace font.
void monospaceFontFamily(string propval) @propertySet `monospaceFontFamily` property. Params: propval = The font family used as the default for content using a monospace font.
string pictographFontFamily() @propertyGet `pictographFontFamily` property. Returns: The font family used as the default for content using a pictograph font.
void pictographFontFamily(string propval) @propertySet `pictographFontFamily` property. Params: propval = The font family used as the default for content using a pictograph font.
bool printBackgrounds() @propertyGet `printBackgrounds` property. Returns: Whether background images should be drawn during printing.
void printBackgrounds(bool propval) @propertySet `printBackgrounds` property. Params: propval = Whether background images should be drawn during printing.
string sansSerifFontFamily() @propertyGet `sansSerifFontFamily` property. Returns: The font family used as the default for content using a sans-serif font.
void sansSerifFontFamily(string propval) @propertySet `sansSerifFontFamily` property. Params: propval = The font family used as the default for content using a sans-serif font.
string serifFontFamily() @propertyGet `serifFontFamily` property. Returns: The font family used as the default for content using a serif font.
void serifFontFamily(string propval) @propertySet `serifFontFamily` property. Params: propval = The font family used as the default for content using a serif font.
string userAgent() @propertyGet `userAgent` property. Returns: 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 pars...
void userAgent(string propval) @propertySet `userAgent` property. Params: propval = 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 writte...
string webrtcUdpPortsRange() @propertyGet `webrtcUdpPortsRange` property. Returns: Allow customization of the WebRTC UDP ports range.
void webrtcUdpPortsRange(string propval) @propertySet `webrtcUdpPortsRange` property. Params: propval = Allow customization of the WebRTC UDP ports range.
bool zoomTextOnly() @propertyGet `zoomTextOnly` property. Returns: 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 affecte...
void zoomTextOnly(bool propval) @propertySet `zoomTextOnly` property. Params: propval = Whether #WebKitWebView:zoom-level affects only the text of the page or all the contents. Other contents containing text like form controls will be als...
uint fontSizeToPixels(uint points)Convert points to the equivalent value in pixels.
uint fontSizeToPoints(uint pixels)Convert pixels to the equivalent value in points.
webkit.feature_list.FeatureList getAllFeatures()Gets the list of all available WebKit features.
webkit.feature_list.FeatureList getDevelopmentFeatures()Gets the list of available development WebKit features.
webkit.feature_list.FeatureList getExperimentalFeatures()Gets the list of available experimental WebKit features.
bool applyFromKeyFile(glib.key_file.KeyFile keyFile, string groupName)Reads the contents of the given groupname from the given keyfile and apply the value of each key/value to the corresponding property on the settings.
bool getAllowFileAccessFromFileUrls()Get the #WebKitSettings:allow-file-access-from-file-urls property. Returns: true If file access from file URLs is allowed or false otherwise.
bool getAllowModalDialogs()Get the #WebKitSettings:allow-modal-dialogs property. Returns: true if it's allowed to create and run modal dialogs or false otherwise.
bool getAllowTopNavigationToDataUrls()Get the #WebKitSettings:allow-top-navigation-to-data-urls property. Returns: true If navigation to data URLs from the top frame is allowed or false\ otherwise.
bool getAllowUniversalAccessFromFileUrls()Get the #WebKitSettings:allow-universal-access-from-file-urls property. Returns: true If universal access from file URLs is allowed or false otherwise.
bool getAutoLoadImages()Get the #WebKitSettings:auto-load-images property. Returns: true If auto loading of images is enabled or false otherwise.
string getCursiveFontFamily()Gets the #WebKitSettings:cursive-font-family property. Returns: The default font family used to display content marked with cursive font.
string getDefaultCharset()Gets the #WebKitSettings:default-charset property. Returns: Default charset.
string getDefaultFontFamily()Gets the #WebKitSettings:default-font-family property. Returns: The default font family used to display content that does not specify a font.
uint getDefaultFontSize()Gets the #WebKitSettings:default-font-size property. Returns: The default font size, in pixels.
uint getDefaultMonospaceFontSize()Gets the #WebKitSettings:default-monospace-font-size property. Returns: Default monospace font size, in pixels.
bool getDisableWebSecurity()Get the #WebKitSettings:disable-web-security property. Returns: true If web security support is disabled or false otherwise.
bool getDrawCompositingIndicators()Get the #WebKitSettings:draw-compositing-indicators property. Returns: true If compositing borders are drawn or false otherwise.
bool getEnable2dCanvasAcceleration()Get the #WebKitSettings:enable-2d-canvas-acceleration property. Returns: true if 2D canvas acceleration is enabled or false otherwise.
bool getEnableBackForwardNavigationGestures()Get the #WebKitSettings:enable-back-forward-navigation-gestures property. Returns: true if horizontal swipe gesture will trigger back-forward navigaiton or false otherwise.
bool getEnableCaretBrowsing()Get the #WebKitSettings:enable-caret-browsing property. Returns: true If caret browsing is enabled or false otherwise.
bool getEnableDeveloperExtras()Get the #WebKitSettings:enable-developer-extras property. Returns: true If developer extras is enabled or false otherwise.
bool getEnableDnsPrefetching()Get the #WebKitSettings:enable-dns-prefetching property. Returns: true If DNS prefetching is enabled or false otherwise.
bool getEnableEncryptedMedia()Get the #WebKitSettings:enable-encrypted-media property. Returns: true if EncryptedMedia support is enabled or false otherwise.
bool getEnableFullscreen()Get the #WebKitSettings:enable-fullscreen property. Returns: true If fullscreen support is enabled or false otherwise.
bool getEnableHtml5Database()Get the #WebKitSettings:enable-html5-database property. Returns: true if IndexedDB support is enabled or false otherwise.
bool getEnableHtml5LocalStorage()Get the #WebKitSettings:enable-html5-local-storage property. Returns: true If HTML5 local storage support is enabled or false otherwise.
bool getEnableHyperlinkAuditing()Get the #WebKitSettings:enable-hyperlink-auditing property. Returns: true If hyper link auditing is enabled or false otherwise.
bool getEnableJavascript()Get the #WebKitSettings:enable-javascript property. Returns: true If JavaScript is enabled or false otherwise.
bool getEnableJavascriptMarkup()Get the #WebKitSettings:enable-javascript-markup property. Returns: true if JavaScript markup is enabled or false otherwise.
bool getEnableMedia()Get the #WebKitSettings:enable-media property. Returns: true if media support is enabled or false otherwise.
bool getEnableMediaCapabilities()Get the #WebKitSettings:enable-media-capabilities property. Returns: true if MediaCapabilities support is enabled or false otherwise.
bool getEnableMediaStream()Get the #WebKitSettings:enable-media-stream property. Returns: true If mediastream support is enabled or false otherwise.
bool getEnableMediasource()Get the #WebKitSettings:enable-mediasource property. Returns: true If MediaSource support is enabled or false otherwise.
bool getEnableMockCaptureDevices()Get the #WebKitSettings:enable-mock-capture-devices property. Returns: true If mock capture devices is enabled or false otherwise.
bool getEnableOfflineWebApplicationCache()Get the #WebKitSettings:enable-offline-web-application-cache property. Returns: false.
bool getEnablePageCache()Get the #WebKitSettings:enable-page-cache property. Returns: true if page cache enabled or false otherwise.
bool getEnableResizableTextAreas()Get the #WebKitSettings:enable-resizable-text-areas property. Returns: true If text areas can be resized or false otherwise.
bool getEnableSiteSpecificQuirks()Get the #WebKitSettings:enable-site-specific-quirks property. Returns: true if site specific quirks are enabled or false otherwise.
bool getEnableSmoothScrolling()Get the #WebKitSettings:enable-smooth-scrolling property. Returns: true if smooth scrolling is enabled or false otherwise.
bool getEnableSpatialNavigation()Get the #WebKitSettings:enable-spatial-navigation property. Returns: true If HTML5 spatial navigation support is enabled or false otherwise.
bool getEnableTabsToLinks()Get the #WebKitSettings:enable-tabs-to-links property. Returns: true If tabs to link is enabled or false otherwise.
bool getEnableWebaudio()Get the #WebKitSettings:enable-webaudio property. Returns: true If webaudio support is enabled or false otherwise.
bool getEnableWebgl()Get the #WebKitSettings:enable-webgl property. Returns: true If WebGL support is enabled or false otherwise.
bool getEnableWebrtc()Get the `propertySettings:enable-webrtc` property. Returns: true If WebRTC support is enabled or false otherwise.
bool getEnableWriteConsoleMessagesToStdout()Get the #WebKitSettings:enable-write-console-messages-to-stdout property. Returns: true if writing console messages to stdout is enabled or false otherwise.
string getFantasyFontFamily()Gets the #WebKitSettings:fantasy-font-family property. Returns: The default font family used to display content marked with fantasy font.
bool getFeatureEnabled(webkit.feature.Feature feature)Gets whether a feature is enabled.
webkit.types.HardwareAccelerationPolicy getHardwareAccelerationPolicy()Get the #WebKitSettings:hardware-acceleration-policy property. Returns: a #WebKitHardwareAccelerationPolicy
bool getJavascriptCanAccessClipboard()Get the #WebKitSettings:javascript-can-access-clipboard property. Returns: true If javascript-can-access-clipboard is enabled or false otherwise.
bool getJavascriptCanOpenWindowsAutomatically()Get the #WebKitSettings:javascript-can-open-windows-automatically property. Returns: true If JavaScript can open window automatically or false otherwise.
bool getLoadIconsIgnoringImageLoadSetting()Setting no longer supported. This function returns false. Returns: false
string getMediaContentTypesRequiringHardwareSupport()Gets the #WebKitSettings:media-content-types-requiring-hardware-support property. Returns: Media content types requiring hardware support, or null.
bool getMediaPlaybackAllowsInline()Get the #WebKitSettings:media-playback-allows-inline property. Returns: true If inline playback is allowed for media or false if only fullscreen playback is allowed.
bool getMediaPlaybackRequiresUserGesture()Get the #WebKitSettings:media-playback-requires-user-gesture property. Returns: true If an user gesture is needed to play or load media or false if no user gesture is needed.
uint getMinimumFontSize()Gets the #WebKitSettings:minimum-font-size property. Returns: Minimum font size, in pixels.
string getMonospaceFontFamily()Gets the #WebKitSettings:monospace-font-family property. Returns: Default font family used to display content marked with monospace font.
string getPictographFontFamily()Gets the #WebKitSettings:pictograph-font-family property. Returns: The default font family used to display content marked with pictograph font.
bool getPrintBackgrounds()Get the #WebKitSettings:print-backgrounds property. Returns: true If background images should be printed or false otherwise.
string getSansSerifFontFamily()Gets the #WebKitSettings:sans-serif-font-family property. Returns: The default font family used to display content marked with sans-serif font.
string getSerifFontFamily()Gets the #WebKitSettings:serif-font-family property. Returns: The default font family used to display content marked with serif font.
string getUserAgent()Get the #WebKitSettings:user-agent property. Returns: The current value of the user-agent property.
string getWebrtcUdpPortsRange()Get the `propertySettings:webrtc-udp-ports-range` property. Returns: The WebRTC UDP ports range, or null if un-set.
bool getZoomTextOnly()Get the #WebKitSettings:zoom-text-only property. Returns: true If zoom level of the view should only affect the text or false if all view contents should be scaled.
void setAllowFileAccessFromFileUrls(bool allowed)Set the #WebKitSettings:allow-file-access-from-file-urls property.
void setAllowModalDialogs(bool allowed)Set the #WebKitSettings:allow-modal-dialogs property.
void setAllowTopNavigationToDataUrls(bool allowed)Set the #WebKitSettings:allow-top-navigation-to-data-urls property.
void setAllowUniversalAccessFromFileUrls(bool allowed)Set the #WebKitSettings:allow-universal-access-from-file-urls property.
void setAutoLoadImages(bool enabled)Set the #WebKitSettings:auto-load-images property.
void setCursiveFontFamily(string cursiveFontFamily)Set the #WebKitSettings:cursive-font-family property.
void setDefaultCharset(string defaultCharset)Set the #WebKitSettings:default-charset property.
void setDefaultFontFamily(string defaultFontFamily)Set the #WebKitSettings:default-font-family property.
void setDefaultFontSize(uint fontSize)Set the #WebKitSettings:default-font-size property.
void setDefaultMonospaceFontSize(uint fontSize)Set the #WebKitSettings:default-monospace-font-size property.
void setDisableWebSecurity(bool disabled)Set the #WebKitSettings:disable-web-security property.
void setDrawCompositingIndicators(bool enabled)Set the #WebKitSettings:draw-compositing-indicators property.
void setEnable2dCanvasAcceleration(bool enabled)Set the #WebKitSettings:enable-2d-canvas-acceleration property.
void setEnableBackForwardNavigationGestures(bool enabled)Set the #WebKitSettings:enable-back-forward-navigation-gestures property.
void setEnableCaretBrowsing(bool enabled)Set the #WebKitSettings:enable-caret-browsing property.
void setEnableDeveloperExtras(bool enabled)Set the #WebKitSettings:enable-developer-extras property.
void setEnableDnsPrefetching(bool enabled)Set the #WebKitSettings:enable-dns-prefetching property.
void setEnableEncryptedMedia(bool enabled)Set the #WebKitSettings:enable-encrypted-media property.
void setEnableFullscreen(bool enabled)Set the #WebKitSettings:enable-fullscreen property.
void setEnableHtml5Database(bool enabled)Set the #WebKitSettings:enable-html5-database property.
void setEnableHtml5LocalStorage(bool enabled)Set the #WebKitSettings:enable-html5-local-storage property.
void setEnableHyperlinkAuditing(bool enabled)Set the #WebKitSettings:enable-hyperlink-auditing property.
void setEnableJavascript(bool enabled)Set the #WebKitSettings:enable-javascript property.
void setEnableJavascriptMarkup(bool enabled)Set the #WebKitSettings:enable-javascript-markup property.
void setEnableMedia(bool enabled)Set the #WebKitSettings:enable-media property.
void setEnableMediaCapabilities(bool enabled)Set the #WebKitSettings:enable-media-capabilities property.
void setEnableMediaStream(bool enabled)Set the #WebKitSettings:enable-media-stream property.
void setEnableMediasource(bool enabled)Set the #WebKitSettings:enable-mediasource property.
void setEnableMockCaptureDevices(bool enabled)Set the #WebKitSettings:enable-mock-capture-devices property.
void setEnableOfflineWebApplicationCache(bool enabled)Setting no longer supported. This function does nothing.
void setEnablePageCache(bool enabled)Set the #WebKitSettings:enable-page-cache property.
void setEnableResizableTextAreas(bool enabled)Set the #WebKitSettings:enable-resizable-text-areas property.
void setEnableSiteSpecificQuirks(bool enabled)Set the #WebKitSettings:enable-site-specific-quirks property.
void setEnableSmoothScrolling(bool enabled)Set the #WebKitSettings:enable-smooth-scrolling property.
void setEnableSpatialNavigation(bool enabled)Set the #WebKitSettings:enable-spatial-navigation property.
void setEnableTabsToLinks(bool enabled)Set the #WebKitSettings:enable-tabs-to-links property.
void setEnableWebaudio(bool enabled)Set the #WebKitSettings:enable-webaudio property.
void setEnableWebgl(bool enabled)Set the #WebKitSettings:enable-webgl property.
void setEnableWebrtc(bool enabled)Set the `propertySettings:enable-webrtc` property.
void setEnableWriteConsoleMessagesToStdout(bool enabled)Set the #WebKitSettings:enable-write-console-messages-to-stdout property.
void setFantasyFontFamily(string fantasyFontFamily)Set the #WebKitSettings:fantasy-font-family property.
void setFeatureEnabled(webkit.feature.Feature feature, bool enabled)Enables or disables a feature.
void setHardwareAccelerationPolicy(webkit.types.HardwareAccelerationPolicy policy)Set the #WebKitSettings:hardware-acceleration-policy property.
void setJavascriptCanAccessClipboard(bool enabled)Set the #WebKitSettings:javascript-can-access-clipboard property.
void setJavascriptCanOpenWindowsAutomatically(bool enabled)Set the #WebKitSettings:javascript-can-open-windows-automatically property.
void setLoadIconsIgnoringImageLoadSetting(bool enabled)Setting no longer supported. This function does nothing.
void setMediaContentTypesRequiringHardwareSupport(string contentTypes = null)Set the #WebKitSettings:media-content-types-requiring-hardware-support property.
void setMediaPlaybackAllowsInline(bool enabled)Set the #WebKitSettings:media-playback-allows-inline property.
void setMediaPlaybackRequiresUserGesture(bool enabled)Set the #WebKitSettings:media-playback-requires-user-gesture property.
void setMinimumFontSize(uint fontSize)Set the #WebKitSettings:minimum-font-size property.
void setMonospaceFontFamily(string monospaceFontFamily)Set the #WebKitSettings:monospace-font-family property.
void setPictographFontFamily(string pictographFontFamily)Set the #WebKitSettings:pictograph-font-family property.
void setPrintBackgrounds(bool printBackgrounds)Set the #WebKitSettings:print-backgrounds property.
void setSansSerifFontFamily(string sansSerifFontFamily)Set the #WebKitSettings:sans-serif-font-family property.
void setSerifFontFamily(string serifFontFamily)Set the #WebKitSettings:serif-font-family property.
void setUserAgent(string userAgent = null)Set the #WebKitSettings:user-agent property.
void setUserAgentWithApplicationDetails(string applicationName = null, string applicationVersion = null)Set the #WebKitSettings:user-agent property by appending the application details.
void setWebrtcUdpPortsRange(string udpPortRange)Set the `propertySettings:webrtc-udp-ports-range` property.
void setZoomTextOnly(bool zoomTextOnly)Set the #WebKitSettings:zoom-text-only property.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new #WebKitSettings instance with default values.
Methods
T allowFileAccessFromFileUrls(bool propval)Set `allowFileAccessFromFileUrls` property. Params: propval = Whether file access is allowed from file URLs. By default, when something is loaded in a #WebKitWebView using a file URI, cross origin ...
T allowModalDialogs(bool propval)Set `allowModalDialogs` property. Params: propval = Determine whether it's allowed to create and run modal dialogs from a #WebKitWebView through JavaScript with <function>window.showModalDialog</fu...
T allowTopNavigationToDataUrls(bool propval)Set `allowTopNavigationToDataUrls` property. Params: propval = 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 untr...
T allowUniversalAccessFromFileUrls(bool propval)Set `allowUniversalAccessFromFileUrls` property. Params: propval = Whether or not JavaScript running in the context of a file scheme URL should be allowed to access content from any origin. By def...
T autoLoadImages(bool propval)Set `autoLoadImages` property. Params: propval = Determines whether images should be automatically loaded or not. On devices where network bandwidth is of concern, it might be useful to turn this p...
T cursiveFontFamily(string propval)Set `cursiveFontFamily` property. Params: propval = The font family used as the default for content using a cursive font. Returns: Builder instance for fluent chaining
T defaultCharset(string propval)Set `defaultCharset` property. Params: propval = The default text charset used when interpreting content with an unspecified charset. Returns: Builder instance for fluent chaining
T defaultFontFamily(string propval)Set `defaultFontFamily` property. Params: propval = The font family to use as the default for content that does not specify a font. Returns: Builder instance for fluent chaining
T defaultFontSize(uint propval)Set `defaultFontSize` property. Params: propval = The default font size in pixels to use for content displayed if no font size is specified. Returns: Builder instance for fluent chaining
T defaultMonospaceFontSize(uint propval)Set `defaultMonospaceFontSize` property. Params: propval = The default font size in pixels to use for content displayed in monospace font if no font size is specified. Returns: Builder instance for...
T disableWebSecurity(bool propval)Set `disableWebSecurity` property. Params: propval = Enable or disable support for Web Security on pages.
T drawCompositingIndicators(bool propval)Set `drawCompositingIndicators` property. Params: propval = Whether to draw compositing borders and repaint counters on layers drawn with accelerated compositing. This is useful for debugging issue...
T enable2dCanvasAcceleration(bool propval)Set `enable2dCanvasAcceleration` property. Params: propval = Enable or disable 2D canvas acceleration. If this setting is enabled, the 2D canvas will be accelerated even if Skia CPU is used for ren...
T enableBackForwardNavigationGestures(bool propval)Set `enableBackForwardNavigationGestures` property. Params: propval = Enable or disable horizontal swipe gesture for back-forward navigation. Returns: Builder instance for fluent chaining
T enableCaretBrowsing(bool propval)Set `enableCaretBrowsing` property. Params: propval = Whether to enable accessibility enhanced keyboard navigation. Returns: Builder instance for fluent chaining
T enableDeveloperExtras(bool propval)Set `enableDeveloperExtras` property. Params: propval = Determines whether or not developer tools, such as the Web Inspector, are enabled. Returns: Builder instance for fluent chaining
T enableDnsPrefetching(bool propval)Set `enableDnsPrefetching` property. Params: propval = Determines whether or not to prefetch domain names. DNS prefetching attempts to resolve domain names before a user tries to follow a link. Ret...
T enableEncryptedMedia(bool propval)Set `enableEncryptedMedia` property. Params: propval = Enable or disable support for Encrypted Media API on pages. EncryptedMedia is an experimental JavaScript API for playing encrypted media in HT...
T enableFullscreen(bool propval)Set `enableFullscreen` property. Params: propval = Whether to enable the Javascript Fullscreen API. The API allows any HTML element to request fullscreen display. See also the current draft of the ...
T enableHtml5Database(bool propval)Set `enableHtml5Database` property. Params: propval = Whether to enable HTML5 client-side SQL database support (IndexedDB). Returns: Builder instance for fluent chaining
T enableHtml5LocalStorage(bool propval)Set `enableHtml5LocalStorage` property. Params: propval = Whether to enable HTML5 local storage support. Local storage provides simple synchronous storage access.
T enableHyperlinkAuditing(bool propval)Set `enableHyperlinkAuditing` property. Params: propval = Determines whether or not hyperlink auditing is enabled.
T enableJavascript(bool propval)Set `enableJavascript` property. Params: propval = Determines whether or not JavaScript executes within a page. Returns: Builder instance for fluent chaining
T enableJavascriptMarkup(bool propval)Set `enableJavascriptMarkup` property. Params: propval = Determines whether or not JavaScript markup is allowed in document. When this setting is disabled, all JavaScript-related elements and attri...
T enableMedia(bool propval)Set `enableMedia` property. Params: propval = Enable or disable support for media playback on pages. This setting is enabled by default. Disabling it means `<audio>`, `<track>` and `<video>` elemen...
T enableMediaCapabilities(bool propval)Set `enableMediaCapabilities` property. Params: propval = Enable or disable support for MediaCapabilities on pages. This specification intends to provide APIs to allow websites to make an optimal d...
T enableMediaStream(bool propval)Set `enableMediaStream` property. Params: propval = Enable or disable support for MediaStream on pages. MediaStream is an experimental proposal for allowing web pages to access audio and video devi...
T enableMediasource(bool propval)Set `enableMediasource` property. Params: propval = Enable or disable support for MediaSource on pages. MediaSource extends HTMLMediaElement to allow JavaScript to generate media streams for playback.
T enableMockCaptureDevices(bool propval)Set `enableMockCaptureDevices` property. Params: propval = Enable or disable the Mock Capture Devices. Those are fake Microphone and Camera devices to be used as MediaStream sources. Returns: Build...
T enableOfflineWebApplicationCache(bool propval)Set `enableOfflineWebApplicationCache` property. Params: propval = Unsupported setting. This property does nothing. Returns: Builder instance for fluent chaining
T enablePageCache(bool propval)Set `enablePageCache` property. Params: propval = Enable or disable the page cache. Disabling the page cache is generally only useful for special circumstances like low-memory scenarios or special ...
T enableResizableTextAreas(bool propval)Set `enableResizableTextAreas` property. Params: propval = Determines whether or not text areas can be resized. Returns: Builder instance for fluent chaining
T enableSiteSpecificQuirks(bool propval)Set `enableSiteSpecificQuirks` property. Params: propval = Whether to turn on site-specific quirks. Turning this on will tell WebKit to use some site-specific workarounds for better web compatibili...
T enableSmoothScrolling(bool propval)Set `enableSmoothScrolling` property. Params: propval = Enable or disable smooth scrolling. Returns: Builder instance for fluent chaining
T enableSpatialNavigation(bool propval)Set `enableSpatialNavigation` property. Params: propval = Whether to enable Spatial Navigation. This feature consists in the ability to navigate between focusable elements in a Web page, such as hy...
T enableTabsToLinks(bool propval)Set `enableTabsToLinks` property. Params: propval = 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 elemen...
T enableWebaudio(bool propval)Set `enableWebaudio` property. Params: propval = Enable or disable support for WebAudio on pages. WebAudio is an API for processing and synthesizing audio in web applications
T enableWebgl(bool propval)Set `enableWebgl` property. Params: propval = Enable or disable support for WebGL on pages. WebGL enables web content to use an API based on OpenGL ES 2.0. Returns: Builder instance for fluent chai...
T enableWebrtc(bool propval)Set `enableWebrtc` property. Params: propval = Enable WebRTC support for loaded pages.
T enableWriteConsoleMessagesToStdout(bool propval)Set `enableWriteConsoleMessagesToStdout` property. Params: propval = Enable or disable writing console messages to stdout. These are messages sent to the console with console.log and related method...
T fantasyFontFamily(string propval)Set `fantasyFontFamily` property. Params: propval = The font family used as the default for content using a fantasy font. Returns: Builder instance for fluent chaining
T hardwareAccelerationPolicy(webkit.types.HardwareAccelerationPolicy propval)Set `hardwareAccelerationPolicy` property. Params: propval = The #WebKitHardwareAccelerationPolicy to decide how to enable and disable hardware acceleration. Disabling hardware acceleration might c...
T javascriptCanAccessClipboard(bool propval)Set `javascriptCanAccessClipboard` property. Params: propval = Whether JavaScript can access the clipboard. The default value is false. If set to true, document.execCommand() allows cut, copy and p...
T javascriptCanOpenWindowsAutomatically(bool propval)Set `javascriptCanOpenWindowsAutomatically` property. Params: propval = Whether JavaScript can open popup windows automatically without user intervention. Returns: Builder instance for fluent chaining
T loadIconsIgnoringImageLoadSetting(bool propval)Set `loadIconsIgnoringImageLoadSetting` property. Params: propval = Unsupported setting. This property does nothing. Returns: Builder instance for fluent chaining
T mediaContentTypesRequiringHardwareSupport(string propval)Set `mediaContentTypesRequiringHardwareSupport` property. Params: propval = List of media content types requiring hardware support, split by semicolons (:). For example: 'video/webm; codecs="vp":vi...
T mediaPlaybackAllowsInline(bool propval)Set `mediaPlaybackAllowsInline` property. Params: propval = Whether media playback is full-screen only or inline playback is allowed. This is true by default, so media playback can be inline. Setti...
T mediaPlaybackRequiresUserGesture(bool propval)Set `mediaPlaybackRequiresUserGesture` property. Params: propval = Whether a user gesture (such as clicking the play button) would be required to start media playback or load media. This is off by ...
T minimumFontSize(uint propval)Set `minimumFontSize` property. Params: propval = The minimum font size in pixels used to display text. This setting controls the absolute smallest size. Values other than 0 can potentially break p...
T monospaceFontFamily(string propval)Set `monospaceFontFamily` property. Params: propval = The font family used as the default for content using a monospace font. Returns: Builder instance for fluent chaining
T pictographFontFamily(string propval)Set `pictographFontFamily` property. Params: propval = The font family used as the default for content using a pictograph font. Returns: Builder instance for fluent chaining
T printBackgrounds(bool propval)Set `printBackgrounds` property. Params: propval = Whether background images should be drawn during printing. Returns: Builder instance for fluent chaining
T sansSerifFontFamily(string propval)Set `sansSerifFontFamily` property. Params: propval = The font family used as the default for content using a sans-serif font. Returns: Builder instance for fluent chaining
T serifFontFamily(string propval)Set `serifFontFamily` property. Params: propval = The font family used as the default for content using a serif font. Returns: Builder instance for fluent chaining
T userAgent(string propval)Set `userAgent` property. Params: propval = 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 writte...
T webrtcUdpPortsRange(string propval)Set `webrtcUdpPortsRange` property. Params: propval = Allow customization of the WebRTC UDP ports range.
T zoomTextOnly(bool propval)Set `zoomTextOnly` property. Params: propval = Whether #WebKitWebView:zoom-level affects only the text of the page or all the contents. Other contents containing text like form controls will be als...

Fluent builder for [webkit.settings.Settings]

Methods