diff options
Diffstat (limited to 'dw/layout.cc')
-rw-r--r-- | dw/layout.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dw/layout.cc b/dw/layout.cc index 27b155e3..2d350a05 100644 --- a/dw/layout.cc +++ b/dw/layout.cc @@ -248,6 +248,16 @@ void Layout::detachView (View *view) */ } +void Layout::scroll(ScrollCommand cmd) +{ + for (typed::Iterator <View> it = views->iterator (); it.hasNext (); ) { + View *view = it.getNext (); + + if (view->usesViewport ()) + view->scroll(cmd); + } +} + /** * \brief Scrolls all viewports, so that the region [x, y, width, height] * is seen, according to hpos and vpos. |