diff options
author | David Robillard <d@drobilla.net> | 2007-08-04 05:34:51 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-08-04 05:34:51 +0000 |
commit | a5abcd306ba589411aa8b4e5b2729621bdc77d3a (patch) | |
tree | 924691956684b530cf55d66569f376c07e2e3377 /gtk2_ardour/public_editor.h | |
parent | 604a0079ce5882cd6afd619b79020d9c694d7165 (diff) |
Obey snap setting for MIDI stuff.
git-svn-id: svn://localhost/ardour2/trunk@2238 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/public_editor.h')
-rw-r--r-- | gtk2_ardour/public_editor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/public_editor.h b/gtk2_ardour/public_editor.h index 0730d371b9..ffd34469c8 100644 --- a/gtk2_ardour/public_editor.h +++ b/gtk2_ardour/public_editor.h @@ -112,6 +112,9 @@ class PublicEditor : public Gtk::Window, public PBD::StatefulThingWithGoingAway * @param t Snap threshold in `units'. */ virtual void set_snap_threshold (double t) = 0; + + /** Snap a value according to the current snap setting. */ + virtual void snap_to (nframes_t& first, int32_t direction = 0, bool for_mark = false) = 0; /** Undo some transactions. * @param n Number of transactions to undo. |