blob: 7353d4e93594f36bcf0c7424234d8a337930be22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef INKSCAPE_LIVEPATHEFFECT_OBJECT_H
#define INKSCAPE_LIVEPATHEFFECT_OBJECT_H
/*
* Inkscape::LivePathEffect
*
* Copyright (C) Johan Engelen 2007-2008 <j.b.c.engelen@utwente.nl>
*
* Released under GNU GPL v2+, read the file 'COPYING' for more information.
*/
#include "effect-enum.h"
#include "object/sp-object.h"
namespace Inkscape {
namespace XML {
class Node;
struct Document;
}
namespace LivePathEffect {
class Effect;
}
}
#define LIVEPATHEFFECT(obj) ((LivePathEffectObject*)obj)
#define IS_LIVEPATHEFFECT(obj) (dynamic_cast<const LivePathEffectObject*>((SPObject*)obj))
class LivePathEffectObject : public SPObject {
public:
LivePathEffectObject();
~LivePathEffectObject() override;
Inkscape::LivePathEffect::EffectType effecttype;
bool effecttype_set;
// dont check values only structure and ID
bool is_similar(LivePathEffectObject *that);
LivePathEffectObject * fork_private_if_necessary(unsigned int nr_of_allowed_users = 1);
/* Note that the returned pointer can be NULL in a valid LivePathEffectObject contained in a valid list of lpeobjects in an lpeitem!
* So one should always check whether the returned value is NULL or not */
Inkscape::LivePathEffect::Effect * get_lpe() {
return lpe;
}
Inkscape::LivePathEffect::Effect const * get_lpe() const {
return lpe;
};
Inkscape::LivePathEffect::Effect *lpe; // this can be NULL in a valid LivePathEffectObject
protected:
void build(SPDocument* doc, Inkscape::XML::Node* repr) override;
void release() override;
void set(SPAttr key, char const* value) override;
Inkscape::XML::Node* write(Inkscape::XML::Document* doc, Inkscape::XML::Node* repr, unsigned int flags) override;
};
#endif
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
|