type Gtk_Action_Record is new Glib.Object.GObject_Record with private;
type Gtk_Action is access all Gtk_Action_Record'Class;
Action_Group_Property : constant Glib.Properties.Property_Object;
GIcon_Property : constant Glib.Properties.Property_Object;
Hide_If_Empty_Property : constant Glib.Properties.Property_Boolean;
Icon_Name_Property : constant Glib.Properties.Property_String;
Is_Important_Property : constant Glib.Properties.Property_Boolean;
Label_Property : constant Glib.Properties.Property_String;
Name_Property : constant Glib.Properties.Property_String;
Sensitive_Property : constant Glib.Properties.Property_Boolean;
Short_Label_Property : constant Glib.Properties.Property_String;
Stock_Id_Property : constant Glib.Properties.Property_String;
Tooltip_Property : constant Glib.Properties.Property_String;
Visible_Property : constant Glib.Properties.Property_Boolean;
Visible_Horizontal_Property : constant Glib.Properties.Property_Boolean;
Visible_Overflown_Property : constant Glib.Properties.Property_Boolean;
Visible_Vertical_Property : constant Glib.Properties.Property_Boolean;
Signal_Activate : constant Glib.Signal_Name := "activate";
procedure Gtk_New
( | Action | : out Gtk_Action; |
Name | : String; | |
Label | : String; | |
Tooltip | : String := ""; | |
Stock_Id | : String := ""); |
procedure Initialize
( | Action | : access Gtk_Action_Record'Class; |
Name | : String; | |
Label | : String; | |
Tooltip | : String := ""; | |
Stock_Id | : String := ""); |
function Convert
( | C_Object | : System.Address) return Gtk_Action; |
procedure Activate
( | Action | : access Gtk_Action_Record); |
procedure Connect_Accelerator
( | Action | : access Gtk_Action_Record); |
procedure Disconnect_Accelerator
( | Action | : access Gtk_Action_Record); |
function Create_Icon
( | Action | : access Gtk_Action_Record; |
Icon_Size | : Gtk.Enums.Gtk_Icon_Size) return Gtk.Widget.Gtk_Widget; |
function Get_GIcon
( | Action | : access Gtk_Action_Record) return Glib.G_Icon.G_Icon; |
procedure Set_GIcon
( | Action | : access Gtk_Action_Record; |
Icon | : Glib.G_Icon.G_Icon); |
function Get_Icon_Name
( | Action | : access Gtk_Action_Record) return String; |
procedure Set_Icon_Name
( | Action | : access Gtk_Action_Record; |
Icon_Name | : String); |
function Get_Is_Important
( | Action | : access Gtk_Action_Record) return Boolean; |
procedure Set_Is_Important
( | Action | : access Gtk_Action_Record; |
Is_Important | : Boolean); |
function Get_Label
( | Action | : access Gtk_Action_Record) return String; |
procedure Set_Label
( | Action | : access Gtk_Action_Record; |
Label | : String); |
function Get_Short_Label
( | Action | : access Gtk_Action_Record) return String; |
procedure Set_Short_Label
( | Action | : access Gtk_Action_Record; |
Short_Label | : String); |
function Get_Stock_Id
( | Action | : access Gtk_Action_Record) return String; |
procedure Set_Stock_Id
( | Action | : access Gtk_Action_Record; |
Stock_Id | : String); |
function Get_Tooltip
( | Action | : access Gtk_Action_Record) return String; |
procedure Set_Tooltip
( | Action | : access Gtk_Action_Record; |
Tooltip | : String); |
function Get_Visible_Horizontal
( | Action | : access Gtk_Action_Record) return Boolean; |
procedure Set_Visible_Horizontal
( | Action | : access Gtk_Action_Record; |
Visible_Horizontal | : Boolean); |
function Get_Visible_Vertical
( | Action | : access Gtk_Action_Record) return Boolean; |
procedure Set_Visible_Vertical
( | Action | : access Gtk_Action_Record; |
Visible_Vertical | : Boolean); |
function Create_Menu
( | Action | : access Gtk_Action_Record) return Gtk.Widget.Gtk_Widget; |
function Create_Menu_Item
( | Action | : access Gtk_Action_Record) return Gtk.Widget.Gtk_Widget; |
function Create_Tool_Item
( | Action | : access Gtk_Action_Record) return Gtk.Widget.Gtk_Widget; |
procedure Set_Accel_Group
( | Action | : access Gtk_Action_Record; |
Accel_Group | : Gtk.Accel_Group.Gtk_Accel_Group := null); |
procedure Set_Accel_Path
( | Action | : access Gtk_Action_Record; |
Accel_Path | : String); |
function Get_Accel_Path
( | Action | : access Gtk_Action_Record) return String; |
function Get_Name
( | Action | : access Gtk_Action_Record) return String; |
procedure Set_Sensitive
( | Action | : access Gtk_Action_Record; |
Sensitive | : Boolean); |
function Get_Sensitive
( | Action | : access Gtk_Action_Record) return Boolean; |
function Is_Sensitive
( | Action | : access Gtk_Action_Record) return Boolean; |
procedure Set_Visible
( | Action | : access Gtk_Action_Record; |
Visible | : Boolean); |
function Get_Visible
( | Action | : access Gtk_Action_Record) return Boolean; |
function Is_Visible
( | Action | : access Gtk_Action_Record) return Boolean; |
function Get_Proxies
( | Action | : access Gtk_Action_Record) return Gtk.Widget.Widget_SList.GSlist; |
function Gtk_Widget_Get_Action
( | Widget | : access Gtk.Widget.Gtk_Widget_Record) return Gtk_Action; |
procedure Connect_Proxy
( | Action | : access Gtk_Action_Record; |
Proxy | : access Gtk.Widget.Gtk_Widget_Record'Class); |
procedure Disconnect_Proxy
( | Action | : access Gtk_Action_Record; |
Proxy | : access Gtk.Widget.Gtk_Widget_Record'Class); |
procedure Block_Activate
( | Action | : access Gtk_Action_Record); |
procedure Unblock_Activate
( | Action | : access Gtk_Action_Record); |
procedure Block_Activate_From
( | Action | : access Gtk_Action_Record; |
Proxy | : access Gtk.Widget.Gtk_Widget_Record'Class); |
procedure Unblock_Activate_From
( | Action | : access Gtk_Action_Record; |
Proxy | : access Gtk.Widget.Gtk_Widget_Record'Class); |
Actions represent operations that the user can perform, along with some information on how it should be presented in the interface. Each action provides methods to create icons, menu items and toolbar items representing itself.
As well as the callback that is called when the action gets activated, the following also gets associated with the action: - a name (not translated, for path lookup) - a label (translated, for display) - an accelerator - whether label indicates a stock id - a tooltip (optional, translated) - a toolbar label (optional, shorter than label) The action will also have some state information: - visible (shown/hidden) - sensitive (enabled/disabled) Apart from regular actions, there are toggle actions, which can be toggled between two states and radio actions, of which only one in a group can be in the "active" state. Other actions can be implemented as Gtk_Action subclasses.
Each action can have one or more proxy menu item, toolbar button or other proxy widgets. Proxies mirror the state of the action (text label, tooltip, icon, visible, sensitive, etc), and should change when the action's state changes. When the proxy is activated, it should activate its action.
Binding from C File version 2.16.6