Navigation
Unreal Engine C++ API Reference > Runtime > UMG > Components
Inheritance Hierarchy
- UObject
- UVisual
- UWidget
- UPanelWidget
- UCanvasPanel
- UContentWidget
- UBackgroundBlur
- UBorder
- UButton
- UCheckBox
- UInvalidationBox
- UMenuAnchor
- UNamedSlot
- URetainerBox
- USafeZone
- UScaleBox
- USizeBox
- UViewport
- UWindowTitleBarArea
- UGridPanel
- UHorizontalBox
- UOverlay
- UScrollBox
- UStackBox
- UUniformGridPanel
- UVerticalBox
- UWidgetSwitcher
- UWrapBox
References
Module | UMG |
Header | /Engine/Source/Runtime/UMG/Public/Components/PanelWidget.h |
Include | #include "Components/PanelWidget.h" |
Syntax
UCLASS (Abstract, MinimalAPI)
class UPanelWidget : public UWidget
Remarks
The base class for all UMG panel widgets. Panel widgets layout a collection of child widgets.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool | bCanHaveMultipleChildren | Can this panel allow for multiple children? |
![]() ![]() ![]() |
TArray< TObjectPtr< UPanelSlot > > | Slots | The slots in the widget holding the child widgets of this panel. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UPanelWidget
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
UPanelSlot * | Adds a new child widget to the container. | |
![]() ![]() |
bool | Returns true if the panel can accept another child widget. | |
![]() ![]() |
bool | Returns true if the panel supports more than one child. | |
![]() ![]() ![]() ![]() |
void | Remove all child widgets from the panel widget. | |
![]() ![]() ![]() ![]() |
TArray< UWidget * > | Gets all widgets in the container | |
![]() ![]() ![]() ![]() |
UWidget * | GetChildAt
(
int32 Index |
Gets the widget at an index. |
![]() ![]() ![]() ![]() |
int32 | GetChildIndex
(
const UWidget* Content |
Gets the index of a specific child widget |
![]() ![]() ![]() ![]() |
int32 | Gets number of child widgets in the container. | |
![]() ![]() ![]() |
UClass * | GetSlotClass () |
|
![]() ![]() |
const TArray< UPanelSlot * > & | GetSlots () |
The slots in the widget holding the child widgets of this panel. |
![]() ![]() ![]() ![]() |
bool | Returns true if there are any child widgets in the panel | |
![]() ![]() ![]() ![]() |
bool | Returns true if panel contains this widget | |
![]() |
UPanelSlot * | InsertChildAt
(
int32 Index, |
Inserts a widget at a specific index. |
![]() ![]() ![]() |
bool | ||
![]() ![]() |
void | OnSlotAdded
(
UPanelSlot* InSlot |
|
![]() ![]() |
void | OnSlotRemoved
(
UPanelSlot* InSlot |
|
![]() ![]() |
void | PostLoad () |
Begin UObject. |
![]() ![]() ![]() |
bool | RemoveChild
(
UWidget* Content |
Removes a specific widget from the container. |
![]() ![]() ![]() |
bool | RemoveChildAt
(
int32 Index |
Removes a child by it's index. |
![]() ![]() |
bool | ReplaceChild
(
UWidget* CurrentChild, |
Swaps the child widget out of the slot, and replaces it with the new child widget. |
![]() |
bool | ReplaceChildAt
(
int32 Index, |
Swaps the widget out of the slot at the given index, replacing it with a different widget. |
![]() |
void | ShiftChild
(
int32 Index, |
Moves the child widget from its current index to the new index provided. |
Overridden from UWidget
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | Allows general fixups and connections only used at editor time. | |
![]() ![]() |
TSharedRef< SWidget > | RebuildDesignWidget
(
TSharedRef< SWidget > Content |
|
![]() ![]() |
void | SetDesignerFlags
(
EWidgetDesignFlags NewFlags |
Sets the designer flags on the widget. |
Overridden from UVisual
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | ReleaseSlateResources
(
bool bReleaseChildren |