diff options
author | Carl Hetherington <carl@carlh.net> | 2010-01-06 01:14:56 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-01-06 01:14:56 +0000 |
commit | e2981526ea4636411fb11c146900d6f6e0b9ba79 (patch) | |
tree | 01d1342a6d850e12ced266d65d674fb03f4c7907 /gtk2_ardour/editor_drag.h | |
parent | b66dfe0eea1cbb6b6f988fde8d51df8a329c3380 (diff) |
Fix some bugs in autoscroll when dragging regions.
git-svn-id: svn://localhost/ardour2/branches/3.0@6460 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_drag.h')
-rw-r--r-- | gtk2_ardour/editor_drag.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_drag.h b/gtk2_ardour/editor_drag.h index bfca141c67..941833d0c0 100644 --- a/gtk2_ardour/editor_drag.h +++ b/gtk2_ardour/editor_drag.h @@ -120,6 +120,11 @@ public: return true; } + /** @return current x extent of the thing being dragged; ie + * a pair of (leftmost_position, rightmost_position) + */ + virtual std::pair<nframes64_t, nframes64_t> extent () const; + protected: double grab_x () const { @@ -180,6 +185,8 @@ public: RegionDrag (Editor *, ArdourCanvas::Item *, RegionView *, std::list<RegionView*> const &); virtual ~RegionDrag () {} + std::pair<nframes64_t, nframes64_t> extent () const; + protected: RegionView* _primary; ///< the view that was clicked on (or whatever) to start the drag |