Index

Package: Toggle_Action

Description

package Gtk.Toggle_Action is
A Gtk_Toggle_Action corresponds roughly to a Gtk_Check_Menu_Item. It has an "active" state specifying whether the action has been checked or not.

Binding from C File version 2.8.17

<see>Gtk.Action</see>

Classes

Gtk_Toggle_Action_Record

type Gtk_Toggle_Action_Record is new Gtk.Action.Gtk_Action_Record with
     null record;

Ancestors:

Immediate Children:

Primitive operations:

Get_Draw_As_Radio
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.Action.Activate (Inherited)
Gtk.Action.Block_Activate (Inherited)
Gtk.Action.Block_Activate_From (Inherited)
Gtk.Action.Connect_Accelerator (Inherited)
Gtk.Action.Connect_Proxy (Inherited)
Gtk.Action.Create_Icon (Inherited)
Gtk.Action.Create_Menu (Inherited)
Gtk.Action.Create_Menu_Item (Inherited)
Gtk.Action.Create_Tool_Item (Inherited)
Gtk.Action.Disconnect_Accelerator (Inherited)
Gtk.Action.Disconnect_Proxy (Inherited)
Gtk.Action.Get_Accel_Path (Inherited)
Gtk.Action.Get_GIcon (Inherited)
Gtk.Action.Get_Icon_Name (Inherited)
Gtk.Action.Get_Is_Important (Inherited)
Gtk.Action.Get_Label (Inherited)
Gtk.Action.Get_Name (Inherited)
Gtk.Action.Get_Proxies (Inherited)
Gtk.Action.Get_Sensitive (Inherited)
Gtk.Action.Get_Short_Label (Inherited)
Gtk.Action.Get_Stock_Id (Inherited)
Gtk.Action.Get_Tooltip (Inherited)
Gtk.Action.Get_Visible (Inherited)
Gtk.Action.Get_Visible_Horizontal (Inherited)
Gtk.Action.Get_Visible_Vertical (Inherited)
Gtk.Action.Is_Sensitive (Inherited)
Gtk.Action.Is_Visible (Inherited)
Gtk.Action.Set_Accel_Group (Inherited)
Gtk.Action.Set_Accel_Path (Inherited)
Gtk.Action.Set_GIcon (Inherited)
Gtk.Action.Set_Icon_Name (Inherited)
Gtk.Action.Set_Is_Important (Inherited)
Gtk.Action.Set_Label (Inherited)
Gtk.Action.Set_Sensitive (Inherited)
Gtk.Action.Set_Short_Label (Inherited)
Gtk.Action.Set_Stock_Id (Inherited)
Gtk.Action.Set_Tooltip (Inherited)
Gtk.Action.Set_Visible (Inherited)
Gtk.Action.Set_Visible_Horizontal (Inherited)
Gtk.Action.Set_Visible_Vertical (Inherited)
Gtk.Action.Unblock_Activate (Inherited)
Gtk.Action.Unblock_Activate_From (Inherited)
Set_Draw_As_Radio

Types

Gtk_Toggle_Action

type Gtk_Toggle_Action is access all Gtk_Toggle_Action_Record'Class;

Constants & Global variables

Draw_As_Radio_Property (Glib.Properties.Property_Boolean)

Draw_As_Radio_Property : constant Glib.Properties.Property_Boolean;

Signal_Toggled (Glib.Signal_Name)

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

Subprograms & Entries

Gtk_New

procedure Gtk_New 
(Action: out Gtk_Toggle_Action;
Name: String;
Label: String := "";
Tooltip: String := "";
Stock_Id: String := "");

Initialize

procedure Initialize 
(Action: access Gtk_Toggle_Action_Record'Class;
Name: String;
Label: String := "";
Tooltip: String := "";
Stock_Id: String := "");
Creates a new Gtk_Toggle_Action object. To add the action to a Gtk_Action_Group and set the accelerator for the action, call Gtk.Action_Group.Add_Action_With_Accel.

Get_Type

function Get_Type return GType;
Return the internal type associated with Gtk_Toggle_Action.

Set_Active

procedure Set_Active 
(Action: access Gtk_Toggle_Action_Record;
Is_Active: Boolean);

Get_Active

function Get_Active 
(Action: access Gtk_Toggle_Action_Record) return Boolean;
Returns the checked state of the toggle action.

Set_Draw_As_Radio

procedure Set_Draw_As_Radio 
(Action: access Gtk_Toggle_Action_Record;
Draw_As_Radio: Boolean);

Get_Draw_As_Radio

function Get_Draw_As_Radio 
(Action: access Gtk_Toggle_Action_Record) return Boolean;
Returns whether the action should have proxies like a radio action. This changes the display of widgets associated with that action.

Toggled

procedure Toggled 
(Action: access Gtk_Toggle_Action_Record);
Emits the "toggled" signal on the toggle action.