WebKit2WebExtension.WebEditor

g GObject.Object GObject.Object WebKit2WebExtension.WebEditor WebKit2WebExtension.WebEditor GObject.Object->WebKit2WebExtension.WebEditor

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_page ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Name

Short Description

selection-changed

This signal is emitted for every selection change inside a WebKit2WebExtension.WebPage as well as for every caret position change as the caret is a collapsed selection.

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class WebKit2WebExtension.WebEditor(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

WebKit2WebExtension.WebEditorClass

Access to editing capabilities of a WebKit2WebExtension.WebPage.

The WebKit2WebExtension.WebEditor provides access to various editing capabilities of a WebKit2WebExtension.WebPage such as a possibility to react to the current selection in WebKit2WebExtension.WebPage.

New in version 2.10.

get_page()
Returns:

the associated WebKit2WebExtension.WebPage

Return type:

WebKit2WebExtension.WebPage

Gets the WebKit2WebExtension.WebPage that is associated with the WebKit2WebExtension.WebEditor.

New in version 2.10.

Signal Details

WebKit2WebExtension.WebEditor.signals.selection_changed(web_editor)
Signal Name:

selection-changed

Flags:

RUN_LAST

Parameters:

web_editor (WebKit2WebExtension.WebEditor) – The object which received the signal

This signal is emitted for every selection change inside a WebKit2WebExtension.WebPage as well as for every caret position change as the caret is a collapsed selection.

New in version 2.10.