| ||||||||||
| ||||||||||
| ||||||||||
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 | ||||||||||
| ||||||||||
class CellRendererClass o => CellRendererToggleClass o | ||||||||||
| ||||||||||
castToCellRendererToggle :: GObjectClass obj => obj -> CellRendererToggle | ||||||||||
toCellRendererToggle :: CellRendererToggleClass o => o -> CellRendererToggle | ||||||||||
Constructors | ||||||||||
cellRendererToggleNew :: IO CellRendererToggle | ||||||||||
Creates a new CellRendererToggle. Adjust rendering parameters using object properties. Object properties can be set globally (with set). Also, within a TreeViewColumn, you can bind a property to a value in a TreeModel using 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 | ||||||||||
| ||||||||||
cellRendererToggleSetRadio | ||||||||||
| ||||||||||
cellRendererToggleGetActive | ||||||||||
| ||||||||||
cellRendererToggleSetActive | ||||||||||
| ||||||||||
Attributes | ||||||||||
cellToggleActive :: CellRendererToggleClass self => Attr self Bool | ||||||||||
The toggle state of the button. Default value: False | ||||||||||
cellToggleInconsistent :: CellRendererToggleClass self => Attr self Bool | ||||||||||
The inconsistent state of the button. Default value: False | ||||||||||
cellToggleActivatable :: CellRendererToggleClass self => Attr self Bool | ||||||||||
The toggle button can be activated. Default value: True | ||||||||||
cellToggleRadio :: CellRendererToggleClass self => Attr self Bool | ||||||||||
Draw the toggle button as a radio button. Default value: False | ||||||||||
cellToggleIndicatorSize :: CellRendererToggleClass self => Attr self Int | ||||||||||
Size of check or radio indicator. Allowed values: >= 0 Default value: 12 | ||||||||||
Signals | ||||||||||
toggled :: CellRendererToggleClass self => Signal self (String -> IO ()) | ||||||||||
The toggled signal is emitted when the cell is toggled. | ||||||||||
Deprecated | ||||||||||
onToggled :: CellRendererToggleClass self => self -> (String -> IO ()) -> IO (ConnectId self) | ||||||||||
afterToggled :: CellRendererToggleClass self => self -> (String -> IO ()) -> IO (ConnectId self) | ||||||||||
Produced by Haddock version 0.8 |