WebKit.EditorState

g GObject.Object GObject.Object WebKit.EditorState WebKit.EditorState GObject.Object->WebKit.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)

Class Details

class WebKit.EditorState(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

WebKit.EditorStateClass

Web editor state.

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

New in version 2.10.

get_typing_attributes()
Returns:

a bitmask of WebKit.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

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

changed

Flags:

RUN_LAST

Parameters:

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

Emitted when the #WebKitEdtorState is changed.

New in version 2.44.

Property Details

WebKit.EditorState.props.typing_attributes
Name:

typing-attributes

Type:

int

Default Value:

0

Flags:

READABLE

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

New in version 2.10.