mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
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:
parent
56910429f7
commit
f83b9d678a
2 changed files with 49 additions and 22 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue