Back to Seed Clases

WebKit


Classes

Interfaces

Structs

Unions

Enums

GObject.Object
parent-child marker WebKit.WebWindowFeatures

Class WebKit.WebWindowFeatures

Import line: WebKit = imports.gi.WebKit;
GIR File: WebKit-3.0.gir
C documentation: WebKitWebWindowFeatures
Class : WebWindowFeatures
Extends: GObject.Object
The content of a WebKitWebView can request to change certain
properties of a WebKitWebView. This can include the x, y position
of the window, the width and height but also if a toolbar,
scrollbar, statusbar, locationbar should be visible to the user,
the request to show the WebKitWebView fullscreen.
In the normal case one will use webkit_web_view_get_window_features
to get the WebKitWebWindowFeatures and then monitor the property
changes. Be aware that the WebKitWebWindowFeatures might change
before WebKitWebView::web-view-ready signal is emitted.
To be safe listen to the notify::window-features signal of the WebKitWebView
and reconnect the signals whenever the WebKitWebWindowFeatures of
a WebKitWebView changes.

/* Get the current WebKitWebWindowFeatures */
WebKitWebWindowFeatures *features = webkit_web_view_get_window_features (my_webview);
/* Connect to the property changes */
g_signal_connect (G_OBJECT(features), "notify::menubar-visible", G_CALLBACK(make_menu_bar_visible), NULL);
g_signal_connect (G_OBJECT(features), "notify::statusbar-visible", G_CALLBACK(make_status_bar_visible), NULL);
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
window_features : WebKit.WebWindowFeatures
An associated WebKitWebWindowFeatures instance.
WebKit.WebView
Method
get_window_features () : WebKit.WebWindowFeatures
Returns the instance of WebKitWebWindowFeatures held by the given
WebKitWebView.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:18:05 GMT+0800 (HKT)