UCommonButtonGroupBase

Manages an arbitrary collection of CommonButton widgets.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

CommonUI

Header

/Engine/Plugins/Experimental/CommonUI/Source/CommonUI/Public/Groups/CommonButtonGroupBase.h

Include

#include "Groups/CommonButtonGroupBase.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(BlueprintType)
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

Constructors

Name Description

Public function

UCommonButtonGroupBase()

Functions

Name Description

Public function UFunction BlueprintCallable, Category

void

 

DeselectAll()

Deselects all buttons in the group.

Public function Const UFunction BlueprintCallable, Category

int32

 

FindButtonIndex

(
    const UCommonButtonBase* Butto...
)

Find the button index of the specified button, if possible

Public function

void

 

ForEach

(
    TFunctionRef< void...
)

Public function Const UFunction BlueprintCallable, Category

UCommonButto...

 

GetButtonBaseAtIndex

(
    int32 Index
)

Public function Const UFunction BlueprintCallable, Category

int32

 

GetButtonCount()

Public function Const UFunction BlueprintCallable, BlueprintPure, Category

int32

 

GetHoveredButtonIndex()

Get the index of the currently hovered button, if any.

Public function Const UFunction BlueprintCallable, Category

UCommonButto...

 

GetSelectedButtonBase()

Public function Const UFunction BlueprintCallable, BlueprintPure, Category

int32

 

GetSelectedButtonIndex()

Get the index of the currently selected button, if any.

Public function Const

bool

 

GetSelectionRequired()

Public function Const UFunction BlueprintCallable, Category

bool

 

HasAnyButtons()

Protected function Virtual UFunction

void

 

OnButtonBaseHovered

(
    UCommonButtonBase* BaseButton
)

Protected function Virtual UFunction

void

 

OnButtonBaseUnhovered

(
    UCommonButtonBase* BaseButton
)

Protected function Virtual UFunction

void

 

OnHandleButtonBaseClicked

(
    UCommonButtonBase* BaseButton
)

Protected function Virtual UFunction

void

 

OnHandleButtonBaseDoubleClicked

(
    UCommonButtonBase* BaseButton
)

Protected function Virtual UFunction

void

 

OnSelectionStateChangedBase

(
    UCommonButtonBase* BaseButton,
    bool bIsSelected
)

Public function UFunction BlueprintCallable, Category

void

 

SelectButtonAtIndex

(
    int32 ButtonIndex
)

Selects a button at a specific index in the group. Clears all selection if given an invalid index.

Public function UFunction BlueprintCallable, Category

void

 

SelectNextButton

(
    bool bAllowWrap
)

Selects the next button in the group

Protected function

void

 

SelectNextButtonRecursive

(
    int32 SelectionIndex,
    bool bAllowWrap
)

Protected function

void

 

SelectPrevButtonRecursive

(
    int32 SelectionIndex,
    bool bAllowWrap
)

Public function UFunction BlueprintCallable, Category

void

 

SelectPreviousButton

(
    bool bAllowWrap
)

Selects the previous button in the group

Public function UFunction BlueprintCallable, Category

void

 

SetSelectionRequired

(
    bool bRequireSelection
)

Sets whether the group should always have a button selected.

Overridden from UCommonWidgetGroupBase

Name Description

Public function Virtual Const

TSubclassOf<...

 

GetWidgetType()

Protected function Virtual

void

 

OnRemoveAll()

Protected function Virtual

void

 

OnWidgetAdded

(
    UWidget* NewWidget
)

Protected function Virtual

void

 

OnWidgetRemoved

(
    UWidget* OldWidget
)

Classes

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss