uni-htk-2.2.1.3: Graphical User Interface for Haskell Programs

Safe HaskellNone
LanguageHaskell98

HTk.Components.ICursor

Description

Basic types and classes concerning insertion cursors in entry and text fields.

Synopsis

Documentation

newtype ICursor w Source #

The ICursor datatype.

Constructors

ICursor w 

Instances

GUIObject w => GUIObject (ICursor w) Source #

Internal.

(HasInsertionCursor w, Widget w) => HasBorder (ICursor w) Source #

The insertion cursor has a configureable borderwidth (width for three dimensional appearence).

(HasInsertionCursor w, Widget w) => HasSize (ICursor w) Source #

The insertion cursor has a configureable width.

(HasInsertionCursor w, Widget w) => HasColour (ICursor w) Source #

The insertion cursor has a configureable colour.

HasIndex (Entry a) (ICursor (Entry a)) BaseIndex Source #

The entries insertion cursor is a valid index for an entry widget.

class Widget w => HasInsertionCursor w Source #

Widgets with an insertion cursor instantiate the class HasInsertionCursor.

Instances

HasInsertionCursor Editor Source #

An editor widget has an insertion cursor.

HasInsertionCursor (Entry a) Source #

An entry widget has an insertion cursor.

class HasInsertionCursor w => HasInsertionCursorIndexGet w i where Source #

Widgets from which you can get the index of the insertion cursor instantiate the class HasInsertionCursorIndexSet.

Minimal complete definition

getInsertionCursor

Methods

getInsertionCursor :: w -> IO i Source #

Instances

HasInsertionCursorIndexGet Editor (Distance, Distance) Source #

You can get the position of the insertion cursor of an editor widget.

HasInsertionCursorIndexGet (Entry a) Int Source #

You can get the position of the insertion cursor of an entry widget.

class HasInsertionCursor w => HasInsertionCursorIndexSet w i where Source #

Widgets with an insertion cursor that can be set to a specific index instantiate the class HasInsertionCursorIndexSet.

Minimal complete definition

insertionCursor

Methods

insertionCursor :: i -> Config w Source #

Instances

HasIndex Editor i BaseIndex => HasInsertionCursorIndexSet Editor i Source #

The insertion cursor of an editor widget can be set by a base index.

HasIndex (Entry a) i BaseIndex => HasInsertionCursorIndexSet (Entry a) i Source # 

Methods

insertionCursor :: i -> Config (Entry a) Source #

insertOffTime :: HasInsertionCursor w => Int -> Config (ICursor w) Source #

Sets the time the insertion cursor blinks off (in milliseconds, zero disables blinking).

getInsertOffTime :: HasInsertionCursor w => ICursor w -> IO Int Source #

Gets the time the insertion cursor blinks off.

insertOnTime :: HasInsertionCursor w => Int -> Config (ICursor w) Source #

Sets the time the insertion cursor blinks on (in milliseconds).

getInsertOnTime :: HasInsertionCursor w => ICursor w -> IO Int Source #

Gets the time the insertion cursor blinks on.