Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Widgets > API/Runtime/SlateCore/Widgets/Images
Inheritance Hierarchy
- SImage
- SLayeredImage
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Widgets/Images/SLayeredImage.h |
| Include | #include "Widgets/Images/SLayeredImage.h" |
Syntax
class SLayeredImage : public SImage
Remarks
A slate widget to draw an arbitrary number of images over top of each other
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddLayer
(
TAttribute< const FSlateBrush* > Brush |
Adds a new layer to the top of the Image given a brush and color. Use White as the default color. | |
| void | AddLayer
(
TAttribute< const FSlateBrush* > Brush, |
Adds a new layer to the top of the Image given a brush and color | |
| void | Construct
(
const FArguments& InArgs, |
Constructor that adds InLayers on top of the base image | |
| void | Construct
(
const FArguments& InArgs, |
Constructor that adds InLayers on top of the base image | |
| void | Constructor that adds NumLayers blank layers on top of the image for later use | ||
| void | Construct
(
const FArguments& InArgs, |
Constructor that sets the base image and any overlay layers defined in the Slate icon | |
| void | Construct
(
const FArguments& InArgs, |
Constructor that adds a single layer on top of the base image | |
| const FSlateBrush * | GetLayerBrush
(
int32 Index |
Gets the brush for a given layer | |
| FSlateColor | GetLayerColor
(
int32 Index |
Gets the Color for a given layer | |
| int32 | GetNumLayers () |
Returns the total number of layers, including the base image. | |
| bool | IsValidIndex
(
int32 Index |
Determines whether a Layer exists at the given index | |
| int32 | OnPaint
(
const FPaintArgs& Args, |
||
| void | Removes all layers | ||
| void | SetFromSlateIcon
(
const FSlateIcon& InIcon |
Sets the base image and any overlay layers defined in the Slate icon. Note: removes all layers | |
| void | SetLayerBrush
(
int32 Index, |
Sets the brush for a given layer, if it exists | |
| void | SetLayerColor
(
int32 Index, |
Sets the color for a given layer, if it exists. |
Typedefs
| Name | Description |
|---|---|
| BrushAttributeType | |
| ColorAttributeType | |
| ImageLayer | |
| InnerImageLayerType |