type Gtk_Button_Record is new Bin.Gtk_Bin_Record with private;
type Gtk_Button is access all Gtk_Button_Record'Class;
Label_Property : constant Glib.Properties.Property_String;
Relief_Property : constant Gtk.Enums.Property_Gtk_Relief_Style;
Use_Underline_Property : constant Glib.Properties.Property_Boolean;
Use_Stock_Property : constant Glib.Properties.Property_Boolean;
Focus_On_Click_Property : constant Glib.Properties.Property_Boolean;
Image_Property : constant Glib.Properties.Property_Object;
Xalign_Property : constant Glib.Properties.Property_Float;
Yalign_Property : constant Glib.Properties.Property_Float;
Child_Displacement_X_Property : constant Glib.Properties.Property_Int;
Child_Displacement_Y_Property : constant Glib.Properties.Property_Int;
Displace_Focus_Property : constant Glib.Properties.Property_Boolean;
Image_Spacing_Property : constant Glib.Properties.Property_Int;
Signal_Clicked : constant Glib.Signal_Name := "clicked";
Signal_Pressed : constant Glib.Signal_Name := "pressed";
Signal_Released : constant Glib.Signal_Name := "released";
Signal_Enter : constant Glib.Signal_Name := "enter";
Signal_Leave : constant Glib.Signal_Name := "leave";
Signal_Activate : constant Glib.Signal_Name := "activate";
procedure Gtk_New
( | Button | : out Gtk_Button; |
Label | : UTF8_String := ""); |
procedure Gtk_New_From_Stock
( | Button | : out Gtk_Button; |
Stock_Id | : String); |
procedure Gtk_New_With_Mnemonic
( | Button | : out Gtk_Button; |
Label | : UTF8_String); |
procedure Initialize
( | Button | : access Gtk_Button_Record'Class; |
Label | : UTF8_String); |
procedure Initialize_From_Stock
( | Button | : access Gtk_Button_Record'Class; |
Stock_Id | : String); |
procedure Initialize_With_Mnemonic
( | Button | : access Gtk_Button_Record'Class; |
Label | : UTF8_String); |
function Get_Type return Gtk.Gtk_Type;
procedure Set_Relief
( | Button | : access Gtk_Button_Record; |
New_Style | : Gtk.Enums.Gtk_Relief_Style); |
function Get_Relief
( | Button | : access Gtk_Button_Record) return Gtk.Enums.Gtk_Relief_Style; |
procedure Set_Label
( | Button | : access Gtk_Button_Record; |
Label | : UTF8_String); |
function Get_Label
( | Button | : access Gtk_Button_Record) return UTF8_String; |
procedure Set_Use_Underline
( | Button | : access Gtk_Button_Record; |
Use_Underline | : Boolean); |
function Get_Use_Underline
( | Button | : access Gtk_Button_Record) return Boolean; |
procedure Set_Use_Stock
( | Button | : access Gtk_Button_Record; |
Use_Stock | : Boolean); |
function Get_Use_Stock
( | Button | : access Gtk_Button_Record) return Boolean; |
procedure Set_Alignment
( | Button | : access Gtk_Button_Record; |
Xalign | : Gfloat := 0.5; | |
Yalign | : Gfloat := 0.5); |
procedure Get_Alignment
( | Button | : access Gtk_Button_Record; |
Xalign | : out Gfloat; | |
Yalign | : out Gfloat); |
procedure Set_Focus_On_Click
( | Button | : access Gtk_Button_Record; |
Focus_On_Click | : Boolean := True); |
function Get_Focus_On_Click
( | Button | : access Gtk_Button_Record) return Boolean; |
procedure Set_Image
( | Button | : access Gtk_Button_Record; |
Image | : access Gtk.Widget.Gtk_Widget_Record'Class); |
function Get_Image
( | Button | : access Gtk_Button_Record) return Gtk.Widget.Gtk_Widget; |
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); |
procedure Pressed
( | Button | : access Gtk_Button_Record); |
procedure Released
( | Button | : access Gtk_Button_Record); |
procedure Clicked
( | Button | : access Gtk_Button_Record); |
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:
Binding from C File version 2.14