Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Styling
Inheritance Hierarchy
- FSlateWidgetStyle
- FButtonStyle
References
Module | SlateCore |
Header | /Engine/Source/Runtime/SlateCore/Public/Styling/SlateTypes.h |
Include | #include "Styling/SlateTypes.h" |
Syntax
struct FButtonStyle : public FSlateWidgetStyle
Remarks
Represents the appearance of an SButton
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FSlateBrush | Disabled | Button appearance when disabled, by default this is set to an invalid resource when that is the case default disabled drawing is used. |
![]() |
FSlateColor | DisabledForeground | Foreground Color when disabled |
![]() |
FSlateBrush | Hovered | Button appearance when hovered |
![]() |
FSlateColor | HoveredForeground | Foreground Color when hovered |
![]() |
FSlateSound | HoveredSlateSound | The sound the button should play when initially hovered over |
![]() |
FSlateBrush | Normal | Button appearance when the button is not hovered or pressed |
![]() |
FSlateColor | NormalForeground | Foreground Color when the button is not hovered or pressed |
![]() |
FMargin | NormalPadding | Padding that accounts for the border in the button's background image. |
![]() |
FSlateBrush | Pressed | Button appearance when pressed |
![]() |
FSlateColor | PressedForeground | Foreground Color when pressed |
![]() |
FMargin | PressedPadding | Same as NormalPadding but used when the button is pressed. |
![]() |
FSlateSound | PressedSlateSound | The sound the button should play when pressed |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FButtonStyle () |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
const FButtonStyle & | GetDefault () |
|
![]() |
void | PostSerialize
(
const FArchive& Ar |
Used to upgrade the deprecated FName sound properties into the new-style FSlateSound properties |
![]() |
FButtonStyle & | SetDisabled
(
const FSlateBrush& InDisabled |
|
![]() |
FButtonStyle & | SetDisabledForeground
(
const FSlateColor& InDisabledForeground |
|
![]() |
FButtonStyle & | SetHovered
(
const FSlateBrush& InHovered |
|
![]() |
FButtonStyle & | SetHoveredForeground
(
const FSlateColor& InHoveredForeground |
|
![]() |
FButtonStyle & | SetHoveredSound
(
const FSlateSound& InHoveredSound |
|
![]() |
FButtonStyle & | SetNormal
(
const FSlateBrush& InNormal |
|
![]() |
FButtonStyle & | SetNormalForeground
(
const FSlateColor& InNormalForeground |
|
![]() |
FButtonStyle & | SetNormalPadding
(
const FMargin& InNormalPadding |
|
![]() |
FButtonStyle & | SetPressed
(
const FSlateBrush& InPressed |
|
![]() |
FButtonStyle & | SetPressedForeground
(
const FSlateColor& InPressedForeground |
|
![]() |
FButtonStyle & | SetPressedPadding
(
const FMargin& InPressedPadding |
|
![]() |
FButtonStyle & | SetPressedSound
(
const FSlateSound& InPressedSound |
|
![]() |
void | UnlinkColors () |
Unlinks all colors in this style. |
Overridden from FSlateWidgetStyle
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
void | GetResources
(
TArray< const FSlateBrush* >& OutBrushes |
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. |
Constants
Name | Description |
---|---|
TypeName |