package Implements_Gtk_Buildable is new Glib.Types.Implements (Gtk.Buildable.Gtk_Buildable, Gtk_Range_Record, Gtk_Range);
package Implements_Gtk_Orientable is new Glib.Types.Implements (Gtk.Orientable.Gtk_Orientable, Gtk_Range_Record, Gtk_Range);
type Gtk_Range_Record is new Gtk_Widget_Record with null record;
type Gtk_Range is access all Gtk_Range_Record'Class;
type Cb_Gtk_Range_Gdouble_Void is not null access procedure (Self : access Gtk_Range_Record'Class; Value : Gdouble);
type Cb_GObject_Gdouble_Void is not null access procedure (Self : access Glib.Object.GObject_Record'Class; Value : Gdouble);
type Cb_Gtk_Range_Gtk_Scroll_Type_Gdouble_Boolean is not null access function (Self : access Gtk_Range_Record'Class; Scroll : Gtk.Enums.Gtk_Scroll_Type; Value : Gdouble) return Boolean;
type Cb_GObject_Gtk_Scroll_Type_Gdouble_Boolean is not null access function (Self : access Glib.Object.GObject_Record'Class; Scroll : Gtk.Enums.Gtk_Scroll_Type; Value : Gdouble) return Boolean;
type Cb_Gtk_Range_Gtk_Scroll_Type_Void is not null access procedure (Self : access Gtk_Range_Record'Class; Step : Gtk.Enums.Gtk_Scroll_Type);
type Cb_GObject_Gtk_Scroll_Type_Void is not null access procedure (Self : access Glib.Object.GObject_Record'Class; Step : Gtk.Enums.Gtk_Scroll_Type);
type Cb_Gtk_Range_Void is not null access procedure (Self : access Gtk_Range_Record'Class);
type Cb_GObject_Void is not null access procedure (Self : access Glib.Object.GObject_Record'Class);
Adjustment_Property : constant Glib.Properties.Property_Object;
Fill_Level_Property : constant Glib.Properties.Property_Double;
Inverted_Property : constant Glib.Properties.Property_Boolean;
Lower_Stepper_Sensitivity_Property : constant Gtk.Enums.Property_Gtk_Sensitivity_Type;
Restrict_To_Fill_Level_Property : constant Glib.Properties.Property_Boolean;
Round_Digits_Property : constant Glib.Properties.Property_Int;
Show_Fill_Level_Property : constant Glib.Properties.Property_Boolean;
Upper_Stepper_Sensitivity_Property : constant Gtk.Enums.Property_Gtk_Sensitivity_Type;
Signal_Adjust_Bounds : constant Glib.Signal_Name := "adjust-bounds";
Signal_Change_Value : constant Glib.Signal_Name := "change-value";
Signal_Move_Slider : constant Glib.Signal_Name := "move-slider";
Signal_Value_Changed : constant Glib.Signal_Name := "value-changed";
function Get_Type return Glib.GType;
function Get_Adjustment
( | The_Range | : not null access Gtk_Range_Record) return Gtk.Adjustment.Gtk_Adjustment; |
procedure Set_Adjustment
( | The_Range | : not null access Gtk_Range_Record; |
Adjustment | : not null access Gtk.Adjustment.Gtk_Adjustment_Record'Class); |
function Get_Fill_Level
( | The_Range | : not null access Gtk_Range_Record) return Gdouble; |
procedure Set_Fill_Level
( | The_Range | : not null access Gtk_Range_Record; |
Fill_Level | : Gdouble); |
function Get_Flippable
( | The_Range | : not null access Gtk_Range_Record) return Boolean; |
procedure Set_Flippable
( | The_Range | : not null access Gtk_Range_Record; |
Flippable | : Boolean); |
function Get_Inverted
( | The_Range | : not null access Gtk_Range_Record) return Boolean; |
procedure Set_Inverted
( | The_Range | : not null access Gtk_Range_Record; |
Setting | : Boolean); |
function Get_Lower_Stepper_Sensitivity
( | The_Range | : not null access Gtk_Range_Record) return Gtk.Enums.Gtk_Sensitivity_Type; |
procedure Set_Lower_Stepper_Sensitivity
( | The_Range | : not null access Gtk_Range_Record; |
Sensitivity | : Gtk.Enums.Gtk_Sensitivity_Type); |
function Get_Min_Slider_Size
( | The_Range | : not null access Gtk_Range_Record) return Gint; |
procedure Set_Min_Slider_Size
( | The_Range | : not null access Gtk_Range_Record; |
Min_Size | : Gint); |
procedure Get_Range_Rect
( | The_Range | : not null access Gtk_Range_Record; |
Range_Rect | : out Gdk.Rectangle.Gdk_Rectangle); |
function Get_Restrict_To_Fill_Level
( | The_Range | : not null access Gtk_Range_Record) return Boolean; |
procedure Set_Restrict_To_Fill_Level
( | The_Range | : not null access Gtk_Range_Record; |
Restrict_To_Fill_Level | : Boolean); |
function Get_Round_Digits
( | The_Range | : not null access Gtk_Range_Record) return Gint; |
procedure Set_Round_Digits
( | The_Range | : not null access Gtk_Range_Record; |
Round_Digits | : Gint); |
function Get_Show_Fill_Level
( | The_Range | : not null access Gtk_Range_Record) return Boolean; |
procedure Set_Show_Fill_Level
( | The_Range | : not null access Gtk_Range_Record; |
Show_Fill_Level | : Boolean); |
procedure Get_Slider_Range
( | The_Range | : not null access Gtk_Range_Record; |
Slider_Start | : out Gint; | |
Slider_End | : out Gint); |
function Get_Slider_Size_Fixed
( | The_Range | : not null access Gtk_Range_Record) return Boolean; |
procedure Set_Slider_Size_Fixed
( | The_Range | : not null access Gtk_Range_Record; |
Size_Fixed | : Boolean); |
function Get_Upper_Stepper_Sensitivity
( | The_Range | : not null access Gtk_Range_Record) return Gtk.Enums.Gtk_Sensitivity_Type; |
procedure Set_Upper_Stepper_Sensitivity
( | The_Range | : not null access Gtk_Range_Record; |
Sensitivity | : Gtk.Enums.Gtk_Sensitivity_Type); |
function Get_Value
( | The_Range | : not null access Gtk_Range_Record) return Gdouble; |
procedure Set_Value
( | The_Range | : not null access Gtk_Range_Record; |
Value | : Gdouble); |
procedure Set_Increments
( | The_Range | : not null access Gtk_Range_Record; |
Step | : Gdouble; | |
Page | : Gdouble); |
procedure Set_Range
( | The_Range | : not null access Gtk_Range_Record; |
Min | : Gdouble; | |
Max | : Gdouble); |
function Get_Orientation
( | Self | : not null access Gtk_Range_Record) return Gtk.Enums.Gtk_Orientation; |
procedure Set_Orientation
( | Self | : not null access Gtk_Range_Record; |
Orientation | : Gtk.Enums.Gtk_Orientation); |
procedure On_Adjust_Bounds
( | Self | : not null access Gtk_Range_Record; |
Call | : Cb_Gtk_Range_Gdouble_Void; | |
After | : Boolean := False); |
procedure On_Adjust_Bounds
( | Self | : not null access Gtk_Range_Record; |
Call | : Cb_GObject_Gdouble_Void; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
procedure On_Change_Value
( | Self | : not null access Gtk_Range_Record; |
Call | : Cb_Gtk_Range_Gtk_Scroll_Type_Gdouble_Boolean; | |
After | : Boolean := False); |
procedure On_Change_Value
( | Self | : not null access Gtk_Range_Record; |
Call | : Cb_GObject_Gtk_Scroll_Type_Gdouble_Boolean; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
procedure On_Move_Slider
( | Self | : not null access Gtk_Range_Record; |
Call | : Cb_Gtk_Range_Gtk_Scroll_Type_Void; | |
After | : Boolean := False); |
procedure On_Move_Slider
( | Self | : not null access Gtk_Range_Record; |
Call | : Cb_GObject_Gtk_Scroll_Type_Void; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
procedure On_Value_Changed
( | Self | : not null access Gtk_Range_Record; |
Call | : Cb_Gtk_Range_Void; | |
After | : Boolean := False); |
procedure On_Value_Changed
( | Self | : not null access Gtk_Range_Record; |
Call | : Cb_GObject_Void; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
function "+"
( | Widget | : access Gtk_Range_Record'Class) return Gtk.Buildable.Gtk_Buildable renames Implements_Gtk_Buildable.To_Interface; |
function "-"
( | Interf | : Gtk.Buildable.Gtk_Buildable) return Gtk_Range renames Implements_Gtk_Buildable.To_Object; |
function "+"
( | Widget | : access Gtk_Range_Record'Class) return Gtk.Orientable.Gtk_Orientable renames Implements_Gtk_Orientable.To_Interface; |
function "-"
( | Interf | : Gtk.Orientable.Gtk_Orientable) return Gtk_Range renames Implements_Gtk_Orientable.To_Object; |
Gtk.GRange.Gtk_Range is the common base class for widgets which visualize an adjustment, e.g Gtk.Scale.Gtk_Scale or Gtk.Scrollbar.Gtk_Scrollbar.
Apart from signals for monitoring the parameters of the adjustment, Gtk.GRange.Gtk_Range provides properties and methods for influencing the sensitivity of the "steppers". It also provides properties and methods for setting a "fill level" on range widgets. See Gtk.GRange.Set_Fill_Level.