|
Graphics.UI.Gtk.MenuComboToolbar.CheckMenuItem | Portability | portable (depends on GHC) | Stability | provisional | Maintainer | gtk2hs-users@lists.sourceforge.net |
|
|
|
|
|
Description |
A menu item with a check box
|
|
Synopsis |
|
|
|
|
Detail
|
|
A CheckMenuItem is a menu item that maintains the state of a boolean
value in addition to a MenuItems usual role in activating application
code.
A check box indicating the state of the boolean value is displayed at the
left side of the MenuItem. Activating the MenuItem toggles the value.
|
|
Class Hierarchy
|
|
| GObject
| +----Object
| +----Widget
| +----Container
| +----Bin
| +----Item
| +----MenuItem
| +----CheckMenuItem
| +----RadioMenuItem
|
|
Types
|
|
|
Instances | |
|
|
|
| Instances | |
|
|
|
|
|
|
|
|
Constructors
|
|
|
Creates a new CheckMenuItem.
|
|
checkMenuItemNewWithLabel | Source |
|
|
|
checkMenuItemNewWithMnemonic | Source |
|
:: String | label - The text of the button, with an underscore
in front of the mnemonic character
| -> IO CheckMenuItem | | Creates a new CheckMenuItem containing a label. The label will be
created using Graphics.UI.Gtk.Display.Label.labelNewWithMnemonic, so
underscores in label indicate the mnemonic for the menu item.
|
|
|
Methods
|
|
|
Sets the active state of the menu item's check box.
|
|
|
Returns whether the check menu item is active. See
checkMenuItemSetActive.
|
|
|
Emits the toggled signal.
|
|
|
If the user has selected a range of elements (such as some text or
spreadsheet cells) that are affected by a boolean setting, and the current
values in that range are inconsistent, you may want to display the check in
an "in between" state. This function turns on "in between" display.
Normally you would turn off the inconsistent state again if the user
explicitly selects a setting. This has to be done manually,
checkMenuItemSetInconsistent only affects visual appearance, it doesn't
affect the semantics of the widget.
|
|
|
Query if the menu check is drawn as inconsistent (inbetween). See
checkMenuItemSetInconsistent.
|
|
|
Returns whether the menu item is drawn like a RadioMenuItem.
- Available since Gtk+ version 2.4
|
|
|
Sets whether the menu item is drawn like a RadioMenuItem.
- Available since Gtk+ version 2.4
|
|
Attributes
|
|
|
Whether the menu item is checked.
Default value: False
|
|
|
Whether to display an "inconsistent" state.
Default value: False
|
|
|
Whether the menu item looks like a radio menu item.
Default value: False
|
|
Produced by Haddock version 2.6.1 |