KiCad PCB EDA Suite
Loading...
Searching...
No Matches
edit_constraints.h File Reference
#include <math/vector2d.h>
#include <tool/grid_helper.h>
#include <functional>

Go to the source code of this file.

Classes

class  EDIT_CONSTRAINT< EDIT_TYPE >
 Describe constraints between two edit handles. More...
 
class  EC_VERTICAL
 EDIT_CONSTRAINT that imposes a constraint that two points have to have the same X coordinate. More...
 
class  EC_HORIZONTAL
 EDIT_CONSTRAINT that imposes a constraint that two points have to have the same Y coordinate. More...
 
class  EC_45DEGREE
 EDIT_CONSTRAINT that imposes a constraint that two points have to be located at angle of 45 degree multiplicity. More...
 
class  EC_LINE
 EDIT_CONSTRAINT that imposes a constraint that a point has to lie on a line (determined by 2 points). More...
 
class  EC_CIRCLE
 EDIT_CONSTRAINT that imposes a constraint that a point has to lie on a circle. More...
 
class  EC_CONVERGING
 EDIT_CONSTRAINT for 3 segments: dragged and two adjacent ones, enforcing to keep their slopes and allows only to change ending points. More...
 
class  EC_PERPLINE
 EDIT_CONSTRAINT for a EDIT_LINE, that constrains the line to move perpendicular to the line itself. More...
 

Enumerations

enum  GRID_CONSTRAINT_TYPE { IGNORE_GRID , SNAP_TO_GRID , SNAP_BY_GRID }
 
enum  SNAP_CONSTRAINT_TYPE { IGNORE_SNAPS , OBJECT_LAYERS , ALL_LAYERS }
 

Enumeration Type Documentation

◆ GRID_CONSTRAINT_TYPE

Enumerator
IGNORE_GRID 
SNAP_TO_GRID 
SNAP_BY_GRID 

Definition at line 39 of file edit_constraints.h.

◆ SNAP_CONSTRAINT_TYPE

Enumerator
IGNORE_SNAPS 
OBJECT_LAYERS 
ALL_LAYERS 

Definition at line 47 of file edit_constraints.h.