Navigation
Unreal Engine C++ API Reference > Editor > EditorFramework > Viewports
Inheritance Hierarchy
References
Module | EditorFramework |
Header | /Engine/Source/Editor/EditorFramework/Public/Viewports/InViewportUIDragOperation.h |
Include | #include "Viewports/InViewportUIDragOperation.h" |
Syntax
class FInViewportUIDragOperation : public [FDragDropOperation](API\Runtime\SlateCore\Input\FDragDropOperation)
Remarks
A Sample implementation of IDragDropOperation
Variables
Type | Name | Description |
---|---|---|
TSharedPtr< SDo... | CursorDecoratorStackNode | Decorator widget where we add temp doc tabs to |
FVector2D | DecoratorOffsetFromCursor | Where the user grabbed the UI measured in screen space from its top-left corner |
FOnInViewportUI... | DropDelegate | |
FVector2D | LastContentSize | What the size of the content was when it was last shown. |
TSharedPtr< cla... | UIBeingDragged | What is actually being dragged in this operation |
Constructors
Type | Name | Description |
---|---|---|
FInViewportUIDragOperation ( const TSharedRef< class SWidget >&..., const FVector2D InDecoratorOffsetFr..., const FVector2D& OwnerAreaSize, FOnInViewportUIDropped& InDropDele... ) | The constructor is protected, so that this class can only be instantiated as a shared pointer. |
Destructors
Type | Name | Description |
---|---|---|
~FInViewportUIDragOperation () |
Functions
Type | Name | Description |
---|---|---|
void | BroadcastDropEvent ( const FVector2D InLocation ) | |
const FVecto... | GetDecoratorOffsetFromCursor () | |
const FStrin... | GetTypeId () | |
TSharedRef< ... | New ( const TSharedRef< class SWidget >&..., const FVector2D InDecoratorOffset, const FVector2D& OwnerAreaSize, FOnInViewportUIDropped& InDropDele... ) | Create this Drag and Drop Content |
void | OnDragged ( const FDragDropEvent& DragDropEven... ) | Called when the mouse was moved during a drag and drop operation |
Overridden from FDragDropOperation
Type | Name | Description |
---|---|---|
bool | IsOfTypeImpl ( const FString& Type ) | Checks whether this drag and drop operation can cast safely to the specified type. |
void | OnDrop ( bool bDropWasHandled, const FPointerEvent& MouseEvent ) | Invoked when the drag and drop operation has ended. |