Learn R Programming

RGtk2 (version 2.20.1)

GtkViewport: GtkViewport

Description

An adapter which makes widgets scrollable

Arguments

Methods and Functions

gtkViewportNew(hadjustment = NULL, vadjustment = NULL, show = TRUE) gtkViewportGetHadjustment(object) gtkViewportGetVadjustment(object) gtkViewportSetHadjustment(object, adjustment = NULL) gtkViewportSetVadjustment(object, adjustment = NULL) gtkViewportSetShadowType(object, type) gtkViewportGetShadowType(object) gtkViewportGetBinWindow(object) gtkViewport(hadjustment = NULL, vadjustment = NULL, show = TRUE)

Hierarchy

GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkViewport

Interfaces

GtkViewport implements AtkImplementorIface and GtkBuildable.

Detailed Description

The GtkViewport widget acts as an adaptor class, implementing scrollability for child widgets that lack their own scrolling capabilities. Use GtkViewport to scroll child widgets such as GtkTable, GtkBox, and so on. If a widget has native scrolling abilities, such as GtkTextView, GtkTreeView or GtkIconview, it can be added to a GtkScrolledWindow with gtkContainerAdd. If a widget does not, you must first add the widget to a GtkViewport, then add the viewport to the scrolled window. The convenience function gtkScrolledWindowAddWithViewport does exactly this, so you can ignore the presence of the viewport.

Convenient Construction

gtkViewport is the equivalent of gtkViewportNew.

References

http://library.gnome.org/devel//gtk/GtkViewport.html

See Also

GtkScrolledWindow GtkAdjustment