Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/ISlateStyle
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const WidgetStyleType & GetWidgetStyle
(
FName PropertyName, |
Locates a widget style of a specified type and name. | Styling/ISlateStyle.h | |
const WidgetStyleType & GetWidgetStyle
(
FName PropertyName, |
Locates a widget style of a specified type and name. | Styling/ISlateStyle.h | |
const FSlateWidgetStyle * GetWidgetStyle
(
const FName& WidgetStyleTypeName, |
Styling/ISlateStyle.h |
GetWidgetStyle(FName, const ANSICHAR , const WidgetStyleType )
Description
Locates a widget style of a specified type and name.
| Name | GetWidgetStyle |
| Type | function |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Styling/ISlateStyle.h |
| Include Path | #include "Styling/ISlateStyle.h" |
template<typename WidgetStyleType>
const WidgetStyleType & GetWidgetStyle
(
FName PropertyName,
const ANSICHAR * Specifier,
const WidgetStyleType * DefaultValue
) const
The found widget style or the default value.
Parameters
| Name | Remarks |
|---|---|
| DefaultValue | The value to use if a widget style could not be found. If null and no style could be found, a warning will be logged. |
GetWidgetStyle(FName, const ANSICHAR , const WidgetStyleType , bool)
Description
Locates a widget style of a specified type and name. Allows customization of whether a warning should be logged.
| Name | GetWidgetStyle |
| Type | function |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Styling/ISlateStyle.h |
| Include Path | #include "Styling/ISlateStyle.h" |
template<typename WidgetStyleType>
const WidgetStyleType & GetWidgetStyle
(
FName PropertyName,
const ANSICHAR * Specifier,
const WidgetStyleType * DefaultValue,
bool bWarnIfNotFound
) const
The found widget style or the default value.
GetWidgetStyle(const FName &, FName, const ANSICHAR , const FSlateWidgetStyle , bool)
| Name | GetWidgetStyle |
| Type | function |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Styling/ISlateStyle.h |
| Include Path | #include "Styling/ISlateStyle.h" |
const FSlateWidgetStyle * GetWidgetStyle
(
const FName & WidgetStyleTypeName,
FName PropertyName,
const ANSICHAR * Specifier,
const FSlateWidgetStyle * DefaultValue,
bool bWarnIfNotFound
) const