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

Internal.

Methods

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

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

Synchronized (Prompt a) Source #

You can synchronize on a prompt object.

Methods

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

GUIObject (Prompt a) Source #

Internal.

HasEnable (Prompt a) Source #

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

HasFont (Prompt a) Source #

A propt has a configureable font.

Methods

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

getFont :: Prompt a -> IO Font Source #

HasBorder (Prompt a) Source #

A prompt has a configureable border.

HasColour (Prompt a) Source #

A prompt has a configureable foreground and background colour.

Widget (Prompt a) Source #

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

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

A prompt has a configureable text.

Methods

text :: b -> Config (Prompt a) Source #

getText :: Prompt a -> IO b Source #

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

A prompt widget has an (entered) value.

Methods

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

getValue :: Prompt a -> IO a Source #

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.