blob: 4ec350362a7e7db7c73a2f18de62358cfbe61674 (
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
37
38
39
40
41
42
43
44
|
#include "ardour/utils.h"
#include "pbd/compose.h"
#include "pbd/convert.h"
#include "canvas/fill.h"
#include "canvas/utils.h"
using namespace std;
using namespace ArdourCanvas;
Fill::Fill (Group* parent)
: Item (parent)
, _fill_color (0x000000ff)
, _fill (true)
{
}
void
Fill::set_fill_color (Color color)
{
begin_change ();
_fill_color = color;
end_change ();
}
void
Fill::set_fill (bool fill)
{
begin_change ();
_fill = fill;
end_change ();
}
void
Fill::setup_fill_context (Cairo::RefPtr<Cairo::Context> context) const
{
set_source_rgba (context, _fill_color);
}
|