KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ELEMENT_BASE Struct Reference

Fields shared by every drawable element. More...

#include <target3001_parser.h>

Public Member Functions

const std::string * FindProp (const std::string &aKey) const
 Return the value of the first property named aKey, if any.
 
bool FlagProp (const std::string &aKey) const
 True when property aKey holds one of the format's boolean true words.
 
std::optional< std::pair< int32_t, int32_t > > TextRightEnd () const
 Right end of right-aligned text from its ARXY property, in file coordinates.
 
std::vector< uint8_t > Picture () const
 Encoded image a rectangle shows stretched over its area instead of its fill, empty for none.
 

Public Attributes

uint16_t component = 0
 ID of the owning component (a component stores its own), 0 for none.
 
uint16_t signal = 0
 ID of the owning signal (a signal stores its own), 0 for none.
 
int32_t x = 0
 
int32_t y = 0
 
uint8_t flags = 0
 
uint8_t status = 0
 
uint8_t layer = 0
 
uint8_t classTag = 0
 repeats the element's class tag
 
std::optional< uint32_t > extra
 
std::vector< std::pair< std::string, std::string > > props
 Free-form key/value properties in file order.
 

Detailed Description

Fields shared by every drawable element.

Definition at line 86 of file target3001_parser.h.

Member Function Documentation

◆ FindProp()

const std::string * TARGET3001::ELEMENT_BASE::FindProp ( const std::string & aKey) const

Return the value of the first property named aKey, if any.

Definition at line 810 of file target3001_parser.cpp.

◆ FlagProp()

bool TARGET3001::ELEMENT_BASE::FlagProp ( const std::string & aKey) const

True when property aKey holds one of the format's boolean true words.

Definition at line 838 of file target3001_parser.cpp.

◆ Picture()

std::vector< uint8_t > TARGET3001::ELEMENT_BASE::Picture ( ) const

Encoded image a rectangle shows stretched over its area instead of its fill, empty for none.

Definition at line 822 of file target3001_parser.cpp.

◆ TextRightEnd()

std::optional< std::pair< int32_t, int32_t > > TARGET3001::ELEMENT_BASE::TextRightEnd ( ) const

Right end of right-aligned text from its ARXY property, in file coordinates.

Definition at line 852 of file target3001_parser.cpp.

Member Data Documentation

◆ classTag

uint8_t TARGET3001::ELEMENT_BASE::classTag = 0

repeats the element's class tag

Definition at line 95 of file target3001_parser.h.

◆ component

uint16_t TARGET3001::ELEMENT_BASE::component = 0

ID of the owning component (a component stores its own), 0 for none.

Definition at line 88 of file target3001_parser.h.

◆ extra

std::optional<uint32_t> TARGET3001::ELEMENT_BASE::extra

Definition at line 97 of file target3001_parser.h.

◆ flags

uint8_t TARGET3001::ELEMENT_BASE::flags = 0

Definition at line 92 of file target3001_parser.h.

◆ layer

uint8_t TARGET3001::ELEMENT_BASE::layer = 0

Definition at line 94 of file target3001_parser.h.

◆ props

std::vector<std::pair<std::string, std::string> > TARGET3001::ELEMENT_BASE::props

Free-form key/value properties in file order.

Definition at line 100 of file target3001_parser.h.

◆ signal

uint16_t TARGET3001::ELEMENT_BASE::signal = 0

ID of the owning signal (a signal stores its own), 0 for none.

Definition at line 89 of file target3001_parser.h.

Referenced by TARGET3001::PROJECT::FindSignal().

◆ status

uint8_t TARGET3001::ELEMENT_BASE::status = 0

Definition at line 93 of file target3001_parser.h.

◆ x

int32_t TARGET3001::ELEMENT_BASE::x = 0

Definition at line 90 of file target3001_parser.h.

◆ y

int32_t TARGET3001::ELEMENT_BASE::y = 0

Definition at line 91 of file target3001_parser.h.


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