Choose your operating system:
Windows
macOS
Linux
| FSlateWidgetStyle
|
Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Styling/SlateTypes.h |
Include |
#include "Styling/SlateTypes.h" |
struct FButtonStyle : public FSlateWidgetStyle
Represents the appearance of an SButton
Name | Description | ||
---|---|---|---|
|
Disabled |
Button appearance when disabled, by default this is set to an invalid resource when that is the case default disabled drawing is used. |
|
|
DisabledForeground |
Foreground Color when disabled |
|
|
Hovered |
Button appearance when hovered |
|
|
HoveredForeground |
Foreground Color when hovered |
|
|
HoveredSlateSound |
The sound the button should play when initially hovered over |
|
|
Normal |
Button appearance when the button is not hovered or pressed |
|
|
NormalForeground |
Foreground Color when the button is not hovered or pressed |
|
|
NormalPadding |
Padding that accounts for the border in the button's background image. |
|
|
Pressed |
Button appearance when pressed |
|
|
PressedForeground |
Foreground Color when pressed |
|
|
PressedPadding |
Same as NormalPadding but used when the button is pressed. |
|
|
PressedSlateSound |
The sound the button should play when pressed |
Name | Description | |
---|---|---|
|
FButtonStyle() |
Name | Description | |
---|---|---|
|
~FButtonStyle() |
Name | Description | ||
---|---|---|---|
|
const FButto... |
GetDefault() |
|
|
PostSerialize ( |
Used to upgrade the deprecated FName sound properties into the new-style FSlateSound properties |
|
|
FButtonStyle... |
SetDisabled ( |
|
|
FButtonStyle... |
SetDisabledForeground ( |
|
|
FButtonStyle... |
SetHovered ( |
|
|
FButtonStyle... |
SetHoveredForeground ( |
|
|
FButtonStyle... |
SetHoveredSound ( |
|
|
FButtonStyle... |
SetNormal ( |
|
|
FButtonStyle... |
SetNormalForeground ( |
|
|
FButtonStyle... |
SetNormalPadding ( |
|
|
FButtonStyle... |
SetPressed ( |
|
|
FButtonStyle... |
SetPressedForeground ( |
|
|
FButtonStyle... |
SetPressedPadding ( |
|
|
FButtonStyle... |
SetPressedSound ( |
|
|
UnlinkColors() |
Unlinks all colors in this style. |
Name | Description | ||
---|---|---|---|
|
GetResources ( |
Gets the brush resources associated with this style. |
|
|
const FName |
GetTypeName() |
Gets the name of this style. This method must be implemented by inherited structures. |
Name |
Description |
---|---|
TypeName |