W Wrapl, The Programming Language

Libraries:Gtk:Gtk:CellRendererToggle

Types

T

Inherits from:

T 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.



Constants

Nil : T

Functions

GetType() : Gtk.GObject.Type.T



New() : Gtk.Gtk.CellRendererToggle.T

Creates a new T. Adjust rendering parameters using object properties. Object properties can be set globally (with g_object_set()). Also, with Gtk.Gtk.TreeViewColumn.T, you can bind a property to a value in a Gtk.Gtk.TreeModel.T. For example, you can bind the "active" property on the cell renderer to a boolean value in the model, thus causing the check button to reflect the state of the model.

Returns the new cell renderer


Methods

:GetActivatable(self @ T) : Std.Symbol.T

Returns whether the cell renderer is activatable. See SetActivatable.

toggle a T
Returns TRUE if the cell renderer is activatable.


:GetActive(self @ T) : Std.Symbol.T

Returns whether the cell renderer is active. See SetActive.

toggle a T
Returns TRUE if the cell renderer is active.


:GetRadio(self @ T) : Std.Symbol.T

Returns whether we're rendering radio toggles rather than checkboxes.

toggle a T
Returns TRUE if we're rendering radio toggles rather than checkboxes


:SetActivatable(self @ T, setting @ Std.Symbol.T) : Std.Object.T

Makes the cell renderer activatable.

toggle a T.
setting the value to set.


:SetActive(self @ T, setting @ Std.Symbol.T) : Std.Object.T

Activates or deactivates a cell renderer.

toggle a T.
setting the value to set.


:SetRadio(self @ T, radio @ Std.Symbol.T) : Std.Object.T

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 Gtk.Gtk.TreeView.T, you set up a per-row setting using Gtk.Gtk.TreeViewColumn.T to associate model columns with cell renderer properties).

toggle a T
radio TRUE to make the toggle look like a radio button