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

622 {
623  /*
624  * <!ELEMENT frame EMPTY>
625  * <!ATTLIST frame
626  * x1 %Coord; #REQUIRED
627  * y1 %Coord; #REQUIRED
628  * x2 %Coord; #REQUIRED
629  * y2 %Coord; #REQUIRED
630  * columns %Int; #REQUIRED
631  * rows %Int; #REQUIRED
632  * layer %Layer; #REQUIRED
633  * border-left %Bool; "yes"
634  * border-top %Bool; "yes"
635  * border-right %Bool; "yes"
636  * border-bottom %Bool; "yes"
637  * >
638  */
639  border_left = true;
640  border_top = true;
641  border_right = true;
642  border_bottom = true;
643 
644  x1 = parseRequiredAttribute<ECOORD>( aFrameNode, wxT( "x1" ) );
645  y1 = parseRequiredAttribute<ECOORD>( aFrameNode, wxT( "y1" ) );
646  x2 = parseRequiredAttribute<ECOORD>( aFrameNode, wxT( "x2" ) );
647  y2 = parseRequiredAttribute<ECOORD>( aFrameNode, wxT( "y2" ) );
648  columns = parseRequiredAttribute<int>( aFrameNode, wxT( "columns" ) );
649  rows = parseRequiredAttribute<int>( aFrameNode, wxT( "rows" ) );
650  layer = parseRequiredAttribute<int>( aFrameNode, wxT( "layer" ) );
651  border_left = parseOptionalAttribute<bool>( aFrameNode, wxT( "border-left" ) );
652  border_top = parseOptionalAttribute<bool>( aFrameNode, wxT( "border-top" ) );
653  border_right = parseOptionalAttribute<bool>( aFrameNode, wxT( "border-right" ) );
654  border_bottom = parseOptionalAttribute<bool>( aFrameNode, wxT( "border-bottom" ) );
655 }
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: