index 1f5ea8e2c98330a38e1a53848e45da5af4c91e1e..aba93798a4f5386ecc16e6450045ea7ad1d8476d 100644 (file)
--- a/src/knot-holder-entity.h
+++ b/src/knot-holder-entity.h
#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>
#include <glib/gtypes.h>
#include "knot.h"
#include <2geom/forward.h>
+#include "snapper.h"
struct SPItem;
struct SPKnot;
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);
//private:
Geom::Point snap_knot_position(Geom::Point const &p);
+ Geom::Point snap_knot_position_constrained(Geom::Point const &p, Inkscape::Snapper::SnapConstraint const &constraint);
SPKnot *knot;
SPItem *item;