Inkscape
Vector Graphics Editor
|
The drawing anchor. More...
#include <draw-anchor.h>
Public Member Functions | |
SPDrawAnchor (Inkscape::UI::Tools::FreehandBase *dc, std::shared_ptr< Geom::PathVector > curve, bool start, Geom::Point delta) | |
Creates an anchor object and initializes it. | |
~SPDrawAnchor () | |
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. | |
Public Attributes | |
Inkscape::UI::Tools::FreehandBase * | dc |
std::shared_ptr< Geom::PathVector > | curve |
bool | start: 1 |
bool | active: 1 |
Geom::Point | dp |
CanvasItemPtr< Inkscape::CanvasItemCtrl > | ctrl |
The drawing anchor.
Definition at line 39 of file draw-anchor.h.
SPDrawAnchor::SPDrawAnchor | ( | Inkscape::UI::Tools::FreehandBase * | dc, |
std::shared_ptr< Geom::PathVector > | curve, | ||
bool | start, | ||
Geom::Point | delta | ||
) |
Creates an anchor object and initializes it.
Definition at line 27 of file draw-anchor.cpp.
|
default |
SPDrawAnchor * 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.
Definition at line 47 of file draw-anchor.cpp.
References activate(), active, ctrl, Inkscape::LARGE, Inkscape::NORMAL, and w.
bool SPDrawAnchor::active |
Definition at line 45 of file draw-anchor.h.
Referenced by anchorTest().
CanvasItemPtr<Inkscape::CanvasItemCtrl> SPDrawAnchor::ctrl |
Definition at line 47 of file draw-anchor.h.
Referenced by anchorTest(), and SPDrawAnchor().
std::shared_ptr<Geom::PathVector> SPDrawAnchor::curve |
Definition at line 43 of file draw-anchor.h.
Referenced by Inkscape::UI::Tools::PenTool::_bsplineSpiroBuild(), Inkscape::UI::Tools::PenTool::_bsplineSpiroStartAnchor(), Inkscape::UI::Tools::PenTool::_handleButtonPress(), Inkscape::UI::Tools::PencilTool::_handleButtonPress(), Inkscape::UI::Tools::PenTool::_lastpointToCurve(), Inkscape::UI::Tools::PenTool::_lastpointToLine(), and Inkscape::UI::Tools::spdc_concat_colors_and_flush().
Inkscape::UI::Tools::FreehandBase* SPDrawAnchor::dc |
Definition at line 42 of file draw-anchor.h.
Geom::Point SPDrawAnchor::dp |
Definition at line 46 of file draw-anchor.h.
Referenced by Inkscape::UI::Tools::PenTool::_handleButtonPress(), Inkscape::UI::Tools::PencilTool::_handleButtonPress(), Inkscape::UI::Tools::PenTool::_handleButtonRelease(), Inkscape::UI::Tools::PencilTool::_handleButtonRelease(), Inkscape::UI::Tools::PenTool::_handleMotionNotify(), and Inkscape::UI::Tools::PencilTool::_handleMotionNotify().
bool SPDrawAnchor::start |
Definition at line 44 of file draw-anchor.h.
Referenced by Inkscape::UI::Tools::PenTool::_handleButtonPress(), Inkscape::UI::Tools::PencilTool::_handleButtonPress(), and Inkscape::UI::Tools::spdc_concat_colors_and_flush().