Source codeContentsIndex
MenuCommand
Description
HTk's menu command. A simple command inside a menu.
Synopsis
class (GUIObject w) => HasIndicator w where
indicator :: Toggle -> Config w
getIndicator :: w -> IO Toggle
class (GUIObject w) => HasAccelerator w where
accelerator :: String -> Config w
getAccelerator :: w -> IO String
data MenuCommand
createMenuCommand :: Menu -> [Config MenuCommand] -> IO MenuCommand
Documentation
class (GUIObject w) => HasIndicator w where
Menu items that can have an indicator instantiate the class HasIndicator.
Methods
indicator :: Toggle -> Config w
Displays/unmaps the items indicator.
getIndicator :: w -> IO Toggle
On if an indicator is displayed with the item, otherwise Off.
Instances
HasIndicator GUIOBJECT
HasIndicator MenuCascade
HasIndicator MenuCheckButton
HasIndicator MenuCommand
HasIndicator MenuRadioButton
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
HasAccelerator MenuCascade
HasAccelerator MenuCheckButton
HasAccelerator MenuCommand
HasAccelerator MenuRadioButton
data MenuCommand
The MenuCommand datatype.
createMenuCommand
:: 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.
Produced by Haddock version 0.3