type Gtk_Adjustment_Record is new GObject_Record with null record;
type Gtk_Adjustment is access all Gtk_Adjustment_Record'Class;
type Cb_Gtk_Adjustment_Void is not null access procedure (Self : access Gtk_Adjustment_Record'Class);
type Cb_GObject_Void is not null access procedure (Self : access Glib.Object.GObject_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 | : not null access Gtk_Adjustment_Record'Class; |
Value | : Gdouble; | |
Lower | : Gdouble; | |
Upper | : Gdouble; | |
Step_Increment | : Gdouble; | |
Page_Increment | : Gdouble; | |
Page_Size | : Gdouble := 0.0); |
function Gtk_Adjustment_New
( | Value | : Gdouble; |
Lower | : Gdouble; | |
Upper | : Gdouble; | |
Step_Increment | : Gdouble; | |
Page_Increment | : Gdouble; | |
Page_Size | : Gdouble := 0.0) return Gtk_Adjustment; |
function Get_Type return Glib.GType;
procedure Changed
( | Adjustment | : not null access Gtk_Adjustment_Record); |
procedure Clamp_Page
( | Adjustment | : not null access Gtk_Adjustment_Record; |
Lower | : Gdouble; | |
Upper | : Gdouble); |
procedure Configure
( | Adjustment | : not null access Gtk_Adjustment_Record; |
Value | : Gdouble; | |
Lower | : Gdouble; | |
Upper | : Gdouble; | |
Step_Increment | : Gdouble; | |
Page_Increment | : Gdouble; | |
Page_Size | : Gdouble); |
function Get_Lower
( | Adjustment | : not null access Gtk_Adjustment_Record) return Gdouble; |
procedure Set_Lower
( | Adjustment | : not null access Gtk_Adjustment_Record; |
Lower | : Gdouble); |
function Get_Minimum_Increment
( | Adjustment | : not null access Gtk_Adjustment_Record) return Gdouble; |
function Get_Page_Increment
( | Adjustment | : not null access Gtk_Adjustment_Record) return Gdouble; |
procedure Set_Page_Increment
( | Adjustment | : not null access Gtk_Adjustment_Record; |
Page_Increment | : Gdouble); |
function Get_Page_Size
( | Adjustment | : not null access Gtk_Adjustment_Record) return Gdouble; |
procedure Set_Page_Size
( | Adjustment | : not null access Gtk_Adjustment_Record; |
Page_Size | : Gdouble); |
function Get_Step_Increment
( | Adjustment | : not null access Gtk_Adjustment_Record) return Gdouble; |
procedure Set_Step_Increment
( | Adjustment | : not null access Gtk_Adjustment_Record; |
Step_Increment | : Gdouble); |
function Get_Upper
( | Adjustment | : not null access Gtk_Adjustment_Record) return Gdouble; |
procedure Set_Upper
( | Adjustment | : not null access Gtk_Adjustment_Record; |
Upper | : Gdouble); |
function Get_Value
( | Adjustment | : not null access Gtk_Adjustment_Record) return Gdouble; |
procedure Set_Value
( | Adjustment | : not null access Gtk_Adjustment_Record; |
Value | : Gdouble); |
procedure Value_Changed
( | Adjustment | : not null access Gtk_Adjustment_Record); |
procedure On_Changed
( | Self | : not null access Gtk_Adjustment_Record; |
Call | : Cb_Gtk_Adjustment_Void; | |
After | : Boolean := False); |
procedure On_Changed
( | Self | : not null access Gtk_Adjustment_Record; |
Call | : Cb_GObject_Void; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
procedure On_Value_Changed
( | Self | : not null access Gtk_Adjustment_Record; |
Call | : Cb_Gtk_Adjustment_Void; | |
After | : Boolean := False); |
procedure On_Value_Changed
( | Self | : not null access Gtk_Adjustment_Record; |
Call | : Cb_GObject_Void; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
The Gtk.Adjustment.Gtk_Adjustment object represents a value which has an associated lower and upper bound, together with step and page increments, and a page size. It is used within several GTK+ widgets, including Gtk.Spin_Button.Gtk_Spin_Button, Gtk.Viewport.Gtk_Viewport, and Gtk.GRange.Gtk_Range (which is a base class for Gtk.Scrollbar.Gtk_Hscrollbar, Gtk.Scrollbar.Gtk_Vscrollbar, Gtk.Scale.Gtk_Hscale, and Gtk.Scale.Gtk_Vscale).
The Gtk.Adjustment.Gtk_Adjustment object does not update the value itself.
Instead it is left up to the owner of the Gtk.Adjustment.Gtk_Adjustment to control the value.
The owner of the Gtk.Adjustment.Gtk_Adjustment typically calls the Gtk.Adjustment.Value_Changed and Gtk.Adjustment.Changed functions after changing the value and its bounds. This results in the emission of the Gtk.Adjustment.Gtk_Adjustment::value_changed or Gtk.Adjustment.Gtk_Adjustment::changed signal respectively.