| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
HTk.Menuitems.MenuCommand
Description
HTk's menu command. A simple command inside a menu.
- data MenuCommand
- createMenuCommand :: Menu -> [Config MenuCommand] -> IO MenuCommand
Documentation
data MenuCommand Source #
The MenuCommand datatype.
Instances
| Eq MenuCommand Source # | Internal. |
| Synchronized MenuCommand Source # | You can synchronize on a menu command. |
| 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. |
| 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 |
| 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). |
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.