diff options
| author | Markus Engel <markus.engel@tum.de> | 2012-08-18 16:36:31 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2012-08-18 16:36:31 +0000 |
| commit | 1cca85d01800742484b2901ea0f2d6bcf6cae1a5 (patch) | |
| tree | b045f7467ef344c334fa2c90f775c3e2efb8d3eb /src/sp-offset.h | |
| parent | Added "virtual pad" to SPLine. (diff) | |
| download | inkscape-1cca85d01800742484b2901ea0f2d6bcf6cae1a5.tar.gz inkscape-1cca85d01800742484b2901ea0f2d6bcf6cae1a5.zip | |
Added "virtual pad" to SPOffset.
(bzr r11608.1.7)
Diffstat (limited to 'src/sp-offset.h')
| -rw-r--r-- | src/sp-offset.h | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/src/sp-offset.h b/src/sp-offset.h index ec8c2cf29..0dc42bd00 100644 --- a/src/sp-offset.h +++ b/src/sp-offset.h @@ -24,6 +24,7 @@ class SPOffset; class SPOffsetClass; +class COffset; class SPUseReference; /** @@ -54,7 +55,10 @@ class SPUseReference; * points, or more precisely one control point, that's enough to define the * radius (look in object-edit). */ -struct SPOffset : public SPShape { +class SPOffset : public SPShape { +public: + COffset* coffset; + void *originalPath; ///< will be a livarot Path, just don't declare it here to please the gcc linker char *original; ///< SVG description of the source path float rad; ///< offset radius @@ -84,6 +88,27 @@ struct SPOffsetClass }; +class COffset : public CShape { +public: + COffset(SPOffset* offset); + ~COffset(); + + virtual void onBuild(SPDocument *document, Inkscape::XML::Node *repr); + virtual void onSet(unsigned int key, gchar const* value); + virtual void onUpdate(SPCtx *ctx, guint flags); + virtual Inkscape::XML::Node* onWrite(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags); + virtual void onRelease(); + + virtual void onSnappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs); + virtual gchar* onDescription(); + + virtual void onSetShape(); + +protected: + SPOffset* spoffset; +}; + + /* Standard Gtk function */ GType sp_offset_get_type (void); |
