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 <felipe.sanches@gmail.com>
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"
19 namespace Inkscape {
20 namespace Filters {
22 class FilterFlood : public FilterPrimitive {
23 public:
24 FilterFlood();
25 static FilterPrimitive *create();
26 virtual ~FilterFlood();
28 virtual void set_opacity(double o);
29 virtual void set_color(guint32 c);
30 virtual int render(FilterSlot &slot, FilterUnits const &units);
31 virtual void area_enlarge(NRRectL &area, Geom::Matrix const &trans);
32 private:
33 double opacity;
34 guint32 color;
35 };
37 } /* namespace Filters */
38 } /* namespace Inkscape */
40 #endif /* __NR_FILTER_FLOOD_H__ */
41 /*
42 Local Variables:
43 mode:c++
44 c-file-style:"stroustrup"
45 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
46 indent-tabs-mode:nil
47 fill-column:99
48 End:
49 */
50 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :