Main Page
Widgets
Namespaces
Book
Adds scrollbars to its child widget.
More...
Inheritance diagram for Gtk::ScrolledWindow:
[legend]List of all members.
Detailed Description
Adds scrollbars to its child widget.
This container accepts a single child widget. It adds scrollbars to the child widget and optionally draws a beveled frame around the child widget. The scrolled window can work in two ways: 1) Some widgets have native scrolling support; these widgets handle certain Gtk::Adjustment signals. Widgets with native scroll support include Gtk::TreeView, Gtk::TextView, and Gtk::Layout. 2) For widgets that lack native scrolling support, such as Gtk::Table, Gtk::Box, and so on, the widget will be placed inside a Gtk::Viewport.
The position of the scrollbars is controlled by the scroll adjustments. See Gtk::Adjustment for the fields in an adjustment - for Gtk::Scrollbar, used by Gtk::ScrolledWindow, the "value" field represents the position of the scrollbar, which must be between the "lower" field and "upper - page_size." The "page_size" field represents the size of the visible scrollable area. The "step_increment" and "page_increment" fields are used when the user asks to step down (using the small stepper arrows) or page down (using for example the PageDown key).
If a Gtk::ScrolledWindow doesn't behave quite as you would like, or doesn't have exactly the right layout, it's very possible to set up your own scrolling with Gtk::Scrollbar and, for example, a Gtk::Table.
Constructor & Destructor Documentation
Gtk::ScrolledWindow::ScrolledWindow |
( |
|
) |
|
|
Member Function Documentation
virtual void Gtk::ScrolledWindow::add |
( |
Gtk::Widget& |
widget |
) |
[virtual] |
|
bool Gtk::ScrolledWindow::get_hscrollbar_visible |
( |
|
) |
const |
|
CornerType Gtk::ScrolledWindow::get_placement |
( |
|
) |
const |
|
void Gtk::ScrolledWindow::get_policy |
( |
PolicyType& |
hscrollbar_policy, |
|
|
PolicyType& |
vscrollbar_policy |
|
) |
const |
|
ShadowType Gtk::ScrolledWindow::get_shadow_type |
( |
|
) |
const |
|
bool Gtk::ScrolledWindow::get_vscrollbar_visible |
( |
|
) |
const |
|
const GtkScrolledWindow* Gtk::ScrolledWindow::gobj |
( |
|
) |
const [inline] |
|
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Bin. |
GtkScrolledWindow* Gtk::ScrolledWindow::gobj |
( |
|
) |
[inline] |
|
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Bin. |
Glib::PropertyProxy<Gtk::Adjustment*> Gtk::ScrolledWindow::property_hadjustment |
( |
|
) |
|
|
Glib::PropertyProxy<PolicyType> Gtk::ScrolledWindow::property_hscrollbar_policy |
( |
|
) |
|
|
Glib::PropertyProxy<ShadowType> Gtk::ScrolledWindow::property_shadow_type |
( |
|
) |
|
|
Glib::PropertyProxy<Gtk::Adjustment*> Gtk::ScrolledWindow::property_vadjustment |
( |
|
) |
|
|
Glib::PropertyProxy<PolicyType> Gtk::ScrolledWindow::property_vscrollbar_policy |
( |
|
) |
|
|
Glib::PropertyProxy<CornerType> Gtk::ScrolledWindow::property_window_placement |
( |
|
) |
|
|
void Gtk::ScrolledWindow::set_hadjustment |
( |
Gtk::Adjustment* |
hadjustment = 0 |
) |
|
|
void Gtk::ScrolledWindow::set_placement |
( |
CornerType |
window_placement |
) |
|
|
void Gtk::ScrolledWindow::set_shadow_type |
( |
ShadowType |
type |
) |
|
|
void Gtk::ScrolledWindow::set_vadjustment |
( |
Gtk::Adjustment* |
vadjustment = 0 |
) |
|
|
Friends And Related Function Documentation
The documentation for this class was generated from the following file:
Generated for gtkmm2.2 by
Doxygen 1.3.3 © 1997-2001