initial redesign of canvas scrolling to facilitate independent x- and y-axis scrolling of specific groups within the canvas.

This commit should cause no change in behaviour, but contains all the code and changes necessary
for the next step
This commit is contained in:
Paul Davis 2014-05-18 12:22:23 -04:00
parent ee6c483d18
commit 97109672c7
11 changed files with 144 additions and 38 deletions

View file

@ -108,6 +108,8 @@ public:
}
void scroll_to (Coord x, Coord y);
void set_global_scroll (bool);
virtual Rect visible_area () const = 0;
void zoomed();
@ -122,8 +124,8 @@ protected:
/** our root group */
RootGroup _root;
Coord _scroll_offset_x;
Coord _scroll_offset_y;
Duple _scroll_offset;
bool _global_scroll;
virtual void pick_current_item (int state) = 0;
virtual void pick_current_item (Duple const &, int state) = 0;