summaryrefslogtreecommitdiff
path: root/dw/layout.cc
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2009-07-05 22:17:41 +0000
committercorvid <corvid@lavabit.com>2009-07-05 22:17:41 +0000
commit76c4bf8a1cc85d9cd15c0bb6817a7fe92c5e6eaa (patch)
tree7ba32724cbcb56f03ea82a904c9578f29f3774c7 /dw/layout.cc
parent1cefd820489a50fd10220e05c05a7b102c6940b2 (diff)
keybindings for scrolling
Diffstat (limited to 'dw/layout.cc')
-rw-r--r--dw/layout.cc10
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.