Navigation
API > API/Runtime > API/Runtime/Slate
| Name | SColorBlock |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Colors/SColorBlock.h |
| Include Path | #include "Widgets/Colors/SColorBlock.h" |
Syntax
class SColorBlock : public SLeafWidget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SLeafWidget → SColorBlock
- FSlateControlledConstruction → SWidget → SLeafWidget → SColorBlock
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
SColorBlock() |
Widgets/Colors/SColorBlock.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~SColorBlock() |
Widgets/Colors/SColorBlock.h |
Structs
| Name | Remarks |
|---|---|
| FArguments |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| PrivateParentType | SLeafWidget | Widgets/Colors/SColorBlock.h | |
| PrivateThisType | SColorBlock | Widgets/Colors/SColorBlock.h | |
| Super | SLeafWidget | Widgets/Colors/SColorBlock.h | |
| ThisClass | SColorBlock | Widgets/Colors/SColorBlock.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AlphaBackgroundBrush | TSlateAttribute< const FSlateBrush * > | Widgets/Colors/SColorBlock.h | ||
| AlphaDisplayMode | TSlateAttribute< EColorBlockAlphaDisplayMode > | Whether to ignore alpha entirely from the input color | Widgets/Colors/SColorBlock.h | |
| bUseSRGB | TSlateAttribute< bool > | Whether to display sRGB color | Widgets/Colors/SColorBlock.h | |
| Color | TSlateAttribute< FLinearColor > | The color to display for this color block | Widgets/Colors/SColorBlock.h | |
| ColorBlockSize | TSlateAttribute< FVector2D > | Widgets/Colors/SColorBlock.h | ||
| ColorIsHSV | TSlateAttribute< bool > | Whether the color displayed is HSV or not | Widgets/Colors/SColorBlock.h | |
| GradientCornerRadius | TSlateAttribute< FVector4 > | Widgets/Colors/SColorBlock.h | ||
| MouseButtonDownHandler | FPointerEventHandler | A handler to activate when the mouse is pressed. | Widgets/Colors/SColorBlock.h | |
| ShowBackgroundForAlpha | TSlateAttribute< bool > | Whether to display a background for viewing opacity. Irrelevant if ignoring alpha | Widgets/Colors/SColorBlock.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs |
Construct this widget | Widgets/Colors/SColorBlock.h |
Overridden from FSlateControlledConstruction
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FSlateWidgetClassData & GetWidgetClass() |
Widgets/Colors/SColorBlock.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static const FSlateWidgetClassData & GetPrivateWidgetClass() |
Widgets/Colors/SColorBlock.h | ||
static SLATE_API void PrivateRegisterAttributes
(
FSlateAttributeInitializer& |
Widgets/Colors/SColorBlock.h | ||
static const FSlateWidgetClassData & StaticWidgetClass() |
Widgets/Colors/SColorBlock.h |