blob: 3c0cdec0c903a2ac42c78bcd31326f2eea1cb194 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#include "canvas/item.h"
namespace ArdourCanvas {
class LineSet : public Item
{
public:
enum Orientation {
Vertical,
Horizontal
};
LineSet (Group *);
void compute_bounding_box () const;
void render (Rect const & area, Cairo::RefPtr<Cairo::Context>) const;
void set_height (Distance);
void add (Coord, Distance, Color);
void clear ();
struct Line {
Line (Coord y_, Distance width_, Color color_) : y (y_), width (width_), color (color_) {}
Coord y;
Distance width;
Color color;
};
private:
std::list<Line> _lines;
Distance _height;
};
}
|