diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-12-05 12:23:45 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2016-12-05 12:23:45 +0000 |
| commit | 440af40bede974573aae0a792b7c6d60ea33ce97 (patch) | |
| tree | 1b177477361b3877d0682c30dd7a60375840c55a /src/gradient-drag.h | |
| parent | Fix names in measure line LPE (diff) | |
| download | inkscape-440af40bede974573aae0a792b7c6d60ea33ce97.tar.gz inkscape-440af40bede974573aae0a792b7c6d60ea33ce97.zip | |
Highlight mesh handles when corner or handle selected.
Highlight mesh control lines when corner/handle hovered over.
(bzr r15298)
Diffstat (limited to 'src/gradient-drag.h')
| -rw-r--r-- | src/gradient-drag.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gradient-drag.h b/src/gradient-drag.h index a57e9b070..b4a64c78d 100644 --- a/src/gradient-drag.h +++ b/src/gradient-drag.h @@ -107,6 +107,11 @@ struct GrDragger { /* Update handles/tensors when mesh corner moved */ void moveMeshHandles( Geom::Point pc_old, MeshNodeOperation op ); + /* Following are for highlighting mesh handles when corner node is selected. */ + GrDragger *getMgCorner(); + void highlightNode(SPMeshNode* node, bool highlight, Geom::Point corner_pos); + void highlightCorner(bool highlight); + bool mayMerge(GrDragger *other); bool mayMerge(GrDraggable *da2); @@ -210,7 +215,8 @@ private: void deselect_all(); void addLine( SPItem *item, Geom::Point p1, Geom::Point p2, Inkscape::PaintTarget fill_or_stroke); - void addCurve(SPItem *item, Geom::Point p0, Geom::Point p1, Geom::Point p2, Geom::Point p3, int corner0, int corner1, Inkscape::PaintTarget fill_or_stroke); + void addCurve(SPItem *item, Geom::Point p0, Geom::Point p1, Geom::Point p2, Geom::Point p3, + int corner0, int corner1, int handle0, int handle1, Inkscape::PaintTarget fill_or_stroke); GrDragger *addDragger(GrDraggable *draggable); |
