package Implements_Activatable is new Glib.Types.Implements (Gtk.Activatable.Gtk_Activatable, Gtk_Button_Record, Gtk_Button);
package Implements_Buildable is new Glib.Types.Implements (Gtk.Buildable.Gtk_Buildable, Gtk_Button_Record, Gtk_Button);
type Gtk_Button_Record is new Gtk_Bin_Record with null record;
type Gtk_Button is access all Gtk_Button_Record'Class;
Focus_On_Click_Property : constant Glib.Properties.Property_Boolean;
Image_Property : constant Glib.Properties.Property_Object;
Image_Position_Property : constant Gtk.Enums.Property_Gtk_Position_Type;
Label_Property : constant Glib.Properties.Property_String;
Relief_Property : constant Gtk.Enums.Property_Gtk_Relief_Style;
Use_Stock_Property : constant Glib.Properties.Property_Boolean;
Use_Underline_Property : constant Glib.Properties.Property_Boolean;
Xalign_Property : constant Glib.Properties.Property_Float;
Yalign_Property : constant Glib.Properties.Property_Float;
Signal_Activate : constant Glib.Signal_Name := "activate";
Signal_Clicked : constant Glib.Signal_Name := "clicked";
Signal_Enter : constant Glib.Signal_Name := "enter";
Signal_Leave : constant Glib.Signal_Name := "leave";
Signal_Pressed : constant Glib.Signal_Name := "pressed";
Signal_Released : constant Glib.Signal_Name := "released";
procedure Gtk_New_From_Stock
( | Button | : out Gtk_Button; |
Stock_Id | : UTF8_String); |
procedure Initialize_From_Stock
( | Button | : access Gtk_Button_Record'Class; |
Stock_Id | : UTF8_String); |
procedure Gtk_New
( | Button | : out Gtk_Button; |
Label | : UTF8_String := ""); |
procedure Initialize
( | Button | : access Gtk_Button_Record'Class; |
Label | : UTF8_String := ""); |
procedure Gtk_New_With_Mnemonic
( | Button | : out Gtk_Button; |
Label | : UTF8_String); |
procedure Initialize_With_Mnemonic
( | Button | : access Gtk_Button_Record'Class; |
Label | : UTF8_String); |
function Get_Type return Glib.GType;
procedure Clicked
( | Button | : access Gtk_Button_Record); |
procedure Enter
( | Button | : access Gtk_Button_Record); |
procedure Get_Alignment
( | Button | : access Gtk_Button_Record; |
Xalign | : out Gfloat; | |
Yalign | : out Gfloat); |
procedure Set_Alignment
( | Button | : access Gtk_Button_Record; |
Xalign | : Gfloat; | |
Yalign | : Gfloat); |
function Get_Event_Window
( | Button | : access Gtk_Button_Record) return Gdk.Window.Gdk_Window; |
function Get_Focus_On_Click
( | Button | : access Gtk_Button_Record) return Boolean; |
procedure Set_Focus_On_Click
( | Button | : access Gtk_Button_Record; |
Focus_On_Click | : Boolean); |
function Get_Image
( | Button | : access Gtk_Button_Record) return Gtk.Widget.Gtk_Widget; |
procedure Set_Image
( | Button | : access Gtk_Button_Record; |
Image | : access Gtk.Widget.Gtk_Widget_Record'Class); |
function Get_Image_Position
( | Button | : access Gtk_Button_Record) return Gtk.Enums.Gtk_Position_Type; |
procedure Set_Image_Position
( | Button | : access Gtk_Button_Record; |
Position | : Gtk.Enums.Gtk_Position_Type); |
function Get_Label
( | Button | : access Gtk_Button_Record) return UTF8_String; |
procedure Set_Label
( | Button | : access Gtk_Button_Record; |
Label | : UTF8_String); |
function Get_Relief
( | Button | : access Gtk_Button_Record) return Gtk.Enums.Gtk_Relief_Style; |
procedure Set_Relief
( | Button | : access Gtk_Button_Record; |
Newstyle | : Gtk.Enums.Gtk_Relief_Style); |
function Get_Use_Stock
( | Button | : access Gtk_Button_Record) return Boolean; |
procedure Set_Use_Stock
( | Button | : access Gtk_Button_Record; |
Use_Stock | : Boolean); |
function Get_Use_Underline
( | Button | : access Gtk_Button_Record) return Boolean; |
procedure Set_Use_Underline
( | Button | : access Gtk_Button_Record; |
Use_Underline | : Boolean); |
procedure Leave
( | Button | : access Gtk_Button_Record); |
procedure Pressed
( | Button | : access Gtk_Button_Record); |
procedure Released
( | Button | : access Gtk_Button_Record); |
procedure Do_Set_Related_Action
( | Self | : access Gtk_Button_Record; |
Action | : access Gtk.Action.Gtk_Action_Record'Class); |
function Get_Related_Action
( | Self | : access Gtk_Button_Record) return Gtk.Action.Gtk_Action; |
procedure Set_Related_Action
( | Self | : access Gtk_Button_Record; |
Action | : access Gtk.Action.Gtk_Action_Record'Class); |
function Get_Use_Action_Appearance
( | Self | : access Gtk_Button_Record) return Boolean; |
procedure Set_Use_Action_Appearance
( | Self | : access Gtk_Button_Record; |
Use_Appearance | : Boolean); |
procedure Sync_Action_Properties
( | Self | : access Gtk_Button_Record; |
Action | : access Gtk.Action.Gtk_Action_Record'Class); |
function "+"
( | Widget | : access Gtk_Button_Record'Class) return Gtk.Activatable.Gtk_Activatable renames Implements_Activatable.To_Interface; |
function "-"
( | Interf | : Gtk.Activatable.Gtk_Activatable) return Gtk_Button renames Implements_Activatable.To_Object; |
function "+"
( | Widget | : access Gtk_Button_Record'Class) return Gtk.Buildable.Gtk_Buildable renames Implements_Buildable.To_Interface; |
function "-"
( | Interf | : Gtk.Buildable.Gtk_Buildable) return Gtk_Button renames Implements_Buildable.To_Object; |
This package implements a general button widget. This button can be clicked on by the user to start any action. This button does not have multiple states, it can just be temporarily pressed while the mouse is on it, but does not keep its pressed state.
The gtk+ sources provide the following drawing that explains the role of the various spacings that can be set for a button: