26using namespace std::placeholders;
std::optional< VECTOR2I > m_auxAxis
GRID_HELPER(TOOL_MANAGER *aToolMgr)
VECTOR2I GetVisibleGrid() const
virtual VECTOR2I Align(const VECTOR2I &aPoint) const
void SetAuxAxes(bool aEnable, const VECTOR2I &aOrigin=VECTOR2I(0, 0))
VECTOR2I AlignGrid(const VECTOR2I &aPoint) const
VECTOR2I GetOrigin() const
bool canUseGrid() const
Check whether it is possible to use the grid – this depends both on local grid helper settings and gl...
KIGFX::ORIGIN_VIEWITEM m_viewAxis
const VECTOR2D & GetGridOrigin() const
VECTOR2D GetVisibleGridSize() const
Return the visible grid size in x and y directions.
const VECTOR2D & GetGridSize() const
Return the grid size.
void SetPosition(const VECTOR2I &aPosition) override
GAL * GetGAL() const
Return the #GAL this view is using to draw graphical primitives.
void SetVisible(VIEW_ITEM *aItem, bool aIsVisible=true)
Set the item visibility.
EDA_ANGLE abs(const EDA_ANGLE &aAngle)
constexpr ret_type KiROUND(fp_type v)
Round a floating point number to an integer using "round halfway cases away from zero".