31 dc->getDesktop()->getCanvasControls(),
32 Inkscape::CANVAS_ITEM_CTRL_TYPE_ANCHOR
36 ctrl->set_name(
"CanvasItemCtrl:DrawAnchor");
38 ctrl->set_pickable(
false);
auto make_canvasitem(Args &&... args)
Convienence function to create a CanvasItemPtr, like std::make_unique.
Two-dimensional point that doubles as a vector.
SPDrawAnchor(Inkscape::UI::Tools::FreehandBase *dc, std::shared_ptr< Geom::PathVector > curve, bool start, Geom::Point delta)
Creates an anchor object and initializes it.
CanvasItemPtr< Inkscape::CanvasItemCtrl > ctrl
SPDrawAnchor * anchorTest(Geom::Point w, bool activate)
Test if point is near anchor, if so fill anchor on canvas and return pointer to it or NULL.
The nodes at the ends of the path in the pen/pencil tools.
Helper class to stream background task notifications as a series of messages.
static void activate(GApplication *app, gpointer)