KiCad PCB EDA Suite
|
Eagle text element. More...
#include <eagle_parser.h>
Public Types | |
enum | { CENTER = 0 , CENTER_LEFT , TOP_CENTER , TOP_LEFT , TOP_RIGHT , CENTER_RIGHT = -CENTER_LEFT , BOTTOM_CENTER = -TOP_CENTER , BOTTOM_LEFT = -TOP_RIGHT , BOTTOM_RIGHT = -TOP_LEFT } |
Public Member Functions | |
ETEXT (wxXmlNode *aText, IO_BASE *aIo=nullptr) | |
VECTOR2I | ConvertSize () const |
Calculate text size based on font type and size. | |
void | Report (const wxString &aMsg, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) |
void | AdvanceProgressPhase () |
Public Attributes | |
wxString | text |
ECOORD | x |
ECOORD | y |
ECOORD | size |
int | layer |
opt_wxString | font |
opt_double | ratio |
opt_erot | rot |
opt_int | align |
opt_int | distance |
IO_BASE * | io |
Eagle text element.
Definition at line 893 of file eagle_parser.h.
anonymous enum |
Enumerator | |
---|---|
CENTER | |
CENTER_LEFT | |
TOP_CENTER | |
TOP_LEFT | |
TOP_RIGHT | |
CENTER_RIGHT | |
BOTTOM_CENTER | |
BOTTOM_LEFT | |
BOTTOM_RIGHT |
Definition at line 919 of file eagle_parser.h.
ETEXT::ETEXT | ( | wxXmlNode * | aText, |
IO_BASE * | aIo = nullptr |
||
) |
Definition at line 929 of file eagle_parser.cpp.
References EAGLE_BASE::AdvanceProgressPhase(), align, DEFAULT_ALIGNMENT, font, layer, parseAlignment(), ratio, rot, size, text, x, and y.
|
inherited |
Definition at line 503 of file eagle_parser.cpp.
References IO_BASE::AdvanceProgressPhase(), and EAGLE_BASE::io.
Referenced by EAGLE_DOC::EAGLE_DOC(), EAPPROVED::EAPPROVED(), EATTR::EATTR(), EBUS::EBUS(), ECIRCLE::ECIRCLE(), ECLASS::ECLASS(), ECOMPATIBILITY::ECOMPATIBILITY(), ECONNECT::ECONNECT(), EDESCRIPTION::EDESCRIPTION(), EDEVICE::EDEVICE(), EDEVICE_SET::EDEVICE_SET(), EDIMENSION::EDIMENSION(), EDRAWING::EDRAWING(), EFILTER::EFILTER(), EFRAME::EFRAME(), EGATE::EGATE(), EGRID::EGRID(), EHOLE::EHOLE(), EINSTANCE::EINSTANCE(), EJUNCTION::EJUNCTION(), ELABEL::ELABEL(), ELAYER::ELAYER(), ELIBRARY::ELIBRARY(), EMODEL::EMODEL(), EMODULE::EMODULE(), EMODULEINST::EMODULEINST(), ENET::ENET(), ENOTE::ENOTE(), EPACKAGE::EPACKAGE(), EPACKAGE3D::EPACKAGE3D(), EPACKAGE3DINST::EPACKAGE3DINST(), EPACKAGEINSTANCE::EPACKAGEINSTANCE(), EPAD::EPAD(), EPART::EPART(), EPIN::EPIN(), EPINMAP::EPINMAP(), EPINMAPPING::EPINMAPPING(), EPINREF::EPINREF(), EPLAIN::EPLAIN(), EPOLYGON::EPOLYGON(), EPORT::EPORT(), EPORTREF::EPORTREF(), EPROBE::EPROBE(), ERECT::ERECT(), ESCHEMATIC::ESCHEMATIC(), ESCHEMATIC_GROUP::ESCHEMATIC_GROUP(), ESEGMENT::ESEGMENT(), ESETTING::ESETTING(), ESHEET::ESHEET(), ESMD::ESMD(), ESPICE::ESPICE(), ESPLINE::ESPLINE(), ESYMBOL::ESYMBOL(), ETECHNOLOGY::ETECHNOLOGY(), ETEXT(), EVARIANT::EVARIANT(), EVARIANTDEF::EVARIANTDEF(), EVERTEX::EVERTEX(), EVIA::EVIA(), and EWIRE::EWIRE().
VECTOR2I ETEXT::ConvertSize | ( | ) | const |
Calculate text size based on font type and size.
Definition at line 964 of file eagle_parser.cpp.
References OPTIONAL_XML_ATTRIBUTE< T >::CGet(), font, size, and ECOORD::ToSchUnits().
|
inherited |
Definition at line 494 of file eagle_parser.cpp.
References EAGLE_BASE::io, and IO_BASE::Report().
opt_int ETEXT::align |
Definition at line 933 of file eagle_parser.h.
Referenced by ETEXT(), PCB_IO_EAGLE::loadPlain(), and PCB_IO_EAGLE::packageText().
opt_int ETEXT::distance |
Definition at line 934 of file eagle_parser.h.
opt_wxString ETEXT::font |
Definition at line 915 of file eagle_parser.h.
Referenced by ConvertSize(), and ETEXT().
|
inherited |
Definition at line 403 of file eagle_parser.h.
Referenced by EAGLE_BASE::AdvanceProgressPhase(), and EAGLE_BASE::Report().
int ETEXT::layer |
Definition at line 914 of file eagle_parser.h.
Referenced by ETEXT(), PCB_IO_EAGLE::loadPlain(), and PCB_IO_EAGLE::packageText().
opt_double ETEXT::ratio |
Definition at line 916 of file eagle_parser.h.
Referenced by ETEXT(), PCB_IO_EAGLE::loadPlain(), and PCB_IO_EAGLE::packageText().
opt_erot ETEXT::rot |
Definition at line 917 of file eagle_parser.h.
Referenced by ETEXT(), PCB_IO_EAGLE::loadPlain(), and PCB_IO_EAGLE::packageText().
ECOORD ETEXT::size |
Definition at line 913 of file eagle_parser.h.
Referenced by ConvertSize(), ETEXT(), PCB_IO_EAGLE::loadPlain(), and PCB_IO_EAGLE::packageText().
wxString ETEXT::text |
Definition at line 910 of file eagle_parser.h.
Referenced by ETEXT(), PCB_IO_EAGLE::loadPlain(), and PCB_IO_EAGLE::packageText().
ECOORD ETEXT::x |
Definition at line 911 of file eagle_parser.h.
Referenced by ETEXT(), PCB_IO_EAGLE::loadPlain(), and PCB_IO_EAGLE::packageText().
ECOORD ETEXT::y |
Definition at line 912 of file eagle_parser.h.
Referenced by ETEXT(), PCB_IO_EAGLE::loadPlain(), and PCB_IO_EAGLE::packageText().