WebInspector
Object Hierarchy:
WebKit.WebInspector
WebKit.WebInspector
WebKit.WebInspector
GLib.Object
GLib.Object
GLib.Object->WebKit.WebInspector
Description:
[ CCode ( type_id = "webkit_web_inspector_get_type ()" ) ]public class WebInspector : Object
Access to the WebKit inspector.
The WebKit Inspector is a graphical tool to inspect and change the content of a WebView .
It also includes an interactive JavaScript debugger. Using this class one can get a Widget which can be
embedded into an application to show the inspector.
The inspector is available when the Settings of the
WebView has set the
enable_developer_extras to true, otherwise no inspector is
available.
```c // 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)); ```
Content:
Properties:
public uint attached_height { get ; }
The height that the inspector view should have when it is attached.
public bool can_attach { get ; }
Whether the inspector
can be attached to the same window
that contains the inspected view.
public string inspected_uri { get ; }
The URI that is currently being inspected.
Creation methods:
Methods:
public void close ()
Request this to be closed.
public uint get_attached_height ()
Get the height that the inspector view when attached.
public bool get_can_attach ()
Whether the this can be attached to
the same window that contains the inspected view.
public unowned string get_inspected_uri ()
Get the URI that is currently being inspected.
public unowned WebViewBase get_web_view ()
public bool is_attached ()
Whether the this view is currently
attached to the same window that contains the inspected view.
public void show ()
Request this to be shown.
Signals:
public signal bool attach ()
Emitted when the inspector is requested to be attached to the window
where the inspected web view is.
public signal bool bring_to_front ()
Emitted when the inspector should be shown.
public signal void closed ()
Emitted when the inspector page is closed.
public signal bool detach ()
Emitted when the inspector is requested to be detached from the window
it is currently attached to.
public signal bool open_window ()
Emitted when the inspector is requested to open in a separate window.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref