FColorDragDrop

This operation is a color which can be dragged and dropped between widgets.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

AppFramework

Header

/Engine/Source/Runtime/AppFramework/Public/Widgets/Colors/SColorThemes.h

Include

#include "Widgets/Colors/SColorThemes.h"

Syntax

class FColorDragDrop : public FDragDropOperation

Remarks

This operation is a color which can be dragged and dropped between widgets. Represents a SThemeColorBlock that is dragged around, and can be dropped into a color trash.

Variables

Name Description

Public variable

FVector2D

 

BlockSize

The size of the drag and drop color block

Public variable

bool

 

bSetForDeletion

Flag which ensures that OnDrop will not replace this block in it's origin

Public variable

bool

 

bUseAlpha

Whether or not the color uses Alpha or not

Public variable

bool

 

bUseSRGB

Whether or not the color uses SRGB or not

Public variable

FLinearColor

 

Color

The color currently held onto by this drag drop operation

Public variable

FSimpleDelegate

 

HideTrash

Callback to hide the trash when this widget is dropped

Public variable

TWeakPtr< SThem...

 

OriginBar

The origin is the SThemeColorBlockBar where this operation is from.

Public variable

int32

 

OriginBarPosition

The origin position

Public variable

FSimpleDelegate

 

ShowTrash

Callback to show the trash when this widget is created

Functions

Name Description

Public function Static

const FStrin...

 

GetTypeId()

Public function Static

TSharedRef< ...

 

New

(
    FLinearColor InColor,
    bool bSRGB,
    bool bUseAlpha,
    FSimpleDelegate TrashShowCallback,
    FSimpleDelegate TrashHideCallback,
    TSharedPtr< SThemeColorBlocksBar > ...,
    int32 OriginPosition
)

Makes a new FColorDragDrop to hold on to

Overridden from FDragDropOperation

Name Description

Public function Virtual Const

TSharedPtr< ...

 

GetDefaultDecorator()

Gets the widget that will serve as the decorator unless overridden.

Public function Virtual Const

bool

 

IsOfTypeImpl

(
    const FString& Type
)

Checks whether this drag and drop operation can cast safely to the specified type.

Public function Virtual

void

 

OnDragged

(
    const FDragDropEvent& DragDropEven...
)

Called when the mouse was moved during a drag and drop operation

Public function Virtual

void

 

OnDrop

(
    bool bDropWasHandled,
    const FPointerEvent& MouseEvent
)

Invoked when the drag and drop operation has ended.

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