gi-webkit2-4.0.27: WebKit2 bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.WebKit2.Objects.EditorState

Description

No description available in the introspection data.

Synopsis

Exported types

newtype EditorState Source #

Memory-managed wrapper type.

Constructors

EditorState (ManagedPtr EditorState) 

Instances

Instances details
Eq EditorState Source # 
Instance details

Defined in GI.WebKit2.Objects.EditorState

GObject EditorState Source # 
Instance details

Defined in GI.WebKit2.Objects.EditorState

ManagedPtrNewtype EditorState Source # 
Instance details

Defined in GI.WebKit2.Objects.EditorState

Methods

toManagedPtr :: EditorState -> ManagedPtr EditorState

TypedObject EditorState Source # 
Instance details

Defined in GI.WebKit2.Objects.EditorState

Methods

glibType :: IO GType

HasParentTypes EditorState Source # 
Instance details

Defined in GI.WebKit2.Objects.EditorState

IsGValue (Maybe EditorState) Source #

Convert EditorState to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.WebKit2.Objects.EditorState

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe EditorState -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe EditorState)

type ParentTypes EditorState Source # 
Instance details

Defined in GI.WebKit2.Objects.EditorState

type ParentTypes EditorState = '[Object]

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

Instances details
(GObject o, IsDescendantOf EditorState o) => IsEditorState o Source # 
Instance details

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.

Methods

getTypingAttributes

editorStateGetTypingAttributes Source #

Arguments

:: (HasCallStack, MonadIO m, IsEditorState a) 
=> a

editorState: a EditorState

-> m Word32

Returns: a bitmask of EditorTypingAttributes flags

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

editorState: a EditorState

-> m Bool

Returns: True if copy is currently available

Gets whether a copy command can be issued.

Since: 2.20

isCutAvailable

editorStateIsCutAvailable Source #

Arguments

:: (HasCallStack, MonadIO m, IsEditorState a) 
=> a

editorState: a EditorState

-> m Bool

Returns: True if cut is currently available

Gets whether a cut command can be issued.

Since: 2.20

isPasteAvailable

editorStateIsPasteAvailable Source #

Arguments

:: (HasCallStack, MonadIO m, IsEditorState a) 
=> a

editorState: a EditorState

-> m Bool

Returns: True if paste is currently available

Gets whether a paste command can be issued.

Since: 2.20

isRedoAvailable

editorStateIsRedoAvailable Source #

Arguments

:: (HasCallStack, MonadIO m, IsEditorState a) 
=> a

editorState: a EditorState

-> m Bool

Returns: True if redo is currently available

Gets whether a redo command can be issued.

Since: 2.20

isUndoAvailable

editorStateIsUndoAvailable Source #

Arguments

:: (HasCallStack, MonadIO m, IsEditorState a) 
=> a

editorState: a EditorState

-> m Bool

Returns: True if undo is currently available

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