summaryrefslogtreecommitdiffstats
path: root/src/sp-mesh-patch.h
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2012-08-21 00:54:06 +0000
committerMarkus Engel <markus.engel@tum.de>2012-08-21 00:54:06 +0000
commit62fbbefccbe10ec11e727735e6bfe890003b0af2 (patch)
tree1741dcb7c61f75230ba00489ee2d9f3c0d11692f /src/sp-mesh-patch.h
parentAdded "virtual pad" to SPScript. (diff)
downloadinkscape-62fbbefccbe10ec11e727735e6bfe890003b0af2.tar.gz
inkscape-62fbbefccbe10ec11e727735e6bfe890003b0af2.zip
Added "virtual pad" to
- SPPaintServer - SPPattern - SPGradient - SPStop - SPLinearGradient - SPMeshGradient - SPMeshPatch - SPMeshRow - SPRadialGradient As all subclasses of SPPaintServer now have "virtual pads" with correct inheritance, the virtual function call to "onCreatePattern" was converted to C++ style. (bzr r11608.1.35)
Diffstat (limited to 'src/sp-mesh-patch.h')
-rw-r--r--src/sp-mesh-patch.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/sp-mesh-patch.h b/src/sp-mesh-patch.h
index b56a0b95f..2f5022234 100644
--- a/src/sp-mesh-patch.h
+++ b/src/sp-mesh-patch.h
@@ -30,8 +30,12 @@ struct SPMeshPatchClass;
GType sp_meshpatch_get_type();
+class CMeshPatch;
+
/** Gradient MeshPatch. */
-struct SPMeshPatch : public SPObject {
+class SPMeshPatch : public SPObject {
+public:
+ CMeshPatch* cmeshpatch;
SPMeshPatch* getNextMeshPatch();
SPMeshPatch* getPrevMeshPatch();
@@ -45,6 +49,21 @@ struct SPMeshPatchClass {
SPObjectClass parent_class;
};
+
+class CMeshPatch : public CObject {
+public:
+ CMeshPatch(SPMeshPatch* meshpatch);
+ virtual ~CMeshPatch();
+
+ virtual void onBuild(SPDocument* doc, Inkscape::XML::Node* repr);
+ virtual void onSet(unsigned int key, const gchar* value);
+ virtual Inkscape::XML::Node* onWrite(Inkscape::XML::Document* doc, Inkscape::XML::Node* repr, guint flags);
+
+protected:
+ SPMeshPatch* spmeshpatch;
+};
+
+
#endif /* !SEEN_SP_MESHPATCH_H */
/*