Navigation
API > API/Editor > API/Editor/EditorWidgets
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SCompoundWidget
- SDropTarget
- SAssetDropTarget
- SNiagaraSectionDragDropTarget
References
| Module | EditorWidgets |
| Header | /Engine/Source/Editor/EditorWidgets/Public/SDropTarget.h |
| Include | #include "SDropTarget.h" |
Syntax
class SDropTarget : public SCompoundWidget
Remarks
A widget that displays a hover cue and handles dropping assets of allowed types onto this widget
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AllowDrop
(
TSharedPtr< FDragDropOperation > DragDropOperation |
||
| void | |||
| void | Construct
(
const FArguments& InArgs |
||
| FSlateColor | Get the brightness on the background. | ||
| EVisibility | |||
| bool | IsDragOver () |
Returns true if this drop target is currently being hovered over by a drag drop event | |
| bool | OnAllowDrop
(
TSharedPtr< FDragDropOperation > DragDropOperation |
||
| bool | OnIsRecognized
(
TSharedPtr< FDragDropOperation > DragDropOperation |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| void | OnDragEnter
(
const FGeometry& MyGeometry, |
DRAG AND DROP (DragDrop) Called during drag and drop when the drag enters a widget. | |
| void | OnDragLeave
(
const FDragDropEvent& DragDropEvent |
Called during drag and drop when the drag leaves a widget. | |
| FReply | OnDragOver
(
const FGeometry& MyGeometry, |
Called during drag and drop when the the mouse is being dragged over a widget. | |
| FReply | OnDrop
(
const FGeometry& MyGeometry, |
Called when the user is dropping something onto a widget; terminates drag and drop. | |
| int32 | OnPaint
(
const FPaintArgs& Args, |
The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children. | |
| void | Ticks this widget with Geometry. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |
Typedefs
| Name | Description |
|---|---|
| FOnDragAction | |
| FOnDropDeprecated | |
| FVerifyDrag |