Navigation
API > API/Runtime > API/Runtime/SlateCore
| Name | TSlotAccessor< SlotType, std::enable_if_t< std::is_base_of_v< TBasicLayoutWidgetSlot< SlotType >, std::decay_t< SlotType > > &&std::is_base_of_v< TResizingWidgetSlotMixin< SlotType >, std::decay_t< SlotType > > > > |
| Type | struct |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Layout/LayoutUtils.h |
| Include Path | #include "Layout/LayoutUtils.h" |
Syntax
namespace TSlotAccessor< SlotType, std
{
namespace enable_if_t< std
{
namespace is_base_of_v< TBasicLayoutWidgetSlot< SlotType >, std
{
namespace decay_t< SlotType > > &&std
{
namespace is_base_of_v< TResizingWidgetSlotMixin< SlotType >, std
{
template<typename SlotType>
struct TSlotAccessor< SlotType, std::enable_if_t< std::is_base_of_v< TBasicLayoutWidgetSlot< SlotType >, std::decay_t< SlotType > > &&std::is_base_of_v< TResizingWidgetSlotMixin< SlotType >, std::decay_t< SlotType > > > >
}
}
}
}
}
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, |
Returns the provided DefaultValue. FSlot itself doesn't store it's index. | 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 |