Back to Seed Clases

WebKit


Classes

Interfaces

Structs

Unions

Enums

Class WebKit.WebView

Import line: WebKit = imports.gi.WebKit;
GIR File: WebKit-3.0.gir
C documentation: WebKitWebView
Class : WebView
Implements: Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable
Extends: Gtk.Container
WebKitWebView is the central class of the WebKitGTK+ API. It is a
GtkWidget implementing the scrolling interface which means you can
embed in a GtkScrolledWindow. It is responsible for managing the
drawing of the content, forwarding of events. You can load any URI
into the WebKitWebView or any kind of data string. With WebKitWebSettings
you can control various aspects of the rendering and loading of the content.
Each WebKitWebView has exactly one WebKitWebFrame as main frame. A
WebKitWebFrame can have n children.

/* Create the widgets */
GtkWidget *main_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
GtkWidget *scrolled_window = gtk_scrolled_window_new (NULL, NULL);
GtkWidget *web_view = webkit_web_view_new ();
/* Place the WebKitWebView in the GtkScrolledWindow */
gtk_container_add (GTK_CONTAINER (scrolled_window), web_view);
gtk_container_add (GTK_CONTAINER (main_window), scrolled_window);
/* Open a webpage */
webkit_web_view_load_uri (WEBKIT_WEB_VIEW (web_view), "http://www.gnome.org");
/* Show the result */
gtk_window_set_default_size (GTK_WINDOW (main_window), 800, 600);
gtk_widget_show_all (main_window);
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
Events - usage syntax: this.signals.EVENTNAME.connect( Function )
Event Defined By
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
WebKit.WebFrame
Method
new WebKit.WebFrame.c_new (WebView web_view) : WebKit.WebFrame
Create a new WebKit.WebFrame
WebKit.WebFrame
Method
get_web_view () : WebKit.WebView
Returns the WebKitWebView that manages this WebKitWebFrame.
WebKit.WebInspector
Property
web_view : WebKit.WebView read only
The Web View that renders the Web Inspector itself.
WebKit.WebInspector
Signal
inspect_web_view (WebInspector self, WebView web_view) : WebKit.WebView
Emitted when the user activates the 'inspect' context menu item
to inspect a web view.
WebKit.WebInspector
Method
get_web_view () : WebKit.WebView
Obtains the WebKitWebView that is used to render the
inspector.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:18:04 GMT+0800 (HKT)