FColorDragDrop::New

Makes a new [FColorDragDrop](API\Runtime\AppFramework\Widgets\Colors\FColorDragDrop) to hold on to

Windows
MacOS
Linux

References

Module

AppFramework

Header

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

Include

#include "Widgets/Colors/SColorThemes.h"

Source

/Engine/Source/Runtime/AppFramework/Private/Widgets/Colors/SColorThemes.cpp

Syntax

static TSharedRef< FColorDragDrop > New
(
    FLinearColor InColor,
    bool bSRGB,
    bool bUseAlpha,
    FSimpleDelegate TrashShowCallback,
    FSimpleDelegate TrashHideCallback,
    TSharedPtr< SThemeColorBlocksBar > Origin,
    int32 OriginPosition
)

Remarks

Makes a new FColorDragDrop to hold on to

Parameters

Parameter

Description

InColor

The color to be dragged and dropped

bSRGB

Whether the color is sRGB

bUseAlpha

Whether the colors alpha is important

TrashShowCallback

Called when this operation is created

TrashHideCallback

Called when this operation is dropped

Origin

The SThemeColorBlockBar that this operation is from

OriginPosition

The position in it's origin that it is from

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