FSlateIcon

Struct used to represent an icon in Slate

Windows
MacOS
Linux

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

Name Description

Public function

FSlateIcon()

Default constructor (empty icon).

Public function

FSlateIcon

(
    const FName& InStyleSetName,
    const FName& InStyleName
)

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

Public function

FSlateIcon

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

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

Functions

Name Description

Public function Const

const FSlate...

 

GetIcon()

Gets the resolved icon.

Public function Const

const FSlate...

 

GetOptionalIcon()

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

Public function Const

const FSlate...

 

GetOptionalSmallIcon()

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

Public function Const

const FSlate...

 

GetSmallIcon()

Gets the resolved small icon.

Public function Const

const FName ...

 

GetSmallStyleName()

Gets the name of the style for the icon.

Public function Const

const FName ...

 

GetStyleName()

Gets the name of the style for the icon.

Public function Const

const ISlate...

 

GetStyleSet()

Gets the resolved style set.

Public function Const

const FName ...

 

GetStyleSetName()

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

Public function Const

const bool

 

IsSet()

Checks whether the icon is set to something.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss