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