Ruler (Canvas*, const Metric& m);
Ruler (Canvas*, const Metric& m, Rect const&);
- Ruler (Group*, const Metric& m);
- Ruler (Group*, const Metric& m, Rect const&);
+ Ruler (Item*, const Metric& m);
+ Ruler (Item*, const Metric& m, Rect const&);
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 set_divide_colors (Color top, Color bottom);
+ void set_divide_height (double);
private:
- const Metric& _metric;
+ const Metric* _metric;
/* 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;