KiCad PCB EDA Suite
PCB_TARGET_DESC Struct Reference

Public Member Functions


Detailed Description

Definition at line 162 of file pcb_target.cpp.

Constructor & Destructor Documentation



Definition at line 164 of file pcb_target.cpp.

165  {
169  propMgr.AddProperty( new PROPERTY<PCB_TARGET, int>( _HKI( "Size" ),
171  propMgr.AddProperty( new PROPERTY<PCB_TARGET, int>( _HKI( "Width" ),
174  auto shape = new PROPERTY<PCB_TARGET, int>( _HKI( "Shape" ),
176  // TODO change the integer to an enum?
177  //shape->SetValues( { { 0, _HKI( "Cross" ) }, { 1, ( "Plus" ) } } );
178  propMgr.AddProperty( shape );
179  }
static PROPERTY_MANAGER & Instance()
Definition: property_mgr.h:65
#define TYPE_HASH(x)
Definition: property.h:59
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Definition: board_item.h:49
void SetSize(int aSize)
Definition: pcb_target.h:61
int GetSize() const
Definition: pcb_target.h:62
#define REGISTER_TYPE(x)
Definition: property_mgr.h:248
int GetWidth() const
Definition: pcb_target.h:65
Display value expressed in distance units (mm/inch)
Definition: property.h:53
void InheritsAfter(TYPE_ID aDerived, TYPE_ID aBase)
Declare an inheritance relationship between types.
void SetShape(int aShape)
Definition: pcb_target.h:58
void AddProperty(PROPERTY_BASE *aProperty)
Register a property.
int GetShape() const
Definition: pcb_target.h:59
void SetWidth(int aWidth)
Definition: pcb_target.h:64
Provide class metadata.Helper macro to map type hashes to names.
Definition: property_mgr.h:62
#define _HKI(x)

References _HKI, PROPERTY_MANAGER::AddProperty(), DISTANCE, PCB_TARGET::GetShape(), PCB_TARGET::GetSize(), PCB_TARGET::GetWidth(), PROPERTY_MANAGER::InheritsAfter(), PROPERTY_MANAGER::Instance(), REGISTER_TYPE, PCB_TARGET::SetShape(), PCB_TARGET::SetSize(), PCB_TARGET::SetWidth(), and TYPE_HASH.

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