gi-webkit2-4.0.24: WebKit2 bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.WebKit2.Objects.Settings

Contents

Description

No description available in the introspection data.

Synopsis

Exported types

newtype Settings Source #

Memory-managed wrapper type.

Constructors

Settings (ManagedPtr Settings) 
Instances
GObject Settings Source # 
Instance details

Defined in GI.WebKit2.Objects.Settings

Methods

gobjectType :: IO GType #

HasParentTypes Settings Source # 
Instance details

Defined in GI.WebKit2.Objects.Settings

type ParentTypes Settings Source # 
Instance details

Defined in GI.WebKit2.Objects.Settings

type ParentTypes Settings = Object ': ([] :: [Type])

class (GObject o, IsDescendantOf Settings o) => IsSettings o Source #

Type class for types which can be safely cast to Settings, for instance with toSettings.

Instances
(GObject o, IsDescendantOf Settings o) => IsSettings o Source # 
Instance details

Defined in GI.WebKit2.Objects.Settings

toSettings :: (MonadIO m, IsSettings o) => o -> m Settings Source #

Cast to Settings, for types for which this is known to be safe. For general casts, use castTo.

noSettings :: Maybe Settings Source #

A convenience alias for Nothing :: Maybe Settings.

Methods

fontSizeToPixels

settingsFontSizeToPixels Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Word32

points: the font size in points to convert to pixels

-> m Word32

Returns: the equivalent font size in pixels.

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 Settings.

Since: 2.20

fontSizeToPoints

settingsFontSizeToPoints Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Word32

pixels: the font size in pixels to convert to points

-> m Word32

Returns: the equivalent font size in points.

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 Settings.

Since: 2.20

getAllowFileAccessFromFileUrls

settingsGetAllowFileAccessFromFileUrls Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If file access from file URLs is allowed or False otherwise.

Get the Settings:allow-file-access-from-file-urls property.

Since: 2.10

getAllowModalDialogs

settingsGetAllowModalDialogs Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True if it's allowed to create and run modal dialogs or False otherwise.

Get the Settings:allow-modal-dialogs property.

getAllowUniversalAccessFromFileUrls

settingsGetAllowUniversalAccessFromFileUrls Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If universal access from file URLs is allowed or False otherwise.

Get the Settings:allow-universal-access-from-file-urls property.

Since: 2.14

getAutoLoadImages

settingsGetAutoLoadImages Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If auto loading of images is enabled or False otherwise.

Get the Settings:auto-load-images property.

getCursiveFontFamily

settingsGetCursiveFontFamily Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Text

Returns: The default font family used to display content marked with cursive font.

Gets the Settings:cursive-font-family property.

getDefaultCharset

settingsGetDefaultCharset Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Text

Returns: Default charset.

Gets the Settings:default-charset property.

getDefaultFontFamily

settingsGetDefaultFontFamily :: (HasCallStack, MonadIO m, IsSettings a) => a -> m Text Source #

No description available in the introspection data.

getDefaultFontSize

settingsGetDefaultFontSize Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Word32

Returns: The default font size, in pixels.

Gets the Settings:default-font-size property.

getDefaultMonospaceFontSize

settingsGetDefaultMonospaceFontSize Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Word32

Returns: Default monospace font size, in pixels.

Gets the Settings:default-monospace-font-size property.

getDrawCompositingIndicators

settingsGetDrawCompositingIndicators Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If compositing borders are drawn or False otherwise.

Get the Settings:draw-compositing-indicators property.

getEnableAccelerated2dCanvas

settingsGetEnableAccelerated2dCanvas Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True if accelerated 2D canvas is enabled or False otherwise.

Get the Settings:enable-accelerated-2d-canvas property.

Since: 2.2

getEnableBackForwardNavigationGestures

settingsGetEnableBackForwardNavigationGestures Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True if horizontal swipe gesture will trigger back-forward navigaiton or False otherwise.

Get the Settings:enable-back-forward-navigation-gestures property.

Since: 2.24

getEnableCaretBrowsing

settingsGetEnableCaretBrowsing Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If caret browsing is enabled or False otherwise.

Get the Settings:enable-caret-browsing property.

getEnableDeveloperExtras

settingsGetEnableDeveloperExtras Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If developer extras is enabled or False otherwise.

Get the Settings:enable-developer-extras property.

getEnableDnsPrefetching

settingsGetEnableDnsPrefetching Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If DNS prefetching is enabled or False otherwise.

Get the Settings:enable-dns-prefetching property.

getEnableEncryptedMedia

settingsGetEnableEncryptedMedia Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True if EncryptedMedia support is enabled or False otherwise.

Get the Settings:enable-encrypted-media property.

Since: 2.20

getEnableFrameFlattening

settingsGetEnableFrameFlattening Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If frame flattening is enabled or False otherwise.

Get the Settings:enable-frame-flattening property.

getEnableFullscreen

settingsGetEnableFullscreen Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If fullscreen support is enabled or False otherwise.

Get the Settings:enable-fullscreen property.

getEnableHtml5Database

settingsGetEnableHtml5Database Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If HTML5 database support is enabled or False otherwise.

Get the Settings:enable-html5-database property.

getEnableHtml5LocalStorage

settingsGetEnableHtml5LocalStorage Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If HTML5 local storage support is enabled or False otherwise.

Get the Settings:enable-html5-local-storage property.

getEnableHyperlinkAuditing

settingsGetEnableHyperlinkAuditing Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If hyper link auditing is enabled or False otherwise.

Get the Settings:enable-hyperlink-auditing property.

getEnableJava

settingsGetEnableJava Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If Java is enabled or False otherwise.

Get the Settings:enable-java property.

getEnableJavascript

settingsGetEnableJavascript Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If JavaScript is enabled or False otherwise.

Get the Settings:enable-javascript property.

getEnableJavascriptMarkup

settingsGetEnableJavascriptMarkup Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True if JavaScript markup is enabled or False otherwise.

Get the Settings:enable-javascript-markup property.

Since: 2.24

getEnableMediaCapabilities

settingsGetEnableMediaCapabilities Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True if MediaCapabilities support is enabled or False otherwise.

Get the Settings:enable-media-capabilities property.

Since: 2.22

getEnableMediaStream

settingsGetEnableMediaStream Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If mediastream support is enabled or False otherwise.

Get the Settings:enable-media-stream property.

Since: 2.4

getEnableMediasource

settingsGetEnableMediasource Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If MediaSource support is enabled or False otherwise.

Get the Settings:enable-mediasource property.

Since: 2.4

getEnableMockCaptureDevices

settingsGetEnableMockCaptureDevices Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If mock capture devices is enabled or False otherwise.

Get the Settings:enable-mock-capture-devices property.

Since: 2.24

getEnableOfflineWebApplicationCache

settingsGetEnableOfflineWebApplicationCache Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If HTML5 offline web application cache support is enabled or False otherwise.

Get the Settings:enable-offline-web-application-cache property.

getEnablePageCache

settingsGetEnablePageCache Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True if page cache enabled or False otherwise.

Get the Settings:enable-page-cache property.

getEnablePlugins

settingsGetEnablePlugins Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If plugins are enabled or False otherwise.

Get the Settings:enable-plugins property.

getEnablePrivateBrowsing

settingsGetEnablePrivateBrowsing Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If private browsing is enabled or False otherwise.

Deprecated: (Since version 2.16.)Use WebView:is-ephemeral or WebContext:is-ephemeral instead.

Get the Settings:enable-private-browsing property.

getEnableResizableTextAreas

settingsGetEnableResizableTextAreas Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If text areas can be resized or False otherwise.

Get the Settings:enable-resizable-text-areas property.

getEnableSiteSpecificQuirks

settingsGetEnableSiteSpecificQuirks Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True if site specific quirks are enabled or False otherwise.

Get the Settings:enable-site-specific-quirks property.

getEnableSmoothScrolling

settingsGetEnableSmoothScrolling Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True if smooth scrolling is enabled or False otherwise.

Get the Settings:enable-smooth-scrolling property.

getEnableSpatialNavigation

settingsGetEnableSpatialNavigation Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If HTML5 spatial navigation support is enabled or False otherwise.

Get the Settings:enable-spatial-navigation property.

Since: 2.2

getEnableTabsToLinks

settingsGetEnableTabsToLinks Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If tabs to link is enabled or False otherwise.

Get the Settings:enable-tabs-to-links property.

getEnableWebaudio

settingsGetEnableWebaudio Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If webaudio support is enabled or False otherwise.

Get the Settings:enable-webaudio property.

getEnableWebgl

settingsGetEnableWebgl Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If WebGL support is enabled or False otherwise.

Get the Settings:enable-webgl property.

getEnableWriteConsoleMessagesToStdout

settingsGetEnableWriteConsoleMessagesToStdout Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True if writing console messages to stdout is enabled or False otherwise.

Get the Settings:enable-write-console-messages-to-stdout property.

Since: 2.2

getEnableXssAuditor

settingsGetEnableXssAuditor Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If XSS auditing is enabled or False otherwise.

Get the Settings:enable-xss-auditor property.

getFantasyFontFamily

settingsGetFantasyFontFamily Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Text

Returns: The default font family used to display content marked with fantasy font.

Gets the Settings:fantasy-font-family property.

getHardwareAccelerationPolicy

settingsGetHardwareAccelerationPolicy Source #

Get the Settings:hardware-acceleration-policy property.

Since: 2.16

getJavascriptCanAccessClipboard

settingsGetJavascriptCanAccessClipboard Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If javascript-can-access-clipboard is enabled or False otherwise.

Get the Settings:javascript-can-access-clipboard property.

getJavascriptCanOpenWindowsAutomatically

settingsGetJavascriptCanOpenWindowsAutomatically Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If JavaScript can open window automatically or False otherwise.

Get the Settings:javascript-can-open-windows-automatically property.

getLoadIconsIgnoringImageLoadSetting

settingsGetLoadIconsIgnoringImageLoadSetting Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If site icon can be loaded irrespective of image loading preference or False otherwise.

Get the Settings:load-icons-ignoring-image-load-setting property.

getMediaPlaybackAllowsInline

settingsGetMediaPlaybackAllowsInline Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If inline playback is allowed for media or False if only fullscreen playback is allowed.

Get the Settings:media-playback-allows-inline property.

getMediaPlaybackRequiresUserGesture

settingsGetMediaPlaybackRequiresUserGesture Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If an user gesture is needed to play or load media or False if no user gesture is needed.

Get the Settings:media-playback-requires-user-gesture property.

getMinimumFontSize

settingsGetMinimumFontSize Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Word32

Returns: Minimum font size, in pixels.

Gets the Settings:minimum-font-size property.

getMonospaceFontFamily

settingsGetMonospaceFontFamily Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Text

Returns: Default font family used to display content marked with monospace font.

Gets the Settings:monospace-font-family property.

getPictographFontFamily

settingsGetPictographFontFamily Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Text

Returns: The default font family used to display content marked with pictograph font.

Gets the Settings:pictograph-font-family property.

getPrintBackgrounds

settingsGetPrintBackgrounds Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If background images should be printed or False otherwise.

Get the Settings:print-backgrounds property.

getSansSerifFontFamily

settingsGetSansSerifFontFamily Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Text

Returns: The default font family used to display content marked with sans-serif font.

Gets the Settings:sans-serif-font-family property.

getSerifFontFamily

settingsGetSerifFontFamily Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Text

Returns: The default font family used to display content marked with serif font.

Gets the Settings:serif-font-family property.

getUserAgent

settingsGetUserAgent Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Text

Returns: The current value of the user-agent property.

Get the Settings:user-agent property.

getZoomTextOnly

settingsGetZoomTextOnly Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> m Bool

Returns: True If zoom level of the view should only affect the text or False if all view contents should be scaled.

Get the Settings:zoom-text-only property.

new

settingsNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m Settings

Returns: a new Settings instance.

Creates a new Settings instance with default values. It must be manually attached to a WebView. See also webkit_settings_new_with_settings().

setAllowFileAccessFromFileUrls

settingsSetAllowFileAccessFromFileUrls Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

allowed: Value to be set

-> m () 

Set the Settings:allow-file-access-from-file-urls property.

Since: 2.10

setAllowModalDialogs

settingsSetAllowModalDialogs Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

allowed: Value to be set

-> m () 

Set the Settings:allow-modal-dialogs property.

setAllowUniversalAccessFromFileUrls

settingsSetAllowUniversalAccessFromFileUrls Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

allowed: Value to be set

-> m () 

Set the Settings:allow-universal-access-from-file-urls property.

Since: 2.14

setAutoLoadImages

settingsSetAutoLoadImages Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:auto-load-images property.

setCursiveFontFamily

settingsSetCursiveFontFamily Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Text

cursiveFontFamily: the new default cursive font family

-> m () 

Set the Settings:cursive-font-family property.

setDefaultCharset

settingsSetDefaultCharset Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Text

defaultCharset: default charset to be set

-> m () 

Set the Settings:default-charset property.

setDefaultFontFamily

settingsSetDefaultFontFamily Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Text

defaultFontFamily: the new default font family

-> m () 

Set the Settings:default-font-family property.

setDefaultFontSize

settingsSetDefaultFontSize Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Word32

fontSize: default font size to be set in pixels

-> m () 

Set the Settings:default-font-size property.

setDefaultMonospaceFontSize

settingsSetDefaultMonospaceFontSize Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Word32

fontSize: default monospace font size to be set in pixels

-> m () 

Set the Settings:default-monospace-font-size property.

setDrawCompositingIndicators

settingsSetDrawCompositingIndicators Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:draw-compositing-indicators property.

setEnableAccelerated2dCanvas

settingsSetEnableAccelerated2dCanvas Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-accelerated-2d-canvas property.

Since: 2.2

setEnableBackForwardNavigationGestures

settingsSetEnableBackForwardNavigationGestures Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: value to be set

-> m () 

Set the Settings:enable-back-forward-navigation-gestures property.

Since: 2.24

setEnableCaretBrowsing

settingsSetEnableCaretBrowsing Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-caret-browsing property.

setEnableDeveloperExtras

settingsSetEnableDeveloperExtras Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-developer-extras property.

setEnableDnsPrefetching

settingsSetEnableDnsPrefetching Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-dns-prefetching property.

setEnableEncryptedMedia

settingsSetEnableEncryptedMedia Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-encrypted-media property.

Since: 2.20

setEnableFrameFlattening

settingsSetEnableFrameFlattening Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-frame-flattening property.

setEnableFullscreen

settingsSetEnableFullscreen Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-fullscreen property.

setEnableHtml5Database

settingsSetEnableHtml5Database Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-html5-database property.

setEnableHtml5LocalStorage

settingsSetEnableHtml5LocalStorage Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-html5-local-storage property.

setEnableHyperlinkAuditing

settingsSetEnableHyperlinkAuditing Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-hyperlink-auditing property.

setEnableJava

settingsSetEnableJava Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-java property.

setEnableJavascript

settingsSetEnableJavascript Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-javascript property.

setEnableJavascriptMarkup

settingsSetEnableJavascriptMarkup Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-javascript-markup property.

Since: 2.24

setEnableMediaCapabilities

settingsSetEnableMediaCapabilities Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-media-capabilities property.

Since: 2.22

setEnableMediaStream

settingsSetEnableMediaStream Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-media-stream property.

Since: 2.4

setEnableMediasource

settingsSetEnableMediasource Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-mediasource property.

Since: 2.4

setEnableMockCaptureDevices

settingsSetEnableMockCaptureDevices Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-mock-capture-devices property.

Since: 2.4

setEnableOfflineWebApplicationCache

settingsSetEnableOfflineWebApplicationCache Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-offline-web-application-cache property.

setEnablePageCache

settingsSetEnablePageCache Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-page-cache property.

setEnablePlugins

settingsSetEnablePlugins Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-plugins property.

setEnablePrivateBrowsing

settingsSetEnablePrivateBrowsing Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Deprecated: (Since version 2.16.)Use WebView:is-ephemeral or WebContext:is-ephemeral instead.

Set the Settings:enable-private-browsing property.

setEnableResizableTextAreas

settingsSetEnableResizableTextAreas Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-resizable-text-areas property.

setEnableSiteSpecificQuirks

settingsSetEnableSiteSpecificQuirks Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-site-specific-quirks property.

setEnableSmoothScrolling

settingsSetEnableSmoothScrolling Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-smooth-scrolling property.

setEnableSpatialNavigation

settingsSetEnableSpatialNavigation Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-spatial-navigation property.

Since: 2.2

setEnableTabsToLinks

settingsSetEnableTabsToLinks Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-tabs-to-links property.

setEnableWebaudio

settingsSetEnableWebaudio Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-webaudio property.

setEnableWebgl

settingsSetEnableWebgl Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-webgl property.

setEnableWriteConsoleMessagesToStdout

settingsSetEnableWriteConsoleMessagesToStdout Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-write-console-messages-to-stdout property.

Since: 2.2

setEnableXssAuditor

settingsSetEnableXssAuditor Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:enable-xss-auditor property.

setFantasyFontFamily

settingsSetFantasyFontFamily Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Text

fantasyFontFamily: the new default fantasy font family

-> m () 

Set the Settings:fantasy-font-family property.

setHardwareAccelerationPolicy

settingsSetHardwareAccelerationPolicy Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> HardwareAccelerationPolicy

policy: a HardwareAccelerationPolicy

-> m () 

Set the Settings:hardware-acceleration-policy property.

Since: 2.16

setJavascriptCanAccessClipboard

settingsSetJavascriptCanAccessClipboard Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:javascript-can-access-clipboard property.

setJavascriptCanOpenWindowsAutomatically

settingsSetJavascriptCanOpenWindowsAutomatically Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:javascript-can-open-windows-automatically property.

setLoadIconsIgnoringImageLoadSetting

settingsSetLoadIconsIgnoringImageLoadSetting Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:load-icons-ignoring-image-load-setting property.

setMediaPlaybackAllowsInline

settingsSetMediaPlaybackAllowsInline Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:media-playback-allows-inline property.

setMediaPlaybackRequiresUserGesture

settingsSetMediaPlaybackRequiresUserGesture Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

enabled: Value to be set

-> m () 

Set the Settings:media-playback-requires-user-gesture property.

setMinimumFontSize

settingsSetMinimumFontSize Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Word32

fontSize: minimum font size to be set in pixels

-> m () 

Set the Settings:minimum-font-size property.

setMonospaceFontFamily

settingsSetMonospaceFontFamily Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Text

monospaceFontFamily: the new default monospace font family

-> m () 

Set the Settings:monospace-font-family property.

setPictographFontFamily

settingsSetPictographFontFamily Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Text

pictographFontFamily: the new default pictograph font family

-> m () 

Set the Settings:pictograph-font-family property.

setPrintBackgrounds

settingsSetPrintBackgrounds Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

printBackgrounds: Value to be set

-> m () 

Set the Settings:print-backgrounds property.

setSansSerifFontFamily

settingsSetSansSerifFontFamily Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Text

sansSerifFontFamily: the new default sans-serif font family

-> m () 

Set the Settings:sans-serif-font-family property.

setSerifFontFamily

settingsSetSerifFontFamily Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Text

serifFontFamily: the new default serif font family

-> m () 

Set the Settings:serif-font-family property.

setUserAgent

settingsSetUserAgent Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Maybe Text

userAgent: The new custom user agent string or Nothing to use the default user agent

-> m () 

Set the Settings:user-agent property.

setUserAgentWithApplicationDetails

settingsSetUserAgentWithApplicationDetails Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Maybe Text

applicationName: The application name used for the user agent or Nothing to use the default user agent.

-> Maybe Text

applicationVersion: The application version for the user agent or Nothing to user the default version.

-> m () 

Set the Settings: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.

setZoomTextOnly

settingsSetZoomTextOnly Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettings a) 
=> a

settings: a Settings

-> Bool

zoomTextOnly: Value to be set

-> m () 

Set the Settings:zoom-text-only property.

Properties

allowFileAccessFromFileUrls

Whether file access is allowed from file URLs. By default, when something is loaded in a WebView 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.

Since: 2.10

constructSettingsAllowFileAccessFromFileUrls :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “allow-file-access-from-file-urls” property. This is rarely needed directly, but it is used by new.

getSettingsAllowFileAccessFromFileUrls :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “allow-file-access-from-file-urls” property. When overloading is enabled, this is equivalent to

get settings #allowFileAccessFromFileUrls

setSettingsAllowFileAccessFromFileUrls :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “allow-file-access-from-file-urls” property. When overloading is enabled, this is equivalent to

set settings [ #allowFileAccessFromFileUrls := value ]

allowModalDialogs

Determine whether it's allowed to create and run modal dialogs from a WebView through JavaScript with <function>window.showModalDialog</function>. If it's set to False, the associated WebView won't be able to create new modal dialogs, so not even the WebView::create signal will be emitted.

constructSettingsAllowModalDialogs :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “allow-modal-dialogs” property. This is rarely needed directly, but it is used by new.

getSettingsAllowModalDialogs :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “allow-modal-dialogs” property. When overloading is enabled, this is equivalent to

get settings #allowModalDialogs

setSettingsAllowModalDialogs :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “allow-modal-dialogs” property. When overloading is enabled, this is equivalent to

set settings [ #allowModalDialogs := value ]

allowUniversalAccessFromFileUrls

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 WebView 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.

Since: 2.14

constructSettingsAllowUniversalAccessFromFileUrls :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “allow-universal-access-from-file-urls” property. This is rarely needed directly, but it is used by new.

getSettingsAllowUniversalAccessFromFileUrls :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “allow-universal-access-from-file-urls” property. When overloading is enabled, this is equivalent to

get settings #allowUniversalAccessFromFileUrls

setSettingsAllowUniversalAccessFromFileUrls :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “allow-universal-access-from-file-urls” property. When overloading is enabled, this is equivalent to

set settings [ #allowUniversalAccessFromFileUrls := value ]

autoLoadImages

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.

constructSettingsAutoLoadImages :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “auto-load-images” property. This is rarely needed directly, but it is used by new.

getSettingsAutoLoadImages :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “auto-load-images” property. When overloading is enabled, this is equivalent to

get settings #autoLoadImages

setSettingsAutoLoadImages :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “auto-load-images” property. When overloading is enabled, this is equivalent to

set settings [ #autoLoadImages := value ]

cursiveFontFamily

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

constructSettingsCursiveFontFamily :: IsSettings o => Text -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “cursive-font-family” property. This is rarely needed directly, but it is used by new.

getSettingsCursiveFontFamily :: (MonadIO m, IsSettings o) => o -> m Text Source #

Get the value of the “cursive-font-family” property. When overloading is enabled, this is equivalent to

get settings #cursiveFontFamily

setSettingsCursiveFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m () Source #

Set the value of the “cursive-font-family” property. When overloading is enabled, this is equivalent to

set settings [ #cursiveFontFamily := value ]

defaultCharset

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

constructSettingsDefaultCharset :: IsSettings o => Text -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “default-charset” property. This is rarely needed directly, but it is used by new.

getSettingsDefaultCharset :: (MonadIO m, IsSettings o) => o -> m Text Source #

Get the value of the “default-charset” property. When overloading is enabled, this is equivalent to

get settings #defaultCharset

setSettingsDefaultCharset :: (MonadIO m, IsSettings o) => o -> Text -> m () Source #

Set the value of the “default-charset” property. When overloading is enabled, this is equivalent to

set settings [ #defaultCharset := value ]

defaultFontFamily

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

constructSettingsDefaultFontFamily :: IsSettings o => Text -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “default-font-family” property. This is rarely needed directly, but it is used by new.

getSettingsDefaultFontFamily :: (MonadIO m, IsSettings o) => o -> m Text Source #

Get the value of the “default-font-family” property. When overloading is enabled, this is equivalent to

get settings #defaultFontFamily

setSettingsDefaultFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m () Source #

Set the value of the “default-font-family” property. When overloading is enabled, this is equivalent to

set settings [ #defaultFontFamily := value ]

defaultFontSize

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

constructSettingsDefaultFontSize :: IsSettings o => Word32 -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “default-font-size” property. This is rarely needed directly, but it is used by new.

getSettingsDefaultFontSize :: (MonadIO m, IsSettings o) => o -> m Word32 Source #

Get the value of the “default-font-size” property. When overloading is enabled, this is equivalent to

get settings #defaultFontSize

setSettingsDefaultFontSize :: (MonadIO m, IsSettings o) => o -> Word32 -> m () Source #

Set the value of the “default-font-size” property. When overloading is enabled, this is equivalent to

set settings [ #defaultFontSize := value ]

defaultMonospaceFontSize

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

constructSettingsDefaultMonospaceFontSize :: IsSettings o => Word32 -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “default-monospace-font-size” property. This is rarely needed directly, but it is used by new.

getSettingsDefaultMonospaceFontSize :: (MonadIO m, IsSettings o) => o -> m Word32 Source #

Get the value of the “default-monospace-font-size” property. When overloading is enabled, this is equivalent to

get settings #defaultMonospaceFontSize

setSettingsDefaultMonospaceFontSize :: (MonadIO m, IsSettings o) => o -> Word32 -> m () Source #

Set the value of the “default-monospace-font-size” property. When overloading is enabled, this is equivalent to

set settings [ #defaultMonospaceFontSize := value ]

drawCompositingIndicators

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.

constructSettingsDrawCompositingIndicators :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “draw-compositing-indicators” property. This is rarely needed directly, but it is used by new.

getSettingsDrawCompositingIndicators :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “draw-compositing-indicators” property. When overloading is enabled, this is equivalent to

get settings #drawCompositingIndicators

setSettingsDrawCompositingIndicators :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “draw-compositing-indicators” property. When overloading is enabled, this is equivalent to

set settings [ #drawCompositingIndicators := value ]

enableAccelerated2dCanvas

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.

Since: 2.2

constructSettingsEnableAccelerated2dCanvas :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-accelerated-2d-canvas” property. This is rarely needed directly, but it is used by new.

getSettingsEnableAccelerated2dCanvas :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-accelerated-2d-canvas” property. When overloading is enabled, this is equivalent to

get settings #enableAccelerated2dCanvas

setSettingsEnableAccelerated2dCanvas :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-accelerated-2d-canvas” property. When overloading is enabled, this is equivalent to

set settings [ #enableAccelerated2dCanvas := value ]

enableBackForwardNavigationGestures

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

Since: 2.24

constructSettingsEnableBackForwardNavigationGestures :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-back-forward-navigation-gestures” property. This is rarely needed directly, but it is used by new.

getSettingsEnableBackForwardNavigationGestures :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-back-forward-navigation-gestures” property. When overloading is enabled, this is equivalent to

get settings #enableBackForwardNavigationGestures

setSettingsEnableBackForwardNavigationGestures :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-back-forward-navigation-gestures” property. When overloading is enabled, this is equivalent to

set settings [ #enableBackForwardNavigationGestures := value ]

enableCaretBrowsing

Whether to enable accessibility enhanced keyboard navigation.

constructSettingsEnableCaretBrowsing :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-caret-browsing” property. This is rarely needed directly, but it is used by new.

getSettingsEnableCaretBrowsing :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-caret-browsing” property. When overloading is enabled, this is equivalent to

get settings #enableCaretBrowsing

setSettingsEnableCaretBrowsing :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-caret-browsing” property. When overloading is enabled, this is equivalent to

set settings [ #enableCaretBrowsing := value ]

enableDeveloperExtras

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

constructSettingsEnableDeveloperExtras :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-developer-extras” property. This is rarely needed directly, but it is used by new.

getSettingsEnableDeveloperExtras :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-developer-extras” property. When overloading is enabled, this is equivalent to

get settings #enableDeveloperExtras

setSettingsEnableDeveloperExtras :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-developer-extras” property. When overloading is enabled, this is equivalent to

set settings [ #enableDeveloperExtras := value ]

enableDnsPrefetching

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

constructSettingsEnableDnsPrefetching :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-dns-prefetching” property. This is rarely needed directly, but it is used by new.

getSettingsEnableDnsPrefetching :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-dns-prefetching” property. When overloading is enabled, this is equivalent to

get settings #enableDnsPrefetching

setSettingsEnableDnsPrefetching :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-dns-prefetching” property. When overloading is enabled, this is equivalent to

set settings [ #enableDnsPrefetching := value ]

enableEncryptedMedia

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.

See https://www.w3.org/TR/encrypted-media/

Since: 2.20

constructSettingsEnableEncryptedMedia :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-encrypted-media” property. This is rarely needed directly, but it is used by new.

getSettingsEnableEncryptedMedia :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-encrypted-media” property. When overloading is enabled, this is equivalent to

get settings #enableEncryptedMedia

setSettingsEnableEncryptedMedia :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-encrypted-media” property. When overloading is enabled, this is equivalent to

set settings [ #enableEncryptedMedia := value ]

enableFrameFlattening

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.

constructSettingsEnableFrameFlattening :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-frame-flattening” property. This is rarely needed directly, but it is used by new.

getSettingsEnableFrameFlattening :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-frame-flattening” property. When overloading is enabled, this is equivalent to

get settings #enableFrameFlattening

setSettingsEnableFrameFlattening :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-frame-flattening” property. When overloading is enabled, this is equivalent to

set settings [ #enableFrameFlattening := value ]

enableFullscreen

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/

constructSettingsEnableFullscreen :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-fullscreen” property. This is rarely needed directly, but it is used by new.

getSettingsEnableFullscreen :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-fullscreen” property. When overloading is enabled, this is equivalent to

get settings #enableFullscreen

setSettingsEnableFullscreen :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-fullscreen” property. When overloading is enabled, this is equivalent to

set settings [ #enableFullscreen := value ]

enableHtml5Database

Whether to enable HTML5 client-side SQL database support. Client-side SQL database allows web pages to store structured data and be able to use SQL to manipulate that data asynchronously.

HTML5 database specification is available at http://www.w3.org/TR/webdatabase/.

constructSettingsEnableHtml5Database :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-html5-database” property. This is rarely needed directly, but it is used by new.

getSettingsEnableHtml5Database :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-html5-database” property. When overloading is enabled, this is equivalent to

get settings #enableHtml5Database

setSettingsEnableHtml5Database :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-html5-database” property. When overloading is enabled, this is equivalent to

set settings [ #enableHtml5Database := value ]

enableHtml5LocalStorage

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/.

constructSettingsEnableHtml5LocalStorage :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-html5-local-storage” property. This is rarely needed directly, but it is used by new.

getSettingsEnableHtml5LocalStorage :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-html5-local-storage” property. When overloading is enabled, this is equivalent to

get settings #enableHtml5LocalStorage

setSettingsEnableHtml5LocalStorage :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-html5-local-storage” property. When overloading is enabled, this is equivalent to

set settings [ #enableHtml5LocalStorage := value ]

enableHyperlinkAuditing

Determines whether or not hyperlink auditing is enabled.

The hyperlink auditing specification is available at http://www.whatwg.org/specs/web-apps/current-work/multipage/links.htmlhyperlink-auditing.

constructSettingsEnableHyperlinkAuditing :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-hyperlink-auditing” property. This is rarely needed directly, but it is used by new.

getSettingsEnableHyperlinkAuditing :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-hyperlink-auditing” property. When overloading is enabled, this is equivalent to

get settings #enableHyperlinkAuditing

setSettingsEnableHyperlinkAuditing :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-hyperlink-auditing” property. When overloading is enabled, this is equivalent to

set settings [ #enableHyperlinkAuditing := value ]

enableJava

Determines whether or not Java is enabled on the page.

constructSettingsEnableJava :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-java” property. This is rarely needed directly, but it is used by new.

getSettingsEnableJava :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-java” property. When overloading is enabled, this is equivalent to

get settings #enableJava

setSettingsEnableJava :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-java” property. When overloading is enabled, this is equivalent to

set settings [ #enableJava := value ]

enableJavascript

Determines whether or not JavaScript executes within a page.

constructSettingsEnableJavascript :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-javascript” property. This is rarely needed directly, but it is used by new.

getSettingsEnableJavascript :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-javascript” property. When overloading is enabled, this is equivalent to

get settings #enableJavascript

setSettingsEnableJavascript :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-javascript” property. When overloading is enabled, this is equivalent to

set settings [ #enableJavascript := value ]

enableJavascriptMarkup

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 Settings:enable-javascript is True.

Since: 2.24

constructSettingsEnableJavascriptMarkup :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-javascript-markup” property. This is rarely needed directly, but it is used by new.

getSettingsEnableJavascriptMarkup :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-javascript-markup” property. When overloading is enabled, this is equivalent to

get settings #enableJavascriptMarkup

setSettingsEnableJavascriptMarkup :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-javascript-markup” property. When overloading is enabled, this is equivalent to

set settings [ #enableJavascriptMarkup := value ]

enableMediaCapabilities

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.

See also https://wicg.github.io/media-capabilities/

Since: 2.22

constructSettingsEnableMediaCapabilities :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-media-capabilities” property. This is rarely needed directly, but it is used by new.

getSettingsEnableMediaCapabilities :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-media-capabilities” property. When overloading is enabled, this is equivalent to

get settings #enableMediaCapabilities

setSettingsEnableMediaCapabilities :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-media-capabilities” property. When overloading is enabled, this is equivalent to

set settings [ #enableMediaCapabilities := value ]

enableMediaStream

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.

See also http://dev.w3.org/2011/webrtc/editor/getusermedia.html

Since: 2.4

constructSettingsEnableMediaStream :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-media-stream” property. This is rarely needed directly, but it is used by new.

getSettingsEnableMediaStream :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-media-stream” property. When overloading is enabled, this is equivalent to

get settings #enableMediaStream

setSettingsEnableMediaStream :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-media-stream” property. When overloading is enabled, this is equivalent to

set settings [ #enableMediaStream := value ]

enableMediasource

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

See also http://www.w3.org/TR/media-source/

Since: 2.4

constructSettingsEnableMediasource :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-mediasource” property. This is rarely needed directly, but it is used by new.

getSettingsEnableMediasource :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-mediasource” property. When overloading is enabled, this is equivalent to

get settings #enableMediasource

setSettingsEnableMediasource :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-mediasource” property. When overloading is enabled, this is equivalent to

set settings [ #enableMediasource := value ]

enableMockCaptureDevices

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

Since: 2.24

constructSettingsEnableMockCaptureDevices :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-mock-capture-devices” property. This is rarely needed directly, but it is used by new.

getSettingsEnableMockCaptureDevices :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-mock-capture-devices” property. When overloading is enabled, this is equivalent to

get settings #enableMockCaptureDevices

setSettingsEnableMockCaptureDevices :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-mock-capture-devices” property. When overloading is enabled, this is equivalent to

set settings [ #enableMockCaptureDevices := value ]

enableOfflineWebApplicationCache

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.

constructSettingsEnableOfflineWebApplicationCache :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-offline-web-application-cache” property. This is rarely needed directly, but it is used by new.

getSettingsEnableOfflineWebApplicationCache :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-offline-web-application-cache” property. When overloading is enabled, this is equivalent to

get settings #enableOfflineWebApplicationCache

setSettingsEnableOfflineWebApplicationCache :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-offline-web-application-cache” property. When overloading is enabled, this is equivalent to

set settings [ #enableOfflineWebApplicationCache := value ]

enablePageCache

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/

constructSettingsEnablePageCache :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-page-cache” property. This is rarely needed directly, but it is used by new.

getSettingsEnablePageCache :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-page-cache” property. When overloading is enabled, this is equivalent to

get settings #enablePageCache

setSettingsEnablePageCache :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-page-cache” property. When overloading is enabled, this is equivalent to

set settings [ #enablePageCache := value ]

enablePlugins

Determines whether or not plugins on the page are enabled.

constructSettingsEnablePlugins :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-plugins” property. This is rarely needed directly, but it is used by new.

getSettingsEnablePlugins :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-plugins” property. When overloading is enabled, this is equivalent to

get settings #enablePlugins

setSettingsEnablePlugins :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-plugins” property. When overloading is enabled, this is equivalent to

set settings [ #enablePlugins := value ]

enablePrivateBrowsing

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

constructSettingsEnablePrivateBrowsing :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-private-browsing” property. This is rarely needed directly, but it is used by new.

getSettingsEnablePrivateBrowsing :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-private-browsing” property. When overloading is enabled, this is equivalent to

get settings #enablePrivateBrowsing

setSettingsEnablePrivateBrowsing :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-private-browsing” property. When overloading is enabled, this is equivalent to

set settings [ #enablePrivateBrowsing := value ]

enableResizableTextAreas

Determines whether or not text areas can be resized.

constructSettingsEnableResizableTextAreas :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-resizable-text-areas” property. This is rarely needed directly, but it is used by new.

getSettingsEnableResizableTextAreas :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-resizable-text-areas” property. When overloading is enabled, this is equivalent to

get settings #enableResizableTextAreas

setSettingsEnableResizableTextAreas :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-resizable-text-areas” property. When overloading is enabled, this is equivalent to

set settings [ #enableResizableTextAreas := value ]

enableSiteSpecificQuirks

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.

constructSettingsEnableSiteSpecificQuirks :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-site-specific-quirks” property. This is rarely needed directly, but it is used by new.

getSettingsEnableSiteSpecificQuirks :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-site-specific-quirks” property. When overloading is enabled, this is equivalent to

get settings #enableSiteSpecificQuirks

setSettingsEnableSiteSpecificQuirks :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-site-specific-quirks” property. When overloading is enabled, this is equivalent to

set settings [ #enableSiteSpecificQuirks := value ]

enableSmoothScrolling

Enable or disable smooth scrolling.

constructSettingsEnableSmoothScrolling :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-smooth-scrolling” property. This is rarely needed directly, but it is used by new.

getSettingsEnableSmoothScrolling :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-smooth-scrolling” property. When overloading is enabled, this is equivalent to

get settings #enableSmoothScrolling

setSettingsEnableSmoothScrolling :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-smooth-scrolling” property. When overloading is enabled, this is equivalent to

set settings [ #enableSmoothScrolling := value ]

enableSpatialNavigation

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.

Since: 2.4

constructSettingsEnableSpatialNavigation :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-spatial-navigation” property. This is rarely needed directly, but it is used by new.

getSettingsEnableSpatialNavigation :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-spatial-navigation” property. When overloading is enabled, this is equivalent to

get settings #enableSpatialNavigation

setSettingsEnableSpatialNavigation :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-spatial-navigation” property. When overloading is enabled, this is equivalent to

set settings [ #enableSpatialNavigation := value ]

enableTabsToLinks

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.

constructSettingsEnableTabsToLinks :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-tabs-to-links” property. This is rarely needed directly, but it is used by new.

getSettingsEnableTabsToLinks :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-tabs-to-links” property. When overloading is enabled, this is equivalent to

get settings #enableTabsToLinks

setSettingsEnableTabsToLinks :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-tabs-to-links” property. When overloading is enabled, this is equivalent to

set settings [ #enableTabsToLinks := value ]

enableWebaudio

Enable or disable support for WebAudio on pages. WebAudio is an experimental proposal for allowing web pages to generate Audio WAVE data from JavaScript. The standard is currently a work-in-progress by the W3C Audio Working Group.

See also https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html

constructSettingsEnableWebaudio :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-webaudio” property. This is rarely needed directly, but it is used by new.

getSettingsEnableWebaudio :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-webaudio” property. When overloading is enabled, this is equivalent to

get settings #enableWebaudio

setSettingsEnableWebaudio :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-webaudio” property. When overloading is enabled, this is equivalent to

set settings [ #enableWebaudio := value ]

enableWebgl

Enable or disable support for WebGL on pages. WebGL is an experimental proposal for allowing web pages to use OpenGL ES-like calls directly. The standard is currently a work-in-progress by the Khronos Group.

constructSettingsEnableWebgl :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-webgl” property. This is rarely needed directly, but it is used by new.

getSettingsEnableWebgl :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-webgl” property. When overloading is enabled, this is equivalent to

get settings #enableWebgl

setSettingsEnableWebgl :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-webgl” property. When overloading is enabled, this is equivalent to

set settings [ #enableWebgl := value ]

enableWriteConsoleMessagesToStdout

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

Since: 2.2

constructSettingsEnableWriteConsoleMessagesToStdout :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-write-console-messages-to-stdout” property. This is rarely needed directly, but it is used by new.

getSettingsEnableWriteConsoleMessagesToStdout :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-write-console-messages-to-stdout” property. When overloading is enabled, this is equivalent to

get settings #enableWriteConsoleMessagesToStdout

setSettingsEnableWriteConsoleMessagesToStdout :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-write-console-messages-to-stdout” property. When overloading is enabled, this is equivalent to

set settings [ #enableWriteConsoleMessagesToStdout := value ]

enableXssAuditor

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

constructSettingsEnableXssAuditor :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “enable-xss-auditor” property. This is rarely needed directly, but it is used by new.

getSettingsEnableXssAuditor :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “enable-xss-auditor” property. When overloading is enabled, this is equivalent to

get settings #enableXssAuditor

setSettingsEnableXssAuditor :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “enable-xss-auditor” property. When overloading is enabled, this is equivalent to

set settings [ #enableXssAuditor := value ]

fantasyFontFamily

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

constructSettingsFantasyFontFamily :: IsSettings o => Text -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “fantasy-font-family” property. This is rarely needed directly, but it is used by new.

getSettingsFantasyFontFamily :: (MonadIO m, IsSettings o) => o -> m Text Source #

Get the value of the “fantasy-font-family” property. When overloading is enabled, this is equivalent to

get settings #fantasyFontFamily

setSettingsFantasyFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m () Source #

Set the value of the “fantasy-font-family” property. When overloading is enabled, this is equivalent to

set settings [ #fantasyFontFamily := value ]

hardwareAccelerationPolicy

The HardwareAccelerationPolicy to decide how to enable and disable hardware acceleration. The default value HardwareAccelerationPolicyOnDemand enables the hardware acceleration when the web contents request it, disabling it again when no longer needed. It's possible to enforce hardware acceleration to be always enabled by using HardwareAccelerationPolicyAlways. And it's also possible to disable it completely using HardwareAccelerationPolicyNever. 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.

Since: 2.16

constructSettingsHardwareAccelerationPolicy :: IsSettings o => HardwareAccelerationPolicy -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “hardware-acceleration-policy” property. This is rarely needed directly, but it is used by new.

getSettingsHardwareAccelerationPolicy :: (MonadIO m, IsSettings o) => o -> m HardwareAccelerationPolicy Source #

Get the value of the “hardware-acceleration-policy” property. When overloading is enabled, this is equivalent to

get settings #hardwareAccelerationPolicy

setSettingsHardwareAccelerationPolicy :: (MonadIO m, IsSettings o) => o -> HardwareAccelerationPolicy -> m () Source #

Set the value of the “hardware-acceleration-policy” property. When overloading is enabled, this is equivalent to

set settings [ #hardwareAccelerationPolicy := value ]

javascriptCanAccessClipboard

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

constructSettingsJavascriptCanAccessClipboard :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “javascript-can-access-clipboard” property. This is rarely needed directly, but it is used by new.

getSettingsJavascriptCanAccessClipboard :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “javascript-can-access-clipboard” property. When overloading is enabled, this is equivalent to

get settings #javascriptCanAccessClipboard

setSettingsJavascriptCanAccessClipboard :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “javascript-can-access-clipboard” property. When overloading is enabled, this is equivalent to

set settings [ #javascriptCanAccessClipboard := value ]

javascriptCanOpenWindowsAutomatically

Whether JavaScript can open popup windows automatically without user intervention.

constructSettingsJavascriptCanOpenWindowsAutomatically :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “javascript-can-open-windows-automatically” property. This is rarely needed directly, but it is used by new.

getSettingsJavascriptCanOpenWindowsAutomatically :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “javascript-can-open-windows-automatically” property. When overloading is enabled, this is equivalent to

get settings #javascriptCanOpenWindowsAutomatically

setSettingsJavascriptCanOpenWindowsAutomatically :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “javascript-can-open-windows-automatically” property. When overloading is enabled, this is equivalent to

set settings [ #javascriptCanOpenWindowsAutomatically := value ]

loadIconsIgnoringImageLoadSetting

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

constructSettingsLoadIconsIgnoringImageLoadSetting :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “load-icons-ignoring-image-load-setting” property. This is rarely needed directly, but it is used by new.

getSettingsLoadIconsIgnoringImageLoadSetting :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “load-icons-ignoring-image-load-setting” property. When overloading is enabled, this is equivalent to

get settings #loadIconsIgnoringImageLoadSetting

setSettingsLoadIconsIgnoringImageLoadSetting :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “load-icons-ignoring-image-load-setting” property. When overloading is enabled, this is equivalent to

set settings [ #loadIconsIgnoringImageLoadSetting := value ]

mediaPlaybackAllowsInline

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.

constructSettingsMediaPlaybackAllowsInline :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “media-playback-allows-inline” property. This is rarely needed directly, but it is used by new.

getSettingsMediaPlaybackAllowsInline :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “media-playback-allows-inline” property. When overloading is enabled, this is equivalent to

get settings #mediaPlaybackAllowsInline

setSettingsMediaPlaybackAllowsInline :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “media-playback-allows-inline” property. When overloading is enabled, this is equivalent to

set settings [ #mediaPlaybackAllowsInline := value ]

mediaPlaybackRequiresUserGesture

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.

constructSettingsMediaPlaybackRequiresUserGesture :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “media-playback-requires-user-gesture” property. This is rarely needed directly, but it is used by new.

getSettingsMediaPlaybackRequiresUserGesture :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “media-playback-requires-user-gesture” property. When overloading is enabled, this is equivalent to

get settings #mediaPlaybackRequiresUserGesture

setSettingsMediaPlaybackRequiresUserGesture :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “media-playback-requires-user-gesture” property. When overloading is enabled, this is equivalent to

set settings [ #mediaPlaybackRequiresUserGesture := value ]

minimumFontSize

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.

constructSettingsMinimumFontSize :: IsSettings o => Word32 -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “minimum-font-size” property. This is rarely needed directly, but it is used by new.

getSettingsMinimumFontSize :: (MonadIO m, IsSettings o) => o -> m Word32 Source #

Get the value of the “minimum-font-size” property. When overloading is enabled, this is equivalent to

get settings #minimumFontSize

setSettingsMinimumFontSize :: (MonadIO m, IsSettings o) => o -> Word32 -> m () Source #

Set the value of the “minimum-font-size” property. When overloading is enabled, this is equivalent to

set settings [ #minimumFontSize := value ]

monospaceFontFamily

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

constructSettingsMonospaceFontFamily :: IsSettings o => Text -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “monospace-font-family” property. This is rarely needed directly, but it is used by new.

getSettingsMonospaceFontFamily :: (MonadIO m, IsSettings o) => o -> m Text Source #

Get the value of the “monospace-font-family” property. When overloading is enabled, this is equivalent to

get settings #monospaceFontFamily

setSettingsMonospaceFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m () Source #

Set the value of the “monospace-font-family” property. When overloading is enabled, this is equivalent to

set settings [ #monospaceFontFamily := value ]

pictographFontFamily

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

constructSettingsPictographFontFamily :: IsSettings o => Text -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “pictograph-font-family” property. This is rarely needed directly, but it is used by new.

getSettingsPictographFontFamily :: (MonadIO m, IsSettings o) => o -> m Text Source #

Get the value of the “pictograph-font-family” property. When overloading is enabled, this is equivalent to

get settings #pictographFontFamily

setSettingsPictographFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m () Source #

Set the value of the “pictograph-font-family” property. When overloading is enabled, this is equivalent to

set settings [ #pictographFontFamily := value ]

printBackgrounds

Whether background images should be drawn during printing.

constructSettingsPrintBackgrounds :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “print-backgrounds” property. This is rarely needed directly, but it is used by new.

getSettingsPrintBackgrounds :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “print-backgrounds” property. When overloading is enabled, this is equivalent to

get settings #printBackgrounds

setSettingsPrintBackgrounds :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “print-backgrounds” property. When overloading is enabled, this is equivalent to

set settings [ #printBackgrounds := value ]

sansSerifFontFamily

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

constructSettingsSansSerifFontFamily :: IsSettings o => Text -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “sans-serif-font-family” property. This is rarely needed directly, but it is used by new.

getSettingsSansSerifFontFamily :: (MonadIO m, IsSettings o) => o -> m Text Source #

Get the value of the “sans-serif-font-family” property. When overloading is enabled, this is equivalent to

get settings #sansSerifFontFamily

setSettingsSansSerifFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m () Source #

Set the value of the “sans-serif-font-family” property. When overloading is enabled, this is equivalent to

set settings [ #sansSerifFontFamily := value ]

serifFontFamily

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

constructSettingsSerifFontFamily :: IsSettings o => Text -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “serif-font-family” property. This is rarely needed directly, but it is used by new.

getSettingsSerifFontFamily :: (MonadIO m, IsSettings o) => o -> m Text Source #

Get the value of the “serif-font-family” property. When overloading is enabled, this is equivalent to

get settings #serifFontFamily

setSettingsSerifFontFamily :: (MonadIO m, IsSettings o) => o -> Text -> m () Source #

Set the value of the “serif-font-family” property. When overloading is enabled, this is equivalent to

set settings [ #serifFontFamily := value ]

userAgent

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 settingsSetUserAgentWithApplicationDetails instead.

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

clearSettingsUserAgent :: (MonadIO m, IsSettings o) => o -> m () Source #

Set the value of the “user-agent” property to Nothing. When overloading is enabled, this is equivalent to

clear #userAgent

constructSettingsUserAgent :: IsSettings o => Text -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “user-agent” property. This is rarely needed directly, but it is used by new.

getSettingsUserAgent :: (MonadIO m, IsSettings o) => o -> m Text Source #

Get the value of the “user-agent” property. When overloading is enabled, this is equivalent to

get settings #userAgent

setSettingsUserAgent :: (MonadIO m, IsSettings o) => o -> Text -> m () Source #

Set the value of the “user-agent” property. When overloading is enabled, this is equivalent to

set settings [ #userAgent := value ]

zoomTextOnly

Whether WebView: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.

constructSettingsZoomTextOnly :: IsSettings o => Bool -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “zoom-text-only” property. This is rarely needed directly, but it is used by new.

getSettingsZoomTextOnly :: (MonadIO m, IsSettings o) => o -> m Bool Source #

Get the value of the “zoom-text-only” property. When overloading is enabled, this is equivalent to

get settings #zoomTextOnly

setSettingsZoomTextOnly :: (MonadIO m, IsSettings o) => o -> Bool -> m () Source #

Set the value of the “zoom-text-only” property. When overloading is enabled, this is equivalent to

set settings [ #zoomTextOnly := value ]