KiCad PCB EDA Suite
POINT_COORD Class Reference

A coordinate point. More...

#include <ds_data_item.h>

Public Member Functions

 POINT_COORD ()
 
 POINT_COORD (const DPOINT &aPos, enum CORNER_ANCHOR aAnchor=RB_CORNER)
 

Public Attributes

DPOINT m_Pos
 
int m_Anchor
 

Detailed Description

A coordinate point.

The position is always relative to the corner anchor.

Note
The coordinate is from the anchor point to the opposite corner.

Definition at line 69 of file ds_data_item.h.

Constructor & Destructor Documentation

◆ POINT_COORD() [1/2]

POINT_COORD::POINT_COORD ( )
inline

Definition at line 72 of file ds_data_item.h.

References m_Anchor, and RB_CORNER.

◆ POINT_COORD() [2/2]

POINT_COORD::POINT_COORD ( const DPOINT aPos,
enum CORNER_ANCHOR  aAnchor = RB_CORNER 
)
inline

Definition at line 74 of file ds_data_item.h.

75  {
76  m_Pos = aPos;
77  m_Anchor = aAnchor;
78  }
DPOINT m_Pos
Definition: ds_data_item.h:80

References m_Anchor, and m_Pos.

Member Data Documentation

◆ m_Anchor

◆ m_Pos


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