Struct used to represent an icon in Slate 更多...
#include <SlateIcon.h>
Public 成员函数 | |
| FSlateIcon () | |
| Default constructor (empty icon). | |
| FSlateIcon (const FName &InStyleSetName, const FName &InStyleName) | |
| Creates and initializes a new icon from a style set and style name 更多... | |
| FSlateIcon (const FName &InStyleSetName, const FName &InStyleName, const FName &InSmallStyleName) | |
| Creates and initializes a new icon from a style set and style name 更多... | |
| const FSlateBrush * | GetIcon () const |
| Gets the resolved icon. 更多... | |
| const FSlateBrush * | GetOptionalIcon () const |
| Optionally gets the resolved icon, returning nullptr if it's not defined 更多... | |
| const FSlateBrush * | GetOptionalSmallIcon () const |
| Optionally gets the resolved small icon, returning nullptr if it's not defined 更多... | |
| const FSlateBrush * | GetSmallIcon () const |
| Gets the resolved small icon. 更多... | |
| const FName & | GetSmallStyleName () const |
| Gets the name of the style for the icon. 更多... | |
| const FName & | GetStyleName () const |
| Gets the name of the style for the icon. 更多... | |
| const class ISlateStyle * | GetStyleSet () const |
| Gets the resolved style set. 更多... | |
| const FName & | GetStyleSetName () const |
| Gets the name of the style set the icon can be found in. 更多... | |
| const bool | IsSet () const |
| Checks whether the icon is set to something. 更多... | |
友元 | |
| bool | operator!= (const FSlateIcon &A, const FSlateIcon &B) |
| Compare 2 slate icons for inequality | |
| bool | operator== (const FSlateIcon &A, const FSlateIcon &B) |
| Compare 2 slate icons for equality | |
Struct used to represent an icon in Slate
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 (assumes there may also be a ".Small" variant) |
| FSlateIcon::FSlateIcon | ( | const FName & | InStyleSetName, |
| const FName & | InStyleName, | ||
| const FName & | InSmallStyleName | ||
| ) |
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 |
| 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::GetSmallIcon | ( | ) | const |
Gets the resolved small icon.
|
inline |
|
inline |
Gets the name of the style for the icon.
| const class 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.