16 #ifndef QGSMODELSNAPPER_H 
   17 #define QGSMODELSNAPPER_H 
   47     void setSnapTolerance( 
int snapTolerance );
 
   65     void setSnapToGrid( 
bool enabled );
 
   83     QPointF snapPoint( QPointF point, 
double scaleFactor, 
bool &snapped 
SIP_OUT, 
bool snapHorizontal = 
true, 
bool snapVertical = 
true ) 
const;
 
  104     QRectF snapRect( 
const QRectF &rect, 
double scaleFactor, 
bool &snapped 
SIP_OUT, 
bool snapHorizontal = 
true, 
bool snapVertical = 
true ) 
const;
 
  122     QRectF snapRectWithResize( 
const QRectF &rect, 
double scaleFactor, 
bool &snapped 
SIP_OUT, 
bool snapHorizontal = 
true, 
bool snapVertical = 
true ) 
const;
 
  138     QPointF snapPointToGrid( QPointF point, 
double scaleFactor, 
bool &snappedX 
SIP_OUT, 
bool &snappedY 
SIP_OUT ) 
const;
 
  155     QPointF snapPointsToGrid( 
const QList< QPointF > &points, 
double scaleFactor, 
bool &snappedX 
SIP_OUT, 
bool &snappedY 
SIP_OUT ) 
const;
 
  160     bool mSnapToGrid = 
false;
 
Manages snapping grids and preset snap lines in a layout, and handles snapping points to the nearest ...
int snapTolerance() const
Returns the snap tolerance (in pixels) to use when snapping.
bool snapToGrid() const
Returns true if snapping to grid is enabled.