Back to Seed Clases

Gtk


Classes

Interfaces

Structs

Unions

Enums

Interface Gtk.Scrollable

Import line: Gtk = imports.gi.Gtk;
GIR File: Gtk-3.0.gir
C documentation: GtkScrollable
Interface : Scrollable
Implementations: EvinceView.View, Gtk.IconView, Gtk.Layout, Gtk.TextView, Gtk.ToolPalette, Gtk.TreeView, Gtk.Viewport
GtkScrollable is an interface that is implemented by widgets with native
scrolling ability.
To implement this interface you should override the
GtkScrollable:hadjustment and GtkScrollable: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'
GtkAdjustment:lower, GtkAdjustment:upper,
GtkAdjustment:step-increment, GtkAdjustment:page-increment and
GtkAdjustment:page-size properties and connect to the
GtkAdjustment::value-changed signal.




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 GtkAdjustment::value-changed signal,
the scrollable widget should scroll its contents.




Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
Events
None
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:14:43 GMT+0800 (HKT)