Index

Package: Scrollable

Description

package Gtk.Scrollable is

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.

Types

Gtk_Scrollable

type Gtk_Scrollable is new Glib.Types.GType_Interface;

Constants & Global variables

Null_Gtk_Scrollable (Gtk_Scrollable)

Null_Gtk_Scrollable : constant Gtk_Scrollable;

Hadjustment_Property (Glib.Properties.Property_Object)

Hadjustment_Property : constant Glib.Properties.Property_Object;
Type: Gtk.Adjustment.Gtk_Adjustment Horizontal Gtk.Adjustment.Gtk_Adjustment of the scrollable widget. This adjustment is shared between the scrollable widget and its parent.

Hscroll_Policy_Property (Gtk.Enums.Property_Gtk_Scrollable_Policy)

Hscroll_Policy_Property : constant Gtk.Enums.Property_Gtk_Scrollable_Policy;
Determines whether horizontal scrolling should start once the scrollable widget is allocated less than its minimum width or less than its natural width.

Vadjustment_Property (Glib.Properties.Property_Object)

Vadjustment_Property : constant Glib.Properties.Property_Object;
Type: Gtk.Adjustment.Gtk_Adjustment Verical Gtk.Adjustment.Gtk_Adjustment of the scrollable widget. This adjustment is shared between the scrollable widget and its parent.

Vscroll_Policy_Property (Gtk.Enums.Property_Gtk_Scrollable_Policy)

Vscroll_Policy_Property : constant Gtk.Enums.Property_Gtk_Scrollable_Policy;
Determines whether vertical scrolling should start once the scrollable widget is allocated less than its minimum height or less than its natural height.

Subprograms & Entries

Get_Type

function Get_Type return Glib.GType;

Get_Hadjustment

function Get_Hadjustment 
(Self: Gtk_Scrollable) return Gtk.Adjustment.Gtk_Adjustment;
Retrieves the Gtk.Adjustment.Gtk_Adjustment used for horizontal scrolling. Since: gtk+ 3.0

Set_Hadjustment

procedure Set_Hadjustment 
(Self: Gtk_Scrollable;
Hadjustment: access Gtk.Adjustment.Gtk_Adjustment_Record'Class);
Sets the horizontal adjustment of the Gtk.Scrollable.Gtk_Scrollable. Since: gtk+ 3.0 "hadjustment": a Gtk.Adjustment.Gtk_Adjustment

Get_Hscroll_Policy

function Get_Hscroll_Policy 
(Self: Gtk_Scrollable) return Gtk.Enums.Gtk_Scrollable_Policy;

Set_Hscroll_Policy

procedure Set_Hscroll_Policy 
(Self: Gtk_Scrollable;
Policy: Gtk.Enums.Gtk_Scrollable_Policy);

Get_Vadjustment

function Get_Vadjustment 
(Self: Gtk_Scrollable) return Gtk.Adjustment.Gtk_Adjustment;
Retrieves the Gtk.Adjustment.Gtk_Adjustment used for vertical scrolling. Since: gtk+ 3.0

Set_Vadjustment

procedure Set_Vadjustment 
(Self: Gtk_Scrollable;
Vadjustment: access Gtk.Adjustment.Gtk_Adjustment_Record'Class);
Sets the vertical adjustment of the Gtk.Scrollable.Gtk_Scrollable. Since: gtk+ 3.0 "vadjustment": a Gtk.Adjustment.Gtk_Adjustment

Get_Vscroll_Policy

function Get_Vscroll_Policy 
(Self: Gtk_Scrollable) return Gtk.Enums.Gtk_Scrollable_Policy;

Set_Vscroll_Policy

procedure Set_Vscroll_Policy 
(Self: Gtk_Scrollable;
Policy: Gtk.Enums.Gtk_Scrollable_Policy);

+

function "+" 
(W: Gtk_Scrollable) return Gtk_Scrollable;