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
WebInspectorGidBuilder builder() static nothrowGet builder for [webkit.web_inspector.WebInspector] Returns: New builder objectuint 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.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...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 otherwisegulong 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.Fluent builder implementation template for webkit.web_inspector.WebInspector
Fluent builder for webkit.web_inspector.WebInspector
Methods