summaryrefslogtreecommitdiffstats
path: root/src/sp-rect.h
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2012-08-18 21:51:50 +0000
committerMarkus Engel <markus.engel@tum.de>2012-08-18 21:51:50 +0000
commit1ab271aaa35acc07f07c88945f461d42dc7352fc (patch)
treed6afe0fd8feb22b4d24d54e487d442b89abc0c2d /src/sp-rect.h
parentAdded "virtual pad" to SPPolyLine. (diff)
downloadinkscape-1ab271aaa35acc07f07c88945f461d42dc7352fc.tar.gz
inkscape-1ab271aaa35acc07f07c88945f461d42dc7352fc.zip
Added "virtual pad" to SPRect.
(bzr r11608.1.13)
Diffstat (limited to 'src/sp-rect.h')
-rw-r--r--src/sp-rect.h30
1 files changed, 29 insertions, 1 deletions
diff --git a/src/sp-rect.h b/src/sp-rect.h
index 7bc85dd8a..f33323a4d 100644
--- a/src/sp-rect.h
+++ b/src/sp-rect.h
@@ -28,8 +28,12 @@
class SPRect;
class SPRectClass;
+class CRect;
+
+class SPRect : public SPShape {
+public:
+ CRect* crect;
-struct SPRect : public SPShape {
SVGLength x;
SVGLength y;
SVGLength width;
@@ -43,6 +47,30 @@ struct SPRectClass {
};
+class CRect : public CShape {
+public:
+ CRect(SPRect* sprect);
+ virtual ~CRect();
+
+ virtual void onBuild(SPDocument* doc, Inkscape::XML::Node* repr);
+
+ void onSet(unsigned key, gchar const *value);
+ void onUpdate(SPCtx* ctx, unsigned int flags);
+
+ virtual Inkscape::XML::Node* onWrite(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags);
+ virtual gchar* onDescription();
+
+ void onSetShape();
+ virtual Geom::Affine onSetTransform(Geom::Affine const& xform);
+
+ void onSnappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs);
+ void onConvertToGuides();
+
+protected:
+ SPRect* sprect;
+};
+
+
/* Standard GType function */
GType sp_rect_get_type (void);