summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 63a8e65)
raw | patch | inline | side by side (parent: 63a8e65)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Sat, 17 Jan 2009 21:20:50 +0000 (21:20 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Sat, 17 Jan 2009 21:20:50 +0000 (21:20 +0000) |
src/display/snap-indicator.cpp | patch | blob | history |
index d642816afebf4e183a7e4626e4e4ed8a786cdff4..c21bd3dbc8bad6b2992964525899a6cb3a370783 100644 (file)
SPCanvasItem * canvasitem = NULL;
switch (p.getTarget()) {
/// @todo add the different kinds of snapindicator visuals
+ case SNAPTARGET_NODE:
+ canvasitem = sp_canvas_item_new(sp_desktop_tempgroup (_desktop),
+ SP_TYPE_CTRL,
+ "anchor", GTK_ANCHOR_CENTER,
+ "size", 10.0,
+ "stroked", TRUE,
+ "stroke_color", 0xf000f0ff,
+ "mode", SP_KNOT_MODE_XOR,
+ "shape", SP_KNOT_SHAPE_DIAMOND,
+ NULL );
+ break;
case SNAPTARGET_GRID:
case SNAPTARGET_GRID_INTERSECTION:
case SNAPTARGET_GUIDE:
case SNAPTARGET_GUIDE_INTERSECTION:
case SNAPTARGET_GRID_GUIDE_INTERSECTION:
- case SNAPTARGET_NODE:
case SNAPTARGET_PATH:
case SNAPTARGET_PATH_INTERSECTION:
case SNAPTARGET_BBOX_CORNER: