Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Widgets/Input/SButton.h |
Include |
#include "Widgets/Input/SButton.h" |
class SButton : public SBorder
Slate's Buttons are clickable Widgets that can contain arbitrary widgets as its Content().
Name | Description | ||
---|---|---|---|
|
uint8: 1 |
bIsFocusable |
Can this button be focused? |
|
uint8: 1 |
bIsPressed |
True if this button is currently in a pressed state |
|
BorderPadding |
Padding that accounts for the button border |
|
|
TEnumAsByte< EB... |
ClickMethod |
Sets whether a click should be triggered on mouse down, mouse up, or that both a mouse down and up are required. |
|
TAttribute< FMa... |
ContentPadding |
Padding specified by the user; it will be combind with the button's internal padding. |
|
const FSlateBru... |
DisabledImage |
Brush resource that represents a button when it is disabled |
|
HoveredSound |
The Sound to play when the button is hovered |
|
|
const FSlateBru... |
HoverImage |
Brush resource that represents a button when it is hovered |
|
const FSlateBru... |
NormalImage |
Brush resource that represents a button |
|
OnClicked |
The delegate to execute when the button is clicked |
|
|
FSimpleDelegate |
OnHovered |
|
|
FSimpleDelegate |
OnPressed |
The delegate to execute when the button is pressed |
|
FSimpleDelegate |
OnReleased |
The delegate to execute when the button is released |
|
FSimpleDelegate |
OnUnhovered |
|
|
PressedBorderPadding |
Padding that accounts for the button border when pressed |
|
|
const FSlateBru... |
PressedImage |
Brush resource that represents a button when it is pressed |
|
PressedScreenSpacePosition |
The location in screenspace the button was pressed |
|
|
PressedSound |
The Sound to play when the button is pressed |
|
|
TEnumAsByte< EB... |
PressMethod |
How should the button be clicked with keyboard/controller button events? |
|
const FButtonSt... |
Style |
Style resource for the button |
|
TEnumAsByte< EB... |
TouchMethod |
How should the button be clicked with touch events? |
Name | Description | |
---|---|---|
|
SButton() |
Name | Description | ||
---|---|---|---|
|
Construct ( |
Construct this widget |
|
|
ExecuteOnClick() |
||
|
const FSlate... |
GetBorder() |
|
|
TEnumAsByte<... |
GetClickMethodFromInputType ( |
Utility function to translate other input click methods to regular ones. |
|
GetCombinedPadding() |
||
|
GetShowDisabledEffect() |
||
|
IsPreciseTapOrClick ( |
Utility function to determine if the incoming mouse event is for a precise tap or click |
|
|
IsPressed() |
Returns true if this button is currently pressed |
|
|
PlayHoverSound() |
Play the hovered sound |
|
|
PlayPressedSound() |
Play the pressed sound |
|
|
Press() |
Press the button |
|
|
Release() |
Release the button |
|
|
SetButtonStyle ( |
See ButtonStyle attribute |
|
|
SetClickMethod ( |
||
|
SetContentPadding ( |
See ContentPadding attribute |
|
|
SetHoveredSound ( |
See HoveredSound attribute |
|
|
SetOnClicked ( |
See OnClicked event |
|
|
SetOnHovered ( |
Set OnHovered event |
|
|
SetOnUnhovered ( |
Set OnUnhovered event |
|
|
SetPressedSound ( |
See PressedSound attribute |
|
|
SetPressMethod ( |
||
|
SetTouchMethod ( |
Name | Description | ||
---|---|---|---|
|
ComputeVolatility() |
Recomputes the volatility of the widget. |
|
|
TSharedRef< ... |
CreateAccessibleWidget() |
|
|
IsInteractable() |
||
|
OnFocusLost ( |
Called when this widget loses focus. This event does not bubble. |
|
|
OnKeyDown |
Called after a key is pressed when this widget has focus (this event bubbles if not handled) |
|
|
OnKeyUp |
Called after a key is released when this widget has focus |
|
|
OnMouseButtonDoubleClick ( |
Called when a mouse button is double clicked. Override this in derived classes. |
|
|
OnMouseButtonDown ( |
MOUSE INPUT The system calls this method to notify the widget that a mouse button was pressed within it. |
|
|
OnMouseButtonUp ( |
The system calls this method to notify the widget that a mouse button was release within it. |
|
|
OnMouseCaptureLost ( |
Called when this widget had captured the mouse, but that capture has been revoked for some reason. |
|
|
OnMouseEnter ( |
The system will use this event to notify a widget that the cursor has entered it. |
|
|
OnMouseLeave ( |
The system will use this event to notify a widget that the cursor has left it. |
|
|
OnMouseMove ( |
The system calls this method to notify the widget that a mouse moved within it. |
|
|
OnPaint ( |
The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children. |
|
|
SupportsKeyboardFocus() |
Checks to see if this widget supports keyboard focus. Override this in derived classes. |
Name |
Description |
|
---|---|---|
|
FArguments |