Navigation
Unreal Engine C++ API Reference > Runtime > AppFramework > Widgets > Colors
Inheritance Hierarchy
- TSharedFromThis
- FDragDropOperation
- FColorDragDrop
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
Type | Name | Description | |
---|---|---|---|
![]() |
FVector2D | BlockSize | The size of the drag and drop color block |
![]() |
bool | bSetForDeletion | Flag which ensures that OnDrop will not replace this block in it's origin |
![]() |
bool | bUseAlpha | Whether or not the color uses Alpha or not |
![]() |
bool | bUseSRGB | Whether or not the color uses SRGB or not |
![]() |
FLinearColor | Color | The color currently held onto by this drag drop operation |
![]() |
FSimpleDelegate | HideTrash | Callback to hide the trash when this widget is dropped |
![]() |
TWeakPtr< SThemeColorBlocksBar > | OriginBar | The origin is the SThemeColorBlockBar where this operation is from. |
![]() |
int32 | OriginBarPosition | The origin position |
![]() |
FSimpleDelegate | ShowTrash | Callback to show the trash when this widget is created |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
const FString & | GetTypeId () |
|
![]() ![]() |
TSharedRef< FColorDragDrop > | New
(
FLinearColor InColor, |
Makes a new FColorDragDrop to hold on to |
Overridden from FDragDropOperation
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
TSharedPtr< SWidget > | Gets the widget that will serve as the decorator unless overridden. | |
![]() ![]() ![]() |
bool | IsOfTypeImpl
(
const FString& Type |
Checks whether this drag and drop operation can cast safely to the specified type. |
![]() ![]() |
void | OnDragged
(
const FDragDropEvent& DragDropEvent |
Called when the mouse was moved during a drag and drop operation |
![]() ![]() |
void | OnDrop
(
bool bDropWasHandled, |
Invoked when the drag and drop operation has ended. |