Navigation
API > API/Plugins > API/Plugins/CommonUI > API/Plugins/CommonUI/Groups
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UCommonWidgetGroupBase
- UCommonButtonGroupBase
References
| Module | CommonUI |
| Header | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/Groups/CommonButtonGroupBase.h |
| Include | #include "Groups/CommonButtonGroupBase.h" |
Syntax
UCLASS&40;BlueprintType&41;
class UCommonButtonGroupBase : public UCommonWidgetGroupBase
Remarks
Manages an arbitrary collection of CommonButton widgets. Ensures that no more (and optionally, no less) than one button in the group is selected at a time
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bSelectionRequired | If true, the group will force that a button be selected at all times | |
| TArray< TWeakObjectPtr< UCommonButtonBase > > | Buttons | ||
| int32 | HoveredButtonIndex | ||
| FNativeSimpleButtonBaseGroupDelegate | NativeOnButtonBaseClicked | ||
| FNativeSimpleButtonBaseGroupDelegate | NativeOnButtonBaseDoubleClicked | ||
| FNativeSimpleButtonBaseGroupDelegate | NativeOnHoveredButtonBaseChanged | ||
| FNativeSimpleButtonBaseGroupDelegate | NativeOnSelectedButtonBaseChanged | ||
| FNativeOnSelectionCleared | NativeOnSelectionCleared | ||
| FSimpleButtonBaseGroupDelegate | OnButtonBaseClicked | ||
| FSimpleButtonBaseGroupDelegate | OnButtonBaseDoubleClicked | ||
| FSimpleButtonBaseGroupDelegate | OnHoveredButtonBaseChanged | ||
| FSimpleButtonBaseGroupDelegate | OnSelectedButtonBaseChanged | ||
| FOnSelectionCleared | OnSelectionCleared | ||
| int32 | SelectedButtonIndex |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | DeselectAll () |
Deselects all buttons in the group. | |
| int32 | FindButtonIndex
(
const UCommonButtonBase* ButtonToFind |
Find the button index of the specified button, if possible | |
| void | ForEach
(
TFunctionRef< void(UCommonButtonBase&, int32)> Functor |
||
| UCommonButtonBase * | GetButtonBaseAtIndex
(
int32 Index |
||
| int32 | |||
| int32 | Get the index of the currently hovered button, if any. | ||
| UCommonButtonBase * | |||
| int32 | Get the index of the currently selected button, if any. | ||
| bool | |||
| bool | |||
| void | OnButtonBaseHovered
(
UCommonButtonBase* BaseButton |
||
| void | OnButtonBaseUnhovered
(
UCommonButtonBase* BaseButton |
||
| void | OnHandleButtonBaseClicked
(
UCommonButtonBase* BaseButton |
||
| void | OnHandleButtonBaseDoubleClicked
(
UCommonButtonBase* BaseButton |
||
| void | OnSelectionStateChangedBase
(
UCommonButtonBase* BaseButton, |
||
| void | SelectButtonAtIndex
(
int32 ButtonIndex, |
Selects a button at a specific index in the group. Clears all selection if given an invalid index. | |
| void | SelectNextButton
(
bool bAllowWrap |
Selects the next button in the group | |
| void | SelectPreviousButton
(
bool bAllowWrap |
Selects the previous button in the group | |
| void | SetSelectionRequired
(
bool bRequireSelection |
Sets whether the group should always have a button selected. |
Overridden from UCommonWidgetGroupBase
| Type | Name | Description | |
|---|---|---|---|
| TSubclassOf< UWidget > | |||
| void | OnRemoveAll () |
||
| void | OnWidgetAdded
(
UWidget* NewWidget |
||
| void | OnWidgetRemoved
(
UWidget* OldWidget |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FNativeOnSelectionCleared | |||
| FNativeSimpleButtonBaseGroupDelegate |