Source codeContentsIndex
ICursor
Description
Basic types and classes concerning insertion cursors in entry and text fields.
Synopsis
module Index
newtype ICursor w = ICursor w
class (Widget w) => HasInsertionCursor w
class (HasInsertionCursor w) => HasInsertionCursorIndexGet w i where
getInsertionCursor :: w -> IO i
class (HasInsertionCursor w) => HasInsertionCursorIndexSet w i where
insertionCursor :: i -> Config w
insertOffTime :: (HasInsertionCursor w) => Int -> Config (ICursor w)
getInsertOffTime :: (HasInsertionCursor w) => ICursor w -> IO Int
insertOnTime :: (HasInsertionCursor w) => Int -> Config (ICursor w)
getInsertOnTime :: (HasInsertionCursor w) => ICursor w -> IO Int
Documentation
module Index
newtype ICursor w
The ICursor datatype.
Constructors
ICursor w
Instances
HasIndex (Entry a) (ICursor (Entry a)) BaseIndex
(GUIObject w) => GUIObject (ICursor w)
(HasInsertionCursor w, Widget w) => HasColour (ICursor w)
(HasInsertionCursor w, Widget w) => HasBorder (ICursor w)
(HasInsertionCursor w, Widget w) => HasSize (ICursor w)
HasIndex Editor (ICursor Editor) BaseIndex
class (Widget w) => HasInsertionCursor w
Widgets with an insertion cursor instantiate the class HasInsertionCursor.
Instances
HasInsertionCursor Editor
HasInsertionCursor (Entry a)
class (HasInsertionCursor w) => HasInsertionCursorIndexGet w i where
Widgets from which you can get the index of the insertion cursor instantiate the class HasInsertionCursorIndexSet.
Methods
getInsertionCursor :: w -> IO i
Instances
HasInsertionCursorIndexGet Editor (Distance, Distance)
HasInsertionCursorIndexGet (Entry a) Int
class (HasInsertionCursor w) => HasInsertionCursorIndexSet w i where
Widgets with an insertion cursor that can be set to a specific index instantiate the class HasInsertionCursorIndexSet.
Methods
insertionCursor :: i -> Config w
Sets the index of the insertion Cursor.
Instances
(HasIndex Editor i BaseIndex) => HasInsertionCursorIndexSet Editor i
(HasIndex (Entry a) i BaseIndex) => HasInsertionCursorIndexSet (Entry a) i
insertOffTime :: (HasInsertionCursor w) => Int -> Config (ICursor w)
getInsertOffTime :: (HasInsertionCursor w) => ICursor w -> IO Int
Gets the time the insertion cursor blinks off.
insertOnTime :: (HasInsertionCursor w) => Int -> Config (ICursor w)
Sets the time the insertion cursor blinks on (in milliseconds).
getInsertOnTime :: (HasInsertionCursor w) => ICursor w -> IO Int
Gets the time the insertion cursor blinks on.
Produced by Haddock version 0.3