Description
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:
Subprograms
-
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);
-
-
-
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;
-
Signals emission
-
procedure Pressed (Button : access Gtk_Button_Record);
-
procedure Released (Button : access Gtk_Button_Record);
-
procedure Clicked (Button : access Gtk_Button_Record);
-
procedure Enter (Button : access Gtk_Button_Record);
-
procedure Leave (Button : access Gtk_Button_Record);