:right-sidebar: True EditorState =================================================================== .. currentmodule:: gi.repository.WebKit .. versionadded:: 2.10 .. class:: EditorState(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` :Constructors: :: EditorState(**properties) Methods ------- .. rst-class:: interim-class .. class:: EditorState :no-index: .. method:: get_typing_attributes() -> 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. .. versionadded:: 2.10 .. method:: is_cut_available() -> bool Gets whether a cut command can be issued. .. versionadded:: 2.20 .. method:: is_paste_available() -> bool Gets whether a paste command can be issued. .. versionadded:: 2.20 .. method:: is_redo_available() -> bool Gets whether a redo command can be issued. .. versionadded:: 2.20 .. method:: is_undo_available() -> bool Gets whether an undo command can be issued. .. versionadded:: 2.20 Properties ---------- .. rst-class:: interim-class .. class:: EditorState :no-index: .. attribute:: props.typing_attributes :type: int Bitmask of ``WebKitEditorTypingAttributes`` flags. See :func:`~gi.repository.WebKit.EditorState.get_typing_attributes` for more information. .. versionadded:: 2.10 Signals ------- .. rst-class:: interim-class .. class:: EditorState.signals :no-index: .. method:: changed() -> None Emitted when the ``WebKitEdtorState`` is changed. .. versionadded:: 2.44