Devhelp.WebView¶
- Subclasses:
None
Methods¶
- Inherited:
WebKit2.WebView (93), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
WebKit2.WebView (27), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Style Properties¶
- Inherited:
Signals¶
Name |
Short Description |
---|---|
The |
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Devhelp.WebView(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(profile)¶
- Parameters:
profile (
Devhelp.Profile
orNone
) – aDevhelp.Profile
, orNone
for the default profile.- Returns:
a new
Devhelp.WebView
widget.- Return type:
New in version 3.30.
- can_reset_zoom()¶
- Returns:
whether calling
Devhelp.WebView.reset_zoom
() will have an effect.- Return type:
New in version 3.30.
- can_zoom_in()¶
- Returns:
whether calling
Devhelp.WebView.zoom_in
() will have an effect.- Return type:
New in version 3.30.
- can_zoom_out()¶
- Returns:
whether calling
Devhelp.WebView.zoom_out
() will have an effect.- Return type:
New in version 3.30.
- get_devhelp_title()¶
- Returns:
the title of self, suitable for a tab label or window title.
- Return type:
An enhanced getter function for the
WebKit2.WebView
:title
property: when that property is the empty string orNone
, this function returns “Empty Page” (translated).New in version 3.30.
- get_profile()¶
- Returns:
the
Devhelp.WebView
:profile
.- Return type:
New in version 3.30.
- reset_zoom()¶
Reset the text size to the normal size.
New in version 3.30.
- search_next()¶
Like
WebKit2.FindController.search_next
(), but takes into account whetherDevhelp.WebView.set_search_text
() has been called.New in version 3.30.
- search_previous()¶
Like
WebKit2.FindController.search_previous
(), but takes into account whetherDevhelp.WebView.set_search_text
() has been called.New in version 3.30.
- set_search_text(search_text)¶
-
A more convenient API (for Devhelp needs) than
WebKit2.FindController
. If search_text is not empty, it callsWebKit2.FindController.search
() if not already done. If search_text is empty orNone
, it callsWebKit2.FindController.search_finish
().New in version 3.30.
- zoom_in()¶
Makes the text larger.
New in version 3.30.
- zoom_out()¶
Makes the text smaller.
New in version 3.30.
Signal Details¶
- Devhelp.WebView.signals.open_new_tab(web_view, uri)¶
- Signal Name:
open-new-tab
- Flags:
- Parameters:
web_view (
Devhelp.WebView
) – The object which received the signaluri (
str
) – the URI to open.
The
::open-new-tab
signal is emitted when a URI needs to be opened in a newDevhelp.WebView
. This happens when doing Ctrl+click or middle click on a link.New in version 3.30.
Property Details¶
- Devhelp.WebView.props.profile¶
- Name:
profile
- Type:
- Default Value:
- Flags:
The
Devhelp.Profile
. If set toNone
, the default profile as returned byDevhelp.Profile.get_default
() is used.New in version 3.30.