![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SlateIcon.h>
Public Member Functions | |
| SLATECORE_API | FSlateIcon () |
| SLATECORE_API | FSlateIcon (const FName InStyleSetName, const FName InStyleName, const FName InSmallStyleName=NAME_None, const FName InStatusOverlayStyleName=NAME_None) |
| SLATECORE_API const FSlateBrush * | GetIcon () const |
| SLATECORE_API const FSlateBrush * | GetOptionalIcon () const |
| SLATECORE_API const FSlateBrush * | GetSmallIcon () const |
| SLATECORE_API const FSlateBrush * | GetOptionalSmallIcon () const |
| SLATECORE_API const FSlateBrush * | GetOverlayIcon () const |
| const FName & | GetSmallStyleName () const |
| const FName & | GetStyleName () const |
| SLATECORE_API const class ISlateStyle * | GetStyleSet () const |
| const FName & | GetStyleSetName () const |
| const bool | IsSet () const |
Friends | |
| bool | operator== (const FSlateIcon &A, const FSlateIcon &B) |
| bool | operator!= (const FSlateIcon &A, const FSlateIcon &B) |
Struct used to represent an icon in Slate
| FSlateIcon::FSlateIcon | ( | ) |
Default constructor (empty icon).
| FSlateIcon::FSlateIcon | ( | const FName | InStyleSetName, |
| const FName | InStyleName, | ||
| const FName | InSmallStyleName = NAME_None, |
||
| const FName | InStatusOverlayStyleName = NAME_None |
||
| ) |
Creates and initializes a new icon from a style set and style name
| InStyleSetName | The name of the style set the icon can be found in. |
| StyleName | The name of the style for the icon |
| InSmallStyleName | The name of the style for the small icon |
| InStatusOverlayStyleName | The name of the style for a status icon to overlay on the base image |
| const FSlateBrush * FSlateIcon::GetIcon | ( | ) | const |
Gets the resolved icon.
| const FSlateBrush * FSlateIcon::GetOptionalIcon | ( | ) | const |
Optionally gets the resolved icon, returning nullptr if it's not defined
| const FSlateBrush * FSlateIcon::GetOptionalSmallIcon | ( | ) | const |
Optionally gets the resolved small icon, returning nullptr if it's not defined
| const FSlateBrush * FSlateIcon::GetOverlayIcon | ( | ) | const |
| const FSlateBrush * FSlateIcon::GetSmallIcon | ( | ) | const |
Gets the resolved small icon.
|
inline |
Gets the name of the style for the icon.
|
inline |
Gets the name of the style for the icon.
| const ISlateStyle * FSlateIcon::GetStyleSet | ( | ) | const |
Gets the resolved style set.
|
inline |
Gets the name of the style set the icon can be found in.
|
inline |
Checks whether the icon is set to something.
|
friend |
Compare 2 slate icons for inequality
|
friend |
Compare 2 slate icons for equality