Toc Gallery Index Tree Gtk.Toggle_Action

Hierarchy

See Also

Description

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.

Types

  • type Gtk_Toggle_Action is access all Gtk_Toggle_Action_Record'Class;
  • type Gtk_Toggle_Action_Record is new Gtk.Action.Gtk_Action_Record with null record;

Subprograms

  • procedure Gtk_New (Action : out Gtk_Toggle_Action; Name : String; Label : String := ""; Tooltip : String := ""; Stock_Id : String := "");
    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.
  • function Get_Type return GType;
    Return the internal type associated with Gtk_Toggle_Action.
  • procedure Set_Active (Action : access Gtk_Toggle_Action_Record; Is_Active : Boolean);
    function Get_Active (Action : access Gtk_Toggle_Action_Record) return Boolean;
    Returns the checked state of the toggle action.
  • procedure Set_Draw_As_Radio (Action : access Gtk_Toggle_Action_Record; Draw_As_Radio : Boolean);
    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.
  • Signals

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

Signals

  • toggled
    procedure Handler (Toggled : access Gtk_Toggle_Action_Record'Class);
    Called when the state of the action is toggled.

Properties

  • Draw_As_Radio_Property
    Boolean
    Whether the proxies for this action look like radio action

Alphabetical Index