diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-11-24 14:29:37 +0200 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-04-29 07:22:36 -0400 |
commit | 4cf402bdcf12f9072e63958356fb8d30ec59d75d (patch) | |
tree | 724a683f1c62f709897b1dee6b9b9dea0490ee08 /libs/canvas/canvas | |
parent | 38728f0835ddef45bc321ccdb98d2e57d4781725 (diff) |
add API to Ruler to optionally draw a divider (2 single pixel horizontal lines) at some position within the vertical extent of the ruler
Diffstat (limited to 'libs/canvas/canvas')
-rw-r--r-- | libs/canvas/canvas/ruler.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/canvas/canvas/ruler.h b/libs/canvas/canvas/ruler.h index 56876e761b..0a6a13e078 100644 --- a/libs/canvas/canvas/ruler.h +++ b/libs/canvas/canvas/ruler.h @@ -65,7 +65,9 @@ public: 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; @@ -74,6 +76,9 @@ private: Coord _lower; Coord _upper; + double _divide_height; + Color _divider_color_top; + Color _divider_color_bottom; Pango::FontDescription* _font_description; mutable std::vector<Mark> marks; |