1.12 <WebKitEditorState>

Class: <WebKitEditorState>

It derives from <GObject>.

Web editor state.

WebKitEditorState represents the state of a <WebKitWebView> editor. Use web-view:get-editor-state to get the WebKitEditorState of a <WebKitWebView>.

Properties

Property: editor-state:typing-attributes self

Bitmask of <WebKitEditorTypingAttributes> flags. See editor-state:get-typing-attributes for more information.

Its value is an unsigned 32-bit integer.

It is read only.

Procedures

Method: editor-state:get-typing-attributes self ⇒ %return
Method: get-typing-attributes self ⇒ %return

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.

self

Passed: a <WebKitEditorState>.

a <WebKitEditorState>

%return

Returned: an unsigned 32-bit integer.

a bitmask of <WebKitEditorTypingAttributes> flags

Method: editor-state:is-copy-available? self ⇒ %return
Method: is-copy-available? self ⇒ %return

Gets whether a copy command can be issued.

self

Passed: a <WebKitEditorState>.

a <WebKitEditorState>

%return

Returned: a boolean.

#t if copy is currently available

Method: editor-state:is-cut-available? self ⇒ %return
Method: is-cut-available? self ⇒ %return

Gets whether a cut command can be issued.

self

Passed: a <WebKitEditorState>.

a <WebKitEditorState>

%return

Returned: a boolean.

#t if cut is currently available

Method: editor-state:is-paste-available? self ⇒ %return
Method: is-paste-available? self ⇒ %return

Gets whether a paste command can be issued.

self

Passed: a <WebKitEditorState>.

a <WebKitEditorState>

%return

Returned: a boolean.

#t if paste is currently available

Method: editor-state:is-redo-available? self ⇒ %return
Method: is-redo-available? self ⇒ %return

Gets whether a redo command can be issued.

self

Passed: a <WebKitEditorState>.

a <WebKitEditorState>

%return

Returned: a boolean.

#t if redo is currently available

Method: editor-state:is-undo-available? self ⇒ %return
Method: is-undo-available? self ⇒ %return

Gets whether an undo command can be issued.

self

Passed: a <WebKitEditorState>.

a <WebKitEditorState>

%return

Returned: a boolean.

#t if undo is currently available

Signals

Signal: editor-state:changed

Connect a handler with (connect object editor-state:changed handler). It is called as (handler self).

Emitted when the WebKitEdtorState is changed.

self

Passed: a <WebKitEditorState>.