Abstract base class for drag interactions in the UI Editor viewport window. More...
#include <ViewportDragInteraction.h>
Inherited by ViewportAddGuideInteraction, ViewportMoveGuideInteraction, and ViewportMoveInteraction.
Public Types | |
enum class | EndState { Inside , OutsideX , OutsideY , OutsideXY , Canceled } |
Public Member Functions | |
ViewportDragInteraction (const AZ::Vector2 &startMousePos) | |
virtual void | Update (const AZ::Vector2 &mousePos)=0 |
Update the interaction each time the mouse moves. | |
virtual void | Render (Draw2dHelper &draw2d) |
Render any display desired during the interaction. | |
virtual void | EndInteraction (EndState endState) |
End the interaction. | |
Protected Attributes | |
AZ::Vector2 | m_startMousePos |
Abstract base class for drag interactions in the UI Editor viewport window.
|
strong |
|
virtual |
End the interaction.
Reimplemented in ViewportAddGuideInteraction, and ViewportMoveGuideInteraction.
|
virtual |
Render any display desired during the interaction.
Reimplemented in ViewportAddGuideInteraction, and ViewportMoveGuideInteraction.
|
pure virtual |
Update the interaction each time the mouse moves.
Implemented in ViewportAddGuideInteraction, ViewportMoveGuideInteraction, and ViewportMoveInteraction.