Navigation
API > API/Runtime > API/Runtime/SlateCore
Mixin to add resizing functionality to a base slot.
| Name | TResizingWidgetSlotMixin |
| Type | class |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Layout/BasicLayoutWidgetSlot.h |
| Include Path | #include "Layout/BasicLayoutWidgetSlot.h" |
Syntax
template<typename MixedIntoType>
class TResizingWidgetSlotMixin
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TResizingWidgetSlotMixin() |
Layout/BasicLayoutWidgetSlot.h |
Structs
| Name | Remarks |
|---|---|
| FSlotArgumentsMixin |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| TSlateSlotAttribute | ::SlateAttributePrivate::TSlateContainedAttribute< InObjectType, ::SlateAttributePrivate::FSlateAttributeNoInvalidationReason, TSlateAttributeComparePredicate<> > | Layout/BasicLayoutWidgetSlot.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float GetMaxSize() |
Get the max size the slot can be. | Layout/BasicLayoutWidgetSlot.h | |
float GetMinSize() |
Get the min size the slot can be. | Layout/BasicLayoutWidgetSlot.h | |
float GetShrinkSizeValue () |
Get the size parameter for the space rule, used when the slot size is shrinking below desired size. | Layout/BasicLayoutWidgetSlot.h | |
FSizeParam::ESizeRule GetSizeRule() |
Get the space rule this slot should occupy along panel's direction. | Layout/BasicLayoutWidgetSlot.h | |
float GetSizeValue () |
Get the size parameter for the space rule. | Layout/BasicLayoutWidgetSlot.h | |
void SetMaxSize
(
TAttribute< float > InMaxSize |
Set the max size in SlateUnit this slot can be. | Layout/BasicLayoutWidgetSlot.h | |
void SetMinSize
(
TAttribute< float > InMinSize |
Set the min size in SlateUnit this slot can be. | Layout/BasicLayoutWidgetSlot.h | |
void SetSizeParam
(
FSizeParam InSizeParam |
Set the size Param of the slot, It could be a FStretch, FStretchContent, or a FAuto. | Layout/BasicLayoutWidgetSlot.h | |
void SetSizeToAuto() |
The widget's DesiredSize will be used as the space required. | Layout/BasicLayoutWidgetSlot.h | |
void SetSizeToStretch
(
TAttribute< float > InStretchCoefficient |
The available space will be distributed proportionately to each slots stretch coefficient. | Layout/BasicLayoutWidgetSlot.h | |
void SetSizeToStretchContent
(
TAttribute< float > InStretchCoefficient, |
The widget's content size is adjusted proportionally to fit the available space. | Layout/BasicLayoutWidgetSlot.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ConstructMixin
(
const FChildren& SlotOwner, |
Layout/BasicLayoutWidgetSlot.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void RegisterAttributesMixin
(
FSlateWidgetSlotAttributeInitializer& AttributeInitializer |
Layout/BasicLayoutWidgetSlot.h |