Choose your operating system:
Windows
macOS
Linux
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 | |
---|---|---|
|
SButton() |
Name | Description | ||
---|---|---|---|
|
Construct ( |
Construct this widget |
|
|
ExecuteHoverStateChanged ( |
||
|
ExecuteOnClick() |
Execute the "OnClicked" delegate, and get the reply |
|
|
TSlateAttrib... |
GetAppearPressedAttribute() |
|
|
TSlateAttrib... |
GetBorderForegroundColorAttribute() |
|
|
TEnumAsByte<... |
GetClickMethodFromInputType ( |
Utility function to translate other input click methods to regular ones. |
|
GetCombinedPadding() |
||
|
TSlateAttrib... |
GetContentPaddingAttribute() |
|
|
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 |
|
|
SetAppearPressed ( |
Set the AppearPressed look. |
|
|
SetButtonStyle ( |
See ButtonStyle attribute |
|
|
SetClickMethod ( |
||
|
SetContentPadding ( |
See ContentPadding attribute |
|
|
SetHoveredSound ( |
See HoveredSound attribute |
|
|
SetIsFocusable ( |
Set if this button can be focused |
|
|
SetOnClicked ( |
See OnClicked event |
|
|
SetOnHovered ( |
Set OnHovered event |
|
|
SetOnUnhovered ( |
Set OnUnhovered event |
|
|
SetPressedSound ( |
See PressedSound attribute |
|
|
SetPressMethod ( |
||
|
SetTouchMethod ( |
||
|
SimulateClick() |
||
|
const FSlate... |
StaticWidgetClass() |
Name | Description | ||
---|---|---|---|
|
TSharedRef< ... |
CreateAccessibleWidget() |
|
|
GetDisabledForegroundColor() |
||
|
GetForegroundColor() |
||
|
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 | ||
---|---|---|---|
|
const FSlate... |
GetWidgetClass() |
Name |
Description |
|
---|---|---|
|
FArguments |
Name |
Description |
---|---|
PrivateParentType |
|
PrivateThisType |
|
Super |
|
ThisClass |
Name | Description | ||
---|---|---|---|
|
BorderPadding |
BorderPadding is now deprecated. Use the ButtonStyle. |
|
|
ContentPadding |
Direct access to ContentPadding is now deprecated. Use the setter or getter. |
|
|
const FSlateBru... |
DisabledImage |
DisabledImage is now deprecated. Use the ButtonStyle. |
|
const FSlateBru... |
HoverImage |
HoverImage is now deprecated. Use the ButtonStyle. |
|
const FSlateBru... |
NormalImage |
NormalImage is now deprecated. Use the ButtonStyle. |
|
PressedBorderPadding |
PressedBorderPadding is now deprecated. Use the ButtonStyle. |
|
|
const FSlateBru... |
PressedImage |
PressedImage is now deprecated. Use the ButtonStyle. |
Name | Description | ||
---|---|---|---|
|
const FSlate... |
GetBorder() |
GetBorder is deprecated. Use SetBorderImage or GetBorderImage |