|
|
|
|
|
| Description |
| The module MenuItem exports general resources for menu
items. |
|
| Synopsis |
|
|
|
| Documentation |
|
| class (GUIObject w) => MenuItem w |
| Menu items instantiate the abstract class MenuItem. | | | Instances | |
|
|
| createMenuItem :: (MenuItem w) => Menu -> MenuItemKind -> (GUIOBJECT -> w) -> [Config w] -> IO w |
| Internal. |
|
| class (GUIObject w) => HasColour w where |
| Coloured objects instantiate the class HasColour. | | | Methods | | | | Instances | |
|
|
| class (GUIObject w) => HasPhoto w where |
| Image containers instantiate the class HasPhoto. | | | Methods | | photo :: Image -> Config w | | Associates an image container (e.g. a label) with the given image. | | | getPhoto :: w -> IO (Maybe Image) | | Gets the image associated with the given image container. |
| | | Instances | |
|
|
| class (ButtonWidget w) => SelectButton w where |
| A select button can be selected or not selected. | | | Methods | | selectionState :: Toggle -> Config w | | Sets the selection state of the select button. | | | getSelectionState :: w -> IO Toggle | | Gets the selection state of the select button | | | selectionStateSet :: w -> Event Toggle | | Returns an event for selection actions. |
|
|
|
| class (SelectButton w) => ToggleButton w where |
| The state of a ToggleButton can be toggled. | | | Methods | | toggleButton :: w -> IO () | | Toggles the state of a toggle button. |
|
|
|
| class (GUIObject w) => HasAccelerator w where |
| Menu items can have an optional text to display as a reminder
about a keystroke binding. | | | Methods | | accelerator :: String -> Config w | | Sets the accelerator text. | | | getAccelerator :: w -> IO String | | Gets the accelerator text. |
| | | Instances | |
|
|
| buttonColours :: (HasColour w) => w -> ConfigID -> Bool |
| Internal. |
|
| Produced by Haddock version 0.3 |