24#ifndef PREVIEW_SIMPLE_OUTLINE_ITEM__H_
25#define PREVIEW_SIMPLE_OUTLINE_ITEM__H_
76 void Show(
int x, std::ostream& st )
const override
87 return "SIMPLE_OVERLAY_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.
Abstract interface for drawing on a 2D-surface.
SIMPLE_OVERLAY_ITEM is class that represents a visual area drawn on a canvas, used to temporarily dem...
void setupGal(KIGFX::GAL &aGal) const
Set up the GAL canvas - this provides a default implementation, that sets fill, stroke and width.
void SetFillColor(const COLOR4D &aNewColor)
Set the line width to set before drawing preview.
virtual wxString GetClass() const override
Get class name.
std::vector< int > ViewGetLayers() const override
Set the overlay layer only.
void ViewDraw(int aLayer, KIGFX::VIEW *aView) const override
Draw the preview - this is done by calling the two functions: setupGal() and drawPreviewShape().
void SetStrokeColor(const COLOR4D &aNewColor)
Set the fill color to set before drawing preview.
void SetLineWidth(double aNewWidth)
virtual void drawPreviewShape(KIGFX::VIEW *aView) const
Draw the preview onto the given GAL.
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.