diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2009-03-13 20:15:31 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2009-03-13 20:15:31 +0000 |
| commit | 66a5d8abdc01c524d02064b537d7b0d167b15dda (patch) | |
| tree | 0101736dd4665e61682f965fc76d54c60779ceb7 /src/knot-holder-entity.h | |
| parent | remove desktop-affine.h and refactor sp_desktop_dt2doc_* calls (diff) | |
| download | inkscape-66a5d8abdc01c524d02064b537d7b0d167b15dda.tar.gz inkscape-66a5d8abdc01c524d02064b537d7b0d167b15dda.zip | |
* Implement constrained snapping of knots
* Implement snapping of the rectangle's radius handles
* Line snappers: set the snap target in the derived class instead of in findBestSnap()
(bzr r7479)
Diffstat (limited to 'src/knot-holder-entity.h')
| -rw-r--r-- | src/knot-holder-entity.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/knot-holder-entity.h b/src/knot-holder-entity.h index 1f5ea8e2c..c8fd29ddf 100644 --- a/src/knot-holder-entity.h +++ b/src/knot-holder-entity.h @@ -1,9 +1,9 @@ #ifndef SEEN_KNOT_HOLDER_ENTITY_H #define SEEN_KNOT_HOLDER_ENTITY_H -/** \file - * KnotHolderEntity definition. - * +/** \file + * KnotHolderEntity definition. + * * Authors: * Mitsuru Oka <oka326@parkcity.ne.jp> * Maximilian Albert <maximilian.albert@gmail.com> @@ -20,6 +20,7 @@ #include <glib/gtypes.h> #include "knot.h" #include <2geom/forward.h> +#include "snapper.h" struct SPItem; struct SPKnot; @@ -36,7 +37,7 @@ class KnotHolderEntity { public: KnotHolderEntity() {} virtual ~KnotHolderEntity(); - virtual void create(SPDesktop *desktop, SPItem *item, KnotHolder *parent, const gchar *tip = "", + virtual void create(SPDesktop *desktop, SPItem *item, KnotHolder *parent, const gchar *tip = "", SPKnotShapeType shape = SP_KNOT_SHAPE_DIAMOND, SPKnotModeType mode = SP_KNOT_MODE_XOR, guint32 color = 0xffffff00); @@ -57,6 +58,7 @@ public: //private: Geom::Point snap_knot_position(Geom::Point const &p); + Geom::Point snap_knot_position_constrained(Geom::Point const &p, Inkscape::Snapper::ConstraintLine const &constraint); SPKnot *knot; SPItem *item; |
