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

Safe HaskellNone
LanguageHaskell98

HTk.Widgets.Button

Description

HTk's button widget. A simple click button.

Synopsis

Documentation

data Button Source

The Button datatype.

Instances

Eq Button 
Destroyable Button

A button widget can be destroyed.

Synchronized Button

You can synchronize on a button object.

GUIObject Button

Internal.

HasEnable Button

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

HasJustify Button

A button has a configureable text justification.

HasUnderline Button

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

HasFont Button

You can specify the font of a button.

HasBorder Button

A button widget has a configureable border.

HasSize Button

You can specify the size of a button.

HasColour Button

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

HasAnchor Button

A button has a text anchor.

HasTooltip Button

A button can have a tooltip.

Widget Button

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

HasCommand Button

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

ButtonWidget Button

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

HasBitMap Button

A button widget can contain a bitmap.

HasPhoto Button

A button can contain an image.

GUIValue v => HasText Button v

A button can contain text.

newButton Source

Arguments

:: Container par 
=> par

the parent widget, which has to be a container widget (an instance of class Container).

-> [Config Button]

the list of configuration options for this button.

-> IO Button

A button widget.

Constructs a new button widget and returns a handler.