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

Safe HaskellNone
LanguageHaskell98

HTk.Toolkit.Prompt

Description

A simple prompt (a labelled entry field).

Synopsis

Documentation

data Prompt a Source

The Prompt datatype.

Instances

Eq (Prompt a)

Internal.

Synchronized (Prompt a)

You can synchronize on a prompt object.

GUIObject (Prompt a)

Internal.

HasEnable (Prompt a)

A prompt is a stateful component, it can be enabled or disabled.

HasFont (Prompt a)

A propt has a configureable font.

HasBorder (Prompt a)

A prompt has a configureable border.

HasColour (Prompt a)

A prompt has a configureable foreground and background colour.

Widget (Prompt a)

A prompt has standard widget properties (concerning focus, cursor).

(GUIValue a, GUIValue b) => HasText (Prompt a) b

A prompt has a configureable text.

GUIValue a => HasValue (Prompt a) a

A prompt widget has an (entered) value.

newPrompt Source

Arguments

:: GUIValue a 
=> Box

the parent box.

-> [Config (Prompt a)]

the list of configuration options for this prompt.

-> IO (Prompt a)

A prompt.

Construct a new prompt and returns a handler.

getPromptEntry Source

Arguments

:: Prompt a

the concerned prompt.

-> Entry a

the prompt's entry.

Gets the entry field of the prompt.