Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Layout > API/Runtime/Slate/Widgets/Layout/SScrollBox
Inheritance Hierarchy
- TWidgetSlotWithAttributeSupport
- TPaddingWidgetSlotMixin
- TAlignmentWidgetSlotMixin
- TBasicLayoutWidgetSlot
- SScrollBox::FSlot
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SScrollBox.h |
| Include | #include "Widgets/Layout/SScrollBox.h" |
Syntax
class FSlot : public TBasicLayoutWidgetSlot< FSlot >
Remarks
A Slot that provides layout options for the contents of a scrollable box.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSlot () |
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 scrollbox's direction. | |
| float | GetSizeValue () |
Get the space rule value this slot should occupy along scrollbox'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 |