|
| Graphics.UI.Gtk.ActionMenuToolbar.ToggleAction | | Portability | portable (depends on GHC) | | Stability | provisional | | Maintainer | gtk2hs-users@lists.sourceforge.net |
|
|
|
|
|
| Description |
An action which can be toggled between two states
- Module available since Gtk+ version 2.4
|
|
| Synopsis |
|
|
|
|
| Detail
|
|
| A ToggleAction corresponds roughly to a CheckMenuItem. It has an
"active" state specifying whether the action has been checked or not.
|
|
| Class Hierarchy
|
|
| GObject
| +----Action
| +----ToggleAction
| +----RadioAction
|
|
| Types
|
|
|
|
|
|
|
|
|
|
|
|
|
| Constructors
|
|
|
| :: String | name - A unique name for the action
| | -> String | label - The label displayed in menu items and on
buttons
| | -> Maybe String | tooltip - A tooltip for the action
| | -> Maybe StockId | stockId - The stock icon to display in widgets
representing the action
| | -> IO ToggleAction | | | Creates a new ToggleAction object. To add the action to a ActionGroup
and set the accelerator for the action, call
Graphics.UI.Gtk.ActionMenuToolbar.ActionGroup.actionGroupAddActionWithAccel.
|
|
|
| Methods
|
|
|
| Emits the "toggled" signal on the toggle action.
|
|
|
| :: ToggleActionClass self | | | => self | isActive - whether the action should be checked or not
| | -> Bool | | | -> IO () | | | Sets the checked state on the toggle action.
|
|
|
|
| Returns the checked state of the toggle action.
|
|
|
| Sets whether the action should have proxies like a radio action.
|
|
|
| Returns whether the action should have proxies like a radio action.
|
|
| Attributes
|
|
|
Whether the proxies for this action look like radio action proxies.
Default value: False
|
|
|
If the toggle action should be active in or not.
Default value: False
- Available since Gtk+ version 2.10
|
|
| Signals
|
|
|
|
| Deprecated
|
|
|
|
|
|
| Produced by Haddock version 2.6.0 |