Code

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