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

Safe HaskellNone
LanguageHaskell98

HTk.Widgets.CheckButton

Description

HTk's checkbutton widget. A simple checkbutton associated with a polymorphic variable.

Synopsis

Documentation

data CheckButton a Source #

The CheckButton datatpe - it is associated with a polymorphic TkVariable.

Instances

Eq (CheckButton a) Source # 
Destroyable (CheckButton a) Source #

A checkbutton widget can be destroyed.

Methods

destroy :: CheckButton a -> IO () #

Synchronized (CheckButton a) Source #

You can synchronize on a checkbutton object.

Methods

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

GUIObject (CheckButton a) Source #

Internal.

HasEnable (CheckButton a) Source #

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

HasJustify (CheckButton a) Source #

A checkbutton has a text justification configuration.

HasUnderline (CheckButton a) Source #

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

HasFont (CheckButton a) Source #

You can specify the font of a checkbutton.

HasBorder (CheckButton a) Source #

A checkbutton widget has a configureable border.

HasSize (CheckButton a) Source #

You can specify the size of a checkbutton.

HasColour (CheckButton a) Source #

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

HasAnchor (CheckButton a) Source #

A checkbutton has a text anchor.

HasTooltip (CheckButton a) Source #

An checkbutton can have a tooltip (only displayed if you are using tixwish).

Widget (CheckButton a) Source #

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

HasCommand (CheckButton a) Source #

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

Methods

clicked :: CheckButton a -> IO (Event ()) Source #

ButtonWidget (CheckButton a) Source #

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

Methods

flash :: CheckButton a -> IO () Source #

invoke :: CheckButton a -> IO () Source #

HasVariable (CheckButton a) Source #

A checkbutton has a value, that corresponds to a polymorphic TkVariable. instance GUIValue a => HasValue (CheckButton a) a No, it doesn't.

The polymorphic variable the checkbutton's value is associated with.

HasPhoto (CheckButton a) Source #

A checkbutton can contain an image.

HasBitMap (CheckButton a) Source #

A checkbutton widget can contain a bitmap.

GUIValue v => HasText (CheckButton a) v Source #

A checkbutton can contain text.

Methods

text :: v -> Config (CheckButton a) Source #

getText :: CheckButton a -> IO v Source #

newCheckButton Source #

Arguments

:: Container par 
=> par

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

-> [Config (CheckButton a)]

the list of configuration options for this checkbutton.

-> IO (CheckButton a)

A checkbutton widget.

Constructs a new checkbutton widget and returns a handler.