Code

Adding use of GtkScaleButton when available
[inkscape.git] / src / knot-holder-entity.h
index 287c9c64da61e5d63aba32d511bd6b9d57c419f7..ea90c4254926df649f3648f89890e26f73c77218 100644 (file)
@@ -43,11 +43,16 @@ public:
                         SPKnotModeType mode = SP_KNOT_MODE_XOR,
                         guint32 color = 0xffffff00);
 
+    /* derived classes like PointParam for LPEs use this, e.g., to indicate that we must not call
+       delete on their pointer when a knotholder is destroyed */
+    virtual bool isLPEParam() { return false; }
+
     /* 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(NR::Point const &p, NR::Point const &origin, guint state) = 0;
     virtual NR::Point knot_get() = 0;
-    virtual void knot_click(guint state) {}
+    virtual void knot_click(guint /*state*/) {}
+    virtual void onKnotUngrabbed() {}
 
     void update_knot();