Index

Package: Cell_Renderer_Toggle

Description

package Gtk.Cell_Renderer_Toggle is
Gtk_Cell_Renderer_Toggle 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.

Binding from C File version 2.8.17

Classes

Gtk_Cell_Renderer_Toggle_Record

type Gtk_Cell_Renderer_Toggle_Record is
     new Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record with private;

Ancestors:

Primitive operations:

Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Ref_Sink (Inherited)
Glib.Object.Unref (Inherited)
Gtk.Cell_Renderer.Activate (Inherited)
Gtk.Cell_Renderer.Get_Fixed_Size (Inherited)
Gtk.Cell_Renderer.Get_Size (Inherited)
Gtk.Cell_Renderer.Render (Inherited)
Gtk.Cell_Renderer.Set_Fixed_Size (Inherited)
Gtk.Cell_Renderer.Start_Editing (Inherited)

Types

Gtk_Cell_Renderer_Toggle

type Gtk_Cell_Renderer_Toggle is
     access all Gtk_Cell_Renderer_Toggle_Record'Class;

Constants & Global variables

Signal_Toggled (Glib.Signal_Name)

Signal_Toggled : constant Glib.Signal_Name := "toggled";

Activatable_Property (Glib.Properties.Property_Boolean)

Activatable_Property    : constant Glib.Properties.Property_Boolean;

Inconsistent_Property (Glib.Properties.Property_Boolean)

Inconsistent_Property   : constant Glib.Properties.Property_Boolean;

Indicator_Size_Property (Glib.Properties.Property_Int)

Indicator_Size_Property : constant Glib.Properties.Property_Int;

Subprograms & Entries

Gtk_New

procedure Gtk_New 
(Widget: out Gtk_Cell_Renderer_Toggle);

Initialize

procedure Initialize 
(Widget: access Gtk_Cell_Renderer_Toggle_Record'Class);
Creates or initializes a new renderer.

Get_Type

function Get_Type return Gtk.Gtk_Type;
Return the internal value associated with this widget.

Set_Radio

procedure Set_Radio 
(Toggle: access Gtk_Cell_Renderer_Toggle_Record;
Radio: Boolean);

Get_Radio

function Get_Radio 
(Toggle: access Gtk_Cell_Renderer_Toggle_Record) return Boolean;
If Setting 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). Note that this only affects the visual display, but your application is still responsible for enforcing the behavior, through the toggled signal.

Set_Active

procedure Set_Active 
(Toggle: access Gtk_Cell_Renderer_Toggle_Record;
Setting: Boolean);

Get_Active

function Get_Active 
(Toggle: access Gtk_Cell_Renderer_Toggle_Record) return Boolean;
Whether the renderer is currently selected