summaryrefslogtreecommitdiff
path: root/gtk2_ardour/time_axis_view.h
diff options
context:
space:
mode:
authorNick Mainsbridge <beatroute@iprimus.com.au>2008-10-04 08:23:29 +0000
committerNick Mainsbridge <beatroute@iprimus.com.au>2008-10-04 08:23:29 +0000
commitf138091f7e6413623390cd2168aaac7d0a7d71c2 (patch)
tree2ac78d0cba4edaab208bb2724ddc13d28c819093 /gtk2_ardour/time_axis_view.h
parent51f2a5fc4ee73752cb635db913769f9d47941933 (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/2.0-ongoing@3853 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/time_axis_view.h')
-rw-r--r--gtk2_ardour/time_axis_view.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/time_axis_view.h b/gtk2_ardour/time_axis_view.h
index 2f014c7a16..059312c16b 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 Stateful
*/
virtual guint32 show_at (double y, int& nth, Gtk::VBox *parent);
+ void clip_to_viewport ();
+
bool touched (double top, double bot);
/**