KiCad PCB EDA Suite
Loading...
Searching...
No Matches
preview_utils.h File Reference
#include <eda_units.h>
#include <gal/color4d.h>
#include <math/vector2d.h>

Go to the source code of this file.

Classes

struct  KIGFX::PREVIEW::TEXT_DIMS
 

Namespaces

namespace  KIGFX
 The Cairo implementation of the graphics abstraction layer.
 
namespace  KIGFX::PREVIEW
 

Functions

double KIGFX::PREVIEW::PreviewOverlayDeemphAlpha (bool aDeemph=true)
 Default alpha of "de-emphasised" features (like previously locked-in lines.
 
wxString KIGFX::PREVIEW::DimensionLabel (const wxString &prefix, double aVal, const EDA_IU_SCALE &aIuScale, EDA_UNITS aUnits, bool aIncludeUnits=true)
 Get a formatted string showing a dimension to a sane precision with an optional prefix and unit suffix.
 
TEXT_DIMS KIGFX::PREVIEW::GetConstantGlyphHeight (KIGFX::GAL *aGal, int aRelativeSize=0)
 Set the GAL glyph height to a constant scaled value, so that it always looks the same on screen.
 
COLOR4D KIGFX::PREVIEW::GetShadowColor (const COLOR4D &aColor)
 
void KIGFX::PREVIEW::DrawTextNextToCursor (KIGFX::VIEW *aView, const VECTOR2D &aCursorPos, const VECTOR2D &aTextQuadrant, const wxArrayString &aStrings, bool aDrawingDropShadows)
 Draw strings next to the cursor.