24#ifndef SCH_RENDER_SETTINGS_H
25#define SCH_RENDER_SETTINGS_H
45 return it ==
m_layerColors.end() ? COLOR4D::WHITE : it->second;
51 return it !=
m_layerColors.end() && it->second.GetBrightness() < 0.5;
57 return it ==
m_layerColors.end() ? COLOR4D::BLACK : it->second;
Color settings are a bit different than most of the settings objects in that there can be more than o...
A color representation with 4 components: red, green, blue, alpha.
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
std::map< int, COLOR4D > m_layerColors
An abstract base class for deriving all objects that can be added to a VIEW.
VECTOR2I TransformCoordinate(const VECTOR2I &aPoint) const
virtual COLOR4D GetColor(const KIGFX::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 IsBackgroundDark() const override
bool m_OverrideItemColors
void SetBackgroundColor(const COLOR4D &aColor) override
Set the background color.
const COLOR4D & GetGridColor() override
Return current grid color settings.
const KIGFX::COLOR4D & GetBackgroundColor() const override
Return current background color settings.
float GetDanglingIndicatorThickness() const
bool m_ShowPinsElectricalType
void LoadColors(const COLOR_SETTINGS *aSettings) override
const COLOR4D & GetCursorColor() override
Return current cursor color settings.
bool m_ShowGraphicsDisabled
bool m_ShowConnectionPoints
bool GetShowPageLimits() const override
@ LAYER_SCHEMATIC_BACKGROUND