KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ETEXT Struct Reference

Eagle text element. More...

#include <eagle_parser.h>

Inheritance diagram for ETEXT:
EAGLE_BASE

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_BASEio
 

Detailed Description

Eagle text element.

Definition at line 893 of file eagle_parser.h.

Member Enumeration Documentation

◆ anonymous enum

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.

Constructor & Destructor Documentation

◆ ETEXT()

ETEXT::ETEXT ( wxXmlNode *  aText,
IO_BASE aIo = nullptr 
)

Member Function Documentation

◆ AdvanceProgressPhase()

◆ ConvertSize()

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().

◆ Report()

void EAGLE_BASE::Report ( const wxString &  aMsg,
SEVERITY  aSeverity = RPT_SEVERITY_UNDEFINED 
)
inherited

Definition at line 494 of file eagle_parser.cpp.

References EAGLE_BASE::io, and IO_BASE::Report().

Member Data Documentation

◆ align

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().

◆ distance

opt_int ETEXT::distance

Definition at line 934 of file eagle_parser.h.

◆ font

opt_wxString ETEXT::font

Definition at line 915 of file eagle_parser.h.

Referenced by ConvertSize(), and ETEXT().

◆ io

IO_BASE* EAGLE_BASE::io
inherited

Definition at line 403 of file eagle_parser.h.

Referenced by EAGLE_BASE::AdvanceProgressPhase(), and EAGLE_BASE::Report().

◆ layer

int ETEXT::layer

Definition at line 914 of file eagle_parser.h.

Referenced by ETEXT(), PCB_IO_EAGLE::loadPlain(), and PCB_IO_EAGLE::packageText().

◆ ratio

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().

◆ rot

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().

◆ size

ECOORD ETEXT::size

◆ text

wxString ETEXT::text

Definition at line 910 of file eagle_parser.h.

Referenced by ETEXT(), PCB_IO_EAGLE::loadPlain(), and PCB_IO_EAGLE::packageText().

◆ x

ECOORD ETEXT::x

Definition at line 911 of file eagle_parser.h.

Referenced by ETEXT(), PCB_IO_EAGLE::loadPlain(), and PCB_IO_EAGLE::packageText().

◆ y

ECOORD ETEXT::y

Definition at line 912 of file eagle_parser.h.

Referenced by ETEXT(), PCB_IO_EAGLE::loadPlain(), and PCB_IO_EAGLE::packageText().


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