1 #ifndef __NR_FILTER_OFFSET_H__
2 #define __NR_FILTER_OFFSET_H__
4 /*
5 * feOffset filter primitive renderer
6 *
7 * Authors:
8 * Niko Kiirala <niko@kiirala.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"
18 #include "libnr/nr-rect-l.h"
20 namespace NR {
22 class FilterOffset : public FilterPrimitive {
23 public:
24 FilterOffset();
25 static FilterPrimitive *create();
26 virtual ~FilterOffset();
28 virtual int render(FilterSlot &slot, FilterUnits const &units);
29 virtual void area_enlarge(NRRectL &area, Geom::Matrix const &trans);
31 void set_dx(double amount);
32 void set_dy(double amount);
34 private:
35 double dx, dy;
36 };
38 } /* namespace NR */
40 #endif /* __NR_FILTER_OFFSET_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 :