|
Graphics.UI.Gtk.ModelView.CellRendererToggle | Portability | portable (depends on GHC) | Stability | provisional | Maintainer | gtk2hs-users@lists.sourceforge.net |
|
|
|
|
|
Description |
Renders a toggle button in a cell
|
|
Synopsis |
|
|
|
|
Detail
|
|
CellRendererToggle renders a toggle button in a cell. The button is
drawn as a radio or checkbutton, depending on the radio property. When
activated, it emits the toggled signal.
|
|
Class Hierarchy
|
|
| GObject
| +----Object
| +----CellRenderer
| +----CellRendererToggle
|
|
Types
|
|
data CellRendererToggle | Source |
|
Instances | |
|
|
|
| Instances | |
|
|
|
|
|
|
|
|
Constructors
|
|
|
Creates a new CellRendererToggle. Adjust rendering parameters using
object properties. Object properties can be set globally (with
System.Glib.Attributes.set). Also, within a
Graphics.UI.Gtk.ModelView.TreeViewColumn, you can bind a property to a
value in a Graphics.UI.Gtk.ModelView.TreeModel.TreeModel using
Graphics.UI.Gtk.ModelView.CellLayout.cellLayoutSetAttributes. For
example, you can bind the cellToggleActive property on the cell renderer
to a boolean value in the model, thus causing the check button to reflect
the state of the model.
|
|
Methods
|
|
cellRendererToggleGetRadio | Source |
|
:: CellRendererToggleClass self | | => self | | -> IO Bool | returns True if we're rendering radio toggles rather than
checkboxes
| Returns whether we're rendering radio toggles rather than checkboxes.
|
|
|
cellRendererToggleSetRadio | Source |
|
:: CellRendererToggleClass self | | => self | | -> Bool | radio - True to make the toggle look like a radio button
| -> IO () | | If radio is True, the cell renderer renders a radio toggle (i.e. a
toggle in a group of mutually-exclusive toggles). If False, it renders a
check toggle (a standalone boolean option). This can be set globally for
the cell renderer, or changed just before rendering each cell in the model
(for TreeView, you set up a per-row setting using TreeViewColumn to
associate model columns with cell renderer properties).
|
|
|
cellRendererToggleGetActive | Source |
|
|
|
cellRendererToggleSetActive | Source |
|
|
|
Attributes
|
|
|
The toggle state of the button.
Default value: False
|
|
|
The inconsistent state of the button.
Default value: False
|
|
|
The toggle button can be activated.
Default value: True
|
|
|
Draw the toggle button as a radio button.
Default value: False
|
|
|
Size of check or radio indicator.
Allowed values: >= 0
Default value: 12
|
|
Signals
|
|
|
The cellToggled signal is emitted when the cell is toggled. The string
represents a TreePath into the model and can be converted using
stringToTreePath.
|
|
Deprecated
|
|
|
|
|
|
Produced by Haddock version 2.6.1 |