46 lines
613 B
C++
46 lines
613 B
C++
#include "ardour/utils.h"
|
|
|
|
#include "pbd/xml++.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);
|
|
}
|