KiCad PCB EDA Suite
ELABEL Struct Reference

Eagle label. More...

#include <eagle_parser.h>

Public Member Functions

 ELABEL (wxXmlNode *aLabel, const wxString &aNetName)
 

Public Attributes

ECOORD x
 
ECOORD y
 
ECOORD size
 
LAYER_NUM layer
 
opt_erot rot
 
opt_wxString xref
 
wxString netname
 

Detailed Description

Eagle label.

Definition at line 540 of file eagle_parser.h.

Constructor & Destructor Documentation

◆ ELABEL()

ELABEL::ELABEL ( wxXmlNode *  aLabel,
const wxString &  aNetName 
)

Definition at line 377 of file eagle_parser.cpp.

378 {
379  /*
380  <!ELEMENT label EMPTY>
381  <!ATTLIST label
382  x %Coord; #REQUIRED
383  y %Coord; #REQUIRED
384  size %Dimension; #REQUIRED
385  layer %Layer; #REQUIRED
386  font %TextFont; "proportional"
387  ratio %Int; "8"
388  rot %Rotation; "R0"
389  xref %Bool; "no"
390  >
391  */
392 
393  x = parseRequiredAttribute<ECOORD>( aLabel, "x" );
394  y = parseRequiredAttribute<ECOORD>( aLabel, "y" );
395  size = parseRequiredAttribute<ECOORD>( aLabel, "size" );
396  layer = parseRequiredAttribute<int>( aLabel, "layer" );
397  rot = parseOptionalAttribute<EROT>( aLabel, "rot" );
398  xref = parseOptionalAttribute<wxString>( aLabel, "xref" );
399  netname = aNetName;
400 }
ECOORD x
Definition: eagle_parser.h:542
opt_erot rot
Definition: eagle_parser.h:546
opt_wxString xref
Definition: eagle_parser.h:547
wxString netname
Definition: eagle_parser.h:548
ECOORD y
Definition: eagle_parser.h:543
ECOORD size
Definition: eagle_parser.h:544
LAYER_NUM layer
Definition: eagle_parser.h:545

References layer, netname, rot, size, x, xref, and y.

Member Data Documentation

◆ layer

LAYER_NUM ELABEL::layer

Definition at line 545 of file eagle_parser.h.

Referenced by ELABEL().

◆ netname

wxString ELABEL::netname

Definition at line 548 of file eagle_parser.h.

Referenced by ELABEL().

◆ rot

opt_erot ELABEL::rot

Definition at line 546 of file eagle_parser.h.

Referenced by ELABEL().

◆ size

ECOORD ELABEL::size

Definition at line 544 of file eagle_parser.h.

Referenced by ELABEL().

◆ x

ECOORD ELABEL::x

Definition at line 542 of file eagle_parser.h.

Referenced by ELABEL().

◆ xref

opt_wxString ELABEL::xref

Definition at line 547 of file eagle_parser.h.

Referenced by ELABEL().

◆ y

ECOORD ELABEL::y

Definition at line 543 of file eagle_parser.h.

Referenced by ELABEL().


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