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 > &aProperties, int aId)
 

Public Attributes

wxString fontname
 
int size
 
int rotation
 
bool italic
 
bool bold
 
bool underline
 

Detailed Description

Definition at line 570 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_SHEET_FONT()

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

Definition at line 578 of file altium_parser_sch.cpp.

579 {
580  wxASSERT( PropertiesReadRecord( aProperties ) == ALTIUM_SCH_RECORD::SHEET );
581 
582  const wxString sid = std::to_string( aId );
583 
584  fontname = ALTIUM_PARSER::PropertiesReadString( aProperties, "FONTNAME" + sid, "" );
585 
586  size = PropertiesReadKiCadUnitFrac( aProperties, "SIZE" + sid );
587  rotation = ALTIUM_PARSER::PropertiesReadInt( aProperties, "ROTATION" + sid, 0 );
588 
589  italic = ALTIUM_PARSER::PropertiesReadBool( aProperties, "ITALIC" + sid, false );
590  bold = ALTIUM_PARSER::PropertiesReadBool( aProperties, "BOLD" + sid, false );
591  underline = ALTIUM_PARSER::PropertiesReadBool( aProperties, "UNDERLINE" + sid, false );
592 }
static int PropertiesReadInt(const std::map< wxString, wxString > &aProperties, const wxString &aKey, int aDefault)
static bool PropertiesReadBool(const std::map< wxString, wxString > &aProperties, const wxString &aKey, bool aDefault)
int PropertiesReadKiCadUnitFrac(const std::map< wxString, wxString > &aProperties, const wxString &aKey)
ALTIUM_SCH_RECORD PropertiesReadRecord(const std::map< wxString, wxString > &aProperties)
static wxString PropertiesReadString(const std::map< wxString, wxString > &aProperties, const wxString &aKey, const wxString &aDefault)

References bold, fontname, italic, ALTIUM_PARSER::PropertiesReadBool(), ALTIUM_PARSER::PropertiesReadInt(), PropertiesReadKiCadUnitFrac(), PropertiesReadRecord(), ALTIUM_PARSER::PropertiesReadString(), rotation, SHEET, size, and underline.

Member Data Documentation

◆ bold

bool ASCH_SHEET_FONT::bold

Definition at line 578 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_FONT(), and SCH_ALTIUM_PLUGIN::ParseLabel().

◆ fontname

wxString ASCH_SHEET_FONT::fontname

Definition at line 572 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_FONT().

◆ italic

bool ASCH_SHEET_FONT::italic

Definition at line 577 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_FONT(), and SCH_ALTIUM_PLUGIN::ParseLabel().

◆ rotation

int ASCH_SHEET_FONT::rotation

Definition at line 575 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_FONT().

◆ size

int ASCH_SHEET_FONT::size

Definition at line 574 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_FONT(), and SCH_ALTIUM_PLUGIN::ParseLabel().

◆ underline

bool ASCH_SHEET_FONT::underline

Definition at line 579 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_FONT().


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