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
 
bool italic
 
bool bold
 
bool underline
 

Detailed Description

Definition at line 609 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 587 of file altium_parser_sch.cpp.

588 {
589  wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::SHEET );
590 
591  const wxString sid = std::to_string( aId );
592 
593  fontname = ALTIUM_PARSER::ReadString( aProps, "FONTNAME" + sid, "" );
594 
595  size = ReadKiCadUnitFrac( aProps, "SIZE" + sid );
596  rotation = ALTIUM_PARSER::ReadInt( aProps, "ROTATION" + sid, 0 );
597 
598  italic = ALTIUM_PARSER::ReadBool( aProps, "ITALIC" + sid, false );
599  bold = ALTIUM_PARSER::ReadBool( aProps, "BOLD" + sid, false );
600  underline = ALTIUM_PARSER::ReadBool( aProps, "UNDERLINE" + sid, false );
601 }
static int ReadInt(const std::map< wxString, wxString > &aProps, const wxString &aKey, int aDefault)
static bool ReadBool(const std::map< wxString, wxString > &aProps, const wxString &aKey, bool aDefault)
int ReadKiCadUnitFrac(const std::map< wxString, wxString > &aProps, const wxString &aKey)
ALTIUM_SCH_RECORD ReadRecord(const std::map< wxString, wxString > &aProps)
static wxString ReadString(const std::map< wxString, wxString > &aProps, const wxString &aKey, const wxString &aDefault)

References bold, fontname, italic, ALTIUM_PARSER::ReadBool(), ALTIUM_PARSER::ReadInt(), ReadKiCadUnitFrac(), ReadRecord(), ALTIUM_PARSER::ReadString(), rotation, SHEET, size, and underline.

Member Data Documentation

◆ bold

◆ fontname

wxString ASCH_SHEET_FONT::fontname

Definition at line 611 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_FONT().

◆ italic

◆ rotation

int ASCH_SHEET_FONT::rotation

Definition at line 614 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_FONT().

◆ size

◆ underline

bool ASCH_SHEET_FONT::underline

Definition at line 618 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_FONT().


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