#ifndef __CANVAS_FILL_H__
#define __CANVAS_FILL_H__
+#include <vector>
#include <stdint.h>
#include "canvas/item.h"
bool fill () const {
return _fill;
}
+
+ typedef std::vector<std::pair<double,Color> > StopList;
+ void set_gradient (StopList const & stops, bool is_vertical);
+
protected:
void setup_fill_context (Cairo::RefPtr<Cairo::Context>) const;
-
+ void setup_gradient_context (Cairo::RefPtr<Cairo::Context>, Rect const &, Duple const &) const;
+
Color _fill_color;
bool _fill;
+ StopList _stops;
+ bool _vertical_gradient;
};
}