Navigation
API > API/Runtime > API/Runtime/AppFramework
SColorThemeBars include a ThemeColorBlocksBar in addition to a label. Clicking on one will select it and set the currently used color theme to it
| Name | SColorThemeBar |
| Type | class |
| Header File | /Engine/Source/Runtime/AppFramework/Public/Widgets/Colors/SColorThemes.h |
| Include Path | #include "Widgets/Colors/SColorThemes.h" |
Syntax
class SColorThemeBar : public SCompoundWidget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SColorThemeBar
- FSlateControlledConstruction → SWidget → SCompoundWidget → SColorThemeBar
Structs
| Name | Remarks |
|---|---|
| FArguments |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| 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 | |
| ColorTheme | TWeakPtr< FColorTheme > | Color Theme that this bar is displaying | Widgets/Colors/SColorThemes.h | |
| HideTrashCallback | FSimpleDelegate | Callback to pass down to the FColorDragDrop for it to hide the trash | Widgets/Colors/SColorThemes.h | |
| OnCurrentThemeChanged | FOnCurrentThemeChanged | Callback to execute when the global current theme has changed | Widgets/Colors/SColorThemes.h | |
| ShowTrashCallback | FSimpleDelegate | Callback to pass down to the FColorDragDrop for it to show the trash | Widgets/Colors/SColorThemes.h | |
| ThemeNameText | TSharedPtr< STextBlock > | Text Block which shows the Color Theme's name | Widgets/Colors/SColorThemes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs |
Widgets/Colors/SColorThemes.h |
Overridden from SWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FReply OnMouseButtonDown
(
const FGeometry& MyGeometry, |
The system calls this method to notify the widget that a mouse button was pressed within it. | Widgets/Colors/SColorThemes.h |