Navigation
API > API/Runtime > API/Runtime/SlateCore
A Vertical Box Panel. See SBoxPanel for more info.
| Name | SDragAndDropVerticalBox |
| Type | class |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Widgets/SBoxPanel.h |
| Include Path | #include "Widgets/SBoxPanel.h" |
Syntax
class SDragAndDropVerticalBox : public SVerticalBox
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SPanel → SBoxPanel → SVerticalBox → SDragAndDropVerticalBox
- FSlateControlledConstruction → SWidget → SPanel → SBoxPanel → SVerticalBox → SDragAndDropVerticalBox
Structs
| Name | Remarks |
|---|---|
| FArguments |
Enums
Public
| Name | Remarks |
|---|---|
| EItemDropZone | Where we are going to drop relative to the target item. |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FOnAcceptDrop | TBaseDelegate_FourParams< FReply, const FDragDropEvent &, SDragAndDropVerticalBox::EItemDropZone, int32, SVerticalBox::FSlot * > | Delegate signature for handling the drop of FDragDropEvent onto target of type ItemType | Widgets/SBoxPanel.h |
| FOnCanAcceptDrop | TBaseDelegate_ThreeParams< TOptional< EItemDropZone >, const FDragDropEvent &, SDragAndDropVerticalBox::EItemDropZone, SVerticalBox::FSlot * > | Widgets/SBoxPanel.h | |
| FOnCanAcceptDropAdvanced | TBaseDelegate_FourParams< TOptional< EItemDropZone >, const FDragDropEvent &, SDragAndDropVerticalBox::EItemDropZone, int32, SVerticalBox::FSlot * > | Delegate signature for querying whether this FDragDropEvent will be handled by the drop target of type ItemType. | Widgets/SBoxPanel.h |
| FOnDragAndDropVerticalBoxDragDetected | TBaseDelegate_FourParams< FReply, const FGeometry &, const FPointerEvent &, int32, SVerticalBox::FSlot * > | Widgets/SBoxPanel.h | |
| FOnDragAndDropVerticalBoxDragEnter | TBaseDelegate_OneParam< void, FDragDropEvent const & > | Widgets/SBoxPanel.h | |
| FOnDragAndDropVerticalBoxDragLeave | TBaseDelegate_OneParam< void, FDragDropEvent const & > | Widgets/SBoxPanel.h | |
| FOnDragAndDropVerticalBoxDrop | TBaseDelegate_OneParam< FReply, FDragDropEvent const & > | Widgets/SBoxPanel.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CurrentDragOperationScreenSpaceLocation | FVector2f | This is required for the paint to access which item we're hovering | Widgets/SBoxPanel.h | |
| CurrentDragOverSlotIndex | int32 | Widgets/SBoxPanel.h | ||
| DropIndicator_Above | FSlateBrush | Brush used to provide feedback that a user can drop below the hovered row. | Widgets/SBoxPanel.h | |
| DropIndicator_Below | FSlateBrush | Widgets/SBoxPanel.h | ||
| ItemDropZone | TOptional< EItemDropZone > | Are we currently dragging/dropping over this item? | Widgets/SBoxPanel.h | |
| OnAcceptDrop | FOnAcceptDrop | Widgets/SBoxPanel.h | ||
| OnCanAcceptDropAdvanced | FOnCanAcceptDropAdvanced | Widgets/SBoxPanel.h | ||
| OnDragDetected_Handler | FOnDragAndDropVerticalBoxDragDetected | Delegate triggered when a user starts to drag a slot item | Widgets/SBoxPanel.h | |
| OnDragEnter_Handler | FOnDragAndDropVerticalBoxDragEnter | Delegate triggered when a user's drag enters the bounds of this slot item | Widgets/SBoxPanel.h | |
| OnDragLeave_Handler | FOnDragAndDropVerticalBoxDragLeave | Delegate triggered when a user's drag leaves the bounds of this slot item | Widgets/SBoxPanel.h | |
| OnDrop_Handler | FOnDragAndDropVerticalBoxDrop | Delegate triggered when a user's drag is dropped in the bounds of this slot item | Widgets/SBoxPanel.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs |
Widgets/SBoxPanel.h | ||
SDragAndDropVerticalBox & SetDropIndicator_Above
(
const FSlateBrush& InValue |
Set the Drop indicators | Widgets/SBoxPanel.h | |
SDragAndDropVerticalBox & SetDropIndicator_Below
(
const FSlateBrush& InValue |
Widgets/SBoxPanel.h |
Overridden from SWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FReply OnDragDetected
(
const FGeometry& MyGeometry, |
Called when Slate detects that a widget started to be dragged. | Widgets/SBoxPanel.h | |
virtual void OnDragEnter
(
FGeometry const& MyGeometry, |
DRAG AND DROP (DragDrop) Called during drag and drop when the drag enters a widget. | Widgets/SBoxPanel.h | |
virtual void OnDragLeave
(
FDragDropEvent const& DragDropEvent |
Called during drag and drop when the drag leaves a widget. | Widgets/SBoxPanel.h | |
virtual FReply OnDragOver
(
const FGeometry& MyGeometry, |
Called during drag and drop when the the mouse is being dragged over a widget. | Widgets/SBoxPanel.h | |
virtual FReply OnDrop
(
const FGeometry& MyGeometry, |
Called when the user is dropping something onto a widget; terminates drag and drop. | Widgets/SBoxPanel.h | |
virtual FReply OnMouseButtonDown
(
const FGeometry& MyGeometry, |
Drag detection and handling | Widgets/SBoxPanel.h | |
virtual int32 OnPaint
(
const FPaintArgs& Args, |
The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children. | Widgets/SBoxPanel.h |