Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Widgets > API/Runtime/SlateCore/Widgets/Images
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SLeafWidget
- SImage
- SLayeredImage
- SSpinningImage
- SVisibilityWidget
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Widgets/Images/SImage.h |
| Include | #include "Widgets/Images/SImage.h" |
Syntax
class SImage : public SLeafWidget
Remarks
Implements a widget that displays an image with a desired width and height.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bFlipForRightToLeftFlowDirection | Flips the image if the localization's flow direction is RightToLeft |
Constructors
| Type | Name | Description | |
|---|---|---|---|
SImage () |
Constructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Construct
(
const FArguments& InArgs |
Construct this widget | |
| void | FlipForRightToLeftFlowDirection
(
bool InbFlipForRightToLeftFlowDirection |
Set FlipForRightToLeftFlowDirection | |
| TSlateAttributeRef< FSlateColor > | |||
| TSlateAttributeRef< TOptional< FVector2D > > | |||
| TSlateAttributeRef< const FSlateBrush * > | |||
| void | Invalidate the Image | ||
| void | SetColorAndOpacity
(
TAttribute< FSlateColor > InColorAndOpacity |
Set the ColorAndOpacity attribute | |
| void | SetColorAndOpacity
(
FLinearColor InColorAndOpacity |
See the ColorAndOpacity attribute | |
| void | SetDesiredSizeOverride
(
TAttribute< TOptional< FVector2D >> InDesiredSizeOverride |
Set SizeOverride attribute | |
| void | SetImage
(
TAttribute< const FSlateBrush* > InImage |
Set the Image attribute | |
| const FSlateWidgetClassData & |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| FVector2D | ComputeDesiredSize
(
float |
Overwritten from SWidget. | |
| TSharedRef< FSlateAccessibleWidget > | |||
| int32 | OnPaint
(
const FPaintArgs& Args, |
Overwritten from SWidget. |
Overridden from FSlateControlledConstruction
| Type | Name | Description | |
|---|---|---|---|
| const FSlateWidgetClassData & |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |
Typedefs
| Name | Description |
|---|---|
| PrivateParentType | |
| PrivateThisType | |
| Super | |
| ThisClass |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| TSlateDeprecatedTAttribute< FSlateColor > | ColorAndOpacity | Direct access to ColorAndOpacity is now deprecated. Use the setter or getter. | |
| TSlateDeprecatedTAttribute< TOptional< FVector2D > > | DesiredSizeOverride | Direct access to DesiredSizeOverride is now deprecated. Use the setter or getter. | |
| FInvalidatableBrushAttribute | Image | Direct access to Image is now deprecated. Use the setter or getter. |