GtkLayout
Scrollable widget allowing multiple children in fixed positions.
Object Hierarchy
Direct subclasses
None.
Description
A GtkLayout is a scrollable widget that provides
a scrolling-aware backdrop for a child or children having fixed
positions. It should be added directly to a
GtkScrolledWindow.
Note that the scrolling does not work on win32 unless you program it
to do so. There have been no such problems reported on other systems.
The workaround under win32 is to connect the
GtkScrolledWindow scrollbar adjustments'
"value-changed" signals
to a function that will force the GtkLayout to
be redrawn. This can be
queue_draw() in most situations,
but the more complex child widgets will not respond to this alone and
will need to have hide() and
then show() called on the
GtkLayout during the callback.
Note that GtkHtml is based on the GtkLayout
class, and that similar redraw issues are seen with that widget.
Constructor
--
Creates a scrollable backdrop whose children retain their positions.
Methods
put()
Fixes a child widget at the given position.
move()
Moves a child widget to a new position.
set_size()
Sets the size of the layout.
get_hadjustment()
Returns the horizontal adjustment object.
get_vadjustment()
Returns the vertical adjustment object.
freeze()
Freezes the display during an update.
thaw()
Allows the display to be updated.