#include <uviewport.hpp>
Inheritance diagram for ufo::UViewport:
Public Member Functions | |
void | setView (UWidget *w) |
UWidget * | getView () const |
UPoint | getViewLocation () const |
void | setViewLocation (const UPoint &pos) |
void | setViewBounds (int x, int y, int w, int h) |
void | scrollRectToVisible (const URectangle &rect) |
Protected Member Functions | |
virtual ULayoutManager * | createLayoutManager () |
virtual void | addImpl (UWidget *w, UObject *constraints, int index) |
virtual void | paintChildren (UGraphics *g) |
Only the given visible rect is shown by child widgets of viewports.
|
Adds child widgets to this widget. This function should be overridden instead of other add functions
Reimplemented from ufo::UWidget.
|
|
Paints recursively the child widgets. Reimplemented from ufo::UWidget.
|
|
Scrolls the viewport so that the given rectangle becomes visible. The coordinates are in the coordinate space of the view widget. |
|
Sets the widget this viewport creates an view on. |