engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 友元 | 所有成员列表
FSlateIcon结构体 参考

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

构造及析构函数说明

◆ FSlateIcon() [1/2]

FSlateIcon::FSlateIcon ( const FName &  InStyleSetName,
const FName &  InStyleName 
)

Creates and initializes a new icon from a style set and style name

参数
InStyleSetNameThe name of the style set the icon can be found in.
StyleNameThe name of the style for the icon (assumes there may also be a ".Small" variant)

◆ FSlateIcon() [2/2]

FSlateIcon::FSlateIcon ( const FName &  InStyleSetName,
const FName &  InStyleName,
const FName &  InSmallStyleName 
)

Creates and initializes a new icon from a style set and style name

参数
InStyleSetNameThe name of the style set the icon can be found in.
StyleNameThe name of the style for the icon
InSmallStyleNameThe name of the style for the small icon

成员函数说明

◆ GetIcon()

const FSlateBrush * FSlateIcon::GetIcon ( ) const

Gets the resolved icon.

返回
Icon brush, or FStyleDefaults::GetNoBrush() if the icon wasn't found.
参见
GetSmallIcon

◆ GetOptionalIcon()

const FSlateBrush * FSlateIcon::GetOptionalIcon ( ) const

Optionally gets the resolved icon, returning nullptr if it's not defined

返回
Icon brush, or nullptr if the icon wasn't found.

◆ GetOptionalSmallIcon()

const FSlateBrush * FSlateIcon::GetOptionalSmallIcon ( ) const

Optionally gets the resolved small icon, returning nullptr if it's not defined

返回
Icon brush, or nullptr if the icon wasn't found.

◆ GetSmallIcon()

const FSlateBrush * FSlateIcon::GetSmallIcon ( ) const

Gets the resolved small icon.

返回
Icon brush, or FStyleDefaults::GetNoBrush() if the icon wasn't found.
参见
GetIcon

◆ GetSmallStyleName()

const FName & FSlateIcon::GetSmallStyleName ( ) const
inline

Gets the name of the style for the icon.

返回
Style name.
参见
GetStyleName, GetStyleSet, GetStyleSetName

◆ GetStyleName()

const FName & FSlateIcon::GetStyleName ( ) const
inline

Gets the name of the style for the icon.

返回
Style name.
参见
GetSmallStyleName, GetStyleSet, GetStyleSetName

◆ GetStyleSet()

const class ISlateStyle * FSlateIcon::GetStyleSet ( ) const

Gets the resolved style set.

返回
Style set, or nullptr if the style set wasn't found.
参见
GetSmallStyleName, GetStyleName, GetStyleSetName

◆ GetStyleSetName()

const FName & FSlateIcon::GetStyleSetName ( ) const
inline

Gets the name of the style set the icon can be found in.

返回
Style name.
参见
GetSmallStyleName, GetStyleName, GetStyleSet

◆ IsSet()

const bool FSlateIcon::IsSet ( ) const
inline

Checks whether the icon is set to something.

返回
true if the icon is set, false otherwise.

该结构体的文档由以下文件生成: