WebKit2.EditorState

g GObject.Object GObject.Object WebKit2.EditorState WebKit2.EditorState GObject.Object->WebKit2.EditorState

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_typing_attributes ()

is_copy_available ()

is_cut_available ()

is_paste_available ()

is_redo_available ()

is_undo_available ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

typing-attributes

int

r

Signals

Inherited:

GObject.Object (1)

Name

Short Description

changed

Emitted when the #WebKitEdtorState is changed.

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class WebKit2.EditorState(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

WebKit2.EditorStateClass

Web editor state.

WebKit2.EditorState represents the state of a WebKit2.WebView editor. Use WebKit2.WebView.get_editor_state() to get the WebKit2.EditorState of a WebKit2.WebView.

New in version 2.10.

get_typing_attributes()
Returns:

a bitmask of WebKit2.EditorTypingAttributes flags

Return type:

int

Gets the typing attributes at the current cursor position.

If there is a selection, this returns the typing attributes of the selected text. Note that in case of a selection, typing attributes are considered active only when they are present throughout the selection.

New in version 2.10.

is_copy_available()
Returns:

True if copy is currently available

Return type:

bool

Gets whether a copy command can be issued.

New in version 2.20.

is_cut_available()
Returns:

True if cut is currently available

Return type:

bool

Gets whether a cut command can be issued.

New in version 2.20.

is_paste_available()
Returns:

True if paste is currently available

Return type:

bool

Gets whether a paste command can be issued.

New in version 2.20.

is_redo_available()
Returns:

True if redo is currently available

Return type:

bool

Gets whether a redo command can be issued.

New in version 2.20.

is_undo_available()
Returns:

True if undo is currently available

Return type:

bool

Gets whether an undo command can be issued.

New in version 2.20.

Signal Details

WebKit2.EditorState.signals.changed(editor_state)
Signal Name:

changed

Flags:

RUN_LAST

Parameters:

editor_state (WebKit2.EditorState) – The object which received the signal

Emitted when the #WebKitEdtorState is changed.

New in version 2.44.

Property Details

WebKit2.EditorState.props.typing_attributes
Name:

typing-attributes

Type:

int

Default Value:

0

Flags:

READABLE

Bitmask of WebKit2.EditorTypingAttributes flags. See WebKit2.EditorState.get_typing_attributes() for more information.

New in version 2.10.