SDragAndDropVerticalBox

A Vertical Box Panel. See [SBoxPanel](API\Runtime\SlateCore\Widgets\SBoxPanel) for more info.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Widgets/SBoxPanel.h

Include

#include "Widgets/SBoxPanel.h"

Syntax

class SDragAndDropVerticalBox : public SVerticalBox

Remarks

A Vertical Box Panel. See SBoxPanel for more info.

Functions

Name Description

Public function

void

 

Construct

(
    const FArguments& InArgs
)

Public function Virtual

void

 

OnDragEnter

(
    FGeometry const& MyGeometry,
    FDragDropEvent const& DragDropEven...
)

Public function Virtual

void

 

OnDragLeave

(
    FDragDropEvent const& DragDropEven...
)

Public function

SDragAndDrop...

 

SetDropIndicator_Above

(
    const FSlateBrush& InValue
)

Set the Drop indicators

Public function

SDragAndDrop...

 

SetDropIndicator_Below

(
    const FSlateBrush& InValue
)

Overridden from SWidget

Name Description

Public function Virtual

FReply

 

OnDragDetected

(
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

Called when Slate detects that a widget started to be dragged.

Public function Virtual

FReply

 

OnDragOver

(
    const FGeometry& MyGeometry,
    const FDragDropEvent& DragDropEven...
)

Called during drag and drop when the the mouse is being dragged over a widget.

Public function Virtual

FReply

 

OnDrop

(
    const FGeometry& MyGeometry,
    const FDragDropEvent& DragDropEven...
)

Called when the user is dropping something onto a widget; terminates drag and drop.

Public function Virtual

FReply

 

OnMouseButtonDown

(
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

Drag detection and handling

Public function Virtual Const

int32

 

OnPaint

(
    const FPaintArgs& Args,
    const FGeometry& AllottedGeometry,
    const FSlateRect& MyCullingRect,
    FSlateWindowElementList& OutDrawEl...,
    int32 LayerId,
    const FWidgetStyle& InWidgetStyle,
    bool bParentEnabled
)

The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children.

Classes

Name

Description

Public struct

FArguments

Enums

Name

Description

Public enum

EItemDropZone

Where we are going to drop relative to the target item.

Typedefs

Name

Description

FOnAcceptDrop

Delegate signature for handling the drop of FDragDropEvent onto target of type ItemType

FOnCanAcceptDrop

Delegate signature for querying whether this FDragDropEvent will be handled by the drop target of type ItemType.

FOnDragAndDropVerticalBoxDragDetected

FOnDragAndDropVerticalBoxDragEnter

FOnDragAndDropVerticalBoxDragLeave

FOnDragAndDropVerticalBoxDrop

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss