Navigation
API > API/Plugins > API/Plugins/CommonUI
Custom UButton override that allows us to disable clicking without disabling the widget entirely
| Name | UCommonButtonInternalBase |
| Type | class |
| Header File | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/CommonButtonBase.h |
| Include Path | #include "CommonButtonBase.h" |
Syntax
UCLASS (Experimental, MinimalAPI)
class UCommonButtonInternalBase : public UButton
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UVisual → UWidget → UPanelWidget → UContentWidget → UButton → UCommonButtonInternalBase
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UCommonButtonInternalBase
(
const FObjectInitializer& ObjectInitializer |
CommonButtonBase.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| HandleDoubleClicked | FOnButtonDoubleClickedEvent | Called when the button is clicked | CommonButtonBase.h | |
| OnDoubleClicked | FOnButtonClickedEvent | Called when the button is clicked | CommonButtonBase.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedPtr< class SCommonButton > GetCommonButton() |
CommonButtonBase.h | ||
bool IsPressed() |
CommonButtonBase.h | ||
void SetButtonEnabled
(
bool bInIsButtonEnabled |
CommonButtonBase.h | ||
void SetButtonFocusable
(
bool bInIsButtonFocusable |
Updates the IsFocusable flag and updates the bIsFocusable flag of the underlying slate button widget | CommonButtonBase.h | |
void SetInteractionEnabled
(
bool bInIsInteractionEnabled |
CommonButtonBase.h | ||
void SetMaxDesiredHeight
(
int32 InMaxHeight |
CommonButtonBase.h | ||
void SetMaxDesiredWidth
(
int32 InMaxWidth |
CommonButtonBase.h | ||
void SetMinDesiredHeight
(
int32 InMinHeight |
CommonButtonBase.h | ||
void SetMinDesiredWidth
(
int32 InMinWidth |
CommonButtonBase.h |
Overridden from UWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool IsHovered() |
CommonButtonBase.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FReply SlateHandleClickedOverride() |
CommonButtonBase.h | ||
virtual FReply SlateHandleDoubleClicked() |
CommonButtonBase.h | ||
virtual FReply SlateHandleDragDetectedOverride
(
const FGeometry& MyGeometry, |
Begin Drag Drop These overrides are currently identical to the slate handlers found in UButton. | CommonButtonBase.h | |
virtual void SlateHandleDragEnterOverride
(
const FGeometry& MyGeometry, |
CommonButtonBase.h | ||
virtual void SlateHandleDragLeaveOverride
(
const FDragDropEvent& DragDropEvent |
CommonButtonBase.h | ||
virtual FReply SlateHandleDragOverOverride
(
const FGeometry& MyGeometry, |
CommonButtonBase.h | ||
virtual FReply SlateHandleDropOverride
(
const FGeometry& MyGeometry, |
CommonButtonBase.h | ||
virtual void SlateHandlePressedOverride() |
CommonButtonBase.h | ||
virtual void SlateHandleReleasedOverride() |
CommonButtonBase.h |
Overridden from UWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TSharedRef< SWidget > RebuildWidget() |
CommonButtonBase.h |
Overridden from UVisual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ReleaseSlateResources
(
bool bReleaseChildren |
CommonButtonBase.h |