Navigation
API > API/Runtime > API/Runtime/SlateCore
Class similar to FInvalidatableBrushAttribute but to be used with TSlateAttribute. Note that this class does not invalidate on value change unless used inside a TSlateAttribute
| Name | FSlateBrushCached |
| Type | class |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Styling/SlateTypes.h |
| Include Path | #include "Styling/SlateTypes.h" |
Syntax
class FSlateBrushCached
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Styling/SlateTypes.h | |||
FSlateBrushCached
(
const FSlateBrush* InImage |
Styling/SlateTypes.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Image | const FSlateBrush * | The slate brush to draw for the image. | Styling/SlateTypes.h | |
| ImageCache | FSlateBrush | The copy of the image data, some users reuse the same FSlateBrush pointer, so we need to check it against the last true data to see what changed. | Styling/SlateTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const FSlateBrush * GetImage() |
Styling/SlateTypes.h | ||
void SetImage
(
const FSlateBrush* InImage |
Styling/SlateTypes.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator==
(
const FSlateBrushCached& Rhs |
Styling/SlateTypes.h | ||
bool operator==
(
const FSlateBrush* Rhs |
Styling/SlateTypes.h |