KiCad PCB EDA Suite
EDA_TEXT_DESC Struct Reference

Public Member Functions

 EDA_TEXT_DESC ()
 

Detailed Description

Definition at line 639 of file eda_text.cpp.

Constructor & Destructor Documentation

◆ EDA_TEXT_DESC()

EDA_TEXT_DESC::EDA_TEXT_DESC ( )
inline

Definition at line 641 of file eda_text.cpp.

642  {
644  .Map( GR_TEXT_HJUSTIFY_LEFT, _HKI( "Left" ) )
645  .Map( GR_TEXT_HJUSTIFY_CENTER, _HKI( "Center" ) )
646  .Map( GR_TEXT_HJUSTIFY_RIGHT, _HKI( "Right" ) );
648  .Map( GR_TEXT_VJUSTIFY_TOP, _HKI( "Top" ) )
649  .Map( GR_TEXT_VJUSTIFY_CENTER, _HKI( "Center" ) )
650  .Map( GR_TEXT_VJUSTIFY_BOTTOM, _HKI( "Bottom" ) );
651 
654  propMgr.AddProperty( new PROPERTY<EDA_TEXT, wxString>( _HKI( "Text" ),
656  propMgr.AddProperty( new PROPERTY<EDA_TEXT, int>( _HKI( "Thickness" ),
658  propMgr.AddProperty( new PROPERTY<EDA_TEXT, bool>( _HKI( "Italic" ),
660  propMgr.AddProperty( new PROPERTY<EDA_TEXT, bool>( _HKI( "Bold" ),
662  propMgr.AddProperty( new PROPERTY<EDA_TEXT, bool>( _HKI( "Mirrored" ),
664  propMgr.AddProperty( new PROPERTY<EDA_TEXT, bool>( _HKI( "Visible" ),
666  propMgr.AddProperty( new PROPERTY<EDA_TEXT, int>( _HKI( "Width" ),
668  propMgr.AddProperty( new PROPERTY<EDA_TEXT, int>( _HKI( "Height" ),
670  propMgr.AddProperty( new PROPERTY_ENUM<EDA_TEXT, EDA_TEXT_HJUSTIFY_T>( _HKI( "Horizontal Justification" ),
672  propMgr.AddProperty( new PROPERTY_ENUM<EDA_TEXT, EDA_TEXT_VJUSTIFY_T>( _HKI( "Vertical Justification" ),
674  }
void SetMirrored(bool isMirrored)
Definition: eda_text.h:195
bool IsBold() const
Definition: eda_text.h:190
static PROPERTY_MANAGER & Instance()
Definition: property_mgr.h:65
EDA_TEXT_VJUSTIFY_T GetVertJustify() const
Definition: eda_text.h:206
bool IsMirrored() const
Definition: eda_text.h:196
bool IsVisible() const
Definition: eda_text.h:193
void SetItalic(bool isItalic)
Definition: eda_text.h:186
void SetVisible(bool aVisible)
Definition: eda_text.h:192
static ENUM_MAP< T > & Instance()
Definition: property.h:510
int GetTextThickness() const
Definition: eda_text.h:167
#define REGISTER_TYPE(x)
Definition: property_mgr.h:248
int GetTextHeight() const
Definition: eda_text.h:251
bool IsItalic() const
Definition: eda_text.h:187
A mix-in class (via multiple inheritance) that handles texts such as labels, parts,...
Definition: eda_text.h:119
Display value expressed in distance units (mm/inch)
Definition: property.h:53
EDA_TEXT_HJUSTIFY_T GetHorizJustify() const
Definition: eda_text.h:205
virtual void SetText(const wxString &aText)
Definition: eda_text.cpp:121
void SetVertJustify(EDA_TEXT_VJUSTIFY_T aType)
Definition: eda_text.h:209
void SetTextWidth(int aWidth)
Definition: eda_text.h:247
int GetTextWidth() const
Definition: eda_text.h:248
void SetHorizJustify(EDA_TEXT_HJUSTIFY_T aType)
Definition: eda_text.h:208
void AddProperty(PROPERTY_BASE *aProperty)
Register a property.
void SetTextHeight(int aHeight)
Definition: eda_text.h:250
Provide class metadata.Helper macro to map type hashes to names.
Definition: property_mgr.h:62
void SetTextThickness(int aWidth)
The TextThickness is that set by the user.
Definition: eda_text.h:166
void SetBold(bool aBold)
Definition: eda_text.h:189
#define _HKI(x)
virtual const wxString & GetText() const
Return the string associated with the text object.
Definition: eda_text.h:133

References _HKI, PROPERTY_MANAGER::AddProperty(), DISTANCE, EDA_TEXT::GetHorizJustify(), EDA_TEXT::GetText(), EDA_TEXT::GetTextHeight(), EDA_TEXT::GetTextThickness(), EDA_TEXT::GetTextWidth(), EDA_TEXT::GetVertJustify(), GR_TEXT_HJUSTIFY_CENTER, GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_HJUSTIFY_RIGHT, GR_TEXT_VJUSTIFY_BOTTOM, GR_TEXT_VJUSTIFY_CENTER, GR_TEXT_VJUSTIFY_TOP, PROPERTY_MANAGER::Instance(), ENUM_MAP< T >::Instance(), EDA_TEXT::IsBold(), EDA_TEXT::IsItalic(), EDA_TEXT::IsMirrored(), EDA_TEXT::IsVisible(), REGISTER_TYPE, EDA_TEXT::SetBold(), EDA_TEXT::SetHorizJustify(), EDA_TEXT::SetItalic(), EDA_TEXT::SetMirrored(), EDA_TEXT::SetText(), EDA_TEXT::SetTextHeight(), EDA_TEXT::SetTextThickness(), EDA_TEXT::SetTextWidth(), EDA_TEXT::SetVertJustify(), and EDA_TEXT::SetVisible().


The documentation for this struct was generated from the following file: