Code

fix by kur9kin for endless loop from bug 212332
[inkscape.git] / src / display / nr-filter-offset.h
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-matrix.h"
19 #include "libnr/nr-rect-l.h"
21 namespace NR {
23 class FilterOffset : public FilterPrimitive {
24 public:
25     FilterOffset();
26     static FilterPrimitive *create();
27     virtual ~FilterOffset();
29     virtual int render(FilterSlot &slot, FilterUnits const &units);
30     virtual void area_enlarge(NRRectL &area, Matrix const &trans);
32     void set_dx(double amount);
33     void set_dy(double amount);
35 private:
36     double dx, dy;
37 };
39 } /* namespace NR */
41 #endif /* __NR_FILTER_OFFSET_H__ */
42 /*
43   Local Variables:
44   mode:c++
45   c-file-style:"stroustrup"
46   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
47   indent-tabs-mode:nil
48   fill-column:99
49   End:
50 */
51 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :