diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-03-28 19:31:06 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-03-28 19:31:06 +0000 |
| commit | c2601db18bc9913a926593de6aed6d52fdf7d165 (patch) | |
| tree | 9881e0ae7214ad8563e29b315341ae31252b9771 /src/sp-lpe-item.h | |
| parent | - Created a SPLPEItem class that handles applying a LPE to an Item (diff) | |
| download | inkscape-c2601db18bc9913a926593de6aed6d52fdf7d165.tar.gz inkscape-c2601db18bc9913a926593de6aed6d52fdf7d165.zip | |
Add two files that were forgotten in last commit
(bzr r5220)
Diffstat (limited to 'src/sp-lpe-item.h')
| -rw-r--r-- | src/sp-lpe-item.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/src/sp-lpe-item.h b/src/sp-lpe-item.h new file mode 100644 index 000000000..a818eeb53 --- /dev/null +++ b/src/sp-lpe-item.h @@ -0,0 +1,69 @@ +#ifndef SP_LPE_ITEM_H_SEEN
+#define SP_LPE_ITEM_H_SEEN
+
+/** \file
+ * Base class for live path effect items
+ */
+/*
+ * Authors:
+ * Johan Engelen <j.b.c.engelen@ewi.utwente.nl>
+ * Bastien Bouclet <bgkweb@gmail.com>
+ *
+ * Copyright (C) 2008 authors
+ *
+ * Released under GNU GPL, read the file 'COPYING' for more information
+ */
+
+#include "sp-item.h"
+#include "display/curve.h"
+
+#define SP_TYPE_LPE_ITEM (sp_lpe_item_get_type())
+#define SP_LPE_ITEM(o) (G_TYPE_CHECK_INSTANCE_CAST((o), SP_TYPE_LPE_ITEM, SPLPEItem))
+#define SP_LPE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_LPE_ITEM, SPLPEItemClass))
+#define SP_IS_LPE_ITEM(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), SP_TYPE_LPE_ITEM))
+#define SP_IS_LPE_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_LPE_ITEM))
+
+struct LivePathEffectObject;
+namespace Inkscape{
+namespace LivePathEffect{
+ class LPEObjectReference;
+ class Effect;
+};
+};
+
+struct SPLPEItem : public SPItem {
+ Inkscape::LivePathEffect::LPEObjectReference *path_effect_ref;
+ sigc::connection lpe_modified_connection;
+};
+
+struct SPLPEItemClass {
+ SPItemClass parent_class;
+
+ void (* update_patheffect) (SPLPEItem *lpeitem, bool write);
+};
+
+GType sp_lpe_item_get_type();
+
+LivePathEffectObject * sp_lpe_item_get_livepatheffectobject(SPLPEItem *lpeitem);
+Inkscape::LivePathEffect::Effect * sp_lpe_item_get_livepatheffect(SPLPEItem *lpeitem);
+void sp_lpe_item_update_patheffect (SPLPEItem *lpeitem, bool write);
+void sp_lpe_item_perform_path_effect(SPLPEItem *lpeitem, SPCurve *curve);
+void sp_lpe_item_set_path_effect(SPLPEItem *lpeitem, gchar *value);
+void sp_lpe_item_set_path_effect(SPLPEItem *lpeitem, LivePathEffectObject * new_lpeobj);
+void sp_lpe_item_remove_path_effect(SPLPEItem *lpeitem, bool keep_paths);
+bool sp_lpe_item_has_path_effect(SPLPEItem *lpeitem);
+bool sp_lpe_item_has_path_effect_recursive(SPLPEItem *lpeitem);
+void sp_lpe_item_edit_next_param_oncanvas(SPLPEItem *lpeitem, SPDesktop *dt);
+
+#endif /* !SP_LPE_ITEM_H_SEEN */
+
+/*
+ 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:encoding=utf-8:textwidth=99 :
|
