KiCad PCB EDA Suite
ASCH_SHEET_FONT Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

 ASCH_SHEET_FONT (const std::map< wxString, wxString > &aProps, int aId)
 

Public Attributes

wxString FontName
 
int Size
 
int Rotation
 
int AreaColor
 
bool Italic
 
bool Bold
 
bool Underline
 

Detailed Description

Definition at line 722 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_SHEET_FONT()

ASCH_SHEET_FONT::ASCH_SHEET_FONT ( const std::map< wxString, wxString > &  aProps,
int  aId 
)
explicit

Definition at line 744 of file altium_parser_sch.cpp.

745{
746 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::SHEET );
747
748 const wxString sid = std::to_string( aId );
749
750 FontName = ALTIUM_PARSER::ReadString( aProps, "FONTNAME" + sid, "" );
751
752 Size = ReadKiCadUnitFrac( aProps, "SIZE" + sid );
753 Rotation = ALTIUM_PARSER::ReadInt( aProps, "ROTATION" + sid, 0 );
754
755 Italic = ALTIUM_PARSER::ReadBool( aProps, "ITALIC" + sid, false );
756 Bold = ALTIUM_PARSER::ReadBool( aProps, "BOLD" + sid, false );
757 Underline = ALTIUM_PARSER::ReadBool( aProps, "UNDERLINE" + sid, false );
758
759 AreaColor = ALTIUM_PARSER::ReadInt( aProps, "AREACOLOR" + sid, 0 );
760}
int ReadKiCadUnitFrac(const std::map< wxString, wxString > &aProps, const wxString &aKey)
ALTIUM_SCH_RECORD ReadRecord(const std::map< wxString, wxString > &aProps)
static int ReadInt(const std::map< wxString, wxString > &aProps, const wxString &aKey, int aDefault)
static wxString ReadString(const std::map< wxString, wxString > &aProps, const wxString &aKey, const wxString &aDefault)
static bool ReadBool(const std::map< wxString, wxString > &aProps, const wxString &aKey, bool aDefault)

References AreaColor, Bold, FontName, Italic, ALTIUM_PARSER::ReadBool(), ALTIUM_PARSER::ReadInt(), ReadKiCadUnitFrac(), ReadRecord(), ALTIUM_PARSER::ReadString(), Rotation, SHEET, Size, and Underline.

Member Data Documentation

◆ AreaColor

int ASCH_SHEET_FONT::AreaColor

Definition at line 728 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_FONT().

◆ Bold

◆ FontName

wxString ASCH_SHEET_FONT::FontName

Definition at line 724 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_FONT().

◆ Italic

◆ Rotation

int ASCH_SHEET_FONT::Rotation

Definition at line 727 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_FONT().

◆ Size

◆ Underline

bool ASCH_SHEET_FONT::Underline

Definition at line 732 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_FONT().


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