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 385 of file eagle_parser.cpp.

386 {
387  /*
388  <!ELEMENT label EMPTY>
389  <!ATTLIST label
390  x %Coord; #REQUIRED
391  y %Coord; #REQUIRED
392  size %Dimension; #REQUIRED
393  layer %Layer; #REQUIRED
394  font %TextFont; "proportional"
395  ratio %Int; "8"
396  rot %Rotation; "R0"
397  xref %Bool; "no"
398  >
399  */
400 
401  x = parseRequiredAttribute<ECOORD>( aLabel, wxT( "x" ) );
402  y = parseRequiredAttribute<ECOORD>( aLabel, wxT( "y" ) );
403  size = parseRequiredAttribute<ECOORD>( aLabel, wxT( "size" ) );
404  layer = parseRequiredAttribute<int>( aLabel, wxT( "layer" ) );
405  rot = parseOptionalAttribute<EROT>( aLabel, wxT( "rot" ) );
406  xref = parseOptionalAttribute<wxString>( aLabel, wxT( "xref" ) );
407  netname = aNetName;
408 }
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(), and SCH_EAGLE_PLUGIN::loadLabel().

◆ rot

opt_erot ELABEL::rot

Definition at line 538 of file eagle_parser.h.

Referenced by ELABEL(), and SCH_EAGLE_PLUGIN::loadLabel().

◆ size

ECOORD ELABEL::size

Definition at line 536 of file eagle_parser.h.

Referenced by ELABEL(), and SCH_EAGLE_PLUGIN::loadLabel().

◆ x

ECOORD ELABEL::x

Definition at line 534 of file eagle_parser.h.

Referenced by ELABEL(), and SCH_EAGLE_PLUGIN::loadLabel().

◆ 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(), and SCH_EAGLE_PLUGIN::loadLabel().


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