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.


double KIGFX::PREVIEW::PreviewOverlayDeemphAlpha (bool aDeemph=true)
 Default alpha of "de-emphasised" features (like previously locked-in lines. More...
wxString KIGFX::PREVIEW::DimensionLabel (const wxString &prefix, double aVal, EDA_UNITS 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::VIEW *aView, const VECTOR2D &aCursorPos, const VECTOR2D &aTextQuadrant, const std::vector< wxString > &aStrings)
 Draw strings next to the cursor. More...