A mix-in class (via multiple inheritance) that handles texts such as labels, parts,...
const std::vector< TEXT_VAR_REF_KEY > & GetTextVarReferences() const
Return the set of ${...} references extracted from the source text.
virtual void SetTextSize(VECTOR2I aNewSize, bool aEnforceMinTextSize=true)
virtual void SetTextPos(const VECTOR2I &aPoint)
virtual int GetTextWidth() const
void SetBoldFlag(bool aBold)
Set only the bold flag, without changing the font.
bool HasTextVars() const
Indicates the ShownText has text var references which need to be processed.
void MigrateLegacyBoldStrokeWidth()
Migrate a pre-v11 bold stroke text so its stored thickness holds the base (non-bold) width.
virtual void SetTextThickness(int aWidth)
The TextThickness is that set by the user.
void SetBold(bool aBold)
Set the text to be bold - this will also update the font if needed.
void SetAutoThickness(bool aAuto)
int GetEffectiveTextPenWidth(int aDefaultPenWidth=0) const
The EffectiveTextPenWidth uses the text thickness if > 1 or aDefaultPenWidth.
virtual int GetTextThickness() const
virtual void SetText(const wxString &aText)
int GetPenSizeForBold(int aTextSize)
int GetPenSizeForNormal(int aTextSize)
Identifies a single resolvable source that a text item's ${...} reference depends on.
KIND
Categorizes a reference by the source that will produce its value.
static EDA_TEXT makeText200()
BOOST_AUTO_TEST_CASE(Compare)
BOOST_CHECK_EQUAL(result, "25.4")