Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Input > API/Runtime/Slate/Widgets/Input/SButton
Inheritance Hierarchy
- FSlateBaseNamedArgs
- TSlateBaseNamedArgs
- SButton::FArguments
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Input/SButton.h |
| Include | #include "Widgets/Input/SButton.h" |
Syntax
struct FArguments : public TSlateBaseNamedArgs< SButton >
Constructors
| Type | Name | Description | |
|---|---|---|---|
FArguments () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| WidgetArgsType & | ButtonColorAndOpacity
(
const TAttribute< FSlateColor >& InAttribute |
||
| WidgetArgsType & | ButtonStyle
(
const FButtonStyle* InArg |
The visual style of the button | |
| WidgetArgsType & | ClickMethod
(
EButtonClickMethod::Type InArg |
Sets the rules to use for determining whether the button was clicked. | |
| NamedSlotProperty< FArguments > | Content () |
Slot for this button's content (optional) | |
| WidgetArgsType & | ContentPadding
(
const TAttribute< FMargin >& InAttribute |
Spacing between button's border and the content. | |
| WidgetArgsType & | ContentScale
(
const TAttribute< FVector2D >& InAttribute |
||
| WidgetArgsType & | DesiredSizeScale
(
const TAttribute< FVector2D >& InAttribute |
||
| WidgetArgsType & | ForegroundColor
(
const TAttribute< FSlateColor >& InAttribute |
||
| WidgetArgsType & | HAlign
(
EHorizontalAlignment InArg |
Horizontal alignment | |
| WidgetArgsType & | HoveredSoundOverride
(
TOptional< FSlateSound > InArg |
The sound to play when the button is hovered | |
| WidgetArgsType & | IsFocusable
(
bool InArg |
Sometimes a button should only be mouse-clickable and never keyboard focusable. | |
| WidgetArgsType & | OnClicked
(
const FOnClicked& InDelegate |
Called when the button is clicked | |
| WidgetArgsType & | OnHovered
(
const FSimpleDelegate& InDelegate |
||
| WidgetArgsType & | OnPressed
(
const FSimpleDelegate& InDelegate |
Called when the button is pressed | |
| WidgetArgsType & | OnReleased
(
const FSimpleDelegate& InDelegate |
Called when the button is released | |
| WidgetArgsType & | OnUnhovered
(
const FSimpleDelegate& InDelegate |
||
| WidgetArgsType & | PressedSoundOverride
(
TOptional< FSlateSound > InArg |
The sound to play when the button is pressed | |
| WidgetArgsType & | PressMethod
(
EButtonPressMethod::Type InArg |
How should the button be clicked with keyboard/controller button events? | |
| WidgetArgsType & | Text
(
const TAttribute< FText >& InAttribute |
The text to display in this button, if no custom content is specified | |
| WidgetArgsType & | TextFlowDirection
(
TOptional< ETextFlowDirection > InArg |
Which text flow direction should we use? (unset to use the default returned by GetDefaultTextFlowDirection) | |
| WidgetArgsType & | TextShapingMethod
(
TOptional< ETextShapingMethod > InArg |
Which text shaping method should we use? (unset to use the default returned by GetDefaultTextShapingMethod) | |
| WidgetArgsType & | TextStyle
(
const FTextBlockStyle* InArg |
The text style of the button | |
| WidgetArgsType & | TouchMethod
(
EButtonTouchMethod::Type InArg |
How should the button be clicked with touch events? | |
| WidgetArgsType & | VAlign
(
EVerticalAlignment InArg |
Vertical alignment |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FArguments & | operator[]
(
const TSharedRef< SWidget >& InChild |
Typedefs
| Name | Description |
|---|---|
| WidgetArgsType |