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

Safe HaskellNone
LanguageHaskell98

HTk.Toolkit.IconBar

Description

A simple icon bar containing buttons and separators.

Synopsis

Documentation

data IconBar Source #

The IconBar datatype.

Instances

Eq IconBar Source #

Internal.

Methods

(==) :: IconBar -> IconBar -> Bool #

(/=) :: IconBar -> IconBar -> Bool #

Destroyable IconBar Source #

An icon bar can be destroyed.

Methods

destroy :: IconBar -> IO () #

Synchronized IconBar Source #

You can synchronize on an icon bar object.

Methods

synchronize :: IconBar -> IO b -> IO b #

GUIObject IconBar Source #

Internal.

HasEnable IconBar Source #

An icon bar is a stateful widget, it can be enabled or disabled.

HasOrientation IconBar Source #

An icon bar has either a vertical or horizontal orientation.

HasBorder IconBar Source #

An icon bar has a configureable border.

HasSize IconBar Source #

An icon bar has a configureable size.

HasColour IconBar Source #

An icon bar has a configureable foreground and background colour.

Widget IconBar Source #

An icon bar has standard widget properties (concerning focus, cursor).

newIconBar Source #

Arguments

:: Container par 
=> par

the parent widget (which has to be a container widget).

-> [Config IconBar]

the list of configuration options for this icon bar.

-> IO IconBar

An icon bar.

Creates a new icon bar and returns a handler.

addSeparator Source #

Arguments

:: IconBar

the concerned icon bar.

-> IO Separator

A separator.

Adds a separator at the end of the icon bar.

addButton Source #

Arguments

:: IconBar

the concerned icon bar.

-> [Config Button]

the list of configuration options for the button to add.

-> IO Button

A button.

Adds a button at the end of the icon bar.

data Button Source #

The Button datatype.

Instances

Eq Button Source # 

Methods

(==) :: Button -> Button -> Bool #

(/=) :: Button -> Button -> Bool #

Destroyable Button Source #

A button widget can be destroyed.

Methods

destroy :: Button -> IO () #

Synchronized Button Source #

You can synchronize on a button object.

Methods

synchronize :: Button -> IO b -> IO b #

GUIObject Button Source #

Internal.

HasEnable Button Source #

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

HasJustify Button Source #

A button has a configureable text justification.

HasUnderline Button Source #

You can set the index of a text character to underline.

HasFont Button Source #

You can specify the font of a button.

HasBorder Button Source #

A button widget has a configureable border.

HasSize Button Source #

You can specify the size of a button.

HasColour Button Source #

A button widget has a normal foreground and background colour and an active/disabled foreground and background colour.

HasAnchor Button Source #

A button has a text anchor.

HasTooltip Button Source #

A button can have a tooltip.

Widget Button Source #

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

HasCommand Button Source #

When a button is clicked, a corresponding event is invoked.

Methods

clicked :: Button -> IO (Event ()) Source #

ButtonWidget Button Source #

A button widget can be flashed (redisplayed several times in alternate colours) and invoked (the associated event).

Methods

flash :: Button -> IO () Source #

invoke :: Button -> IO () Source #

HasPhoto Button Source #

A button can contain an image.

HasBitMap Button Source #

A button widget can contain a bitmap.

GUIValue v => HasText Button v Source #

A button can contain text.

Methods

text :: v -> Config Button Source #

getText :: Button -> IO v Source #

getIconButtons Source #

Arguments

:: IconBar

the concerned icon bar.

-> IO [Button]

A list of the contained buttons.

Gets the buttons from an icon bar.

getIconBarItems Source #

Arguments

:: IconBar

the concerned icon bar.

-> IO [Either Frame Button]

Alist of the contained buttons and separators.

Gets the items from an icon bar.