24#ifndef PREVIEW_ITEMS_RULER_ITEM_H
25#define PREVIEW_ITEMS_RULER_ITEM_H
39class TWO_POINT_GEOMETRY_MANAGER;
71 void Show(
int x, std::ostream& st )
const override
82 return wxT(
"RULER_ITEM" );
A base class for most all the KiCad significant classes used in schematics and boards.
A color representation with 4 components: red, green, blue, alpha.
A drawn ruler item for showing the distance between two points.
std::vector< int > ViewGetLayers() const override
void SetShowEndArrowHead(bool aShow)
const TWO_POINT_GEOMETRY_MANAGER & m_geomMgr
wxArrayString GetDimensionStrings() const
Get the strings for the dimensions of the ruler.
std::optional< COLOR4D > m_color
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)
void SetColor(const COLOR4D &aColor)
void SetShowTicks(bool aShow)
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.