UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FDragDropEvent Class Reference

#include <DragAndDrop.h>

+ Inheritance diagram for FDragDropEvent:

Public Member Functions

 FDragDropEvent (const FPointerEvent &InMouseEvent, const TSharedPtr< FDragDropOperation > InContent)
 
TSharedPtr< FDragDropOperationGetOperation () const
 
template<typename OperationType >
TSharedPtr< OperationType > GetOperationAs () const
 
- Public Member Functions inherited from FPointerEvent
 FPointerEvent ()
 
 FPointerEvent (uint32 InPointerIndex, const UE::Slate::FDeprecateVector2DParameter &InScreenSpacePosition, const UE::Slate::FDeprecateVector2DParameter &InLastScreenSpacePosition, const TSet< FKey > &InPressedButtons, FKey InEffectingButton, float InWheelDelta, const FModifierKeysState &InModifierKeys)
 
 FPointerEvent (uint32 InUserIndex, uint32 InPointerIndex, const UE::Slate::FDeprecateVector2DParameter &InScreenSpacePosition, const UE::Slate::FDeprecateVector2DParameter &InLastScreenSpacePosition, const TSet< FKey > &InPressedButtons, FKey InEffectingButton, float InWheelDelta, const FModifierKeysState &InModifierKeys)
 
 FPointerEvent (FInputDeviceId InDeviceId, uint32 InPointerIndex, const UE::Slate::FDeprecateVector2DParameter &InScreenSpacePosition, const UE::Slate::FDeprecateVector2DParameter &InLastScreenSpacePosition, const TSet< FKey > &InPressedButtons, FKey InEffectingButton, float InWheelDelta, const FModifierKeysState &InModifierKeys, const TOptional< int32 > InOptionalSlateUserIndex=TOptional< int32 >())
 
 FPointerEvent (uint32 InUserIndex, uint32 InPointerIndex, const UE::Slate::FDeprecateVector2DParameter &InScreenSpacePosition, const UE::Slate::FDeprecateVector2DParameter &InLastScreenSpacePosition, const UE::Slate::FDeprecateVector2DParameter &InDelta, const TSet< FKey > &InPressedButtons, const FModifierKeysState &InModifierKeys)
 
 FPointerEvent (uint32 InPointerIndex, const UE::Slate::FDeprecateVector2DParameter &InScreenSpacePosition, const UE::Slate::FDeprecateVector2DParameter &InLastScreenSpacePosition, const UE::Slate::FDeprecateVector2DParameter &InDelta, const TSet< FKey > &InPressedButtons, const FModifierKeysState &InModifierKeys)
 
 FPointerEvent (uint32 InUserIndex, uint32 InPointerIndex, const UE::Slate::FDeprecateVector2DParameter &InScreenSpacePosition, const UE::Slate::FDeprecateVector2DParameter &InLastScreenSpacePosition, float InForce, bool bPressLeftMouseButton, bool bInIsForceChanged=false, bool bInIsFirstMove=false, const FModifierKeysState &InModifierKeys=FModifierKeysState(), uint32 InTouchpadIndex=0)
 
 FPointerEvent (FInputDeviceId InDeviceId, uint32 InPointerIndex, const UE::Slate::FDeprecateVector2DParameter &InScreenSpacePosition, const UE::Slate::FDeprecateVector2DParameter &InLastScreenSpacePosition, float InForce, bool bPressLeftMouseButton, bool bInIsForceChanged=false, bool bInIsFirstMove=false, const FModifierKeysState &InModifierKeys=FModifierKeysState(), uint32 InTouchpadIndex=0, const TOptional< int32 > InOptionalSlateUserIndex=TOptional< int32 >())
 
 FPointerEvent (const UE::Slate::FDeprecateVector2DParameter &InScreenSpacePosition, const UE::Slate::FDeprecateVector2DParameter &InLastScreenSpacePosition, const TSet< FKey > &InPressedButtons, const FModifierKeysState &InModifierKeys, EGestureEvent InGestureType, const UE::Slate::FDeprecateVector2DParameter &InGestureDelta, bool bInIsDirectionInvertedFromDevice)
 
 FPointerEvent (const FPointerEvent &Other, const UE::Slate::FDeprecateVector2DParameter &InScreenSpacePosition, const UE::Slate::FDeprecateVector2DParameter &InLastScreenSpacePosition)
 
virtual SLATECORE_API ~FPointerEvent ()
 
const UE::Slate::FDeprecateVector2DResultGetScreenSpacePosition () const
 
const UE::Slate::FDeprecateVector2DResultGetLastScreenSpacePosition () const
 
const UE::Slate::FDeprecateVector2DResultGetCursorDelta () const
 
bool IsMouseButtonDown (FKey MouseButton) const
 
FKey GetEffectingButton () const
 
float GetWheelDelta () const
 
uint32 GetPointerIndex () const
 
uint32 GetTouchpadIndex () const
 
float GetTouchForce () const
 
bool IsTouchEvent () const
 
bool IsTouchForceChangedEvent () const
 
bool IsTouchFirstMoveEvent () const
 
EGestureEvent GetGestureType () const
 
const UE::Slate::FDeprecateVector2DResultGetGestureDelta () const
 
bool IsDirectionInvertedFromDevice () const
 
const TSet< FKey > & GetPressedButtons () const
 
virtual SLATECORE_API FText ToText () const override
 
virtual SLATECORE_API bool IsPointerEvent () const override
 
- Public Member Functions inherited from FInputEvent
 FInputEvent ()
 
 FInputEvent (const FModifierKeysState &InModifierKeys, const int32 InUserIndex, const bool bInIsRepeat)
 
 FInputEvent (const FModifierKeysState &InModifierKeys, const FInputDeviceId InDeviceId, const bool bInIsRepeat)
 
virtual SLATECORE_API ~FInputEvent ()
 
bool IsRepeat () const
 
bool IsShiftDown () const
 
bool IsLeftShiftDown () const
 
bool IsRightShiftDown () const
 
bool IsControlDown () const
 
bool IsLeftControlDown () const
 
bool IsRightControlDown () const
 
bool IsAltDown () const
 
bool IsLeftAltDown () const
 
bool IsRightAltDown () const
 
bool IsCommandDown () const
 
bool IsLeftCommandDown () const
 
bool IsRightCommandDown () const
 
bool AreCapsLocked () const
 
const FModifierKeysStateGetModifierKeys () const
 
uint32 GetUserIndex () const
 
FInputDeviceId GetInputDeviceId () const
 
FPlatformUserId GetPlatformUserId () const
 
uint64 GetEventTimestamp () const
 
double GetMillisecondsSinceEvent () const
 
SLATECORE_API FGeometry FindGeometry (const TSharedRef< SWidget > &WidgetToFind) const
 
SLATECORE_API TSharedRef< SWindowGetWindow () const
 
void SetEventPath (const FWidgetPath &InEventPath)
 
const FWidgetPathGetEventPath () const
 
virtual SLATECORE_API bool IsKeyEvent () const
 

Additional Inherited Members

- Static Public Member Functions inherited from FPointerEvent
template<typename PointerEventType >
static PointerEventType MakeTranslatedEvent (const PointerEventType &InPointerEvent, const FVirtualPointerPosition &VirtualPosition)
 
- Protected Attributes inherited from FInputEvent
FModifierKeysState ModifierKeys
 
bool bIsRepeat
 
uint32 UserIndex
 
FInputDeviceId InputDeviceId
 
const FWidgetPathEventPath
 
uint64 EventTimestamp
 

Detailed Description

Like a mouse event but with content

Constructor & Destructor Documentation

◆ FDragDropEvent()

FDragDropEvent::FDragDropEvent ( const FPointerEvent InMouseEvent,
const TSharedPtr< FDragDropOperation InContent 
)
inline

Construct a DragDropEvent.

Parameters
InMouseEventThe mouse event that is causing this drag and drop event to occur.
InContentThe content being dragged.

Member Function Documentation

◆ GetOperation()

TSharedPtr< FDragDropOperation > FDragDropEvent::GetOperation ( ) const
inline
Returns
the content being dragged

◆ GetOperationAs()

template<typename OperationType >
TSharedPtr< OperationType > FDragDropEvent::GetOperationAs ( ) const
Returns
the content being dragged if it matched the 'OperationType'; invalid Ptr otherwise.

The documentation for this class was generated from the following files: