1 #ifndef SP_FILTER_H_SEEN
2 #define SP_FILTER_H_SEEN
4 /** \file
5 * SVG <filter> implementation, see sp-filter.cpp.
6 */
7 /*
8 * Authors:
9 * Hugo Rodrigues <haa.rodrigues@gmail.com>
10 *
11 * Copyright (C) 2006 Hugo Rodrigues
12 *
13 * Released under GNU GPL, read the file 'COPYING' for more information
14 */
16 #include "number-opt-number.h"
17 #include "sp-object.h"
18 #include "sp-filter-units.h"
19 #include "sp-filter-fns.h"
20 #include "svg/svg-length.h"
22 /* Filter base class */
24 /* MACROS DEFINED IN FILE sp-filter-fns.h */
26 struct SPFilterReference;
28 class SPFilter;
29 class SPFilterClass;
31 struct SPFilter : public SPObject {
33 /** filterUnits attribute */
34 SPFilterUnits filterUnits;
35 guint filterUnits_set : 1;
36 /** primitiveUnits attribute */
37 SPFilterUnits primitiveUnits;
38 guint primitiveUnits_set : 1;
39 /** X attribute */
40 SVGLength x;
41 /** Y attribute */
42 SVGLength y;
43 /** WIDTH attribute */
44 SVGLength width;
45 /** HEIGHT attribute */
46 SVGLength height;
47 /** FILTERRES attribute */
48 NumberOptNumber filterRes;
49 /** HREF attribute */
50 SPFilterReference *href;
52 int _primitive_count;
53 int _primitive_table_size;
54 SPFilterPrimitive ** _primitives;
55 };
57 struct SPFilterClass {
58 SPObjectClass parent_class;
59 };
63 #endif /* !SP_FILTER_H_SEEN */
65 /*
66 Local Variables:
67 mode:c++
68 c-file-style:"stroustrup"
69 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
70 indent-tabs-mode:nil
71 fill-column:99
72 End:
73 */
74 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :