24#ifndef PREVIEW_ITEMS_RULER_ITEM_H
25#define PREVIEW_ITEMS_RULER_ITEM_H
36class TWO_POINT_GEOMETRY_MANAGER;
51 void ViewGetLayers(
int aLayers[],
int& aCount )
const override;
58 void Show(
int x, std::ostream& st )
const override
69 return wxT(
"RULER_ITEM" );
A base class for most all the KiCad significant classes used in schematics and boards.
A drawn ruler item for showing the distance between two points.
const TWO_POINT_GEOMETRY_MANAGER & m_geomMgr
void ViewGetLayers(int aLayers[], int &aCount) const override
wxString GetClass() const override
Get class name.
void ViewDraw(int aLayer, KIGFX::VIEW *aView) const override final
Draw the parts of the object belonging to layer aLayer.
const BOX2I ViewBBox() const override
Return the all the layers within the VIEW the object is painted on.
void SwitchUnits(EDA_UNITS aUnits)
Switch the ruler units.
const EDA_IU_SCALE & m_iuScale
void UpdateDir(bool aFlipX, bool aFlipY)
Represent a very simple geometry manager for items that have a start and end point.
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
The Cairo implementation of the graphics abstraction layer.