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

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.