Portability | portable (depends on GHC) |
---|---|
Stability | provisional |
Maintainer | gtk2hs-users@lists.sourceforge.net |
Control the behaviour of a WebView
- data WebSettings
- webSettingsNew :: IO WebSettings
- webSettingsCopy :: WebSettingsClass self => self -> IO WebSettings
- webSettingsGetUserAgent :: WebSettingsClass self => self -> IO (Maybe String)
- webSettingsAutoLoadImages :: WebSettingsClass self => Attr self Bool
- webSettingsAutoShrinkImages :: WebSettingsClass self => Attr self Bool
- webSettingsCursiveFontFamily :: WebSettingsClass self => Attr self String
- webSettingsDefaultEncoding :: WebSettingsClass self => Attr self String
- webSettingsDefaultFontFamily :: WebSettingsClass self => Attr self String
- webSettingsDefaultFontSize :: WebSettingsClass self => Attr self Int
- webSettingsDefaultMonospaceFontSize :: WebSettingsClass self => Attr self Int
- webSettingsEditingBehavior :: WebSettingsClass self => Attr self EditingBehavior
- webSettingsEnableCaretBrowsing :: WebSettingsClass self => Attr self Bool
- webSettingsEnableDeveloperExtras :: WebSettingsClass self => Attr self Bool
- webSettingsEnableHtml5Database :: WebSettingsClass self => Attr self Bool
- webSettingsEnableHtml5LocalStorage :: WebSettingsClass self => Attr self Bool
- webSettingsEnableOfflineWebApplicationCache :: WebSettingsClass self => Attr self Bool
- webSettingsEnablePlugins :: WebSettingsClass self => Attr self Bool
- webSettingsEnablePrivateBrowsing :: WebSettingsClass self => Attr self Bool
- webSettingsEnableScripts :: WebSettingsClass self => Attr self Bool
- webSettingsEnableSpellChecking :: WebSettingsClass self => Attr self Bool
- webSettingsEnableUniversalAccessFromFileUris :: WebSettingsClass self => Attr self Bool
- webSettingsEnableXssAuditor :: WebSettingsClass self => Attr self Bool
- webSettingsEnforce96Dpi :: WebSettingsClass self => Attr self Bool
- webSettingsFantasyFontFamily :: WebSettingsClass self => Attr self Bool
- webSettingsJSCanOpenWindowAuto :: WebSettingsClass self => Attr self Bool
- webSettingsMinimumFontSize :: WebSettingsClass self => Attr self Int
- webSettingsMinimumLogicalFontSize :: WebSettingsClass self => Attr self Int
- webSettingsMonospaceFontFamily :: WebSettingsClass self => Attr self String
- webSettingsPrintBackgrounds :: WebSettingsClass self => Attr self Bool
- webSettingsResizableTextAreas :: WebSettingsClass self => Attr self Bool
- webSettingsSansFontFamily :: WebSettingsClass self => Attr self String
- webSettingsSerifFontFamily :: WebSettingsClass self => Attr self String
- webSettingsSpellCheckingLang :: WebSettingsClass self => Attr self (Maybe String)
- webSettingsUserAgent :: WebSettingsClass self => Attr self String
- webSettingsUserStylesheetUri :: WebSettingsClass self => Attr self (Maybe String)
- webSettingsZoomStep :: WebSettingsClass self => Attr self Float
- webSettingsEnableSiteSpecificQuirks :: WebSettingsClass self => Attr self Bool
Types
data WebSettings Source
Eq WebSettings | |
Ord WebSettings | |
GObjectClass WebSettings | |
WebSettingsClass WebSettings |
Constructors
webSettingsNew :: IO WebSettingsSource
Create a new WebSettings
instance.
A WebSettings
can be applied to a WebView
to control the to be used text encoding, color, font size,
printing mode,script support, loading of images and various other things.
Methods
webSettingsCopy :: WebSettingsClass self => self -> IO WebSettingsSource
Copy an existing WebSettings
instance.
Return the User-Agent string currently used.
Attributes
webSettingsAutoLoadImages :: WebSettingsClass self => Attr self BoolSource
Load images automatically
Default value: True
webSettingsAutoShrinkImages :: WebSettingsClass self => Attr self BoolSource
Automatically shrink standalone images to fit
Default value: True
webSettingsCursiveFontFamily :: WebSettingsClass self => Attr self StringSource
The default Cursive font family used to display text
Default value serif
webSettingsDefaultEncoding :: WebSettingsClass self => Attr self StringSource
The default encoding used to display text
Default value iso-8859-1
webSettingsDefaultFontFamily :: WebSettingsClass self => Attr self StringSource
The default font family used to display text
Default value: sans-serif
webSettingsDefaultFontSize :: WebSettingsClass self => Attr self IntSource
The default font size used to display text
Default value: >=5
webSettingsDefaultMonospaceFontSize :: WebSettingsClass self => Attr self IntSource
The default font size used to display monospace text
Allowed values: >= 5
Default value: 10
webSettingsEditingBehavior :: WebSettingsClass self => Attr self EditingBehaviorSource
This settings controls various editing behaviors
webSettingsEnableCaretBrowsing :: WebSettingsClass self => Attr self BoolSource
Whether to enable caret browsing mode.
webSettingsEnableDeveloperExtras :: WebSettingsClass self => Attr self BoolSource
Whether developer extensions should be enabled.
This enables, for now, the WebInspector
webSettingsEnableHtml5Database :: WebSettingsClass self => Attr self BoolSource
Whether to enable HTML5 client-side SQL database support.
webSettingsEnableHtml5LocalStorage :: WebSettingsClass self => Attr self BoolSource
Whether to enable HTML5 localStorage support.
webSettingsEnableOfflineWebApplicationCache :: WebSettingsClass self => Attr self BoolSource
Whether to enable HTML5 offline web application cache support.
webSettingsEnablePlugins :: WebSettingsClass self => Attr self BoolSource
Enable embedded plugin objects.
webSettingsEnablePrivateBrowsing :: WebSettingsClass self => Attr self BoolSource
Whether to enable private browsing mode.
webSettingsEnableScripts :: WebSettingsClass self => Attr self BoolSource
Enable embedded scripting languages
webSettingsEnableSpellChecking :: WebSettingsClass self => Attr self BoolSource
Whether to enable speel checking while typing.
webSettingsEnableUniversalAccessFromFileUris :: WebSettingsClass self => Attr self BoolSource
Whether to allow files loaded through file:
webSettingsEnableXssAuditor :: WebSettingsClass self => Attr self BoolSource
Whether to enable the XSS Auditor.
This feature filters some kinds of reflective XSS attacks on vulnerable web sites.
webSettingsEnforce96Dpi :: WebSettingsClass self => Attr self BoolSource
Enforce a resolution of 96 DPI.
webSettingsFantasyFontFamily :: WebSettingsClass self => Attr self BoolSource
The default Fantasy font family used to display text
webSettingsJSCanOpenWindowAuto :: WebSettingsClass self => Attr self BoolSource
Whether JavaScript can open popup windows automatically without user intervention.
webSettingsMinimumFontSize :: WebSettingsClass self => Attr self IntSource
The minimum font size used to display text.
Allowed values: >=1
Default value: 5
webSettingsMinimumLogicalFontSize :: WebSettingsClass self => Attr self IntSource
The minimum logical font size used to display text
Allowed values: >=1
Default value: 5
webSettingsMonospaceFontFamily :: WebSettingsClass self => Attr self StringSource
The default font family used to display monospace text.
Default value: monospace
webSettingsPrintBackgrounds :: WebSettingsClass self => Attr self BoolSource
Whether background images should be printed
Default value: True
webSettingsResizableTextAreas :: WebSettingsClass self => Attr self BoolSource
Whether text areas are resizable
Default value : True
webSettingsSansFontFamily :: WebSettingsClass self => Attr self StringSource
The default Sans Serif font family used to display text
Default value sans-serif
webSettingsSerifFontFamily :: WebSettingsClass self => Attr self StringSource
The default Serif font family used to display text
Default value: serif
webSettingsSpellCheckingLang :: WebSettingsClass self => Attr self (Maybe String)Source
The languages to be used for spell checking, separated by commas
The locale string typically is in the form lang_COUNTRY, where lang is an ISO-639 language code, and COUNTRY is an ISO-3166 country code. For instance, sv_FI for Swedish as written in Finland or pt_BR for Portuguese as written in Brazil.
If no value is specified then the value returned by gtk_get_default_language will be used.
Default value: Nothing
webSettingsUserAgent :: WebSettingsClass self => Attr self StringSource
The User-Agent string used by WebKit
This will return a default User-Agent string if a custom string wasn't provided by the application. Setting this property to a ((void *)0) value or an empty string will result in the User-Agent string being reset to the default value.
Default value: "Mozilla5.0 (X11; U; Linux x86_64; c) AppleWebKit531.2+ (KHTML, like Gecko) Safari/531.2+"
webSettingsUserStylesheetUri :: WebSettingsClass self => Attr self (Maybe String)Source
The URI of a stylesheet that is applied to every page.
Default value: Nothing
webSettingsZoomStep :: WebSettingsClass self => Attr self FloatSource
The value by which the zoom level is changed when zooming in or out
Allowed values: >= 0
Default value: 0.1
webSettingsEnableSiteSpecificQuirks :: WebSettingsClass self => Attr self BoolSource
Enables the site-specific compatibility workarounds.
Default value: False