remove all xml++.h inclusion by canvas implementations
[ardour.git] / libs / canvas / fill.cc
1 #include "ardour/utils.h"
2
3 #include "pbd/compose.h"
4 #include "pbd/convert.h"
5
6 #include "canvas/fill.h"
7 #include "canvas/utils.h"
8
9 using namespace std;
10 using namespace ArdourCanvas;
11
12 Fill::Fill (Group* parent)
13         : Item (parent)
14         , _fill_color (0x000000ff)
15         , _fill (true)
16 {
17
18 }
19
20 void
21 Fill::set_fill_color (Color color)
22 {
23         begin_change ();
24         
25         _fill_color = color;
26
27         end_change ();
28 }
29
30 void
31 Fill::set_fill (bool fill)
32 {
33         begin_change ();
34         
35         _fill = fill;
36
37         end_change ();
38 }
39
40 void
41 Fill::setup_fill_context (Cairo::RefPtr<Cairo::Context> context) const
42 {
43         set_source_rgba (context, _fill_color);
44 }