20 #ifndef __CANVAS_RULER_H__
21 #define __CANVAS_RULER_H__
26 #include <pangomm/fontdescription.h>
56 virtual void get_marks (std::vector<Mark>&, int64_t lower, int64_t upper,
int maxchars)
const = 0;
65 delete _font_description;
73 void render (
Rect const & area, Cairo::RefPtr<Cairo::Context>)
const;
90 mutable std::vector<Mark>
marks;
void set_divide_height(double)
Ruler(Item *, const Metric *m, Rect const &)
Ruler(Item *, const Metric *m)
Pango::FontDescription * _second_font_description
void set_range(int64_t lower, int64_t upper)
void set_metric(const Metric *)
void render(Rect const &area, Cairo::RefPtr< Cairo::Context >) const
Ruler(Canvas *, const Metric *m, Rect const &)
void set_second_font_description(Pango::FontDescription)
std::vector< Mark > marks
Gtkmm2ext::Color _divider_color_top
void set_font_description(Pango::FontDescription)
Pango::FontDescription * _font_description
void set_divide_colors(Gtkmm2ext::Color top, Gtkmm2ext::Color bottom)
Gtkmm2ext::Color _divider_color_bottom
Ruler(Canvas *, const Metric *m)
virtual void get_marks(std::vector< Mark > &, int64_t lower, int64_t upper, int maxchars) const =0