Source codeContentsIndex
MenuCheckButton
Description
HTk's menu checkbutton. A simple checkbutton inside a menu associated with a polymorphic variable.
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 MenuCheckButton
createMenuCheckButton :: Menu -> [Config MenuCheckButton] -> IO MenuCheckButton
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 MenuCheckButton
The MenuCheckButton datatype.
createMenuCheckButton
:: Menu the parent menu.
-> [Config MenuCheckButton] the list of configuration options for this menu checkbutton.
-> IO MenuCheckButton A menu checkbutton.
Constructs a new menu checkbutton and returns a handler.
Produced by Haddock version 0.3