Workspace 6.21.5
|
Event emitted when a ConnectionAnchor has been moved.
#include <Workspace/Presentation/connectionanchorevents.h>
Public Member Functions | |
MoveAnchorEvent (const QUuid &anchorId, const QPointF &delta, bool allowSnapToGrid=true) | |
bool | getAllowSnapToGrid () const |
const QUuid & | getAnchorId () const |
const QPointF & | getDelta () const |
Public Member Functions inherited from ObservableEventType< MoveAnchorEvent > | |
CSIRO_WORKSPACE_API const EventIDSingleton< CSIRO::DataExecution::AllObservableEvents > & | eventID () |
CSIRO_WORKSPACE_API const EventIDSingleton< CSIRO::DataExecution::ProgressEvent > & | eventID () |
const EventIDSingleton< MoveAnchorEvent > & | getEventID () const override |
Public Member Functions inherited from ObservableEvent | |
virtual | ~ObservableEvent ()=default |
virtual const EventID & | getEventID () const =0 |
Additional Inherited Members | |
Static Public Member Functions inherited from ObservableEventType< MoveAnchorEvent > | |
static const EventIDSingleton< MoveAnchorEvent > & | eventID () |
Protected Member Functions inherited from ObservableEventType< MoveAnchorEvent > | |
ObservableEventType ()=default | |
|
inline |
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. |
|
inline |
|
inline |
|
inline |