Xfce
Foundation Classes |
|||
« Main Page | Index | |||
ViewportsIt
is unlikely that you will ever need to
use the
Viewport widget directly. You are much more likely to use the
ScrolledWindow widget which itself uses the Viewport. A viewport widget
allows
you to place a larger widget within it such that you can view a part of
it at a time. It uses Adjustment widgets to define the area that is
currently
in view.
A Viewport can be created with one of the following constructors: Viewport();
Viewport(Gtk::Adjustment *hadjustment, Gtk::Adjustment *vadjustment); You can set and get the adjustments after the viewport has been created using the following four methods: void
set_hadjustment(Gtk::Adjustment *adjustment); void
set_shadow_type(Gtk::ShadowType type); The 'type' parameter can be one of the values from the Gtk::ShadowType enum:
|