Navigation
API > API/Plugins > API/Plugins/CommonUI
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UVisual
- UWidget
- UPanelWidget
- UContentWidget
- UButton
- UCommonButtonInternalBase
References
| Module | CommonUI |
| Header | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/CommonButtonBase.h |
| Include | #include "CommonButtonBase.h" |
Syntax
UCLASS&40;Experimental&41;
class UCommonButtonInternalBase : public UButton
Remarks
Custom UButton override that allows us to disable clicking without disabling the widget entirely
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bButtonEnabled | If true, this button is enabled. | |
| bool | bInteractionEnabled | If true, this button can be interacted with it normally. | |
| FOnButtonDoubleClickedEvent | HandleDoubleClicked | Called when the button is clicked | |
| int32 | MinHeight | The minimum height of the button | |
| int32 | MinWidth | The minimum width of the button | |
| TSharedPtr< SBox > | MyBox | Cached pointer to the underlying slate button owned by this UWidget | |
| TSharedPtr< class SCommonButton > | MyCommonButton | Cached pointer to the underlying slate button owned by this UWidget | |
| FOnButtonClickedEvent | OnDoubleClicked | Called when the button is clicked | |
| FSimpleDelegate | OnLostFocus | Called when the button loses focus | |
| FSimpleDelegate | OnReceivedFocus | Called when the button receives focus |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UCommonButtonInternalBase
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | IsPressed () |
||
| void | SetButtonEnabled
(
bool bInIsButtonEnabled |
||
| void | SetButtonFocusable
(
bool bInIsButtonFocusable |
Updates the IsFocusable flag and updates the bIsFocusable flag of the underlying slate button widget | |
| void | SetInteractionEnabled
(
bool bInIsInteractionEnabled |
||
| void | SetMinDesiredHeight
(
int32 InMinHeight |
||
| void | SetMinDesiredWidth
(
int32 InMinWidth |
||
| FReply | |||
| FReply | |||
| void | Called when internal slate button loses focus; Fires OnLostFocus | ||
| void | Called when internal slate button receives focus; Fires OnReceivedFocus | ||
| void | |||
| void |
Overridden from UWidget
| Type | Name | Description | |
|---|---|---|---|
| bool | IsHovered () |
Returns true if the widget is currently being hovered by a pointer device | |
| TSharedRef< SWidget > | Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. |
Overridden from UVisual
| Type | Name | Description | |
|---|---|---|---|
| void | ReleaseSlateResources
(
bool bReleaseChildren |