From 404f9a3d602e76473554fe0403acdb9d548aeedf Mon Sep 17 00:00:00 2001 From: Jabiertxof Date: Mon, 20 May 2019 02:52:13 +0200 Subject: Add knot ungrabbed event --- src/knot-holder-entity.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/knot-holder-entity.h') diff --git a/src/knot-holder-entity.h b/src/knot-holder-entity.h index f34a31d68..e6d2ba231 100644 --- a/src/knot-holder-entity.h +++ b/src/knot-holder-entity.h @@ -62,6 +62,7 @@ public: /* the get/set/click handlers are virtual functions; each handler class for a knot should be derived from KnotHolderEntity and override these functions */ virtual void knot_set(Geom::Point const &p, Geom::Point const &origin, unsigned int state) = 0; + virtual void knot_ungrabbed(Geom::Point const &p, Geom::Point const &origin, unsigned int state) = 0; virtual Geom::Point knot_get() const = 0; virtual void knot_click(unsigned int /*state*/) {} @@ -108,6 +109,7 @@ class PatternKnotHolderEntityXY : public KnotHolderEntity { public: PatternKnotHolderEntityXY(bool fill) : KnotHolderEntity(), _fill(fill) {} Geom::Point knot_get() const override; + void knot_ungrabbed(Geom::Point const &p, Geom::Point const &origin, guint state) override {}; void knot_set(Geom::Point const &p, Geom::Point const &origin, unsigned int state) override; private: // true if the entity tracks fill, false for stroke @@ -118,6 +120,7 @@ class PatternKnotHolderEntityAngle : public KnotHolderEntity { public: PatternKnotHolderEntityAngle(bool fill) : KnotHolderEntity(), _fill(fill) {} Geom::Point knot_get() const override; + void knot_ungrabbed(Geom::Point const &p, Geom::Point const &origin, guint state) override {}; void knot_set(Geom::Point const &p, Geom::Point const &origin, unsigned int state) override; private: bool _fill; @@ -127,6 +130,7 @@ class PatternKnotHolderEntityScale : public KnotHolderEntity { public: PatternKnotHolderEntityScale(bool fill) : KnotHolderEntity(), _fill(fill) {} Geom::Point knot_get() const override; + void knot_ungrabbed(Geom::Point const &p, Geom::Point const &origin, guint state) override {}; void knot_set(Geom::Point const &p, Geom::Point const &origin, unsigned int state) override; private: bool _fill; @@ -137,6 +141,7 @@ class FilterKnotHolderEntity : public KnotHolderEntity { public: FilterKnotHolderEntity(bool topleft) : KnotHolderEntity(), _topleft(topleft) {} Geom::Point knot_get() const override; + void knot_ungrabbed(Geom::Point const &p, Geom::Point const &origin, guint state) override {}; void knot_set(Geom::Point const &p, Geom::Point const &origin, unsigned int state) override; private: bool _topleft; // true for topleft point, false for bottomright -- cgit v1.2.3