Navigation
API > API/Runtime > API/Runtime/SlateCore
A wrapper for accessing slot parameters for a given SlotType. Not all SlotTypes support all parameters. Optional default values are used when the wrapped SlotType cannot provide the requested property (ie. FSlot doesn't provide it's index).
| Name | TSlotAccessor |
| Type | struct |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Layout/LayoutUtils.h |
| Include Path | #include "Layout/LayoutUtils.h" |
Syntax
template<typename SlotType, typename>
struct TSlotAccessor
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FVector2f GetArrangedSize
(
const SlotType& InSlot, |
Get the slot's arranged size as it was last calculated. | Layout/LayoutUtils.h | |
FVector2f GetDesiredSize
(
const SlotType& InSlot, |
Get the slot's desired size as it was last calculated. | Layout/LayoutUtils.h | |
int32 GetIndex
(
const SlotType& InSlot, |
Get the index of the slot within it's parent container. | Layout/LayoutUtils.h | |
float GetMaxSize
(
const SlotType& InSlot, |
Get the slot's maximum size, if set. A value of 0.0f indicates this is not set. | Layout/LayoutUtils.h | |
float GetMinSize
(
const SlotType& InSlot, |
Get the slot's minimum size, if set. A value of 0.0f indicates this is not set. | Layout/LayoutUtils.h | |
| Get the slot padding. | Layout/LayoutUtils.h | ||
float GetShrinkSizeValue
(
const SlotType& InSlot, |
Get the slot's shrink size value, applicable if the size rule is FillContent. | Layout/LayoutUtils.h | |
FSizeParam::ESizeRule GetSizeRule
(
const SlotType& InSlot, |
Get the slot's applied size rule, ie. Auto, Fill. | Layout/LayoutUtils.h | |
float GetSizeValue
(
const SlotType& InSlot, |
Get the slot's size value, applicable if the size rule is Fill or FillContent. | Layout/LayoutUtils.h | |
EVisibility GetVisibility
(
const SlotType& InSlot, |
Get the current visibility state of the slot. | Layout/LayoutUtils.h | |
TSharedRef< SWidget > GetWidget
(
const SlotType& InSlot |
Get the contained widget. | Layout/LayoutUtils.h | |
FArrangedWidget MakeArrangedWidget
(
const SlotType& InSlot, |
Makes an arranged widget for the given Slot. This usually wraps FGeometry::MakeChild(). | Layout/LayoutUtils.h |