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

Constructor & Destructor Documentation

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

Definition at line 387 of file eagle_parser.cpp.

388 {
389  /*
390  <!ELEMENT label EMPTY>
391  <!ATTLIST label
392  x %Coord; #REQUIRED
393  y %Coord; #REQUIRED
394  size %Dimension; #REQUIRED
395  layer %Layer; #REQUIRED
396  font %TextFont; "proportional"
397  ratio %Int; "8"
398  rot %Rotation; "R0"
399  xref %Bool; "no"
400  >
401  */
402 
403  x = parseRequiredAttribute<ECOORD>( aLabel, "x" );
404  y = parseRequiredAttribute<ECOORD>( aLabel, "y" );
405  size = parseRequiredAttribute<ECOORD>( aLabel, "size" );
406  layer = parseRequiredAttribute<int>( aLabel, "layer" );
407  rot = parseOptionalAttribute<EROT>( aLabel, "rot" );
408  xref = parseOptionalAttribute<wxString>( aLabel, "xref" );
409  netname = aNetName;
410 }
ECOORD x
Definition: eagle_parser.h:543
opt_erot rot
Definition: eagle_parser.h:547
opt_wxString xref
Definition: eagle_parser.h:548
wxString netname
Definition: eagle_parser.h:549
ECOORD y
Definition: eagle_parser.h:544
ECOORD size
Definition: eagle_parser.h:545
LAYER_NUM layer
Definition: eagle_parser.h:546

Member Data Documentation

LAYER_NUM ELABEL::layer

Definition at line 546 of file eagle_parser.h.

wxString ELABEL::netname

Definition at line 549 of file eagle_parser.h.

opt_erot ELABEL::rot

Definition at line 547 of file eagle_parser.h.

ECOORD ELABEL::size

Definition at line 545 of file eagle_parser.h.

ECOORD ELABEL::x

Definition at line 543 of file eagle_parser.h.

opt_wxString ELABEL::xref

Definition at line 548 of file eagle_parser.h.

ECOORD ELABEL::y

Definition at line 544 of file eagle_parser.h.


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