GtkViewport
A container for adding scrolling capabilities to widgets without native scrolling support.
Object Hierarchy
GObject
`-- GtkObject
      `-- GtkWidget
            `-- GtkContainer
                  `-- GtkBin
                        `-- GtkViewport
Description
A GtkViewport provides scrolling capabilities to widgets that don't support native scrolling. E.g., a GtkLabel or a GtkVBox could be packed into a GtkScrolledWindow, but since the classes don't support the "set-scroll-adjustments" signal, using the scrollbars wouldn't work.
A viewport also takes care to show only a certain part of the widget, hiding the rest of it that is not in the visible area.
Constructors
-- Creates a new viewport.
Methods
get_hadjustment() Â Returns the horizontal adjustment. get_shadow_type() Â Returns the shadow type. get_vadjustment() Â Returns the vertical adjustment. set_hadjustment() Â Sets the horizontal adjustment. set_shadow_type() Â Sets the shadow type. set_vadjustment() Â Sets the vertical adjustment.
Properties
Use get_property and set_property methods to access these.
hadjustment: Â Horizontal adjustment. shadow-type: Â Shadow type. vadjustment: Â Vertical adjustment
Signals
"set-scroll-adjustments" Â One or both adjustments are changed.