21 void setInteractionMode(InteractionMode mode);
22 InteractionMode interactionMode()
const;
24 void beginLine(
const QPointF &anchor);
25 void updateLine(
const QPointF &secondPoint,
bool snapToAngle =
false);
26 void setLocked(
bool locked);
29 bool isLocked()
const;
30 bool hasValidLine()
const;
32 QPointF lineAnchor()
const;
33 QPointF lineSecondPoint()
const;
35 QPointF adjustPosition(
const QPointF &point,
36 const QPointF &strokeBegin,
37 bool checkForInitialMovement,
38 qreal moveThresholdPt)
const;
44 bool m_hasLine {
false};
45 bool m_locked {
false};
46 bool m_angleSnapped {
false};