f6dfdead5207c9589bfc4ba5b336675cbf19034e
1 #ifndef INKSCAPE_LPE_POINTPARAM_KNOTHOLDER_H
2 #define INKSCAPE_LPE_POINTPARAM_KNOTHOLDER_H
4 /*
5 * PointParamKnotHolder - Hold SPKnot list and manage signals for LPE PointParam
6 *
7 * Author:
8 * Johan Engelen <goejendaagh@zonnet.nl>
9 *
10 * Copyright (C) 2008 Johan Engelen
11 *
12 * Released under GNU GPL
13 *
14 */
16 #include "knotholder.h"
17 #include <glib/gtypes.h>
18 #include "knot-enums.h"
19 #include "forward.h"
20 #include "libnr/nr-forward.h"
21 #include <2geom/point.h>
22 #include "live_effects/lpeobject.h"
24 namespace Inkscape {
25 namespace XML {
26 class Node;
27 }
31 typedef void (* PointParamKnotHolderSetFunc) (SPItem *item, Geom::Point const &p, Geom::Point const &origin, guint state);
32 typedef Geom::Point (* PointParamKnotHolderGetFunc) (SPItem *item);
33 typedef void (* PointParamKnotHolderClickedFunc) (SPItem *item, guint state);
35 class PointParamKnotHolder : public KnotHolder {
36 public:
37 PointParamKnotHolder(SPDesktop *desktop, SPObject *lpeobject, const gchar * key, SPItem *item);
38 ~PointParamKnotHolder();
40 LivePathEffectObject * lpeobject;
41 Inkscape::XML::Node * repr;
42 const gchar * repr_key;
44 void add_knot ( Geom::Point & p,
45 PointParamKnotHolderClickedFunc knot_click,
46 SPKnotShapeType shape,
47 SPKnotModeType mode,
48 guint32 color,
49 const gchar *tip );
50 };
52 } // namespace Inkscape
55 #endif /* INKSCAPE_LPE_POINTPARAM_KNOTHOLDER_H */
57 /*
58 Local Variables:
59 mode:c++
60 c-file-style:"stroustrup"
61 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
62 indent-tabs-mode:nil
63 fill-column:99
64 End:
65 */
66 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :