mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
add Canvas::Ruler::set_metric() to allow ruler metrics to be changed dynamically
This commit is contained in:
parent
1a6136e1e3
commit
94adde7ebb
2 changed files with 9 additions and 0 deletions
|
|
@ -180,3 +180,11 @@ Ruler::render (Rect const & area, Cairo::RefPtr<Cairo::Context> cr) const
|
|||
|
||||
/* done! */
|
||||
}
|
||||
|
||||
void
|
||||
Ruler::set_metric (const Metric& m)
|
||||
{
|
||||
_metric = &m;
|
||||
_need_marks = true;
|
||||
redraw ();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue