projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
probe buffersize if jackd is already running.
[ardour.git]
/
libs
/
canvas
/
canvas
/
ruler.h
diff --git
a/libs/canvas/canvas/ruler.h
b/libs/canvas/canvas/ruler.h
index 25040247c91e924923491b05d97082077f8b350c..0a6a13e078bedd5a9c51e28d6c511a97b44d223c 100644
(file)
--- a/
libs/canvas/canvas/ruler.h
+++ b/
libs/canvas/canvas/ruler.h
@@
-62,17
+62,23
@@
public:
void set_range (double lower, double upper);
void set_font_description (Pango::FontDescription);
void set_range (double lower, double upper);
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;
-
+
+ void set_divide_colors (Color top, Color bottom);
+ void set_divide_height (double);
private:
private:
- const Metric
&
_metric;
+ const Metric
*
_metric;
/* lower and upper and sample positions, which are also canvas coordinates
*/
Coord _lower;
Coord _upper;
/* lower and upper and sample positions, which are also canvas coordinates
*/
Coord _lower;
Coord _upper;
+ double _divide_height;
+ Color _divider_color_top;
+ Color _divider_color_bottom;
Pango::FontDescription* _font_description;
mutable std::vector<Mark> marks;
Pango::FontDescription* _font_description;
mutable std::vector<Mark> marks;