KiCad PCB EDA Suite
Loading...
Searching...
No Matches
GRID_HELPER::ANCHOR Struct Reference

#include <grid_helper.h>

Public Member Functions

 ANCHOR (const VECTOR2I &aPos, int aFlags=CORNER|SNAPPABLE, EDA_ITEM *aItem=nullptr)
 
double Distance (const VECTOR2I &aP) const
 

Public Attributes

VECTOR2I pos
 
int flags
 
EDA_ITEMitem
 

Detailed Description

Definition at line 130 of file grid_helper.h.

Constructor & Destructor Documentation

◆ ANCHOR()

GRID_HELPER::ANCHOR::ANCHOR ( const VECTOR2I aPos,
int  aFlags = CORNER | SNAPPABLE,
EDA_ITEM aItem = nullptr 
)
inline

Definition at line 132 of file grid_helper.h.

Member Function Documentation

◆ Distance()

double GRID_HELPER::ANCHOR::Distance ( const VECTOR2I aP) const
inline

Member Data Documentation

◆ flags

int GRID_HELPER::ANCHOR::flags

Definition at line 139 of file grid_helper.h.

◆ item

EDA_ITEM* GRID_HELPER::ANCHOR::item

Definition at line 140 of file grid_helper.h.

Referenced by EE_GRID_HELPER::GetSnapped(), and PCB_GRID_HELPER::GetSnapped().

◆ pos


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