Gtk.Cell_Renderer_Toggle

Entities

Tagged Types

Access Types

Constants

Subprograms

Description

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

Activatable_Property : constant Glib.Properties.Property_Boolean;

Active_Property

Active_Property : constant Glib.Properties.Property_Boolean;

Cb_GObject_UTF8_String_Void

type Cb_GObject_UTF8_String_Void is not null access procedure
  (Self : access Glib.Object.GObject_Record'Class;
   Path : UTF8_String);
Parameters
Self
Path

Cb_Gtk_Cell_Renderer_Toggle_UTF8_String_Void

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);
Parameters
Self
Path

Get_Activatable

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

Parameters
Self
Return Value

True if the cell renderer is activatable.

Get_Active

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.

Parameters
Self
Return Value

True if the cell renderer is active.

Get_Radio

function Get_Radio
   (Self : not null access Gtk_Cell_Renderer_Toggle_Record)
    return Boolean

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

Parameters
Self
Return Value

True if we're rendering radio toggles rather than checkboxes

Get_Type

function Get_Type return Glib.GType
Return Value

Gtk_Cell_Renderer_Toggle

type Gtk_Cell_Renderer_Toggle is access all Gtk_Cell_Renderer_Toggle_Record'Class;

Gtk_Cell_Renderer_Toggle_New

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.

Return Value

Gtk_Cell_Renderer_Toggle_Record

type Gtk_Cell_Renderer_Toggle_Record is new Gtk_Cell_Renderer_Record with null record;

Gtk_New

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.

Parameters
Self

Inconsistent_Property

Inconsistent_Property : constant Glib.Properties.Property_Boolean;

Indicator_Size_Property

Indicator_Size_Property : constant Glib.Properties.Property_Int;

Initialize

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.

Parameters
Self

On_Toggled

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.

Parameters
Self
Call
Slot
After

On_Toggled

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.

Parameters
Self
Call
After

Radio_Property

Radio_Property : constant Glib.Properties.Property_Boolean;

Set_Activatable

procedure Set_Activatable
   (Self    : not null access Gtk_Cell_Renderer_Toggle_Record;
    Setting : Boolean)

Makes the cell renderer activatable. Since: gtk+ 2.18

Parameters
Self
Setting

the value to set.

Set_Active

procedure Set_Active
   (Self    : not null access Gtk_Cell_Renderer_Toggle_Record;
    Setting : Boolean)

Activates or deactivates a cell renderer.

Parameters
Self
Setting

the value to set.

Set_Radio

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

Parameters
Self
Radio

True to make the toggle look like a radio button

Signal_Toggled

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.