13
0

make Editor::snap_to_bbt() public

This commit is contained in:
Paul Davis 2021-03-15 19:49:18 -06:00
parent 0b1d44f422
commit b2655d13f1
2 changed files with 4 additions and 4 deletions

View File

@ -491,6 +491,9 @@ public:
GdkEvent const* ev,
Temporal::RoundMode direction = Temporal::RoundNearest,
ARDOUR::SnapPref gpref = ARDOUR::SnapToAny_Visual);
Temporal::timepos_t snap_to_bbt (Temporal::timepos_t const & start,
Temporal::RoundMode direction,
ARDOUR::SnapPref gpref);
void set_snapped_cursor_position (Temporal::timepos_t const & pos);
@ -2269,10 +2272,6 @@ private:
Temporal::RoundMode direction,
ARDOUR::SnapPref gpref);
Temporal::timepos_t snap_to_bbt (Temporal::timepos_t const & start,
Temporal::RoundMode direction,
ARDOUR::SnapPref gpref);
Temporal::timepos_t snap_to_timecode (Temporal::timepos_t const & start,
Temporal::RoundMode direction,
ARDOUR::SnapPref gpref);

View File

@ -510,6 +510,7 @@ public:
GdkEvent const* ev,
Temporal::RoundMode direction = Temporal::RoundNearest,
ARDOUR::SnapPref gpref = ARDOUR::SnapToAny_Visual) = 0;
virtual Temporal::timepos_t snap_to_bbt (Temporal::timepos_t const & pos, Temporal::RoundMode, ARDOUR::SnapPref) = 0;
virtual void set_snapped_cursor_position (Temporal::timepos_t const & pos) = 0;