28 using namespace KIGFX;
virtual void DrawRectangle(const VECTOR2D &aStartPoint, const VECTOR2D &aEndPoint)
Draw a rectangle.
The Cairo implementation of the graphics abstraction layer.
void ViewDraw(int aLayer, KIGFX::VIEW *aView) const override
Draw the parts of the object belonging to layer aLayer.
the 3d code uses this value
GAL * GetGAL() const
Return the #GAL this view is using to draw graphical primitives.
virtual void SetLineWidth(float aLineWidth)
Set the line width.
virtual void SetIsFill(bool aIsFillEnabled)
Enable/disable fill.
void SetItem(EDA_ITEM *aItem)
static const KIGFX::COLOR4D BOX_COLOR
virtual void SetStrokeColor(const COLOR4D &aColor)
Set the stroke color.
A base class for most all the KiCad significant classes used in schematics and boards.
const Vec & GetSize() const
const Vec & GetOrigin() const
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
virtual const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
static const double LINE_WIDTH
virtual void SetIsStroke(bool aIsStrokeEnabled)
Enable/disable stroked outlines.
Abstract interface for drawing on a 2D-surface.
A color representation with 4 components: red, green, blue, alpha.