Navigation
Unreal Engine C++ API Reference > Runtime > AppFramework > Widgets > Colors
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SPanel
- SThemeColorBlocksBar
References
Module | AppFramework |
Header | /Engine/Source/Runtime/AppFramework/Public/Widgets/Colors/SColorThemes.h |
Include | #include "Widgets/Colors/SColorThemes.h" |
Syntax
class SThemeColorBlocksBar : public SPanel
Remarks
SThemeColorBlocksBars are panels for dragging and dropping SColorThemeBlocks onto and off of.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | AddNewColorBlock
(
FLinearColor Color, |
Adds a new color block to the Bar |
![]() |
void | Adds a callback to the Color Theme that this bar has a pointer to. | |
![]() |
void | Construct
(
const FArguments& InArgs |
Most panels do not create widgets as part of their implementation, so they do not need to implement a Construct() |
![]() |
void | Refresh () |
Rebuilds the entire bar, regenerating all the constituent color blocks |
![]() |
int32 | RemoveColorBlock
(
TSharedPtr< FLinearColor > ColorToRemove |
|
![]() |
void | Refresh Callbacks are used by Color Themes to notify widgets to refresh This removes a callback from the Color Theme that this bar has a pointer to | |
![]() |
void | SetPlaceholderGrabOffset
(
FVector2D GrabOffset |
Overridden from SWidget
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
FVector2D | ComputeDesiredSize
(
float |
A Panel's desired size in the space required to arrange of its children on the screen while respecting all of the children's desired sizes and any layout-related options specified by the user. |
![]() ![]() |
FChildren * | GetChildren () |
All widgets must provide a way to access their children in a layout-agnostic way. |
![]() ![]() ![]() |
void | OnArrangeChildren
(
const FGeometry& AllottedGeometry, |
Panels arrange their children in a space described by the AllottedGeometry parameter. |
![]() ![]() |
void | OnDragEnter
(
const FGeometry& MyGeometry, |
Called during drag and drop when the drag enters a widget. |
![]() ![]() |
void | OnDragLeave
(
const FDragDropEvent& DragDropEvent |
Called during drag and drop when the drag leaves a widget. |
![]() ![]() |
FReply | OnDragOver
(
const FGeometry& MyGeometry, |
Called during drag and drop when the the mouse is being dragged over a widget. |
![]() ![]() |
FReply | OnDrop
(
const FGeometry& MyGeometry, |
Called when the user is dropping something onto a widget; terminates drag and drop. |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FArguments |
Typedefs
Name | Description |
---|---|
FOnCurrentThemeChanged |