FArguments

Windows
MacOS
Linux

Inheritance Hierarchy

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

Name Description

Public function

FArguments()

Functions

Name Description

Public function

WidgetArgsTy...

 

ButtonColorAndOpacity

(
    const TAttribute< FSlateColor >& I...
)

Public function

WidgetArgsTy...

 

ButtonStyle

(
    const FButtonStyle* InArg
)

The visual style of the button

Public function

WidgetArgsTy...

 

ClickMethod

(
    EButtonClickMethod::Type InArg
)

Sets the rules to use for determining whether the button was clicked.

Public function

NamedSlotPro...

 

Content()

Slot for this button's content (optional)

Public function

WidgetArgsTy...

 

ContentPadding

(
    const TAttribute< FMargin >& InAtt...
)

Spacing between button's border and the content.

Public function

WidgetArgsTy...

 

ContentScale

(
    const TAttribute< FVector2D >& InA...
)

Public function

WidgetArgsTy...

 

DesiredSizeScale

(
    const TAttribute< FVector2D >& InA...
)

Public function

WidgetArgsTy...

 

ForegroundColor

(
    const TAttribute< FSlateColor >& I...
)

Public function

WidgetArgsTy...

 

HAlign

(
    EHorizontalAlignment InArg
)

Horizontal alignment

Public function

WidgetArgsTy...

 

HoveredSoundOverride

(
    TOptional< FSlateSound > InArg
)

The sound to play when the button is hovered

Public function

WidgetArgsTy...

 

IsFocusable

(
    bool InArg
)

Sometimes a button should only be mouse-clickable and never keyboard focusable.

Public function

WidgetArgsTy...

 

OnClicked

(
    const FOnClicked& InDelegate
)

Called when the button is clicked

Public function

WidgetArgsTy...

 

OnHovered

(
    const FSimpleDelegate& InDelegate
)

Public function

WidgetArgsTy...

 

OnPressed

(
    const FSimpleDelegate& InDelegate
)

Called when the button is pressed

Public function

WidgetArgsTy...

 

OnReleased

(
    const FSimpleDelegate& InDelegate
)

Called when the button is released

Public function

WidgetArgsTy...

 

OnUnhovered

(
    const FSimpleDelegate& InDelegate
)

Public function

WidgetArgsTy...

 

PressedSoundOverride

(
    TOptional< FSlateSound > InArg
)

The sound to play when the button is pressed

Public function

WidgetArgsTy...

 

PressMethod

(
    EButtonPressMethod::Type InArg
)

How should the button be clicked with keyboard/controller button events?

Public function

WidgetArgsTy...

 

Text

(
    const TAttribute< FText >& InAttri...
)

The text to display in this button, if no custom content is specified

Public function

WidgetArgsTy...

 

TextFlowDirection

(
    TOptional< ETextFlowDirection > InA...
)

Which text flow direction should we use? (unset to use the default returned by GetDefaultTextFlowDirection)

Public function

WidgetArgsTy...

 

TextShapingMethod

(
    TOptional< ETextShapingMethod > InA...
)

Which text shaping method should we use? (unset to use the default returned by GetDefaultTextShapingMethod)

Public function

WidgetArgsTy...

 

TextStyle

(
    const FTextBlockStyle* InArg
)

The text style of the button

Public function

WidgetArgsTy...

 

TouchMethod

(
    EButtonTouchMethod::Type InArg
)

How should the button be clicked with touch events?

Public function

WidgetArgsTy...

 

VAlign

(
    EVerticalAlignment InArg
)

Vertical alignment

Operators

Name Description

Public function

FArguments &

 

operator[]

(
    const TSharedRef< SWidget > InChild
)

Typedefs

Name

Description

WidgetArgsType

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss