type Gtk_Adjustment_Record is new GObject_Record with null record;
type Gtk_Adjustment is access all Gtk_Adjustment_Record'Class;
Lower_Property : constant Glib.Properties.Property_Double;
Page_Increment_Property : constant Glib.Properties.Property_Double;
Page_Size_Property : constant Glib.Properties.Property_Double;
Step_Increment_Property : constant Glib.Properties.Property_Double;
Upper_Property : constant Glib.Properties.Property_Double;
Value_Property : constant Glib.Properties.Property_Double;
Signal_Changed : constant Glib.Signal_Name := "changed";
Signal_Value_Changed : constant Glib.Signal_Name := "value-changed";
procedure Initialize
( | Adjustment | : access Gtk_Adjustment_Record'Class; |
Value | : Gdouble; | |
Lower | : Gdouble; | |
Upper | : Gdouble; | |
Step_Increment | : Gdouble; | |
Page_Increment | : Gdouble; | |
Page_Size | : Gdouble := 0.0); |
function Get_Type return Glib.GType;
procedure Changed
( | Adjustment | : access Gtk_Adjustment_Record); |
procedure Clamp_Page
( | Adjustment | : access Gtk_Adjustment_Record; |
Lower | : Gdouble; | |
Upper | : Gdouble); |
procedure Configure
( | Adjustment | : access Gtk_Adjustment_Record; |
Value | : Gdouble; | |
Lower | : Gdouble; | |
Upper | : Gdouble; | |
Step_Increment | : Gdouble; | |
Page_Increment | : Gdouble; | |
Page_Size | : Gdouble); |
function Get_Lower
( | Adjustment | : access Gtk_Adjustment_Record) return Gdouble; |
procedure Set_Lower
( | Adjustment | : access Gtk_Adjustment_Record; |
Lower | : Gdouble); |
function Get_Page_Increment
( | Adjustment | : access Gtk_Adjustment_Record) return Gdouble; |
procedure Set_Page_Increment
( | Adjustment | : access Gtk_Adjustment_Record; |
Page_Increment | : Gdouble); |
function Get_Page_Size
( | Adjustment | : access Gtk_Adjustment_Record) return Gdouble; |
procedure Set_Page_Size
( | Adjustment | : access Gtk_Adjustment_Record; |
Page_Size | : Gdouble); |
function Get_Step_Increment
( | Adjustment | : access Gtk_Adjustment_Record) return Gdouble; |
procedure Set_Step_Increment
( | Adjustment | : access Gtk_Adjustment_Record; |
Step_Increment | : Gdouble); |
function Get_Upper
( | Adjustment | : access Gtk_Adjustment_Record) return Gdouble; |
procedure Set_Upper
( | Adjustment | : access Gtk_Adjustment_Record; |
Upper | : Gdouble); |
function Get_Value
( | Adjustment | : access Gtk_Adjustment_Record) return Gdouble; |
procedure Set_Value
( | Adjustment | : access Gtk_Adjustment_Record; |
Value | : Gdouble); |
procedure Value_Changed
( | Adjustment | : access Gtk_Adjustment_Record); |
This object represents an adjustable bounded value. It is used in many other widgets that have such internal values, like Gtk_Scrollbar, Gtk_Spin_Button, Gtk_Range, ... Modifying the value of these widgets is done through their associated adjustments.
The modification of the value is left to the user, who should call Value_Changed or Changed to emit the relevant signals.
The meaning of the most important fields can be explained on the following figure (imagine this is a scrollbar): [-------|=================|-------------------] lower value value + page_size upper