Code

Add two files that were forgotten in last commit
[inkscape.git] / src / sp-lpe-item.h
1 #ifndef SP_LPE_ITEM_H_SEEN\r
2 #define SP_LPE_ITEM_H_SEEN\r
3 \r
4 /** \file\r
5  * Base class for live path effect items\r
6  */\r
7 /*\r
8  * Authors:\r
9  *   Johan Engelen <j.b.c.engelen@ewi.utwente.nl>\r
10  *   Bastien Bouclet <bgkweb@gmail.com>\r
11  *\r
12  * Copyright (C) 2008 authors\r
13  *\r
14  * Released under GNU GPL, read the file 'COPYING' for more information\r
15  */\r
16 \r
17 #include "sp-item.h"\r
18 #include "display/curve.h"\r
19 \r
20 #define SP_TYPE_LPE_ITEM (sp_lpe_item_get_type())\r
21 #define SP_LPE_ITEM(o) (G_TYPE_CHECK_INSTANCE_CAST((o), SP_TYPE_LPE_ITEM, SPLPEItem))\r
22 #define SP_LPE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_LPE_ITEM, SPLPEItemClass))\r
23 #define SP_IS_LPE_ITEM(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), SP_TYPE_LPE_ITEM))\r
24 #define SP_IS_LPE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_LPE_ITEM))\r
25 \r
26 struct LivePathEffectObject;\r
27 namespace Inkscape{ \r
28 namespace LivePathEffect{\r
29     class LPEObjectReference;\r
30     class Effect;\r
31 };\r
32 };\r
33 \r
34 struct SPLPEItem : public SPItem {\r
35     Inkscape::LivePathEffect::LPEObjectReference *path_effect_ref;\r
36     sigc::connection lpe_modified_connection;\r
37 };\r
38 \r
39 struct SPLPEItemClass {\r
40     SPItemClass parent_class;\r
41 \r
42     void (* update_patheffect) (SPLPEItem *lpeitem, bool write);\r
43 };\r
44 \r
45 GType sp_lpe_item_get_type();\r
46 \r
47 LivePathEffectObject * sp_lpe_item_get_livepatheffectobject(SPLPEItem *lpeitem);\r
48 Inkscape::LivePathEffect::Effect * sp_lpe_item_get_livepatheffect(SPLPEItem *lpeitem);\r
49 void sp_lpe_item_update_patheffect (SPLPEItem *lpeitem, bool write);\r
50 void sp_lpe_item_perform_path_effect(SPLPEItem *lpeitem, SPCurve *curve);\r
51 void sp_lpe_item_set_path_effect(SPLPEItem *lpeitem, gchar *value);\r
52 void sp_lpe_item_set_path_effect(SPLPEItem *lpeitem, LivePathEffectObject * new_lpeobj);\r
53 void sp_lpe_item_remove_path_effect(SPLPEItem *lpeitem, bool keep_paths);\r
54 bool sp_lpe_item_has_path_effect(SPLPEItem *lpeitem);\r
55 bool sp_lpe_item_has_path_effect_recursive(SPLPEItem *lpeitem);\r
56 void sp_lpe_item_edit_next_param_oncanvas(SPLPEItem *lpeitem, SPDesktop *dt);\r
57 \r
58 #endif /* !SP_LPE_ITEM_H_SEEN */\r
59 \r
60 /*\r
61   Local Variables:\r
62   mode:c++\r
63   c-file-style:"stroustrup"\r
64   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))\r
65   indent-tabs-mode:nil\r
66   fill-column:99\r
67   End:\r
68 */\r
69 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :\r