Source codeContentsIndex
MenuCascade
Description
HTk's menu cascade item. A containers for cascaded menus.
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 MenuCascade
createMenuCascade :: Menu -> [Config MenuCascade] -> IO MenuCascade
createPulldownMenu :: Menu -> [Config MenuCascade] -> IO Menu
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 MenuCascade
The MenuCascade datatype.
createMenuCascade :: Menu -> [Config MenuCascade] -> IO MenuCascade
createPulldownMenu :: Menu -> [Config MenuCascade] -> IO Menu
Produced by Haddock version 0.3