Navigation
API > API/Runtime > API/Runtime/AppFramework
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.
| Name | FColorDragDrop |
| Type | class |
| Header File | /Engine/Source/Runtime/AppFramework/Public/Widgets/Colors/SColorThemes.h |
| Include Path | #include "Widgets/Colors/SColorThemes.h" |
Syntax
class FColorDragDrop : public FDragDropOperation
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → FDragDropOperation → FColorDragDrop
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FColorDragDrop
(
FLinearColor InColor, |
Widgets/Colors/SColorThemes.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BlockSize | FVector2D | Widgets/Colors/SColorThemes.h | ||
| bSetForDeletion | bool | Widgets/Colors/SColorThemes.h | ||
| bUseAlpha | bool | Whether or not the color uses Alpha | Widgets/Colors/SColorThemes.h | |
| bUseSRGB | bool | Whether or not the color uses sRGB | Widgets/Colors/SColorThemes.h | |
| Color | FLinearColor | The color currently held onto by this drag drop operation | Widgets/Colors/SColorThemes.h | |
| HideTrash | FSimpleDelegate | Callback to hide the delete button of the SThemeColorBlocksBar when this is dropped | Widgets/Colors/SColorThemes.h | |
| OriginBar | TWeakPtr< SThemeColorBlocksBar > | Widgets/Colors/SColorThemes.h | ||
| OriginBarPosition | int32 | Widgets/Colors/SColorThemes.h | ||
| ShowTrash | FSimpleDelegate | Callback to show the delete button of the SThemeColorBlocksBar when this is dropped | Widgets/Colors/SColorThemes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void MarkForAdd() |
Makes the decorator window fully opaque to visually indicate that the color will be added when dropped | Widgets/Colors/SColorThemes.h | |
void MarkForDelete() |
Makes the decorator window slightly transparent to visually indicate that the color will be deleted when dropped | Widgets/Colors/SColorThemes.h |
Overridden from FDragDropOperation
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TSharedPtr< SWidget > GetDefaultDecorator() |
Widgets/Colors/SColorThemes.h | ||
virtual bool IsOfTypeImpl
(
const FString& Type |
Widgets/Colors/SColorThemes.h | ||
virtual void OnDragged
(
const FDragDropEvent& DragDropEvent |
Widgets/Colors/SColorThemes.h | ||
virtual void OnDrop
(
bool bDropWasHandled, |
Widgets/Colors/SColorThemes.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static const FString & GetTypeId() |
Widgets/Colors/SColorThemes.h | ||
static TSharedRef< FColorDragDrop > New
(
FLinearColor InColor, |
Makes a new FColorDragDrop to hold on to | Widgets/Colors/SColorThemes.h |