Navigation
API > API/Plugins > API/Plugins/ModelingEditorUI > API/Plugins/ModelingEditorUI/ModelingWidgets
Inheritance Hierarchy
- TSharedFromThis
- FDragDropOperation
- FDraggableBoxUIDragOperation
References
| Module | ModelingEditorUI |
| Header | /Engine/Plugins/Experimental/MeshModelingToolsetExp/Source/ModelingEditorUI/Public/ModelingWidgets/SDraggableBox.h |
| Include | #include "ModelingWidgets/SDraggableBox.h" |
Syntax
class FDraggableBoxUIDragOperation : public FDragDropOperation
Remarks
A drag/drop operation used by SDraggableBox, largely modeled on FInViewportUIDragOperation, except instead of requiring the drop location to be able to handle that particular class to trigger the OnDragComplete delegate, it just triggers on any drop. This makes it possible to use it in any viewports, not just the level editor.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FVector2D | DecoratorOffsetFromCursor | Screen space offset of grab location from the top left corner of the rectangle being dragged. | |
| FVector2D | LastContentSize | Size of rectangle being dragged. | |
| SDraggableBox::FOnDragComplete | OnDragComplete | ||
| TSharedPtr< class SWidget > | UIBeingDragged | Shared pointer to our contents, which are a weak pointer. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FDraggableBoxUIDragOperation
(
const TSharedRef< class SWidget >& InUIToBeDragged, |
The constructor is protected, so that this class can only be instantiated as a shared pointer. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| const FString & | GetTypeId () |
||
| TSharedRef< FDraggableBoxUIDragOperation > | New
(
const TSharedRef< class SWidget >& InUIToBeDragged, |
Create this Drag and Drop Content | |
| void | OnDragged
(
const FDragDropEvent& DragDropEvent |
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, |
FDragDropOperation. |