type Gtk_Scrollbar_Record is new Gtk.GRange.Gtk_Range_Record with private;
subtype Gtk_Hscrollbar_Record is Gtk_Scrollbar_Record;
subtype Gtk_Vscrollbar_Record is Gtk_Scrollbar_Record;
type Gtk_Scrollbar is access all Gtk_Scrollbar_Record'Class;
subtype Gtk_Hscrollbar is Gtk_Scrollbar;
subtype Gtk_Vscrollbar is Gtk_Scrollbar;
Fixed_Slider_Length_Property : constant Glib.Properties.Property_Boolean;
Has_Backward_Stepper_Property : constant Glib.Properties.Property_Boolean;
Has_Forward_Stepper_Property : constant Glib.Properties.Property_Boolean;
Has_Secondary_Backward_Stepper_Property : constant Glib.Properties.Property_Boolean;
Has_Secondary_Forward_Stepper_Property : constant Glib.Properties.Property_Boolean;
Min_Slider_Length_Property : constant Glib.Properties.Property_Int;
procedure Gtk_New_Hscrollbar
( | Widget | : out Gtk_Scrollbar; |
Adjustment | : Gtk.Adjustment.Gtk_Adjustment); |
procedure Initialize_Hscrollbar
( | Widget | : access Gtk_Scrollbar_Record'Class; |
Adjustment | : Gtk.Adjustment.Gtk_Adjustment); |
procedure Gtk_New_Vscrollbar
( | Widget | : out Gtk_Scrollbar; |
Adjustment | : Gtk.Adjustment.Gtk_Adjustment); |
procedure Initialize_Vscrollbar
( | Widget | : access Gtk_Scrollbar_Record'Class; |
Adjustment | : Gtk.Adjustment.Gtk_Adjustment); |
function Get_Type return Gtk.Gtk_Type;
function Hscrollbar_Get_Type return Gtk.Gtk_Type;
function Vscrollbar_Get_Type return Gtk.Gtk_Type;
This widget represents a widget that can be dragged by the user to change the visible area of another widget. It is typically only used through a Gtk.Scrolled_Window, although you might need, from time to time, to use it directly if the widget you want to scroll isn't entirely suitable for a scrolled window.
For instance, if you are creating your own drawing area, unlimited in size, you do not want to create a Gtk_Drawing_Area 100_000 pixels large, since that would use too much memory. Instead, you create one with just the size of the visible area on the screen, then connect it with a scrollbar so that when the user moves the scrollbar, you change what should be displayed in the drawing area.
Binding from C File version 2.8.17