Event emitted when a ConnectionAnchor has been moved.
#include <Workspace/Presentation/connectionanchorevents.h>
◆ MoveAnchorEvent()
MoveAnchorEvent |
( |
const QUuid & |
anchorId, |
|
|
const QPointF & |
delta, |
|
|
bool |
allowSnapToGrid = true |
|
) |
| |
|
inline |
- Parameters
-
anchorId | The id of the anchor to move. |
delta | The amount to move the specified anchor relative to its current position. |
allowSnapToGrid | If true, the anchor will be forced to the nearest grid point after shifting it by delta. Set this to false in situations where the exact delta must be applied, such as when undoing a move event. |
◆ getAllowSnapToGrid()
bool getAllowSnapToGrid |
( |
| ) |
const |
|
inline |
◆ getAnchorId()
const QUuid & getAnchorId |
( |
| ) |
const |
|
inline |
◆ getDelta()
const QPointF & getDelta |
( |
| ) |
const |
|
inline |