Code

add CMakeLists.txt files for live_effects
[inkscape.git] / src / live_effects / parameter / pointparam-knotholder.h
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, NR::Point const &p, NR::Point const &origin, guint state);
32 typedef NR::Point (* PointParamKnotHolderGetFunc) (SPItem *item);
33 typedef void (* PointParamKnotHolderClickedFunc) (SPItem *item, guint state);
35 class PointParamKnotHolder : public SPKnotHolder {
36 public:
37     LivePathEffectObject * lpeobject;
38     Inkscape::XML::Node  * repr;
39     const gchar          * repr_key;
41     void add_knot ( Geom::Point         & p,
42                     PointParamKnotHolderClickedFunc knot_click,
43                     SPKnotShapeType     shape,
44                     SPKnotModeType      mode,
45                     guint32             color,
46                     const gchar *tip );
47 };
49 struct PointParamKnotHolderClass : SPKnotHolderClass {
50 };
52 PointParamKnotHolder *pointparam_knot_holder_new(SPDesktop *desktop, SPObject *lpeobject, const gchar * key, SPItem *item);
54 GType pointparam_knot_holder_get_type();
57 #define INKSCAPE_TYPE_POINTPARAM_KNOT_HOLDER      (Inkscape::pointparam_knot_holder_get_type())
60 } // namespace Inkscape
63 #endif /* INKSCAPE_LPE_POINTPARAM_KNOTHOLDER_H */
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 :