KiCad PCB EDA Suite
preview_utils.h File Reference
#include <common.h>
#include <gal/color4d.h>
#include <math/vector2d.h>

Go to the source code of this file.


 Class CAIRO_GAL is the cairo implementation of the graphics abstraction layer.


COLOR4D KIGFX::PREVIEW::PreviewOverlayDefaultColor ()
 The default fill/stroke color of preview overlay items. More...
double KIGFX::PREVIEW::PreviewOverlayFillAlpha ()
 The default alpha of overlay fills. More...
double KIGFX::PREVIEW::PreviewOverlayDeemphAlpha (bool aDeemph=true)
 Default alpha of "de-emphasised" features (like previously locked-in lines. More...
COLOR4D KIGFX::PREVIEW::PreviewOverlaySpecialAngleColor ()
 The colour of "special" angle overlay features. More...
wxString KIGFX::PREVIEW::DimensionLabel (const wxString &prefix, double aVal, EDA_UNITS_T aUnits)
 Get a formatted string showing a dimension to a sane precision with an optional prefix and unit suffix. More...
void KIGFX::PREVIEW::SetConstantGlyphHeight (KIGFX::GAL &aGal, double aHeight)
 Set the GAL glyph height to a constant scaled value, so that it always looks the same on screen. More...
void KIGFX::PREVIEW::DrawTextNextToCursor (KIGFX::GAL &aGal, const VECTOR2D &aCursorPos, const VECTOR2D &aTextQuadrant, const std::vector< wxString > &aStrings)
 Draw strings next to the cursor. More...