Add backgrounds to marker labels.

git-svn-id: svn://localhost/ardour2/branches/3.0@8021 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-11-13 22:39:42 +00:00
parent 56910429f7
commit f83b9d678a
2 changed files with 49 additions and 22 deletions

View file

@ -106,6 +106,7 @@ class Marker : public sigc::trackable
ArdourCanvas::Points *points;
ArdourCanvas::SimpleLine* _line;
ArdourCanvas::Points *line_points;
ArdourCanvas::SimpleRect* _name_background;
std::string _name;
double unit_position;
@ -120,10 +121,11 @@ class Marker : public sigc::trackable
uint32_t _color;
double _left_label_limit; ///< the number of pixels available to the left of this marker for a label
double _right_label_limit; ///< the number of pixels available to the right of this marker for a label
double _label_offset;
void reposition ();
void setup_line_x ();
void setup_name_pixbuf ();
void setup_name_display ();
};
class TempoMarker : public Marker