Gtk.Cell_Renderer_Toggle.Gtk_Cell_Renderer_Toggle renders a toggle button in a cell. The button is drawn as a radio or a checkbutton, depending on the Gtk.Cell_Renderer_Toggle.Gtk_Cell_Renderer_Toggle:radio property. When activated, it emits the Gtk.Cell_Renderer_Toggle.Gtk_Cell_Renderer_Toggle::toggled signal.
Activatable_Property : constant Glib.Properties.Property_Boolean;
Active_Property : constant Glib.Properties.Property_Boolean;
type Cb_GObject_UTF8_String_Void is not null access procedure
(Self : access Glib.Object.GObject_Record'Class;
Path : UTF8_String);
type Cb_Gtk_Cell_Renderer_Toggle_UTF8_String_Void is not null access procedure
(Self : access Gtk_Cell_Renderer_Toggle_Record'Class;
Path : UTF8_String);
function Get_Activatable
(Self : not null access Gtk_Cell_Renderer_Toggle_Record)
return Boolean
Returns whether the cell renderer is activatable. See Gtk.Cell_Renderer_Toggle.Set_Activatable. Since: gtk+ 2.18
True if the cell renderer is activatable.
function Get_Active
(Self : not null access Gtk_Cell_Renderer_Toggle_Record)
return Boolean
Returns whether the cell renderer is active. See Gtk.Cell_Renderer_Toggle.Set_Active.
True if the cell renderer is active.
function Get_Radio
(Self : not null access Gtk_Cell_Renderer_Toggle_Record)
return Boolean
Returns whether we're rendering radio toggles rather than checkboxes.
True if we're rendering radio toggles rather than checkboxes
function Get_Type return Glib.GType
type Gtk_Cell_Renderer_Toggle is access all Gtk_Cell_Renderer_Toggle_Record'Class;
function Gtk_Cell_Renderer_Toggle_New return Gtk_Cell_Renderer_Toggle
Creates a new Gtk.Cell_Renderer_Toggle.Gtk_Cell_Renderer_Toggle. Adjust rendering parameters using object properties. Object properties can be set globally (with g_object_set). Also, with Gtk.Tree_View_Column.Gtk_Tree_View_Column, you can bind a property to a value in a Gtk.Tree_Model.Gtk_Tree_Model. 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.
type Gtk_Cell_Renderer_Toggle_Record is new Gtk_Cell_Renderer_Record with null record;
procedure Gtk_New (Self : out Gtk_Cell_Renderer_Toggle)
Creates a new Gtk.Cell_Renderer_Toggle.Gtk_Cell_Renderer_Toggle. Adjust rendering parameters using object properties. Object properties can be set globally (with g_object_set). Also, with Gtk.Tree_View_Column.Gtk_Tree_View_Column, you can bind a property to a value in a Gtk.Tree_Model.Gtk_Tree_Model. 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. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
Inconsistent_Property : constant Glib.Properties.Property_Boolean;
Indicator_Size_Property : constant Glib.Properties.Property_Int;
procedure Initialize
(Self : not null access Gtk_Cell_Renderer_Toggle_Record'Class)
Creates a new Gtk.Cell_Renderer_Toggle.Gtk_Cell_Renderer_Toggle. Adjust rendering parameters using object properties. Object properties can be set globally (with g_object_set). Also, with Gtk.Tree_View_Column.Gtk_Tree_View_Column, you can bind a property to a value in a Gtk.Tree_Model.Gtk_Tree_Model. 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. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
procedure On_Toggled
(Self : not null access Gtk_Cell_Renderer_Toggle_Record;
Call : Cb_GObject_UTF8_String_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False)
The ::toggled signal is emitted when the cell is toggled.
It is the responsibility of the application to update the model with the correct value to store at Path. Often this is simply the opposite of the value currently stored at Path.
procedure On_Toggled
(Self : not null access Gtk_Cell_Renderer_Toggle_Record;
Call : Cb_Gtk_Cell_Renderer_Toggle_UTF8_String_Void;
After : Boolean := False)
The ::toggled signal is emitted when the cell is toggled.
It is the responsibility of the application to update the model with the correct value to store at Path. Often this is simply the opposite of the value currently stored at Path.
Radio_Property : constant Glib.Properties.Property_Boolean;
procedure Set_Activatable
(Self : not null access Gtk_Cell_Renderer_Toggle_Record;
Setting : Boolean)
Makes the cell renderer activatable. Since: gtk+ 2.18
the value to set.
procedure Set_Active
(Self : not null access Gtk_Cell_Renderer_Toggle_Record;
Setting : Boolean)
Activates or deactivates a cell renderer.
the value to set.
procedure Set_Radio
(Self : not null access Gtk_Cell_Renderer_Toggle_Record;
Radio : Boolean)
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.Tree_View.Gtk_Tree_View, you set up a per-row setting using Gtk.Tree_View_Column.Gtk_Tree_View_Column to associate model columns with cell renderer properties).
True to make the toggle look like a radio button
Signal_Toggled : constant Glib.Signal_Name := "toggled";
The ::toggled signal is emitted when the cell is toggled.
It is the responsibility of the application to update the model with the correct value to store at Path. Often this is simply the opposite of the value currently stored at Path.