| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.WebKit2.Objects.EditorState
Contents
Description
No description available in the introspection data.
Synopsis
- newtype EditorState = EditorState (ManagedPtr EditorState)
- class (GObject o, IsDescendantOf EditorState o) => IsEditorState o
- toEditorState :: (MonadIO m, IsEditorState o) => o -> m EditorState
- noEditorState :: Maybe EditorState
- editorStateGetTypingAttributes :: (HasCallStack, MonadIO m, IsEditorState a) => a -> m Word32
- editorStateIsCopyAvailable :: (HasCallStack, MonadIO m, IsEditorState a) => a -> m Bool
- editorStateIsCutAvailable :: (HasCallStack, MonadIO m, IsEditorState a) => a -> m Bool
- editorStateIsPasteAvailable :: (HasCallStack, MonadIO m, IsEditorState a) => a -> m Bool
- editorStateIsRedoAvailable :: (HasCallStack, MonadIO m, IsEditorState a) => a -> m Bool
- editorStateIsUndoAvailable :: (HasCallStack, MonadIO m, IsEditorState a) => a -> m Bool
- getEditorStateTypingAttributes :: (MonadIO m, IsEditorState o) => o -> m Word32
Exported types
newtype EditorState Source #
Memory-managed wrapper type.
Constructors
| EditorState (ManagedPtr EditorState) |
Instances
| GObject EditorState Source # | |
Defined in GI.WebKit2.Objects.EditorState Methods gobjectType :: IO GType # | |
| HasParentTypes EditorState Source # | |
Defined in GI.WebKit2.Objects.EditorState | |
| type ParentTypes EditorState Source # | |
Defined in GI.WebKit2.Objects.EditorState | |
class (GObject o, IsDescendantOf EditorState o) => IsEditorState o Source #
Type class for types which can be safely cast to EditorState, for instance with toEditorState.
Instances
| (GObject o, IsDescendantOf EditorState o) => IsEditorState o Source # | |
Defined in GI.WebKit2.Objects.EditorState | |
toEditorState :: (MonadIO m, IsEditorState o) => o -> m EditorState Source #
Cast to EditorState, for types for which this is known to be safe. For general casts, use castTo.
noEditorState :: Maybe EditorState Source #
A convenience alias for Nothing :: Maybe EditorState.
Methods
getTypingAttributes
editorStateGetTypingAttributes Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEditorState a) | |
| => a |
|
| -> m Word32 | Returns: a bitmask of |
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
isCopyAvailable
editorStateIsCopyAvailable Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEditorState a) | |
| => a |
|
| -> m Bool | Returns: |
Gets whether a copy command can be issued.
Since: 2.20
isCutAvailable
editorStateIsCutAvailable Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEditorState a) | |
| => a |
|
| -> m Bool | Returns: |
Gets whether a cut command can be issued.
Since: 2.20
isPasteAvailable
editorStateIsPasteAvailable Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEditorState a) | |
| => a |
|
| -> m Bool | Returns: |
Gets whether a paste command can be issued.
Since: 2.20
isRedoAvailable
editorStateIsRedoAvailable Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEditorState a) | |
| => a |
|
| -> m Bool | Returns: |
Gets whether a redo command can be issued.
Since: 2.20
isUndoAvailable
editorStateIsUndoAvailable Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEditorState a) | |
| => a |
|
| -> m Bool | Returns: |
Gets whether an undo command can be issued.
Since: 2.20
Properties
typingAttributes
Bitmask of EditorTypingAttributes flags.
See editorStateGetTypingAttributes for more information.
Since: 2.10
getEditorStateTypingAttributes :: (MonadIO m, IsEditorState o) => o -> m Word32 Source #
Get the value of the “typing-attributes” property.
When overloading is enabled, this is equivalent to
get editorState #typingAttributes