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