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

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)
 
VECTOR2I ConvertSize () const
 Calculate text size based on font type and size.
 

Public Attributes

wxString text
 
ECOORD x
 
ECOORD y
 
ECOORD size
 
int layer
 
opt_wxString font
 
opt_double ratio
 
opt_erot rot
 
opt_int align
 

Detailed Description

Eagle text element.

Definition at line 643 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 654 of file eagle_parser.h.

Constructor & Destructor Documentation

◆ ETEXT()

ETEXT::ETEXT ( wxXmlNode *  aText)

Definition at line 688 of file eagle_parser.cpp.

References align, DEFAULT_ALIGNMENT, font, layer, parseAlignment(), ratio, rot, size, text, x, and y.

Member Function Documentation

◆ ConvertSize()

VECTOR2I ETEXT::ConvertSize ( ) const

Calculate text size based on font type and size.

Definition at line 720 of file eagle_parser.cpp.

References OPTIONAL_XML_ATTRIBUTE< T >::CGet(), font, size, and ECOORD::ToSchUnits().

Referenced by SCH_IO_EAGLE::loadTextAttributes().

Member Data Documentation

◆ align

◆ font

opt_wxString ETEXT::font

Definition at line 650 of file eagle_parser.h.

Referenced by ConvertSize(), and ETEXT().

◆ layer

int ETEXT::layer

Definition at line 649 of file eagle_parser.h.

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

◆ ratio

◆ rot

◆ size

ECOORD ETEXT::size

◆ text

wxString ETEXT::text

Definition at line 645 of file eagle_parser.h.

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

◆ x

◆ y


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