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. |
![]() ![]() |
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 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 | 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 > StretchCoefficient |
The available space will be distributed proportionately. |
![]() |
void | SetSizeToStretchContent
(
TAttribute< float > InStretchCoefficient, |
The widget's content size is adjusted proportionally to fit the available space. |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FSlotArguments |