KiCad PCB EDA Suite
EFRAME Struct Reference

Parse an Eagle frame element. More...

#include <eagle_parser.h>

Public Member Functions

 EFRAME (wxXmlNode *aFrameNode)
 

Public Attributes

ECOORD x1
 
ECOORD y1
 
ECOORD x2
 
ECOORD y2
 
int columns
 
int rows
 
int layer
 
opt_bool border_left
 
opt_bool border_top
 
opt_bool border_right
 
opt_bool border_bottom
 

Detailed Description

Parse an Eagle frame element.

Definition at line 674 of file eagle_parser.h.

Constructor & Destructor Documentation

◆ EFRAME()

EFRAME::EFRAME ( wxXmlNode *  aFrameNode)

Definition at line 618 of file eagle_parser.cpp.

619 {
620  /*
621  * <!ELEMENT frame EMPTY>
622  * <!ATTLIST frame
623  * x1 %Coord; #REQUIRED
624  * y1 %Coord; #REQUIRED
625  * x2 %Coord; #REQUIRED
626  * y2 %Coord; #REQUIRED
627  * columns %Int; #REQUIRED
628  * rows %Int; #REQUIRED
629  * layer %Layer; #REQUIRED
630  * border-left %Bool; "yes"
631  * border-top %Bool; "yes"
632  * border-right %Bool; "yes"
633  * border-bottom %Bool; "yes"
634  * >
635  */
636  border_left = true;
637  border_top = true;
638  border_right = true;
639  border_bottom = true;
640 
641  x1 = parseRequiredAttribute<ECOORD>( aFrameNode, "x1" );
642  y1 = parseRequiredAttribute<ECOORD>( aFrameNode, "y1" );
643  x2 = parseRequiredAttribute<ECOORD>( aFrameNode, "x2" );
644  y2 = parseRequiredAttribute<ECOORD>( aFrameNode, "y2" );
645  columns = parseRequiredAttribute<int>( aFrameNode, "columns" );
646  rows = parseRequiredAttribute<int>( aFrameNode, "rows" );
647  layer = parseRequiredAttribute<int>( aFrameNode, "layer" );
648  border_left = parseOptionalAttribute<bool>( aFrameNode, "border-left" );
649  border_top = parseOptionalAttribute<bool>( aFrameNode, "border-top" );
650  border_right = parseOptionalAttribute<bool>( aFrameNode, "border-right" );
651  border_bottom = parseOptionalAttribute<bool>( aFrameNode, "border-bottom" );
652 }
opt_bool border_bottom
Definition: eagle_parser.h:686
opt_bool border_left
Definition: eagle_parser.h:683
ECOORD x1
Definition: eagle_parser.h:676
ECOORD y1
Definition: eagle_parser.h:677
int layer
Definition: eagle_parser.h:682
ECOORD x2
Definition: eagle_parser.h:678
int columns
Definition: eagle_parser.h:680
ECOORD y2
Definition: eagle_parser.h:679
int rows
Definition: eagle_parser.h:681
opt_bool border_right
Definition: eagle_parser.h:685
opt_bool border_top
Definition: eagle_parser.h:684

References border_bottom, border_left, border_right, border_top, columns, layer, rows, x1, x2, y1, and y2.

Member Data Documentation

◆ border_bottom

opt_bool EFRAME::border_bottom

Definition at line 686 of file eagle_parser.h.

Referenced by EFRAME(), and SCH_EAGLE_PLUGIN::loadFrame().

◆ border_left

opt_bool EFRAME::border_left

Definition at line 683 of file eagle_parser.h.

Referenced by EFRAME(), and SCH_EAGLE_PLUGIN::loadFrame().

◆ border_right

opt_bool EFRAME::border_right

Definition at line 685 of file eagle_parser.h.

Referenced by EFRAME(), and SCH_EAGLE_PLUGIN::loadFrame().

◆ border_top

opt_bool EFRAME::border_top

Definition at line 684 of file eagle_parser.h.

Referenced by EFRAME(), and SCH_EAGLE_PLUGIN::loadFrame().

◆ columns

int EFRAME::columns

Definition at line 680 of file eagle_parser.h.

Referenced by EFRAME(), and SCH_EAGLE_PLUGIN::loadFrame().

◆ layer

int EFRAME::layer

Definition at line 682 of file eagle_parser.h.

Referenced by EFRAME().

◆ rows

int EFRAME::rows

Definition at line 681 of file eagle_parser.h.

Referenced by EFRAME(), and SCH_EAGLE_PLUGIN::loadFrame().

◆ x1

ECOORD EFRAME::x1

Definition at line 676 of file eagle_parser.h.

Referenced by EFRAME(), and SCH_EAGLE_PLUGIN::loadFrame().

◆ x2

ECOORD EFRAME::x2

Definition at line 678 of file eagle_parser.h.

Referenced by EFRAME(), and SCH_EAGLE_PLUGIN::loadFrame().

◆ y1

ECOORD EFRAME::y1

Definition at line 677 of file eagle_parser.h.

Referenced by EFRAME(), and SCH_EAGLE_PLUGIN::loadFrame().

◆ y2

ECOORD EFRAME::y2

Definition at line 679 of file eagle_parser.h.

Referenced by EFRAME(), and SCH_EAGLE_PLUGIN::loadFrame().


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