Navigation
Unreal Engine C++ API Reference > Runtime > UMG > Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UVisual
- UWidget
- UPanelWidget
- UCanvasPanel
References
Module | UMG |
Header | /Engine/Source/Runtime/UMG/Public/Components/CanvasPanel.h |
Include | #include "Components/CanvasPanel.h" |
Syntax
class UCanvasPanel : public UPanelWidget
Remarks
The canvas panel is a designer friendly panel that allows widgets to be laid out at arbitrary locations, anchored and z-ordered with other children of the canvas. The canvas is a great widget for manual layout, but bad when you want to procedurally just generate widgets and place them in a container (unless you want absolute layout).
- Many Children
- Absolute Layout
- Anchors
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TSharedPtr< class SConstraintCanvas > | MyCanvas |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UCanvasPanel
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
UCanvasPanelSlot * | AddChildToCanvas
(
UWidget* Content |
|
![]() ![]() |
TSharedPtr< class SConstraintCanvas > | Gets the underlying native canvas widget if it has been constructed | |
![]() ![]() |
bool | GetGeometryForSlot
(
int32 SlotIndex, |
Computes the geometry for a particular slot based on the current geometry of the canvas. |
![]() ![]() |
bool | GetGeometryForSlot
(
UCanvasPanelSlot* Slot, |
Computes the geometry for a particular slot based on the current geometry of the canvas. |
Overridden from UPanelWidget
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
UClass * | GetSlotClass () |
UPanelWidget. |
![]() ![]() ![]() |
bool | ||
![]() ![]() |
void | OnSlotAdded
(
UPanelSlot* Slot |
|
![]() ![]() |
void | OnSlotRemoved
(
UPanelSlot* Slot |
Overridden from UWidget
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
const FText | Gets the palette category of the widget | |
![]() ![]() |
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 |