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 _getGType() static nothrow
GType _gType() @property nothrow
WebInspector self() nothrowReturns `this`, for use in `with` statements.
WebInspectorGidBuilder builder() static nothrowGet builder for [webkit.web_inspector.WebInspector] Returns: New builder object
uint attachedHeight() @property nothrowGet `attachedHeight` property. Returns: The height that the inspector view should have when it is attached.
bool canAttach() @property nothrowGet `canAttach` property. Returns: Whether the @inspector can be attached to the same window that contains the inspected view.
string inspectedUri() @property nothrowGet `inspectedUri` property. Returns: The URI that is currently being inspected.
void attach() nothrowRequest inspector to be attached.
void close() nothrowRequest inspector to be closed.
void detach() nothrowRequest inspector to be detached.
uint getAttachedHeight() nothrowGet the height that the inspector view when attached.
bool getCanAttach() nothrowWhether 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() nothrowGet the URI that is currently being inspected.
webkit.web_view_base.WebViewBase getWebView() nothrowGet the #WebKitWebViewBase used to display the inspector.
bool isAttached() nothrowWhether 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() nothrowRequest 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) nothrowConnect 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) nothrowConnect 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) nothrowConnect 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) nothrowConnect 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) nothrowConnect to `OpenWindow` signal.
Constructors
this(void * ptr, Flag!"Take" take)
Methods
WebInspector build() nothrowCreate object from builder. Returns: New object