Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- newtype EditorState = EditorState (ManagedPtr EditorState)
- class GObject o => IsEditorState o
- toEditorState :: (MonadIO m, IsEditorState o) => o -> m EditorState
- noEditorState :: Maybe EditorState
- editorStateGetTypingAttributes :: (HasCallStack, MonadIO m, IsEditorState a) => a -> m Word32
- getEditorStateTypingAttributes :: (MonadIO m, IsEditorState o) => o -> m Word32
Exported types
newtype EditorState Source #
class GObject o => IsEditorState o Source #
toEditorState :: (MonadIO m, IsEditorState o) => o -> m EditorState Source #
Methods
getTypingAttributes
editorStateGetTypingAttributes Source #
:: (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 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
Properties
typingAttributes
getEditorStateTypingAttributes :: (MonadIO m, IsEditorState o) => o -> m Word32 Source #