27#ifndef __SCH_PAINTER_H
28#define __SCH_PAINTER_H
148 void draw(
const LIB_PIN* aPin,
int aLayer,
bool aDimmed );
149 void draw(
const LIB_SHAPE* aCircle,
int aLayer,
bool aDimmed );
150 void draw(
const LIB_SYMBOL* aSymbol,
int,
bool aDrawFields =
true,
int aUnit = 0,
151 int aConvert = 0,
bool aDimmed =
false );
152 void draw(
const LIB_FIELD* aField,
int aLayer,
bool aDimmed );
153 void draw(
const LIB_TEXT* aText,
int aLayer,
bool aDimmed );
157 void draw(
const SCH_FIELD* aField,
int aLayer,
bool aDimmed );
173 bool aDrawingShadows,
bool aBrightened );
175 bool aDangling,
bool aDrawingShadows,
bool aBrightened );
187 bool aDimmed =
false )
const;
Color settings are a bit different than most of the settings objects in that there can be more than o...
A base class for most all the KiCad significant classes used in schematics and boards.
A mix-in class (via multiple inheritance) that handles texts such as labels, parts,...
FONT is an abstract base class for both outline and stroke fonts.
A color representation with 4 components: red, green, blue, alpha.
double GetBrightness() const
Returns the brightness value of the color ranged from 0.0 to 1.0.
Abstract interface for drawing on a 2D-surface.
Contains all the knowledge about how to draw graphical object onto any particular output device.
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
COLOR4D m_layerColors[LAYER_ID_COUNT]
Contains methods for drawing schematic-specific items.
void knockoutText(const wxString &aText, const VECTOR2D &aPosition, const TEXT_ATTRIBUTES &aAttrs, const KIFONT::METRICS &aFontMetrics)
virtual SCH_RENDER_SETTINGS * GetSettings() override
Return a pointer to current settings that are going to be used when drawing items.
virtual bool Draw(const VIEW_ITEM *, int) override
Takes an instance of VIEW_ITEM and passes it to a function that knows how to draw the item.
void drawPinDanglingSymbol(const VECTOR2I &aPos, const COLOR4D &aColor, bool aDrawingShadows, bool aBrightened)
void strokeText(const wxString &aText, const VECTOR2D &aPosition, const TEXT_ATTRIBUTES &aAttributes, const KIFONT::METRICS &aFontMetrics)
float getShadowWidth(bool aForHighlight) const
void boxText(const wxString &aText, const VECTOR2D &aPosition, const TEXT_ATTRIBUTES &aAttrs, const KIFONT::METRICS &aFontMetrics)
KIFONT::FONT * getFont(const EDA_TEXT *aText) const
void draw(const EDA_ITEM *, int, bool aDimmed)
bool isUnitAndConversionShown(const LIB_ITEM *aItem) const
wxString expandLibItemTextVars(const wxString &aSourceText, const SCH_SYMBOL *aSymbolContext)
static std::vector< KICAD_T > g_ScaledSelectionTypes
void bitmapText(const wxString &aText, const VECTOR2D &aPosition, const TEXT_ATTRIBUTES &aAttributes)
int externalPinDecoSize(const LIB_PIN &aPin)
float getLineWidth(const EDA_ITEM *aItem, bool aDrawingShadows) const
int getOperatingPointTextSize() const
COLOR4D getRenderColor(const EDA_ITEM *aItem, int aLayer, bool aDrawingShadows, bool aDimmed=false) const
int internalPinDecoSize(const LIB_PIN &aPin)
void triLine(const VECTOR2D &a, const VECTOR2D &b, const VECTOR2D &c)
void SetSchematic(SCHEMATIC *aSchematic)
SCH_RENDER_SETTINGS m_schSettings
void drawDanglingSymbol(const VECTOR2I &aPos, const COLOR4D &aColor, int aWidth, bool aDangling, bool aDrawingShadows, bool aBrightened)
bool nonCached(const EDA_ITEM *aItem)
float getTextThickness(const EDA_ITEM *aItem) const
bool setDeviceColors(const LIB_ITEM *aItem, int aLayer, bool aDimmed)
Store schematic specific render settings.
const COLOR4D & GetCursorColor() override
Return current cursor color settings.
virtual COLOR4D GetColor(const VIEW_ITEM *aItem, int aLayer) const override
Returns the color that should be used to draw the specific VIEW_ITEM on the specific layer using curr...
bool m_OverrideItemColors
void SetBackgroundColor(const COLOR4D &aColor) override
Set the background color.
bool m_ShowPinsElectricalType
void LoadColors(const COLOR_SETTINGS *aSettings) override
const COLOR4D & GetGridColor() override
Return current grid color settings.
bool GetShowPageLimits() const override
const COLOR4D & GetBackgroundColor() const override
Return current background color settings.
bool m_ShowGraphicsDisabled
float GetDanglineSymbolThickness() const
bool IsBackgroundDark() const override
An abstract base class for deriving all objects that can be added to a VIEW.
Field object used in symbol libraries.
The base class for drawable items used by schematic library symbols.
Define a library symbol object.
Define a symbol library graphical text item.
Holds all the data relating to one schematic.
Object to handle a bitmap image that can be inserted in a schematic.
Base class for a bus or wire entry.
Instances are attached to a symbol or sheet and provide a place for the symbol's value,...
Segment description base class to describe items which have 2 end points (track, wire,...
Define a sheet pin (label) used in sheets to create hierarchical schematics.
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
@ LAYER_SCHEMATIC_BACKGROUND
The Cairo implementation of the graphics abstraction layer.