Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UVisual
- UPanelSlot
- UCanvasPanelSlot
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Components/CanvasPanelSlot.h |
| Include | #include "Components/CanvasPanelSlot.h" |
Syntax
class UCanvasPanelSlot : public UPanelSlot
Constructors
| Type | Name | Description | |
|---|---|---|---|
UCanvasPanelSlot
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BuildSlot
(
TSharedRef< SConstraintCanvas > Canvas |
||
| FVector2D | GetAlignment () |
Gets the alignment on the slot | |
| FAnchors | GetAnchors () |
Gets the anchors on the slot | |
| bool | GetAutoSize () |
Gets if the slot to be auto-sized | |
| FAnchorData | GetLayout () |
Gets the layout data of the slot | |
| FMargin | GetOffsets () |
Gets the offset data of the slot, which could be position and size, or margins depending on the anchor points | |
| FVector2D | GetPosition () |
Gets the position of the slot | |
| FVector2D | GetSize () |
Gets the size of the slot | |
| int32 | GetZOrder () |
Gets the z-order on the slot | |
| void | RebaseLayout
(
bool PreserveSize |
Compares the saved base layout against the current state. | |
| void | Stores the current layout information about the slot and parent canvas. | ||
| void | SetAlignment
(
FVector2D InAlignment |
Sets the alignment on the slot | |
| void | SetAnchors
(
FAnchors InAnchors |
Sets the anchors on the slot | |
| void | SetAutoSize
(
bool InbAutoSize |
Sets if the slot to be auto-sized | |
| void | SetDesiredPosition
(
FVector2D InPosition |
||
| void | SetLayout
(
const FAnchorData& InLayoutData |
Sets the layout data of the slot | |
| void | SetMaximum
(
FVector2D InMaximumAnchors |
Sets the anchors on the slot | |
| void | SetMinimum
(
FVector2D InMinimumAnchors |
Sets the anchors on the slot | |
| void | SetOffsets
(
FMargin InOffset |
Sets the offset data of the slot, which could be position and size, or margins depending on the anchor points | |
| void | SetPosition
(
FVector2D InPosition |
Sets the position of the slot | |
| void | SetSize
(
FVector2D InSize |
Sets the size of the slot | |
| void | SetZOrder
(
int32 InZOrder |
Sets the z-order on the slot |
Overridden from UPanelSlot
| Type | Name | Description | |
|---|---|---|---|
| bool | DragDropPreviewByDesigner
(
const FVector2D& LocalCursorPosition, |
Called by the designer when a design-time widget is dragged. | |
| bool | NudgeByDesigner
(
const FVector2D& NudgeDirection, |
Called by the designer to "nudge" a widget in a direction. | |
| void | SynchronizeFromTemplate
(
const UPanelSlot*const TemplateSlot |
Called by the designer when a design-time widget needs to have changes to its associated template synchronized. | |
| void | Applies all properties to the live slot if possible. |
Overridden from UVisual
| Type | Name | Description | |
|---|---|---|---|
| void | ReleaseSlateResources
(
bool bReleaseChildren |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeChainProperty
(
FPropertyChangedChainEvent& PropertyChangedEvent |
This alternate version of PostEditChange is called when properties inside structs are modified. | |
| void | PreEditChange
(
FProperty* PropertyAboutToChange |
This is called when a property is about to be modified externally |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAutoSize | Direct access to bAutoSize is deprecated. Please use the getter or setter. | |
| FAnchorData | LayoutData | Direct access to LayoutData is deprecated. Please use the getter or setter. | |
| int32 | ZOrder | Direct access to ZOrder is deprecated. Please use the getter or setter. |