Navigation
API > API/Runtime > API/Runtime/SlateCore
Struct used to represent an icon in Slate
| Name | FSlateIcon |
| Type | struct |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Textures/SlateIcon.h |
| Include Path | #include "Textures/SlateIcon.h" |
Syntax
struct FSlateIcon
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSlateIcon () |
Default constructor (empty icon). | Textures/SlateIcon.h | |
FSlateIcon
(
const FName InStyleSetName, |
Creates and initializes a new icon from a style set and style name | Textures/SlateIcon.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| SmallStyleName | FName | The name of the style for the small icon. | Textures/SlateIcon.h | |
| StatusOverlayStyleName | FName | Name of the style for the status overlay icon. | Textures/SlateIcon.h | |
| StyleName | FName | The name of the style for the icon. | Textures/SlateIcon.h | |
| StyleSetName | FName | The name of the style set the icon can be found in. | Textures/SlateIcon.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const FSlateBrush * GetIcon () |
Gets the resolved icon. | Textures/SlateIcon.h | |
const FSlateBrush * GetOptionalIcon() |
Optionally gets the resolved icon, returning nullptr if it's not defined | Textures/SlateIcon.h | |
const FSlateBrush * GetOptionalSmallIcon() |
Optionally gets the resolved small icon, returning nullptr if it's not defined | Textures/SlateIcon.h | |
const FSlateBrush * GetOverlayIcon() |
Textures/SlateIcon.h | ||
const FSlateBrush * GetSmallIcon () |
Gets the resolved small icon. | Textures/SlateIcon.h | |
const FName & GetSmallStyleName () |
Gets the name of the style for the icon. | Textures/SlateIcon.h | |
const FName & GetStyleName () |
Gets the name of the style for the icon. | Textures/SlateIcon.h | |
const ISlateStyle * GetStyleSet () |
Gets the resolved style set. | Textures/SlateIcon.h | |
const FName & GetStyleSetName () |
Gets the name of the style set the icon can be found in. | Textures/SlateIcon.h | |
const bool IsSet() |
Checks whether the icon is set to something. | Textures/SlateIcon.h |