WebKit2.EditorState¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted when the #WebKitEdtorState is changed. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class WebKit2.EditorState(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Web editor state.
WebKit2.EditorState
represents the state of aWebKit2.WebView
editor. UseWebKit2.WebView.get_editor_state
() to get theWebKit2.EditorState
of aWebKit2.WebView
.New in version 2.10.
- get_typing_attributes()¶
- Returns:
a bitmask of
WebKit2.EditorTypingAttributes
flags- Return type:
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()¶
-
Gets whether a copy command can be issued.
New in version 2.20.
- is_cut_available()¶
-
Gets whether a cut command can be issued.
New in version 2.20.
- is_paste_available()¶
-
Gets whether a paste command can be issued.
New in version 2.20.
- is_redo_available()¶
-
Gets whether a redo command can be issued.
New in version 2.20.
Signal Details¶
- WebKit2.EditorState.signals.changed(editor_state)¶
- Signal Name:
changed
- Flags:
- 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¶
-
Bitmask of
WebKit2.EditorTypingAttributes
flags. SeeWebKit2.EditorState.get_typing_attributes
() for more information.New in version 2.10.