|  | Source code | Contents | Index

Graphics.UI.ObjectIO.StdMenuElement |

Portability | portable
Stability | provisional
Maintainer | ka2_mail@yahoo.com

Contents

Enabling and disabling of menu elements
Marking and unmarking of MenuItems only
Changing the title of menu elements:
Item selection
Short keys

Description
StdMenuElement specifies all functions on menu elements.
Synopsis

enableMenuElements :: [Id] -> GUI ps ()
disableMenuElements :: [Id] -> GUI ps ()
getMenuElementSelectStates :: Id -> [Id] -> GUI ps [(Bool, SelectState)]
getMenuElementSelectState :: Id -> Id -> GUI ps (Bool, SelectState)
markMenuItems :: [Id] -> GUI ps ()
unmarkMenuItems :: [Id] -> GUI ps ()
getMenuElementMarkStates :: Id -> [Id] -> GUI ps [(Bool, MarkState)]
getMenuElementMarkState :: Id -> Id -> GUI ps (Bool, MarkState)
setMenuElementTitles :: [(Id, Title)] -> GUI ps ()
getMenuElementTitles :: Id -> [Id] -> GUI ps [(Bool, Maybe String)]
getMenuElementTitle :: Id -> Id -> GUI ps (Bool, Maybe String)
selectRadioMenuItem :: Id -> Id -> GUI ps ()
selectRadioMenuIndexItem :: Id -> Index -> GUI ps ()
getSelectedRadioMenuItems :: Id -> [Id] -> GUI ps [(Index, Maybe Id)]
getSelectedRadioMenuItem :: Id -> Id -> GUI ps (Index, Maybe Id)
getMenuElementShortKeys :: Id -> [Id] -> GUI ps [(Bool, Maybe Char)]
getMenuElementShortKey :: Id -> Id -> GUI ps (Bool, Maybe Char)

Enabling and disabling of menu elements
enableMenuElements :: [Id] -> GUI ps ()
disableMenuElements :: [Id] -> GUI ps ()
getMenuElementSelectStates :: Id -> [Id] -> GUI ps [(Bool, SelectState)]
getMenuElementSelectState :: Id -> Id -> GUI ps (Bool, SelectState)
Marking and unmarking of MenuItems only
markMenuItems :: [Id] -> GUI ps ()
unmarkMenuItems :: [Id] -> GUI ps ()
getMenuElementMarkStates :: Id -> [Id] -> GUI ps [(Bool, MarkState)]
getMenuElementMarkState :: Id -> Id -> GUI ps (Bool, MarkState)
Changing the title of menu elements:
setMenuElementTitles :: [(Id, Title)] -> GUI ps ()
getMenuElementTitles :: Id -> [Id] -> GUI ps [(Bool, Maybe String)]
getMenuElementTitle :: Id -> Id -> GUI ps (Bool, Maybe String)
Item selection
selectRadioMenuItem :: Id -> Id -> GUI ps ()
selectRadioMenuIndexItem :: Id -> Index -> GUI ps ()
getSelectedRadioMenuItems :: Id -> [Id] -> GUI ps [(Index, Maybe Id)]
getSelectedRadioMenuItem :: Id -> Id -> GUI ps (Index, Maybe Id)
Short keys
getMenuElementShortKeys :: Id -> [Id] -> GUI ps [(Bool, Maybe Char)]
returns the shortcut keys associated with the corresponding menu elements
getMenuElementShortKey :: Id -> Id -> GUI ps (Bool, Maybe Char)
returns the shortcut key associated with the menu element
Produced by Haddock version 0.8