Name

MenuItem —

This widget represents a singe menu item.

Synopsis

menuItemNew:: IO MenuItem
menuItemActivate:: MenuItemClass mi => mi -> IO ()

menuItemConfigure <no type information>

menuItemDeselect:: MenuItemClass mi => mi -> IO ()
menuItemNewWithLabel:: String -> IO MenuItem
menuItemRemoveSubmenu:: MenuItemClass mi => mi -> IO ()
menuItemSelect:: MenuItemClass mi => mi -> IO ()
menuItemSetRightJustified:: MenuItemClass mi => Bool -> mi -> IO ()
menuItemSetSubmenu:: (MenuItemClass mi, MenuClass m) => mi -> m -> IO ()
onActivateItem:: MenuItemClass mi => mi -> IO () -> IO (ConnectId mi)
onActivateLeaf:: MenuItemClass mi => mi -> IO () -> IO (ConnectId mi)
onDeselect:: ItemClass i => i -> IO () -> IO (ConnectId i)
onSelect:: ItemClass i => i -> IO () -> IO (ConnectId i)
onToggle:: ItemClass i => i -> IO () -> IO (ConnectId i)

Introduction

The widget derives from Item. Since CList and CTree are deprecated, it is the only child of that widget. The three signals defined by Item are therefore bound in this module. - TODO

figure out what the signals "toggle-size-allocate" and "toggle-size-request" are good for and bind them if useful

figure out if the connectToToggle signal is useful at all

Constructors

menuItemNew

Create a new menu item. This is the smallest part of a menu that the user can click on or select with the keyboard.

menuItemNew

Methods

menuItemActivate

Simulate a click on the menu item.

menuItemActivate:: mi:: IO ()
mi
no type info on symbol menuItemConfigure

menuItemDeselect

Deselect the menu item.

menuItemDeselect:: mi:: IO ()
mi

menuItemNewWithLabel

Create a new menu item and place a label inside.

menuItemNewWithLabel:: String:: IO MenuItem
label

menuItemRemoveSubmenu

Remove the item's submenu.

menuItemRemoveSubmenu:: mi:: IO ()
mi

menuItemSelect

Select the menu item.

menuItemSelect:: mi:: IO ()
mi

menuItemSetRightJustified

Make the menu item right justified. Only useful for menu bars.

menuItemSetRightJustified:: Bool:: mi:: IO ()
yesmi

menuItemSetSubmenu

Set the item's submenu.

menuItemSetSubmenu:: mi:: m:: IO ()
misubmenu

Signals

onActivateItem

Emitted when the user chooses this item even if it has submenus.

onActivateItem:: mi:: IO ():: IO (ConnectId mi)

onActivateLeaf

The user has chosen the menu item and the item does not contain a submenu.

onActivateLeaf:: mi:: IO ():: IO (ConnectId mi)

onDeselect

This signal is emitted when the item is deselected.

onDeselect:: i:: IO ():: IO (ConnectId i)

onSelect

This signal is emitted when the item is selected.

onSelect:: i:: IO ():: IO (ConnectId i)

onToggle

This signal is emitted when the item is toggled.

onToggle:: i:: IO ():: IO (ConnectId i)