Code

fix bug [ 1824359 ] Gradient isn't snapping with ctrl pressed
[inkscape.git] / src / gradient-drag.h
index a4cd481a3be9282cebf7f165e53da791fe47f5d8..06859c24bb0e5fba115739e6679348f8006b9fc1 100644 (file)
@@ -92,8 +92,9 @@ struct GrDragger {
        bool mayMerge (GrDragger *other);
        bool mayMerge (GrDraggable *da2);
 
-       bool isA (gint point_type);
-       bool isA (SPItem *item, gint point_type, gint point_i, bool fill_or_stroke);
+    bool isA (gint point_type);
+    bool isA (SPItem *item, gint point_type, bool fill_or_stroke);
+    bool isA (SPItem *item, gint point_type, gint point_i, bool fill_or_stroke);
 
        void fireDraggables (bool write_repr, bool scale_radial = false, bool merging_focus = false);
 };
@@ -123,13 +124,20 @@ public: // FIXME: make more of this private!
                void selectAll();
                void selectByCoords(std::vector<NR::Point> coords);
     void selectRect(NR::Rect const &r);
+
+    bool dropColor(SPItem *item, gchar *c, NR::Point p);
+
+               SPStop *addStopNearPoint (SPItem *item, NR::Point mouse_p, double tolerance);
     
     void deleteSelected (bool just_one = false);
+
+    bool copy ();
     
     bool keep_selection;    
     
     GrDragger *getDraggerFor (SPItem *item, gint point_type, gint point_i, bool fill_or_stroke);
 
+    void grabKnot (GrDragger *dragger, gint x, gint y, guint32 etime);
     void grabKnot (SPItem *item, gint point_type, gint point_i, bool fill_or_stroke, gint x, gint y, guint32 etime);
 
     bool local_change;
@@ -159,7 +167,7 @@ public: // FIXME: make more of this private!
 private: 
     void deselect_all();
 
-    void addLine (NR::Point p1, NR::Point p2, guint32 rgba);
+    void addLine (SPItem *item, NR::Point p1, NR::Point p2, guint32 rgba);
 
     void addDragger (GrDraggable *draggable);