Navigation
API > API/Runtime > API/Runtime/AppFramework
SThemeColorBlocks are Color Blocks which point to a Color in a ColorTheme. They can be dragged and dropped, and clicking on one in the Color Picker will give the color that they point to.
| Name | SThemeColorBlock |
| Type | class |
| Header File | /Engine/Source/Runtime/AppFramework/Public/Widgets/Colors/SColorThemes.h |
| Include Path | #include "Widgets/Colors/SColorThemes.h" |
Syntax
class SThemeColorBlock : public SCompoundWidget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SThemeColorBlock
- FSlateControlledConstruction → SWidget → SCompoundWidget → SThemeColorBlock
Structs
| Name | Remarks |
|---|---|
| FArguments |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bSupportsDrag | TAttribute< bool > | Whether the color block supports drag/drop operations | Widgets/Colors/SColorThemes.h | |
| bUseAlpha | TAttribute< bool > | Whether or not the color uses Alpha or not | Widgets/Colors/SColorThemes.h | |
| bUseSRGB | TAttribute< bool > | Whether to use display sRGB color | Widgets/Colors/SColorThemes.h | |
| ColorInfo | TSharedPtr< FColorInfo > | The info for this color block | Widgets/Colors/SColorThemes.h | |
| ColorPtr | TWeakPtr< FLinearColor > | A pointer to the color this block uses | Widgets/Colors/SColorThemes.h | |
| HideTrashCallback | FSimpleDelegate | Callback to pass down to the FColorDragDrop for it to hide the trash | Widgets/Colors/SColorThemes.h | |
| OnSelectColor | FOnLinearColorValueChanged | Event called when this block is clicked | Widgets/Colors/SColorThemes.h | |
| ParentPtr | TWeakPtr< SThemeColorBlocksBar > | A pointer to the theme color blocks bar that is this block's origin | Widgets/Colors/SColorThemes.h | |
| ShowTrashCallback | FSimpleDelegate | Callback to pass down to the FColorDragDrop for it to show the trash | Widgets/Colors/SColorThemes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs |
Construct the widget | Widgets/Colors/SColorThemes.h |