Navigation
API > API/Editor > API/Editor/EditorWidgets
A widget that displays a hover cue and handles dropping assets of allowed types onto this widget
| Name | SDropTarget |
| Type | class |
| Header File | /Engine/Source/Editor/EditorWidgets/Public/SDropTarget.h |
| Include Path | #include "SDropTarget.h" |
Syntax
class SDropTarget : public SCompoundWidget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SDropTarget
- FSlateControlledConstruction → SWidget → SCompoundWidget → SDropTarget
Derived Classes
Structs
| Name | Remarks |
|---|---|
| FArguments |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FOnDragAction | TBaseDelegate_OneParam< void, const FDragDropEvent & > | SDropTarget.h | |
| FOnDropDeprecated | TBaseDelegate_OneParam< FReply, TSharedPtr< FDragDropOperation > > | SDropTarget.h | |
| FVerifyDrag | TBaseDelegate_OneParam< bool, TSharedPtr< FDragDropOperation > > | SDropTarget.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AllowDropCache | TOptional< bool > | SDropTarget.h | ||
| AllowDropEvent | FVerifyDrag | Delegate to call to check validity of the asset | SDropTarget.h | |
| bAllowDrop | bool | Whether or not we currently allow dropping | SDropTarget.h | |
| bIsDragDropping | bool | SDropTarget.h | ||
| bIsDragEventRecognized | bool | Whether or not we are being dragged over by a recognized event | SDropTarget.h | |
| bIsDragOver | bool | Is the drag operation currently over our airspace? | SDropTarget.h | |
| bOnlyRecognizeOnDragEnter | TAttribute< bool > | Attribute to check if the drop target should only be useable when actually dragging over it. | SDropTarget.h | |
| bUseAllowDropCache | bool | SDropTarget.h | ||
| bWasDragDroppingLastFrame | bool | SDropTarget.h | ||
| DroppedEvent | FOnDrop | Delegate to call when an asset is dropped | SDropTarget.h | |
| HorizontalImage | const FSlateBrush * | Horizontal border image that is used. | SDropTarget.h | |
| InvalidColor | FSlateColor | The color of the vertical/horizontal images when the drop data is not valid | SDropTarget.h | |
| IsRecognizedEvent | FVerifyDrag | Delegate to call to check validity of the asset | SDropTarget.h | |
| OnDragEnterEvent | FOnDragAction | SDropTarget.h | ||
| OnDragLeaveEvent | FOnDragAction | SDropTarget.h | ||
| ValidColor | FSlateColor | The color of the vertical/horizontal images when the drop data is valid | SDropTarget.h | |
| VerticalImage | const FSlateBrush * | Vertical border image that is used. | SDropTarget.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ClearAllowDropCache() |
SDropTarget.h | ||
void Construct
(
const FArguments& InArgs |
SDropTarget.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool AllowDrop
(
TSharedPtr< FDragDropOperation > DragDropOperation |
SDropTarget.h | ||
FSlateColor GetBackgroundBrightness() |
Get the brightness on the background. | SDropTarget.h | |
EVisibility GetDragOverlayVisibility() |
SDropTarget.h | ||
bool IsDragOver() |
Returns true if this drop target is currently being hovered over by a drag drop event | SDropTarget.h | |
virtual bool OnAllowDrop
(
TSharedPtr< FDragDropOperation > DragDropOperation |
SDropTarget.h | ||
virtual bool OnIsRecognized
(
TSharedPtr< FDragDropOperation > DragDropOperation |
SDropTarget.h |
Overridden from SWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnDragEnter
(
const FGeometry& MyGeometry, |
SDropTarget.h | ||
virtual void OnDragLeave
(
const FDragDropEvent& DragDropEvent |
SDropTarget.h | ||
virtual FReply OnDragOver
(
const FGeometry& MyGeometry, |
SDropTarget.h | ||
virtual FReply OnDrop
(
const FGeometry& MyGeometry, |
SDropTarget.h | ||
virtual int32 OnPaint
(
const FPaintArgs& Args, |
SDropTarget.h | ||
virtual void Tick
(
const FGeometry& AllottedGeometry, |
SDropTarget.h |