webkit.web_inspector

Module for [WebInspector] class

Types 3

Access to the WebKit inspector.

The WebKit Inspector is a graphical tool to inspect and change the content of a #WebKitWebView. It also includes an interactive JavaScript debugger. Using this class one can get a #GtkWidget which can be embedded into an application to show the inspector.

The inspector is available when the #WebKitSettings of the #WebKitWebView has set the #WebKitSettings:enable-developer-extras to true, otherwise no inspector is available.

// Enable the developer extras
WebKitSettings *settings = webkit_web_view_get_settings (WEBKIT_WEB_VIEW(my_webview));
g_object_set (G_OBJECT(settings), "enable-developer-extras", TRUE, NULL);

// Load some data or reload to be able to inspect the page
webkit_web_view_load_uri (WEBKIT_WEB_VIEW(my_webview), "http://www.gnome.org");

// Show the inspector
WebKitWebInspector *inspector = webkit_web_view_get_inspector (WEBKIT_WEB_VIEW(my_webview));
webkit_web_inspector_show (WEBKIT_WEB_INSPECTOR(inspector));

Methods
GType _gType() @property
WebInspector self()Returns `this`, for use in `with` statements.
WebInspectorGidBuilder builder()Get builder for [webkit.web_inspector.WebInspector] Returns: New builder object
uint attachedHeight() @propertyGet `attachedHeight` property. Returns: The height that the inspector view should have when it is attached.
bool canAttach() @propertyGet `canAttach` property. Returns: Whether the @inspector can be attached to the same window that contains the inspected view.
string inspectedUri() @propertyGet `inspectedUri` property. Returns: The URI that is currently being inspected.
void attach()Request inspector to be attached.
void close()Request inspector to be closed.
void detach()Request inspector to be detached.
uint getAttachedHeight()Get the height that the inspector view when attached.
bool getCanAttach()Whether the inspector can be attached to the same window that contains the inspected view. Returns: true if there is enough room for the inspector view inside the window that contains the inspected...
string getInspectedUri()Get the URI that is currently being inspected.
webkit.web_view_base.WebViewBase getWebView()Get the #WebKitWebViewBase used to display the inspector.
bool isAttached()Whether the inspector view is currently attached to the same window that contains the inspected view. Returns: true if inspector is currently attached or false otherwise
void show()Request inspector to be shown.
gulong connectAttach(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == bool) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : webkit.web_inspector.WebInspector))) && Parameters!T.length < 2)Connect to `Attach` signal.
gulong connectBringToFront(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == bool) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : webkit.web_inspector.WebInspector))) && Parameters!T.length < 2)Connect to `BringToFront` signal.
gulong connectClosed(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : webkit.web_inspector.WebInspector))) && Parameters!T.length < 2)Connect to `Closed` signal.
gulong connectDetach(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == bool) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : webkit.web_inspector.WebInspector))) && Parameters!T.length < 2)Connect to `Detach` signal.
gulong connectOpenWindow(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == bool) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : webkit.web_inspector.WebInspector))) && Parameters!T.length < 2)Connect to `OpenWindow` signal.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder for [webkit.web_inspector.WebInspector]