Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Plugins/Experimental/CommonUI/Source/CommonUI/Public/CommonButtonBase.h |
Include |
#include "CommonButtonBase.h" |
UCLASS(Abstract, Blueprintable, ClassGroup=UI, Meta=(Category="Common UI", DisableNativeTick))
class UCommonButtonBase : public UCommonUserWidget
Button that disables itself when not active. Also updates actions for CommonActionWidget if bound to display platform-specific icons.
Name | Description | ||
---|---|---|---|
|
uint8: 1 |
bApplyAlphaOnDisable |
The type of mouse action required by the user to trigger the button's 'Click' |
|
uint8: 1 |
bDisplayInputActionWhenNotInteractable |
True if the input action should be displayed when the button is not interactable |
|
bHideInputAction |
Whether to hide the input action widget at all times (useful for textless small buttons) |
|
|
uint8: 1 |
bHideInputActionWithKeyboard |
True if the input action should be hidden while the user is using a keyboard |
|
uint8: 1 |
bInteractableWhenSelected |
If true, the button may be clicked while selected. |
|
uint8: 1 |
bSelectable |
True if the button supports being in a "selected" state, which will update the style accordingly |
|
uint8: 1 |
bShouldSelectUponReceivingFocus |
If true, the button will be selected when it receives focus. |
|
uint8: 1 |
bShouldUseFallbackDefaultInputAction |
True if this button should use the default fallback input action (bool is useful for buttons that shouldn't because they are never directly hit via controller) |
|
bStyleNoLongerNeedsConversion |
Used to track widgets that were created before changing the default style pointer to null |
|
|
uint8: 1 |
bToggleable |
True if the button can be deselected by clicking it when selected |
|
TEnumAsByte< EB... |
ClickMethod |
The type of mouse action required by the user to trigger the button's 'Click' |
|
HoveredSlateSoundOverride |
Optional override for the sound to play when this button is hovered |
|
|
InputActionWidget |
Optionally bound widget for visualization behavior of an input action; |
|
|
InputPriority |
This is the priority for the TriggeringInputAction. |
|
|
MinHeight |
The minimum height of the button (only used if greater than the style's minimum) |
|
|
MinWidth |
The minimum width of the button (only used if greater than the style's minimum) |
|
|
OnButtonBaseClicked |
||
|
OnButtonBaseDoubleClicked |
||
|
OnButtonBaseHovered |
||
|
OnButtonBaseUnhovered |
||
|
OnSelectedChangedBase |
||
|
PressedSlateSoundOverride |
Optional override for the sound to play when this button is pressed |
|
|
TEnumAsByte< EB... |
PressMethod |
|
|
TSubclassOf< UC... |
Style |
References the button style asset that defines a style in multiple sizes |
|
TEnumAsByte< EB... |
TouchMethod |
|
|
TriggeredInputAction |
The input action that can be visualized as well as triggered when the user clicks the button. |
|
|
TriggeringBindingHandle |
||
|
TriggeringInputAction |
The input action that is bound to this button. |
Name | Description | |
---|---|---|
|
UCommonButtonBase ( |
Name | Description | ||
---|---|---|---|
|
BindInputMethodChangedDelegate() |
Helper function to bind to input method change events |
|
|
BindTriggeringInputActionToClick() |
Associates this button at its priority with the given key |
|
|
BP_OnClicked() |
||
|
BP_OnDeselected() |
||
|
BP_OnDisabled() |
||
|
BP_OnDoubleClicked() |
||
|
BP_OnEnabled() |
||
|
BP_OnHovered() |
||
|
BP_OnSelected() |
||
|
BP_OnUnhovered() |
||
|
ClearSelection() |
||
|
UCommonButto... |
ConstructInternalButton() |
|
|
DisableButtonWithReason ( |
Disables this button with a reason (use instead of SetIsEnabled) |
|
|
ExecuteTriggeredInput() |
||
|
GetButtonAnalyticInfo |
||
|
GetCurrentButtonPadding ( |
||
|
GetCurrentCustomPadding ( |
||
|
UCommonTextS... |
GetCurrentTextStyle() |
|
|
TSubclassOf<... |
GetCurrentTextStyleClass() |
|
|
GetInputAction ( |
Gets the appropriate input action that is set |
|
|
GetIsFocusable() |
Gets the bIsFocusable flag |
|
|
GetSelected() |
||
|
GetShouldSelectUponReceivingFocus() |
Get whether the button should become selected upon receiving focus or not |
|
|
UMaterialIns... |
GetSingleMaterialStyleMID() |
Returns the dynamic instance of the material being used for this button, if it is using a single material style. |
|
UCommonButto... |
GetStyle() |
Current button style |
|
const UCommo... |
GetStyleCDO() |
|
|
HandleButtonClicked() |
Handler function registered to the underlying button's click. |
|
|
HandleButtonDoubleClicked() |
Handler function registered to the underlying button's double click. |
|
|
HandleButtonPressed() |
Helper function registered to the underlying button when pressed |
|
|
HandleButtonReleased() |
Helper function registered to the underlying button when released |
|
|
HandleFocusReceived() |
Helper function registered to the underlying button receiving focus |
|
|
HandleTriggeringActionCommited ( |
||
|
IsInteractionEnabled() |
Is this button currently interactable? (use instead of GetIsEnabled) |
|
|
IsPressed() |
Is this button currently pressed? |
|
|
NativeOnActionComplete() |
||
|
NativeOnActionProgress ( |
||
|
NativeOnClicked() |
||
|
NativeOnCurrentTextStyleChanged() |
Allows derived classes to take action when the current text style has changed |
|
|
NativeOnDeselected ( |
||
|
NativeOnDisabled() |
||
|
NativeOnDoubleClicked() |
||
|
NativeOnEnabled() |
||
|
NativeOnHovered() |
||
|
NativeOnSelected ( |
||
|
NativeOnUnhovered() |
||
|
OnActionComplete() |
||
|
OnActionProgress ( |
||
|
FCommonButto... |
OnClicked() |
|
|
OnCurrentTextStyleChanged() |
Allows derived classes to take action when the current text style has changed |
|
|
FCommonButto... |
OnDoubleClicked() |
|
|
FCommonButto... |
OnFocusReceived() |
|
|
FCommonButto... |
OnHovered() |
|
|
OnInputMethodChanged ( |
Called via delegate when the input method changes |
|
|
FOnIsSelecte... |
OnIsSelectedChanged() |
|
|
FCommonButto... |
OnPressed() |
|
|
FCommonButto... |
OnReleased() |
|
|
OnTriggeredInputActionChanged ( |
||
|
FCommonButto... |
OnUnhovered() |
|
|
RefreshDimensions() |
||
|
SetClickMethod ( |
Set the click method for mouse interaction |
|
|
SetHoveredSoundOverride ( |
||
|
SetInputActionProgressMaterial ( |
||
|
SetIsFocusable ( |
Updates the bIsFocusable flag |
|
|
SetIsInteractableWhenSelected ( |
Change whether this widget is selectable at all. If false and currently selected, will deselect. |
|
|
SetIsInteractionEnabled ( |
Change whether this widget is selectable at all. If false and currently selected, will deselect. |
|
|
SetIsSelectable ( |
Change whether this widget is selectable at all. If false and currently selected, will deselect. |
|
|
SetIsSelected |
Change the selected state manually. |
|
|
SetIsToggleable ( |
Change whether this widget is toggleable. If toggleable, clicking when selected will deselect. |
|
|
SetMinDimensions |
Sets the minimum dimensions of this button |
|
|
SetPressedSoundOverride ( |
||
|
SetPressMethod ( |
Set the click method for keyboard/gamepad button press interaction |
|
|
SetSelectedInternal |
Internal method to allow the selected state to be set regardless of selectability or toggleability |
|
|
SetShouldSelectUponReceivingFocus ( |
Set whether the button should become selected upon receiving focus or not; Only settable for buttons that are selectable |
|
|
SetShouldUseFallbackDefaultInputAction ( |
Change whether this widget should use the fallback default input action. |
|
|
SetStyle ( |
Sets the style of this button, rebuilds the internal styling |
|
|
SetTouchMethod ( |
Set the click method for touch interaction |
|
|
SetTriggeredInputAction ( |
Updates the current triggered action |
|
|
SetTriggeringInputAction ( |
Updates the current triggering action |
|
|
StopDoubleClickPropagation() |
Unless this is called, we will assume the double click should be converted into a normal click. |
|
|
UnbindInputMethodChangedDelegate() |
Helper function to unbind from input method change events |
|
|
UnbindTriggeringInputActionToClick() |
Associates this button at its priority with the given key |
|
|
UpdateInputActionWidget() |
Helper function to update the associated input action widget, if any, based upon the state of the button |
Name | Description | ||
---|---|---|---|
|
Initialize() |
||
|
NativeConstruct() |
||
|
NativeDestruct() |
||
|
NativeIsInteractable() |
||
|
NativeOnFocusReceived ( |
||
|
NativeOnMouseEnter ( |
||
|
NativeOnMouseLeave ( |
Name | Description | ||
---|---|---|---|
|
const FText |
GetPaletteCategory() |
Gets the palette category of the widget |
|
IsHovered() |
Returns true if the widget is currently being hovered by a pointer device |
|
|
OnCreationFromPalette() |
Called by the palette after constructing a new widget, allows the widget to perform interesting default setup that we don't want to be UObject Defaults. |
|
|
OnWidgetRebuilt() |
Function called after the underlying SWidget is constructed. |
|
|
SetIsEnabled ( |
Sets the current enabled status of the widget |
|
|
SynchronizeProperties() |
Applies all properties to the native widget if possible. |
Name | Description | ||
---|---|---|---|
|
PostLoad() |
Do any object-specific cleanup required immediately after loading an object. |
Name |
Description |
|
---|---|---|
|
FCommonButtonEvent |
|
|
FOnIsSelectedChanged |