KiCad PCB EDA Suite
edit_constraints.h File Reference
#include <math/vector2d.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_SNAPLINE
 EDIT_CONSTRAINT for a EDIT_LINE, one of the ends is snapped to a spot determined by a transform function passed as parameter (e.g. 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 }
 

Enumeration Type Documentation

◆ GRID_CONSTRAINT_TYPE

Enumerator
IGNORE_GRID 
SNAP_TO_GRID 
SNAP_BY_GRID 

Definition at line 38 of file edit_constraints.h.

39 {
42  SNAP_BY_GRID // Keep it on grid if it started on grid (treat x and y independently)
43 };