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

Safe HaskellNone
LanguageHaskell98

HTk.Toolkit.SelectBox

Description

A simple container for a group of button widgets.

Synopsis

Documentation

data SelectBox Source

The SelectBox datatype.

Instances

Eq SelectBox

Internal.

Destroyable SelectBox

A select box can be destroyed.

Synchronized SelectBox

You can synchronize on a select box.

GUIObject SelectBox

Internal.

HasEnable SelectBox

A select box is a stateful widget, it can be enabled or disabled.

HasBorder SelectBox

A select box has a configureable border.

HasSize SelectBox

A select box has a configureable size.

HasColour SelectBox

A select box has a configureable foreground and background colour.

Widget SelectBox

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

newSelectBox Source

Arguments

:: Container par 
=> par

the parent widget, which has to be a container widget.

-> Maybe Int

the optional index of a default button.

-> [Config SelectBox]

the list of configuration options for this select box.

-> IO SelectBox

A select box.

Constructs a new select box and returns a handler.

addButton Source

Arguments

:: SelectBox

the concerned select box.

-> [Config Button]

the list of configuration options for the constructed button.

-> [PackOption]

the list of pack options for the constructed button.

-> IO Button

A button widget.

Adds a button widget at the end of the select box.

addSpace Source

Arguments

:: SelectBox

the concerned select box.

-> Distance

the width of the space widget.

-> IO Space

A space widget.

Adds a space widget at the end of the select box.

getDefault Source

Arguments

:: SelectBox

the concerned select box.

-> IO (Maybe Button)

The default button of the select box (if there is one).

Gets the default button from a select box (if there is one).

selectDefault Source

Arguments

:: SelectBox

the concerned select box.

-> IO ()

None.

Selects the default button of a select box.