diff options
author | Nick Mainsbridge <beatroute@iprimus.com.au> | 2008-10-04 10:38:20 +0000 |
---|---|---|
committer | Nick Mainsbridge <beatroute@iprimus.com.au> | 2008-10-04 10:38:20 +0000 |
commit | 12cbe6d5023c0a994998feb0177be8b699356848 (patch) | |
tree | d5355ac295afe7c4bdbafa9f0fb0aa9d22243a96 /gtk2_ardour/time_axis_view.h | |
parent | ad4919ce920a1a588c9ecd3d822dacfb93d74bb7 (diff) |
Improve scrolling performance for sessions containing hundreds of regions over many tracks by hiding offscreen tracks (scroll faster by making tracks larger, exposing fewer of them). Use distance from screen edges to drive autoscrolling distance. Avoid using canvas coordinates for displacement calculations where possible. Don't redisplay tempo in the colour handler.
git-svn-id: svn://localhost/ardour2/branches/3.0@3854 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/time_axis_view.h')
-rw-r--r-- | gtk2_ardour/time_axis_view.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/time_axis_view.h b/gtk2_ardour/time_axis_view.h index 9d0c536a8f..277e4dba44 100644 --- a/gtk2_ardour/time_axis_view.h +++ b/gtk2_ardour/time_axis_view.h @@ -143,6 +143,8 @@ class TimeAxisView : public virtual AxisView, public PBD::Stateful */ virtual guint32 show_at (double y, int& nth, Gtk::VBox *parent); + void clip_to_viewport (); + bool touched (double top, double bot); /** Hides this TrackView */ |