type Gtk_Scrollable is new Glib.Types.GType_Interface;
Null_Gtk_Scrollable : constant Gtk_Scrollable;
Hadjustment_Property : constant Glib.Properties.Property_Object;
Hscroll_Policy_Property : constant Gtk.Enums.Property_Gtk_Scrollable_Policy;
Vadjustment_Property : constant Glib.Properties.Property_Object;
Vscroll_Policy_Property : constant Gtk.Enums.Property_Gtk_Scrollable_Policy;
function Get_Type return Glib.GType;
function Get_Hadjustment
( | Self | : Gtk_Scrollable) return Gtk.Adjustment.Gtk_Adjustment; |
procedure Set_Hadjustment
( | Self | : Gtk_Scrollable; |
Hadjustment | : access Gtk.Adjustment.Gtk_Adjustment_Record'Class); |
function Get_Hscroll_Policy
( | Self | : Gtk_Scrollable) return Gtk.Enums.Gtk_Scrollable_Policy; |
procedure Set_Hscroll_Policy
( | Self | : Gtk_Scrollable; |
Policy | : Gtk.Enums.Gtk_Scrollable_Policy); |
function Get_Vadjustment
( | Self | : Gtk_Scrollable) return Gtk.Adjustment.Gtk_Adjustment; |
procedure Set_Vadjustment
( | Self | : Gtk_Scrollable; |
Vadjustment | : access Gtk.Adjustment.Gtk_Adjustment_Record'Class); |
function Get_Vscroll_Policy
( | Self | : Gtk_Scrollable) return Gtk.Enums.Gtk_Scrollable_Policy; |
procedure Set_Vscroll_Policy
( | Self | : Gtk_Scrollable; |
Policy | : Gtk.Enums.Gtk_Scrollable_Policy); |
function "+"
( | W | : Gtk_Scrollable) return Gtk_Scrollable; |
Gtk.Scrollable.Gtk_Scrollable is an interface that is implemented by widgets with native scrolling ability.
To implement this interface you should override the Gtk.Scrollable.Gtk_Scrollable:hadjustment and Gtk.Scrollable.Gtk_Scrollable:vadjustment properties. == Creating a scrollable widget == All scrollable widgets should do the following. * When a parent widget sets the scrollable child widget's adjustments, the widget should populate the adjustments' Gtk.Adjustment.Gtk_Adjustment:lower, Gtk.Adjustment.Gtk_Adjustment:upper, Gtk.Adjustment.Gtk_Adjustment:step-increment, Gtk.Adjustment.Gtk_Adjustment:page-increment and Gtk.Adjustment.Gtk_Adjustment:page-size properties and connect to the Gtk.Adjustment.Gtk_Adjustment::value-changed signal. * Because its preferred size is the size for a fully expanded widget, the scrollable widget must be able to cope with underallocations. This means that it must accept any value passed to its Gtk.Widget.GObject_Class.size_allocate function. * When the parent allocates space to the scrollable child widget, the widget should update the adjustments' properties with new values. * When any of the adjustments emits the Gtk.Adjustment.Gtk_Adjustment::value-changed signal, the scrollable widget should scroll its contents.