Appendix B. Implementing Scrolling in a Window-like Actor

Table of Contents

The Technique

There is not yet a standard container in Clutter to show and scroll through a small part of a set of widgets, like the Gtk::ScrolledWindow widget in the GTK+ toolkit, so you may need to implement this functionality in your application.

The Tidy project contains some suggested implementations for such actors, but here is a simpler example of the general technique. It creates the impression of scrolling by clipping a container so that it only shows a small area of the screen, while moving the child widgets in that container.