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 532 of file eagle_parser.h.

Constructor & Destructor Documentation

◆ ELABEL()

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

Definition at line 384 of file eagle_parser.cpp.

385 {
386  /*
387  <!ELEMENT label EMPTY>
388  <!ATTLIST label
389  x %Coord; #REQUIRED
390  y %Coord; #REQUIRED
391  size %Dimension; #REQUIRED
392  layer %Layer; #REQUIRED
393  font %TextFont; "proportional"
394  ratio %Int; "8"
395  rot %Rotation; "R0"
396  xref %Bool; "no"
397  >
398  */
399 
400  x = parseRequiredAttribute<ECOORD>( aLabel, "x" );
401  y = parseRequiredAttribute<ECOORD>( aLabel, "y" );
402  size = parseRequiredAttribute<ECOORD>( aLabel, "size" );
403  layer = parseRequiredAttribute<int>( aLabel, "layer" );
404  rot = parseOptionalAttribute<EROT>( aLabel, "rot" );
405  xref = parseOptionalAttribute<wxString>( aLabel, "xref" );
406  netname = aNetName;
407 }
ECOORD x
Definition: eagle_parser.h:534
opt_erot rot
Definition: eagle_parser.h:538
opt_wxString xref
Definition: eagle_parser.h:539
wxString netname
Definition: eagle_parser.h:540
ECOORD y
Definition: eagle_parser.h:535
ECOORD size
Definition: eagle_parser.h:536
LAYER_NUM layer
Definition: eagle_parser.h:537

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

Member Data Documentation

◆ layer

LAYER_NUM ELABEL::layer

Definition at line 537 of file eagle_parser.h.

Referenced by ELABEL().

◆ netname

wxString ELABEL::netname

Definition at line 540 of file eagle_parser.h.

Referenced by ELABEL().

◆ rot

opt_erot ELABEL::rot

Definition at line 538 of file eagle_parser.h.

Referenced by ELABEL().

◆ size

ECOORD ELABEL::size

Definition at line 536 of file eagle_parser.h.

Referenced by ELABEL().

◆ x

ECOORD ELABEL::x

Definition at line 534 of file eagle_parser.h.

Referenced by ELABEL().

◆ xref

opt_wxString ELABEL::xref

Definition at line 539 of file eagle_parser.h.

Referenced by ELABEL().

◆ y

ECOORD ELABEL::y

Definition at line 535 of file eagle_parser.h.

Referenced by ELABEL().


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