Code

Store cached icons to disk between runs, and invalidate/purge as needed.
[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-rect-l.h"
20 namespace Inkscape {
21 namespace Filters {
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, Geom::Matrix const &trans);
32     void set_dx(double amount);
33     void set_dy(double amount);
35 private:
36     double dx, dy;
37 };
39 } /* namespace Filters */
40 } /* namespace Inkscape */
42 #endif /* __NR_FILTER_OFFSET_H__ */
43 /*
44   Local Variables:
45   mode:c++
46   c-file-style:"stroustrup"
47   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
48   indent-tabs-mode:nil
49   fill-column:99
50   End:
51 */
52 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :