KiCad PCB EDA Suite
DRAWSEGMENT_DESC Struct Reference

Public Member Functions

 DRAWSEGMENT_DESC ()
 

Detailed Description

Definition at line 1259 of file class_drawsegment.cpp.

Constructor & Destructor Documentation

◆ DRAWSEGMENT_DESC()

DRAWSEGMENT_DESC::DRAWSEGMENT_DESC ( )
inline

Definition at line 1261 of file class_drawsegment.cpp.

1262  {
1266 
1267  propMgr.AddProperty( new PROPERTY<DRAWSEGMENT, int>( _( "Thickness" ),
1269  // TODO show certain properties depending on the shape
1270  propMgr.AddProperty( new PROPERTY<DRAWSEGMENT, double>( _( "Angle" ),
1272  // TODO or may have different names (arcs)
1273  // TODO type?
1274  propMgr.AddProperty( new PROPERTY<DRAWSEGMENT, int>( _( "End X" ),
1276  propMgr.AddProperty( new PROPERTY<DRAWSEGMENT, int>( _( "End Y" ),
1278  }
static PROPERTY_MANAGER & Instance()
Definition: property_mgr.h:61
#define TYPE_HASH(x)
Macro to generate unique identifier for a type
Definition: property.h:53
BOARD_ITEM is a base class for any item which can be embedded within the BOARD container class,...
#define REGISTER_TYPE(x)
Helper macro to map type hashes to names
Definition: property_mgr.h:244
Display value expressed in distance units (mm/inch)
Definition: property.h:47
Convert decidegrees to degrees for display.
Definition: property.h:49
void InheritsAfter(TYPE_ID aDerived, TYPE_ID aBase)
Declares an inheritance relationship between types.
void SetEndY(int y)
int GetWidth() const
double GetAngle() const
#define _(s)
Definition: 3d_actions.cpp:33
void AddProperty(PROPERTY_BASE *aProperty)
Registers a property.
void SetEndX(int x)
virtual void SetAngle(double aAngle)
Function SetAngle sets the angle for arcs, and normalizes it within the range 0 - 360 degrees.
Provides class metadata.
Definition: property_mgr.h:58
void SetWidth(int aWidth)

References _, PROPERTY_MANAGER::AddProperty(), DECIDEGREE, DISTANCE, DRAWSEGMENT::GetAngle(), DRAWSEGMENT::GetEndX(), DRAWSEGMENT::GetEndY(), DRAWSEGMENT::GetWidth(), PROPERTY_MANAGER::InheritsAfter(), PROPERTY_MANAGER::Instance(), REGISTER_TYPE, DRAWSEGMENT::SetAngle(), DRAWSEGMENT::SetEndX(), DRAWSEGMENT::SetEndY(), DRAWSEGMENT::SetWidth(), and TYPE_HASH.


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