uni-htk-2.2.1.3: 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) Source # 

Methods

(==) :: Entry a -> Entry a -> Bool #

(/=) :: Entry a -> Entry a -> Bool #

Destroyable (Entry a) Source #

An entry field can be destroyed.

Methods

destroy :: Entry a -> IO () #

Synchronized (Entry a) Source #

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

Methods

synchronize :: Entry a -> IO b -> IO b #

GUIObject (Entry a) Source #

Internal.

Methods

toGUIObject :: Entry a -> GUIOBJECT Source #

cname :: Entry a -> String Source #

cset :: GUIValue a => Entry a -> ConfigID -> a -> IO (Entry a) Source #

cget :: GUIValue a => Entry a -> ConfigID -> IO a Source #

HasEnable (Entry a) Source #

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

HasJustify (Entry a) Source #

An entry field has a configureable text justification.

HasFont (Entry a) Source #

You can specify the font of an entry field.

Methods

font :: FontDesignator f => f -> Config (Entry a) Source #

getFont :: Entry a -> IO Font Source #

HasBorder (Entry a) Source #

An entry field has a configureable border.

HasSize (Entry a) Source #

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

HasColour (Entry a) Source #

An entry field has a foreground and background colour.

HasTooltip (Entry a) Source #

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

Methods

tooltip :: String -> Entry a -> IO (Entry a) Source #

destroyTooltip :: Entry a -> IO () Source #

Widget (Entry a) Source #

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

HasVariable (Entry a) Source #

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

Methods

variable :: TkVariable v -> Config (Entry a) Source #

GUIValue a => CanBeSubwidget (Entry a) Source #

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

HasScroller (Entry a) Source #

An entry field is scrollable in horizontal direction.

HasSelection (Entry a) Source #

You can select text inside an entry widget.

Methods

clearSelection :: Entry a -> IO () Source #

HasXSelection (Entry a) Source #

An editor widget has an X selection.

HasInsertionCursor (Entry a) Source #

An entry widget has an insertion cursor.

GUIValue a => HasValue (Entry a) a Source #

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

Methods

value :: a -> Config (Entry a) Source #

getValue :: Entry a -> IO a Source #

HasSelectionBaseIndexRange (Entry a) Int Source #

You can select a text range inside an entry widget.

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

An entry widget's characters are selectable.

Methods

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

isSelected :: Entry a -> i -> IO Bool Source #

HasInsertionCursorIndexGet (Entry a) Int Source #

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

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

Methods

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

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

You can select a text range inside an entry widget.

Methods

selectionRange :: i1 -> i2 -> Config (Entry a) Source #

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

Internal.

Methods

getBaseIndex :: Entry a -> i -> IO Int Source #

HasIndex (Entry a) XCoord BaseIndex Source #

An XCoord is a valid index for an entry widget.

HasIndex (Entry a) EndOfText BaseIndex Source #

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

HasIndex (Entry a) BaseIndex BaseIndex Source #

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

HasIndex (Entry a) Int BaseIndex Source #

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

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

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

HasSelectionBaseIndex (Entry a) (Int, Int) Source #

You can select a text range inside an entry widget.

Methods

getSelection :: Entry a -> IO (Maybe (Int, Int)) Source #

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

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

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

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 Source #

Internal.

HasIndex (Entry a) XCoord BaseIndex Source #

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.