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

Safe HaskellNone
LanguageHaskell98

HTk.Widgets.MenuButton

Synopsis

Documentation

data MenuButton Source #

The MenuButton datatype.

Instances

Destroyable MenuButton Source #

A menubutton widget can be destroyed.

Methods

destroy :: MenuButton -> IO () #

Synchronized MenuButton Source #

You can synchronize on a menubutton object (in JAVA style).

Methods

synchronize :: MenuButton -> IO b -> IO b #

GUIObject MenuButton Source #

Internal.

HasEnable MenuButton Source #

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

HasJustify MenuButton Source #

A menu button has a configureable text justification.

HasUnderline MenuButton Source #

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

HasFont MenuButton Source #

You can specify the font of a menubutton.

HasBorder MenuButton Source #

A menubutton widget has a configureable border.

HasSize MenuButton Source #

You can specify the size of a menubutton.

HasColour MenuButton Source #

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

HasAnchor MenuButton Source #

A menubutton has a text anchor.

HasTooltip MenuButton Source #

A menubutton can have a tooltip (only displayed if you are using tixwish).

Widget MenuButton Source #

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

HasCommand MenuButton Source #

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

Methods

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

ButtonWidget MenuButton Source #

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

Methods

flash :: MenuButton -> IO () Source #

invoke :: MenuButton -> IO () Source #

HasMenu MenuButton Source #

A menubutton is a menu container.

HasPhoto MenuButton Source #

A menubutton can contain an image.

HasBitMap MenuButton Source #

A menubutton widget can contain a bitmap.

GUIValue v => HasText MenuButton v Source #

A menubutton can contain text.

newMenuButton Source #

Arguments

:: Container par 
=> par

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

-> [Config MenuButton]

the list of configuration options for this menubutton.

-> IO MenuButton

A menubutton widget.

Constructs a new menubutton widget and returns a handler.