Code

+ Fix bug #179840, forking of LPEs
[inkscape.git] / src / live_effects / lpeobject.h
1 #ifndef INKSCAPE_LIVEPATHEFFECT_OBJECT_H
2 #define INKSCAPE_LIVEPATHEFFECT_OBJECT_H
4 /*
5  * Inkscape::LivePathEffect
6  *
7 * Copyright (C) Johan Engelen 2007-2008 <j.b.c.engelen@utwente.nl>
8  *
9  * Released under GNU GPL, read the file 'COPYING' for more information
10  */
11  
12 #include "sp-object.h"
13 #include "effect.h"
15 #define TYPE_LIVEPATHEFFECT  (livepatheffect_get_type())
16 #define LIVEPATHEFFECT(o)    (G_TYPE_CHECK_INSTANCE_CAST((o), TYPE_LIVEPATHEFFECT, LivePathEffectObject))
17 #define IS_LIVEPATHEFFECT(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), TYPE_LIVEPATHEFFECT))
19 struct LivePathEffectObject : public SPObject {
20     Inkscape::LivePathEffect::EffectType effecttype;
21     Inkscape::LivePathEffect::Effect *lpe;
23     bool effecttype_set;
25     LivePathEffectObject * fork_private_if_necessary(int nr_of_allowed_users = 1);
26 };
28 /// The LivePathEffect vtable.
29 struct LivePathEffectObjectClass {
30     SPObjectClass parent_class;
31 };
33 GType livepatheffect_get_type();
35 #endif
37 /*
38   Local Variables:
39   mode:c++
40   c-file-style:"stroustrup"
41   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
42   indent-tabs-mode:nil
43   fill-column:99
44   End:
45 */
46 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :