1 #ifndef __NR_FILTER_FLOOD_H__
2 #define __NR_FILTER_FLOOD_H__
4 /*
5 * feFlood filter primitive renderer
6 *
7 * Authors:
8 * Felipe CorrĂȘa da Silva Sanches <juca@members.fsf.org>
9 *
10 * Copyright (C) 2007 authors
11 *
12 * Released under GNU GPL, read the file 'COPYING' for more information
13 */
15 #include "display/nr-filter-primitive.h"
16 #include "display/nr-filter-slot.h"
17 #include "display/nr-filter-units.h"
18 #include "svg/svg-color.h"
20 namespace Inkscape {
21 namespace Filters {
23 class FilterFlood : public FilterPrimitive {
24 public:
25 FilterFlood();
26 static FilterPrimitive *create();
27 virtual ~FilterFlood();
29 virtual void set_opacity(double o);
30 virtual void set_color(guint32 c);
31 virtual void set_icc(SVGICCColor *icc_color);
32 virtual int render(FilterSlot &slot, FilterUnits const &units);
33 virtual void area_enlarge(NRRectL &area, Geom::Matrix const &trans);
34 private:
35 double opacity;
36 guint32 color;
37 SVGICCColor *icc;
38 };
40 } /* namespace Filters */
41 } /* namespace Inkscape */
43 #endif /* __NR_FILTER_FLOOD_H__ */
44 /*
45 Local Variables:
46 mode:c++
47 c-file-style:"stroustrup"
48 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
49 indent-tabs-mode:nil
50 fill-column:99
51 End:
52 */
53 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :