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
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. |
![]() ![]() |
float | GetMinSize () |
Get the min size the slot can be. |
![]() ![]() |
float | Get the size parameter for the space rule, used when the slot size is shrinking below desired size. | |
![]() ![]() |
FSizeParam::ESizeRule | GetSizeRule () |
Get the space rule this slot should occupy along panel's direction. |
![]() ![]() |
float | GetSizeValue () |
Get the size parameter for the space rule. |
![]() ![]() |
void | RegisterAttributes
(
FSlateWidgetSlotAttributeInitializer& AttributeInitializer |
|
![]() |
void | SetMaxSize
(
TAttribute< float > InMaxSize |
Set the max size in SlateUnit this slot can be. |
![]() |
void | SetMinSize
(
TAttribute< float > InMinSize |
Set the min size in SlateUnit this slot can be. |
![]() |
void | SetSizeParam
(
FSizeParam InSizeParam |
Set the size Param of the slot, It could be a FStretch, FStretchContent, or a FAuto. |
![]() |
void | The widget's DesiredSize will be used as the space required. | |
![]() |
void | SetSizeToStretch
(
TAttribute< float > InStretchCoefficient |
The available space will be distributed proportionately to each slots stretch coefficient. |
![]() |
void | SetSizeToStretchContent
(
TAttribute< float > InStretchCoefficient, |
The widget's content size is adjusted proportionally to fit the available space. |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FSlotArguments |