Top |
guint | webkit_editor_state_get_typing_attributes () |
gboolean | webkit_editor_state_is_cut_available () |
gboolean | webkit_editor_state_is_copy_available () |
gboolean | webkit_editor_state_is_paste_available () |
gboolean | webkit_editor_state_is_undo_available () |
gboolean | webkit_editor_state_is_redo_available () |
WebKitEditorState represents the state of a WebKitWebView editor.
Use webkit_web_view_get_editor_state()
to get the WebKitEditorState
of a WebKitWebView.
guint
webkit_editor_state_get_typing_attributes
(WebKitEditorState *editor_state
);
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.
Since: 2.10
gboolean
webkit_editor_state_is_cut_available (WebKitEditorState *editor_state
);
Gets whether a cut command can be issued.
Since: 2.20
gboolean
webkit_editor_state_is_copy_available (WebKitEditorState *editor_state
);
Gets whether a copy command can be issued.
Since: 2.20
gboolean
webkit_editor_state_is_paste_available
(WebKitEditorState *editor_state
);
Gets whether a paste command can be issued.
Since: 2.20
gboolean
webkit_editor_state_is_undo_available (WebKitEditorState *editor_state
);
Gets whether an undo command can be issued.
Since: 2.20
gboolean
webkit_editor_state_is_redo_available (WebKitEditorState *editor_state
);
Gets whether a redo command can be issued.
Since: 2.20
Enum values with flags representing typing attributes.
No typing attributes. |
||
Bold typing attribute. |
||
Italic typing attribute. |
||
Underline typing attribute. |
||
Strikethrough typing attribute. |
Since: 2.10
“typing-attributes”
property “typing-attributes” guint
Bitmask of WebKitEditorTypingAttributes flags.
See webkit_editor_state_get_typing_attributes()
for more information.
Owner: WebKitEditorState
Flags: Read
Default value: 0
Since: 2.10