package Implements_Gtk_Actionable is new Glib.Types.Implements (Gtk.Actionable.Gtk_Actionable, Gtk_Tool_Button_Record, Gtk_Tool_Button);
package Implements_Gtk_Activatable is new Glib.Types.Implements (Gtk.Activatable.Gtk_Activatable, Gtk_Tool_Button_Record, Gtk_Tool_Button);
package Implements_Gtk_Buildable is new Glib.Types.Implements (Gtk.Buildable.Gtk_Buildable, Gtk_Tool_Button_Record, Gtk_Tool_Button);
type Gtk_Tool_Button_Record is new Gtk_Tool_Item_Record with null record;
type Gtk_Tool_Button is access all Gtk_Tool_Button_Record'Class;
type Cb_Gtk_Tool_Button_Void is not null access procedure (Self : access Gtk_Tool_Button_Record'Class);
type Cb_GObject_Void is not null access procedure (Self : access Glib.Object.GObject_Record'Class);
Icon_Name_Property : constant Glib.Properties.Property_String;
Icon_Widget_Property : constant Glib.Properties.Property_Object;
Label_Property : constant Glib.Properties.Property_String;
Label_Widget_Property : constant Glib.Properties.Property_Object;
Stock_Id_Property : constant Glib.Properties.Property_String;
Use_Underline_Property : constant Glib.Properties.Property_Boolean;
Signal_Clicked : constant Glib.Signal_Name := "clicked";
procedure Gtk_New
( | Button | : out Gtk_Tool_Button; |
Icon_Widget | : Gtk.Widget.Gtk_Widget := null; | |
Label | : UTF8_String := ""); |
procedure Initialize
( | Button | : not null access Gtk_Tool_Button_Record'Class; |
Icon_Widget | : Gtk.Widget.Gtk_Widget := null; | |
Label | : UTF8_String := ""); |
function Gtk_Tool_Button_New
( | Icon_Widget | : Gtk.Widget.Gtk_Widget := null; |
Label | : UTF8_String := "") return Gtk_Tool_Button; |
procedure Gtk_New_From_Stock
( | Button | : out Gtk_Tool_Button; |
Stock_Id | : UTF8_String); |
procedure Initialize_From_Stock
( | Button | : not null access Gtk_Tool_Button_Record'Class; |
Stock_Id | : UTF8_String); |
function Gtk_Tool_Button_New_From_Stock
( | Stock_Id | : UTF8_String) return Gtk_Tool_Button; |
function Get_Type return Glib.GType;
function Get_Icon_Name
( | Button | : not null access Gtk_Tool_Button_Record) return UTF8_String; |
procedure Set_Icon_Name
( | Button | : not null access Gtk_Tool_Button_Record; |
Icon_Name | : UTF8_String := ""); |
function Get_Icon_Widget
( | Button | : not null access Gtk_Tool_Button_Record) return Gtk.Widget.Gtk_Widget; |
procedure Set_Icon_Widget
( | Button | : not null access Gtk_Tool_Button_Record; |
Icon_Widget | : access Gtk.Widget.Gtk_Widget_Record'Class); |
function Get_Label
( | Button | : not null access Gtk_Tool_Button_Record) return UTF8_String; |
procedure Set_Label
( | Button | : not null access Gtk_Tool_Button_Record; |
Label | : UTF8_String := ""); |
function Get_Label_Widget
( | Button | : not null access Gtk_Tool_Button_Record) return Gtk.Widget.Gtk_Widget; |
procedure Set_Label_Widget
( | Button | : not null access Gtk_Tool_Button_Record; |
Label_Widget | : access Gtk.Widget.Gtk_Widget_Record'Class); |
function Get_Stock_Id
( | Button | : not null access Gtk_Tool_Button_Record) return UTF8_String; |
procedure Set_Stock_Id
( | Button | : not null access Gtk_Tool_Button_Record; |
Stock_Id | : UTF8_String := ""); |
function Get_Use_Underline
( | Button | : not null access Gtk_Tool_Button_Record) return Boolean; |
procedure Set_Use_Underline
( | Button | : not null access Gtk_Tool_Button_Record; |
Use_Underline | : Boolean); |
function Get_Action_Name
( | Self | : not null access Gtk_Tool_Button_Record) return UTF8_String; |
procedure Set_Action_Name
( | Self | : not null access Gtk_Tool_Button_Record; |
Action_Name | : UTF8_String); |
function Get_Action_Target_Value
( | Self | : not null access Gtk_Tool_Button_Record) return Glib.Variant.Gvariant; |
procedure Set_Action_Target_Value
( | Self | : not null access Gtk_Tool_Button_Record; |
Target_Value | : Glib.Variant.Gvariant); |
procedure Set_Detailed_Action_Name
( | Self | : not null access Gtk_Tool_Button_Record; |
Detailed_Action_Name | : UTF8_String); |
procedure Do_Set_Related_Action
( | Self | : not null access Gtk_Tool_Button_Record; |
Action | : not null access Gtk.Action.Gtk_Action_Record'Class); |
function Get_Related_Action
( | Self | : not null access Gtk_Tool_Button_Record) return Gtk.Action.Gtk_Action; |
procedure Set_Related_Action
( | Self | : not null access Gtk_Tool_Button_Record; |
Action | : not null access Gtk.Action.Gtk_Action_Record'Class); |
function Get_Use_Action_Appearance
( | Self | : not null access Gtk_Tool_Button_Record) return Boolean; |
procedure Set_Use_Action_Appearance
( | Self | : not null access Gtk_Tool_Button_Record; |
Use_Appearance | : Boolean); |
procedure Sync_Action_Properties
( | Self | : not null access Gtk_Tool_Button_Record; |
Action | : access Gtk.Action.Gtk_Action_Record'Class); |
procedure On_Clicked
( | Self | : not null access Gtk_Tool_Button_Record; |
Call | : Cb_Gtk_Tool_Button_Void; | |
After | : Boolean := False); |
procedure On_Clicked
( | Self | : not null access Gtk_Tool_Button_Record; |
Call | : Cb_GObject_Void; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
function "+"
( | Widget | : access Gtk_Tool_Button_Record'Class) return Gtk.Actionable.Gtk_Actionable renames Implements_Gtk_Actionable.To_Interface; |
function "-"
( | Interf | : Gtk.Actionable.Gtk_Actionable) return Gtk_Tool_Button renames Implements_Gtk_Actionable.To_Object; |
function "+"
( | Widget | : access Gtk_Tool_Button_Record'Class) return Gtk.Activatable.Gtk_Activatable renames Implements_Gtk_Activatable.To_Interface; |
function "-"
( | Interf | : Gtk.Activatable.Gtk_Activatable) return Gtk_Tool_Button renames Implements_Gtk_Activatable.To_Object; |
function "+"
( | Widget | : access Gtk_Tool_Button_Record'Class) return Gtk.Buildable.Gtk_Buildable renames Implements_Gtk_Buildable.To_Interface; |
function "-"
( | Interf | : Gtk.Buildable.Gtk_Buildable) return Gtk_Tool_Button renames Implements_Gtk_Buildable.To_Object; |
Gtk.Tool_Button.Gtk_Tool_Button<!-- -->s are Gtk_Tool_Items containing buttons.
Use Gtk.Tool_Button.Gtk_New to create a new Gtk.Tool_Button.Gtk_Tool_Button. Use Gtk.Tool_Button.Gtk_New_From_Stock to create a Gtk.Tool_Button.Gtk_Tool_Button containing a stock item.
The label of a Gtk.Tool_Button.Gtk_Tool_Button is determined by the properties Gtk.Tool_Button.Gtk_Tool_Button:label-widget, Gtk.Tool_Button.Gtk_Tool_Button:label, and Gtk.Tool_Button.Gtk_Tool_Button:stock-id. If Gtk.Tool_Button.Gtk_Tool_Button:label-widget is non-null, then that widget is used as the label. Otherwise, if Gtk.Tool_Button.Gtk_Tool_Button:label is non-null, that string is used as the label. Otherwise, if Gtk.Tool_Button.Gtk_Tool_Button:stock-id is non-null, the label is determined by the stock item. Otherwise, the button does not have a label.
The icon of a Gtk.Tool_Button.Gtk_Tool_Button is determined by the properties Gtk.Tool_Button.Gtk_Tool_Button:icon-widget and Gtk.Tool_Button.Gtk_Tool_Button:stock-id. If Gtk.Tool_Button.Gtk_Tool_Button:icon-widget is non-null, then that widget is used as the icon. Otherwise, if Gtk.Tool_Button.Gtk_Tool_Button:stock-id is non-null, the icon is determined by the stock item. Otherwise, the button does not have a icon.