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

Safe HaskellNone
LanguageHaskell98

HTk.Widgets.Entry

Description

HTk's strongentry field/strong.br A simple widget that displays an editable line of text.

Synopsis

Documentation

data Entry a Source

The Entry datatype.

Instances

Eq (Entry a) 
Destroyable (Entry a)

An entry field can be destroyed.

Synchronized (Entry a)

You can synchronize on an entry field (in JAVA-style)

GUIObject (Entry a)

Internal.

HasEnable (Entry a)

An entry field is a stateful widget - it can be enabled of disabled.

HasJustify (Entry a)

An entry field has a configureable text justification.

HasFont (Entry a)

You can specify the font of an entry field.

HasBorder (Entry a)

An entry field has a configureable border.

HasSize (Entry a)

An entry field has a configureable width (height config is ignored).

HasColour (Entry a)

An entry field has a foreground and background colour.

HasTooltip (Entry a)

An entry can have a tooltip (only displayed if you are using tixwish).

Widget (Entry a)

An entry field has standard widget properties (concerning focus, cursor).

HasVariable (Entry a)

The value of an entry field is associated with a polymorphic variable.

HasInsertionCursor (Entry a)

An entry widget has an insertion cursor.

HasSelection (Entry a)

You can select text inside an entry widget.

HasXSelection (Entry a)

An editor widget has an X selection.

GUIValue a => CanBeSubwidget (Entry a)

An entry widget can be a subwidget, e.g. in a combo box

HasScroller (Entry a)

An entry field is scrollable in horizontal direction.

GUIValue a => HasValue (Entry a) a

An entry field has a value that is associated with a polymorphic variable.

HasInsertionCursorIndexGet (Entry a) Int

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

HasIndex (Entry a) i BaseIndex => HasInsertionCursorIndexSet (Entry a) i 
HasSelectionBaseIndexRange (Entry a) Int

You can select a text range inside an entry widget.

HasIndex (Entry a) i BaseIndex => HasSelectionIndex (Entry a) i

An entry widget's characters are selectable.

HasIndex (Entry a) i BaseIndex => HasIndex (Entry a) i Int

Internal.

HasIndex (Entry a) XCoord BaseIndex

An XCoord is a valid index for an entry widget.

HasIndex (Entry a) EndOfText BaseIndex

The EndOfText index is a valid index position for an entry widget.

HasIndex (Entry a) BaseIndex BaseIndex

A base index is a valid index position for an entry widget.

HasIndex (Entry a) Int BaseIndex

An integer value is a valid index position for an entry widget.

(HasIndex (Entry a) i1 BaseIndex, HasIndex (Entry a) i2 BaseIndex) => HasSelectionIndexRange (Entry a) i1 i2

You can select a text range inside an entry widget.

HasIndex (Entry a) (ICursor (Entry a)) BaseIndex

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

HasSelectionBaseIndex (Entry a) (Int, Int)

You can select a text range inside an entry widget.

HasIndex (Entry a) (Selection (Entry a), Last) BaseIndex

The selection end is a valid index position for an entry widget.

HasIndex (Entry a) (Selection (Entry a), First) BaseIndex

The selection start is a valid index position for an entry widget.

newEntry Source

Arguments

:: (Container par, GUIValue a) 
=> par

the parent widget, which has to be a container widget (an instance of class Container).

-> [Config (Entry a)]

the list of configuration options for this entry field.

-> IO (Entry a)

An entry field.

Constructs a new entry field and returns a handler.

data XCoord Source

The XCoord datatype.

Constructors

XCoord Distance 

Instances

Show XCoord

Internal.

HasIndex (Entry a) XCoord BaseIndex

An XCoord is a valid index for an entry widget.

showText Source

Arguments

:: GUIValue a 
=> Char

the character to display.

-> Entry a

the concerned entry field.

-> IO (Entry a)

The concerned entry field.

Sets a character to display instead of contents (e.g. for password fields).

getShowText :: GUIValue a => Entry a -> IO Char Source

Gets the character to show instead of contents.