Code

Super duper mega (fun!) commit: replaced encoding=utf-8 with fileencoding=utf-8 in...
[inkscape.git] / src / sp-filter-fns.h
1 #ifndef SEEN_SP_FILTER_FNS_H
2 #define SEEN_SP_FILTER_FNS_H
4 /** \file
5  * Macros and fn declarations related to filters.
6  */
8 #include <glib/gtypes.h>
9 #include <glib-object.h>
10 #include "libnr/nr-forward.h"
11 #include "sp-filter-units.h"
12 #include "sp-filter-primitive.h"
14 class SPFilter;
16 namespace Inkscape {
17 namespace XML {
18 class Node;
19 }
20 }
22 #define SP_TYPE_FILTER (sp_filter_get_type())
23 #define SP_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), SP_TYPE_FILTER, SPFilter))
24 #define SP_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), SP_TYPE_FILTER, SPFilterClass))
25 #define SP_IS_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), SP_TYPE_FILTER))
26 #define SP_IS_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), SP_TYPE_FILTER))
28 #define SP_FILTER_FILTER_UNITS(f) (SP_FILTER(f)->filterUnits)
29 #define SP_FILTER_PRIMITIVE_UNITS(f) (SP_FILTER(f)->primitiveUnits)
31 GType sp_filter_get_type();
33 //need to define function
34 void sp_filter_set_filter_units(SPFilter *filter, SPFilterUnits filterUnits);
35 //need to define function
36 void sp_filter_set_primitive_units(SPFilter *filter, SPFilterUnits filterUnits);
38 SPFilterPrimitive *add_primitive(SPFilter *filter, SPFilterPrimitive *primitive);
39 SPFilterPrimitive *get_primitive(SPFilter *filter, int index);
42 #endif /* !SEEN_SP_FILTER_FNS_H */
44 /*
45   Local Variables:
46   mode:c++
47   c-file-style:"stroustrup"
48   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
49   indent-tabs-mode:nil
50   fill-column:99
51   End:
52 */
53 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :