Safe Haskell | None |
---|---|
Language | Haskell98 |
HTk's menus.
A Menu
is a container for menu structures.
Documentation
The Menu
datatype.
Eq Menu Source # | Internal. |
Destroyable Menu Source # | A menu can be destroyed. |
Synchronized Menu Source # | You can synchronize on a menu object. |
GUIObject Menu Source # | Internal. |
HasFont Menu Source # | You can specify the font of a menu. |
HasBorder Menu Source # | A menu has a configureable border. |
HasColour Menu Source # | A menu has a normal foreground and background colour and an active/disabled foreground and background colour. |
Widget Menu Source # | A menu has standard widget properties (concerning focus, cursor). |
class GUIObject w => HasMenu w where Source #
Containers for menus (toplevel windows and menubuttons) instantiate the
class HasMenu
.
:: GUIObject i | |
=> Menu | The menu to post. |
-> Position | The position to pop-up. |
-> Maybe i | An optional entry to activate when the menu pops-up. |
-> IO () | None. |
Posts a menu (e.g. in respose of a keystroke or mousebutton press).
Displays a menu at the specified position.