Navigation
API > API/Developer > API/Developer/ToolWidgets
Represents the appearance of an SActionButton
| Name | FActionButtonStyle |
| Type | struct |
| Header File | /Engine/Source/Developer/ToolWidgets/Public/ToolWidgetsSlateTypes.h |
| Include Path | #include "ToolWidgetsSlateTypes.h" |
Syntax
USTRUCT (BlueprintType )
struct FActionButtonStyle : public FSlateWidgetStyle
Inheritance Hierarchy
- FSlateWidgetStyle → FActionButtonStyle
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FActionButtonStyle() |
ToolWidgetsSlateTypes.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| TypeName | const FName | ToolWidgetsSlateTypes.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bHasDownArrow | bool | Whether to show a down arrow for the combo button | ToolWidgetsSlateTypes.h |
|
| ButtonContentPadding | TOptional< FMargin > | Spacing between button's border and the content. Default uses ButtonStyle. | ToolWidgetsSlateTypes.h |
|
| ButtonStyle | FButtonStyle | The style to use for our SButton. | ToolWidgetsSlateTypes.h |
|
| ComboButtonContentPadding | TOptional< FMargin > | Spacing between button's border and the content. Default uses ComboButtonStyle. | ToolWidgetsSlateTypes.h |
|
| ComboButtonStyle | FComboButtonStyle | The style to use for our SComboButton. | ToolWidgetsSlateTypes.h |
|
| HorizontalContentAlignment | TEnumAsByte< EHorizontalAlignment > | Horizontal Content alignment within the button. | ToolWidgetsSlateTypes.h |
|
| IconBrush | TOptional< FSlateBrush > | Icon Brush to use. | ToolWidgetsSlateTypes.h |
|
| IconColorAndOpacity | TOptional< FSlateColor > | Icon Color/Tint, defaults is determined by ActionButtonType. | ToolWidgetsSlateTypes.h |
|
| IconNormalPadding | TOptional< FMargin > | If set and the button's icon is non-null, overrides the button style's additional spacing between the button's border and the content when not pressed. | ToolWidgetsSlateTypes.h |
|
| IconPressedPadding | TOptional< FMargin > | If set and the button's icon is non-null, overrides the button style's additional spacing between the button's border and the content when pressed. | ToolWidgetsSlateTypes.h |
|
| TextBlockStyle | FTextBlockStyle | The style to use for the button Text. | ToolWidgetsSlateTypes.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ActionButtonType | FName | The type to use for our SActionButton. | ToolWidgetsSlateTypes.h |
|
| IconButtonStyle | TOptional< FButtonStyle > | The style to use for our SButton when an icon is present. | ToolWidgetsSlateTypes.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
EActionButtonType GetActionButtonType() |
The type to use for our SActionButton. | ToolWidgetsSlateTypes.h | |
FMargin GetButtonContentPadding() |
ToolWidgetsSlateTypes.h | ||
FMargin GetComboButtonContentPadding() |
ToolWidgetsSlateTypes.h | ||
const FButtonStyle & GetIconButtonStyle () |
The style to use for our SButton when an icon is present. | ToolWidgetsSlateTypes.h | |
FActionButtonStyle & SetActionButtonType
(
const EActionButtonType InActionButtonType |
ToolWidgetsSlateTypes.h | ||
FActionButtonStyle & SetButtonContentPadding
(
const FMargin& InContentPadding |
ToolWidgetsSlateTypes.h | ||
FActionButtonStyle & SetButtonStyle
(
const FButtonStyle& InButtonStyle |
ToolWidgetsSlateTypes.h | ||
FActionButtonStyle & SetComboButtonContentPadding
(
const FMargin& InContentPadding |
ToolWidgetsSlateTypes.h | ||
FActionButtonStyle & SetComboButtonStyle
(
const FComboButtonStyle& InComboButtonStyle |
ToolWidgetsSlateTypes.h | ||
FActionButtonStyle & SetHasDownArrow
(
const bool& bInHasDownArrow |
ToolWidgetsSlateTypes.h | ||
FActionButtonStyle & SetHorizontalContentAlignment
(
const EHorizontalAlignment& InAlignment |
ToolWidgetsSlateTypes.h | ||
FActionButtonStyle & SetIconBrush
(
const FSlateBrush& InIconBrush |
ToolWidgetsSlateTypes.h | ||
FActionButtonStyle & SetIconButtonStyle
(
const FButtonStyle& InButtonStyle |
ToolWidgetsSlateTypes.h | ||
FActionButtonStyle & SetIconColorAndOpacity
(
const FSlateColor& InIconColorAndOpacity |
ToolWidgetsSlateTypes.h | ||
FActionButtonStyle & SetIconNormalPadding
(
const FMargin& InIconNormalPadding |
ToolWidgetsSlateTypes.h | ||
FActionButtonStyle & SetIconPressedPadding
(
const FMargin& InIconPressedPadding |
ToolWidgetsSlateTypes.h | ||
FActionButtonStyle & SetTextBlockStyle
(
const FTextBlockStyle& InTextBlockStyle |
ToolWidgetsSlateTypes.h | ||
void UnlinkColors () |
Unlinks all colors in this style. | ToolWidgetsSlateTypes.h |
Overridden from FSlateWidgetStyle
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void GetResources
(
TArray< const FSlateBrush* >& OutBrushes |
ToolWidgetsSlateTypes.h | ||
virtual const FName GetTypeName() |
ToolWidgetsSlateTypes.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static const FActionButtonStyle & GetDefault() |
ToolWidgetsSlateTypes.h |