snap-indicator.cpp revision abac96a58638236025e60f4dca3848bb294c6672
1N/A * Provides a class that shows a temporary indicator on the canvas of where the snap was, and what kind of snap
1N/A#include "display/snap-indicator.h"
1N/A#include "desktop-handles.h"
1N/A#include "display/sodipodi-ctrl.h"
1N/A#include "preferences.h"
1N/A case SNAPTARGET_GRID:
1N/A case SNAPTARGET_GUIDE:
1N/A case SNAPTARGET_NODE:
1N/A case SNAPTARGET_PATH:
1N/A case SNAPTARGET_BBOX_CORNER:
1N/A case SNAPTARGET_BBOX_EDGE:
1N/A case SNAPTARGET_GRADIENT:
1N/A case SNAPTARGET_UNDEFINED:
1N/A _snaptarget = _desktop->add_temporary_canvasitem(canvasitem, 1000); // TODO add preference for snap indicator timeout
1N/A if (_snaptarget) {
1N/A if (_snapsource) {