 | gtk-0.11.0: Binding to the Gtk+ graphical user interface library. | Contents | Index |
|
Graphics.UI.Gtk.MenuComboToolbar.ToggleToolButton | Portability | portable (depends on GHC) | Stability | provisional | Maintainer | gtk2hs-users@lists.sourceforge.net |
|
|
|
|
|
Description |
A ToolItem containing a toggle button
- Module available since Gtk+ version 2.4
|
|
Synopsis |
|
|
|
|
Detail
|
|
A ToggleToolButton is a ToolItem that contains a toggle button.
Use toggleToolButtonNew to create a new ToggleToolButton. Use
toggleToolButtonNewFromStock to create a new ToggleToolButton containing
a stock item.
|
|
Class Hierarchy
|
|
| GObject
| +----Object
| +----Widget
| +----Container
| +----Bin
| +----ToolItem
| +----ToolButton
| +----ToggleToolButton
| +----RadioToolButton
|
|
Types
|
|
data ToggleToolButton |
Instances | |
|
|
class ToolButtonClass o => ToggleToolButtonClass o |
| Instances | |
|
|
castToToggleToolButton :: GObjectClass obj => obj -> ToggleToolButton |
|
gTypeToggleToolButton :: GType |
|
toToggleToolButton :: ToggleToolButtonClass o => o -> ToggleToolButton |
|
Constructors
|
|
toggleToolButtonNew :: IO ToggleToolButton |
Returns a new ToggleToolButton
|
|
toggleToolButtonNewFromStock |
:: StockId | stockId - the name of the stock item
| -> IO ToggleToolButton | | Creates a new ToggleToolButton containing the image and text from a
stock item.
It is an error if stockId is not a name of a stock item.
|
|
|
Methods
|
|
toggleToolButtonSetActive :: ToggleToolButtonClass self => self -> Bool -> IO () |
Sets the status of the toggle tool button. Set to True if you want the
ToggleButton to be 'pressed in', and False to raise it. This action
causes the toggled signal to be emitted.
|
|
toggleToolButtonGetActive :: ToggleToolButtonClass self => self -> IO Bool |
Queries a ToggleToolButton and returns its current state. Returns
True if the toggle button is pressed in and False if it is raised.
|
|
Attributes
|
|
toggleToolButtonActive :: ToggleToolButtonClass self => Attr self Bool |
If the toggle tool button should be pressed in or not.
Default value: False
|
|
Signals
|
|
onToolButtonToggled :: ToggleToolButtonClass self => self -> IO () -> IO (ConnectId self) |
|
afterToolButtonToggled :: ToggleToolButtonClass self => self -> IO () -> IO (ConnectId self) |
Emitted whenever the toggle tool button changes state.
|
|
Produced by Haddock version 2.4.2 |