Back to Seed Clases

WebKit


Classes

Interfaces

Structs

Unions

Enums

GObject.Object
parent-child marker WebKit.WebSettings

Class WebKit.WebSettings

Import line: WebKit = imports.gi.WebKit;
GIR File: WebKit-3.0.gir
C documentation: WebKitWebSettings
Class : WebSettings
Extends: GObject.Object
WebKitWebSettings can be applied to a WebKitWebView to control text encoding,
color, font sizes, printing mode, script support, loading of images and various other things.
After creation, a WebKitWebSettings object contains default settings.

/* Create a new websettings and disable java script */
WebKitWebSettings *settings = webkit_web_settings_new ();
g_object_set (G_OBJECT(settings), "enable-scripts", FALSE, NULL);
/* Apply the result */
webkit_web_view_set_settings (WEBKIT_WEB_VIEW(my_webview), settings);
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
WebKit.WebView
Property
settings : WebKit.WebSettings
WebKit.WebView
Method
get_settings () : WebKit.WebSettings
Obtains the WebKitWebSettings associated with the
WebKitWebView.
WebKit.WebView
Method
set_settings (WebSettings settings) : none
Replaces the WebKitWebSettings instance that is currently attached
to web_view with settings.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:18:04 GMT+0800 (HKT)