Toc Gallery Index Tree Gtk.Radio_Action

Hierarchy

See Also

Description

A Gtk_Radio_Action is similar to Gtk_Radio_Menu_Item. A number of radio actions can be linked together so that only one may be active at any one time.

Types

Subprograms

  • procedure Gtk_New (Action : out Gtk_Radio_Action; Name : String; Label : String := ""; Tooltip : String := ""; Stock_Id : String := ""; Value : Gint);
    procedure Initialize (Action : access Gtk_Radio_Action_Record'Class; Name : String; Label : String := ""; Tooltip : String := ""; Stock_Id : String := ""; Value : Gint);
    Creates a new Gtk_Radio_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 used for a Gtk_Radio_Action
  • function Get_Current_Value (Action : access Gtk_Radio_Action_Record) return Glib.Gint;
    Obtains the value property of the currently active member of the group to which Action belongs.
  • procedure Set_Group (Action : access Gtk_Radio_Action_Record; Group : Gtk.Widget.Widget_SList.GSlist);
    function Get_Group (Action : access Gtk_Radio_Action_Record) return Gtk.Widget.Widget_SList.GSlist;
    Returns the list representing the radio group for this object. Note that the returned list is only valid until the next change to the group.

    A common way to set up a group of radio group is the following: Group : GSlist := null; Action : Gtk_Radio_Action; while ... loop Gtk_New (Action, ...); Set_Group (Action, Group); Group := Get_Group (Action); end loop;

Signals

  • changed
    procedure Handler (Action : access Gtk_Radio_Action_Record'Class; Current : access Gtk_Radio_Action_Record'Class);
    The changed signal is emitted on every member of a radio group when the active member is changed. The signal gets emitted after the activate signals for the previous and current active members. Current is the action that is currently active

Properties

Alphabetical Index