Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Widgets > API/Runtime/SlateCore/Widgets/SBoxPanel
Inheritance Hierarchy
- TWidgetSlotWithAttributeSupport
- TPaddingWidgetSlotMixin
- TAlignmentWidgetSlotMixin
- TBasicLayoutWidgetSlot
- SBoxPanel::TSlot
- SBoxPanel::FSlot
- SHorizontalBox::FSlot
- SStackBox::FSlot
- SVerticalBox::FSlot
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Widgets/SBoxPanel.h |
| Include | #include "Widgets/SBoxPanel.h" |
Syntax
template<typename SlotType>
class TSlot : public TBasicLayoutWidgetSlot< SlotType >
Remarks
A BoxPanel contains one BoxPanel child and describes how that child should be arranged on the screen.
Constructors
| Type | Name | Description | |
|---|---|---|---|
TSlot () |
Default values for a slot. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Construct
(
const FChildren& SlotOwner, |
||
| float | GetMaxSize () |
Get the max size the slot can be. | |
| FSizeParam::ESizeRule | GetSizeRule () |
Get the space rule this slot should occupy along panel's direction. | |
| float | GetSizeValue () |
Get the space rule value this slot should occupy along panel's direction. | |
| void | RegisterAttributes
(
FSlateWidgetSlotAttributeInitializer& AttributeInitializer |
||
| void | SetMaxSize
(
TAttribute< float > InMaxSize |
Set the max size in SlateUnit this slot can be. | |
| void | SetSizeParam
(
FSizeParam InSizeParam |
Set the size Param of the slot, It could be a FStretch or a FAuto. | |
| void | The widget's DesiredSize will be used as the space required. | ||
| void | SetSizeToStretch
(
TAttribute< float > StretchCoefficient |
The available space will be distributed proportionately. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FSlotArguments |