gtk3-0.13.7: Binding to the Gtk+ graphical user interface library.

Maintainergtk2hs-users@lists.sourceforge.net
Stabilityprovisional
Portabilityportable (depends on GHC)
Safe HaskellNone
LanguageHaskell98

Graphics.UI.Gtk.MenuComboToolbar.ToggleToolButton

Contents

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

Constructors

toggleToolButtonNewFromStock Source

Arguments

:: 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 () Source

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 Source

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 Source

If the toggle tool button should be pressed in or not.

Default value: False

Signals

onToolButtonToggled :: ToggleToolButtonClass self => self -> IO () -> IO (ConnectId self) Source

Emitted whenever the toggle tool button changes state.

afterToolButtonToggled :: ToggleToolButtonClass self => self -> IO () -> IO (ConnectId self) Source

Emitted whenever the toggle tool button changes state.