Description
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
Subprograms
-
procedure Gtk_New
(Adjustment : out Gtk_Adjustment;
Value : Gdouble;
Lower : Gdouble;
Upper : Gdouble;
Step_Increment : Gdouble;
Page_Increment : Gdouble;
Page_Size : Gdouble);
-
procedure Initialize
(Adjustment : access Gtk_Adjustment_Record'Class;
Value : Gdouble;
Lower : Gdouble;
Upper : Gdouble;
Step_Increment : Gdouble;
Page_Increment : Gdouble;
Page_Size : Gdouble);
-
-
procedure Set_Value
(Adjustment : access Gtk_Adjustment_Record; Value : Gdouble);
function Get_Value
(Adjustment : access Gtk_Adjustment_Record) return Gdouble;
-
procedure Set_Lower
(Adjustment : access Gtk_Adjustment_Record;
Lower : Gdouble);
function Get_Lower
(Adjustment : access Gtk_Adjustment_Record) return Gdouble;
-
procedure Set_Upper
(Adjustment : access Gtk_Adjustment_Record;
Upper : Gdouble);
function Get_Upper
(Adjustment : access Gtk_Adjustment_Record) return Gdouble;
-
procedure Set_Step_Increment
(Adjustment : access Gtk_Adjustment_Record;
Step_Increment : Gdouble);
function Get_Step_Increment
(Adjustment : access Gtk_Adjustment_Record) return Gdouble;
-
procedure Set_Page_Increment
(Adjustment : access Gtk_Adjustment_Record;
Page_Increment : Gdouble);
function Get_Page_Increment
(Adjustment : access Gtk_Adjustment_Record) return Gdouble;
-
procedure Set_Page_Size
(Adjustment : access Gtk_Adjustment_Record;
Page_Size : Gdouble);
function Get_Page_Size
(Adjustment : access Gtk_Adjustment_Record) return Gdouble;
Misc functions
-
procedure Clamp_Page
(Adjustment : access Gtk_Adjustment_Record;
Lower : Gdouble;
Upper : Gdouble);
Signals emission
-
procedure Changed (Adjustment : access Gtk_Adjustment_Record);
-
procedure Value_Changed (Adjustment : access Gtk_Adjustment_Record);