diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-10-31 03:10:18 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-10-31 03:10:18 -0400 |
commit | 7ce86cec7d70cbec1412e168f71b1f4e8718fabc (patch) | |
tree | f7df8cb0ee052aef1292f31fb7f97017b4987c0b /libs | |
parent | 7bbd28aa08593f2c5e72b86090128d584edf184b (diff) |
handle enter/leave items when zooming and scrolling occur
Diffstat (limited to 'libs')
-rw-r--r-- | libs/canvas/canvas.cc | 8 | ||||
-rw-r--r-- | libs/canvas/canvas/canvas.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/libs/canvas/canvas.cc b/libs/canvas/canvas.cc index b616e6cf59..77a9cddd62 100644 --- a/libs/canvas/canvas.cc +++ b/libs/canvas/canvas.cc @@ -49,6 +49,14 @@ Canvas::scroll_to (Coord x, Coord y) { _scroll_offset_x = x; _scroll_offset_y = y; + + enter_leave_items (0); // no current mouse position +} + +void +Canvas::zoomed () +{ + enter_leave_items (0); // no current mouse position } /** Render an area of the canvas. diff --git a/libs/canvas/canvas/canvas.h b/libs/canvas/canvas/canvas.h index 0575685832..981ea05346 100644 --- a/libs/canvas/canvas/canvas.h +++ b/libs/canvas/canvas/canvas.h @@ -107,6 +107,8 @@ public: void scroll_to (Coord x, Coord y); virtual Rect visible_area () const = 0; + void zoomed(); + std::string indent() const; std::string render_indent() const; void dump (std::ostream&) const; |