package Spin_Button_Update_Policy_Properties is new Glib.Generic_Properties.Generic_Internal_Discrete_Property (Gtk_Spin_Button_Update_Policy);
type Gtk_Spin_Button_Record is new Gtk.GEntry.Gtk_Entry_Record with private;
type Gtk_Spin_Button is access all Gtk_Spin_Button_Record'Class;
type Gtk_Spin_Button_Update_Policy is (Update_Always, -- Update always, errors are ignored while converting text into a -- numeric value. Update_If_Valid -- The spin button's value gets changed if the text input is a numeric -- value that is within the range specified by the adjustment. );
type Gtk_Spin_Type is (Spin_Step_Forward, Spin_Step_Backward, Spin_Page_Forward, Spin_Page_Backward, Spin_Home, Spin_End, Spin_User_Defined);
type Property_Spin_Button_Update_Policy_Type is new Spin_Button_Update_Policy_Properties.Property;
Adjustment_Property : constant Glib.Properties.Property_Object;
Climb_Rate_Property : constant Glib.Properties.Property_Double;
Digits_Property : constant Glib.Properties.Property_Uint;
Numeric_Property : constant Glib.Properties.Property_Boolean;
Snap_To_Ticks_Property : constant Glib.Properties.Property_Boolean;
Update_Policy_Property : constant Property_Spin_Button_Update_Policy_Type;
Value_Property : constant Glib.Properties.Property_Double;
Wrap_Property : constant Glib.Properties.Property_Boolean;
Signal_Change_Value : constant Glib.Signal_Name := "change_value";
Signal_Input : constant Glib.Signal_Name := "input";
Signal_Output : constant Glib.Signal_Name := "output";
Signal_Value_Changed : constant Glib.Signal_Name := "value_changed";
procedure Gtk_New
( | Spin_Button | : out Gtk_Spin_Button; |
Adjustment | : Gtk.Adjustment.Gtk_Adjustment; | |
Climb_Rate | : Gdouble; | |
The_Digits | : Gint); |
procedure Gtk_New
( | Spin_Button | : out Gtk_Spin_Button; |
Min | : Gdouble; | |
Max | : Gdouble; | |
Step | : Gdouble); |
procedure Initialize
( | Spin_Button | : access Gtk_Spin_Button_Record'Class; |
Adjustment | : Gtk.Adjustment.Gtk_Adjustment; | |
Climb_Rate | : Gdouble; | |
The_Digits | : Gint); |
procedure Initialize
( | Spin_Button | : access Gtk_Spin_Button_Record'Class; |
Min | : Gdouble; | |
Max | : Gdouble; | |
Step | : Gdouble); |
function Get_Type return Gtk.Gtk_Type;
procedure Set_Adjustment
( | Spin_Button | : access Gtk_Spin_Button_Record; |
Adjustment | : Gtk.Adjustment.Gtk_Adjustment); |
function Get_Adjustment
( | Spin_Button | : access Gtk_Spin_Button_Record) return Gtk.Adjustment.Gtk_Adjustment; |
procedure Set_Digits
( | Spin_Button | : access Gtk_Spin_Button_Record; |
The_Digits | : Guint); |
function Get_Digits
( | Spin_Button | : access Gtk_Spin_Button_Record) return Guint; |
procedure Set_Increments
( | Spin_Button | : access Gtk_Spin_Button_Record; |
Step | : Gdouble; | |
Page | : Gdouble); |
procedure Get_Increments
( | Spin_Button | : access Gtk_Spin_Button_Record; |
Step | : out Gdouble; | |
Page | : out Gdouble); |
procedure Set_Range
( | Spin_Button | : access Gtk_Spin_Button_Record; |
Min | : Gdouble; | |
Max | : Gdouble); |
procedure Get_Range
( | Spin_Button | : access Gtk_Spin_Button_Record; |
Min | : out Gdouble; | |
Max | : out Gdouble); |
procedure Set_Value
( | Spin_Button | : access Gtk_Spin_Button_Record; |
Value | : Gdouble); |
function Get_Value
( | Spin_Button | : access Gtk_Spin_Button_Record) return Gdouble; |
function Get_Value_As_Int
( | Spin_Button | : access Gtk_Spin_Button_Record) return Gint; |
procedure Set_Update_Policy
( | Spin_Button | : access Gtk_Spin_Button_Record; |
Policy | : Gtk_Spin_Button_Update_Policy); |
function Get_Update_Policy
( | Spin_Button | : access Gtk_Spin_Button_Record) return Gtk_Spin_Button_Update_Policy; |
procedure Set_Numeric
( | Spin_Button | : access Gtk_Spin_Button_Record; |
Numeric | : Boolean); |
function Get_Numeric
( | Spin_Button | : access Gtk_Spin_Button_Record) return Boolean; |
procedure Spin
( | Spin_Button | : access Gtk_Spin_Button_Record; |
Direction | : Gtk_Spin_Type; | |
Step | : Gdouble); |
procedure Set_Wrap
( | Spin_Button | : access Gtk_Spin_Button_Record; |
Wrap | : Boolean); |
function Get_Wrap
( | Spin_Button | : access Gtk_Spin_Button_Record) return Boolean; |
procedure Set_Snap_To_Ticks
( | Spin_Button | : access Gtk_Spin_Button_Record; |
Snap_To_Ticks | : Boolean); |
function Get_Snap_To_Ticks
( | Spin_Button | : access Gtk_Spin_Button_Record) return Boolean; |
procedure Update
( | Spin_Button | : access Gtk_Spin_Button_Record); |
A Gtk_Spin_Button is a single line text editing widget for text that represents a number. At the right hand side of the text line there are small up- and down arrow buttons for incrementing or decrementing (spinning) the number within a given range.
It allows the value to have zero or a number of decimal places and to be incremented/decremented in configurable steps.
The action of holding down one of the buttons optionally results in an acceleration of change in the value according to how long it is depressed.
See Gtk.GEntry for a text editing widget without spin buttons.
Binding from C File version 2.8.17