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

Safe HaskellNone
LanguageHaskell98

HTk.Menuitems.MenuCommand

Description

HTk's menu command. A simple command inside a menu.

Synopsis

Documentation

data MenuCommand Source #

The MenuCommand datatype.

Instances

Eq MenuCommand Source #

Internal.

Synchronized MenuCommand Source #

You can synchronize on a menu command.

Methods

synchronize :: MenuCommand -> IO b -> IO b #

GUIObject MenuCommand Source #

Internal.

HasEnable MenuCommand Source #

A menu command is a stateful object, it can be enabled or disabled.

HasJustify MenuCommand Source #

A menu command has a configureable text justification.

HasUnderline MenuCommand Source #

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

HasFont MenuCommand Source #

You can specify the font of a menu command.

HasBorder MenuCommand Source #

A menu command has a configureable border.

HasSize MenuCommand Source #

You can specify the size of a menu command.

HasColour MenuCommand Source #

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

HasCommand MenuCommand Source #

When a menu command is clicked, a corresponding event is invoked.

Methods

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

HasPhoto MenuCommand Source #

A menu command can contain an image (instead of text or a bitmap).

HasAccelerator MenuCommand Source #

A menu command has an optional text to display as a reminder about a keystroke binding.

MenuItem MenuCommand Source #

A menu command is a menu item (any menu item instantiates the abstract class MenuItem).

HasIndicator MenuCommand Source #

You can display an indicator with a menu command.

HasBitMap MenuCommand Source #

A menu command can contain a bitmap (instead of text or an image).

GUIValue v => HasText MenuCommand v Source #

A menu command can contain text (instead of an image or bitmap).

createMenuCommand Source #

Arguments

:: Menu

the parent menu.

-> [Config MenuCommand]

the list of configuration options for this menu command.

-> IO MenuCommand

A menu command.

Constructs a new menu command and returns a handler.