mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +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
|
|
@ -62,6 +62,7 @@ public:
|
||||||
|
|
||||||
void set_range (double lower, double upper);
|
void set_range (double lower, double upper);
|
||||||
void set_font_description (Pango::FontDescription);
|
void set_font_description (Pango::FontDescription);
|
||||||
|
void set_metric (const Metric&);
|
||||||
|
|
||||||
void render (Rect const & area, Cairo::RefPtr<Cairo::Context>) const;
|
void render (Rect const & area, Cairo::RefPtr<Cairo::Context>) const;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -180,3 +180,11 @@ Ruler::render (Rect const & area, Cairo::RefPtr<Cairo::Context> cr) const
|
||||||
|
|
||||||
/* done! */
|
/* 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