summaryrefslogtreecommitdiffstats
path: root/src/sp-guide.h
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-03-29 23:45:33 +0000
committerMarkus Engel <markus.engel@tum.de>2013-03-29 23:45:33 +0000
commit3d7b1356600880a43e44e864cab08fff29cd23af (patch)
tree52de4be4260970ec5f93d0eb80542dccb3425831 /src/sp-guide.h
parentVarious changes. (diff)
downloadinkscape-3d7b1356600880a43e44e864cab08fff29cd23af.tar.gz
inkscape-3d7b1356600880a43e44e864cab08fff29cd23af.zip
Added "virtual pads" to
- SPFeFuncNode - SPFeDistantLight - SPFeMergeNode - SPFePointLight - SPFeSpotLight - SPFilter - SPFont - SPGuide Changes in SPItem and SPNamedView. (bzr r11608.1.49)
Diffstat (limited to 'src/sp-guide.h')
-rw-r--r--src/sp-guide.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/sp-guide.h b/src/sp-guide.h
index 319e12305..ff350528b 100644
--- a/src/sp-guide.h
+++ b/src/sp-guide.h
@@ -28,9 +28,14 @@ struct SPCanvasGroup;
#define SP_IS_GUIDE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), SP_TYPE_GUIDE))
#define SP_IS_GUIDE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), SP_TYPE_GUIDE))
+
+class CGuide;
+
/* Represents the constraint on p that dot(g.direction, p) == g.position. */
class SPGuide : public SPObject {
public:
+ CGuide* cguide;
+
char* label;
Geom::Point normal_to_line;
Geom::Point point_on_line;
@@ -51,6 +56,20 @@ public:
double getDistanceFrom(Geom::Point const &pt) const;
};
+class CGuide : public CObject {
+public:
+ CGuide(SPGuide* guide);
+ virtual ~CGuide();
+
+ virtual void onBuild(SPDocument* doc, Inkscape::XML::Node* repr);
+ virtual void onRelease();
+ virtual void onSet(unsigned int key, const gchar* value);
+
+private:
+ SPGuide* spguide;
+};
+
+
class SPGuideClass {
public:
SPObjectClass parent_class;