![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <LayoutUtils.h>
Public Member Functions | |
| FSlotProxy ()=default | |
| template<typename SlotType > | |
| FSlotProxy (const int32 InSlotIndex, const SlotType &InSlot) | |
| SLATECORE_API FGeometry | MakeGeometry (const FGeometry &InParentGeometry, const FVector2f &InChildOffset, const FVector2f &InLocalSize) const |
| template<typename SlotType , bool CompareArranged = false> | |
| bool | UpdateFromSlot (const int32 InSlotIndex, const SlotType &InSlot) |
| bool | operator== (const int32 InSlotIndex) const |
| bool | operator< (const FSlotProxy &InOtherSlot) const |
Represents a single slot, used to perform arrangement operations. Allows layout with an arbitrary child order that can map back to a sequential array.
|
default |
|
inlineexplicit |
Constructs a SlotProxy for the given slot index and FSlot.
| FGeometry FSlotProxy::MakeGeometry | ( | const FGeometry & | InParentGeometry, |
| const FVector2f & | InChildOffset, | ||
| const FVector2f & | InLocalSize | ||
| ) | const |
Performs the same functionality as FGeometry::MakeChild, without the need for the original Widget reference.
|
inline |
Default comparison operator for sorting by slot index.
Equality tested against the slot index. This makes it simple to find a slot by its index, even if the slot proxies are differently ordered.
Applies the given slot's values to this proxy. Will return true if any values have changed from those stored. If CompareArranged is true, the "changed" flag is only true if the new DesiredSize doesn't match the previous ArrangedSize, rather than previous DesiredSize.
| FVector2f FSlotProxy::ArrangedSize = FVector2f::ZeroVector |
Contained widget's arranged size (as it was last calculated).
| FVector2f FSlotProxy::DesiredSize = FVector2f::ZeroVector |
Contained widget's desired size.
| EHorizontalAlignment FSlotProxy::HorizontalAlignment = HAlign_Fill |
Horizontal slot alignment.
| float FSlotProxy::MaxSize = 0.0f |
Max Size, if any.
| float FSlotProxy::MinSize = 0.0f |
Min Size, if any.
| TOptional<FSlateRenderTransform> FSlotProxy::RenderTransform |
Last calculated RenderTransform.
| FVector2f FSlotProxy::RenderTransformPivot = FVector2f::ZeroVector |
Corresponds with the RenderTransform.
| FSizeParam FSlotProxy::SizeParam = FAuto() |
Sizing option, ie. Auto, Fill.
| int32 FSlotProxy::SlotIndex = INDEX_NONE |
The original index of the slot represented by this proxy.
| EVerticalAlignment FSlotProxy::VerticalAlignment = VAlign_Fill |
Vertical slot alignment.
| EVisibility FSlotProxy::Visibility = EVisibility::Visible |
Current visibility state.
| TSharedPtr<SWidget> FSlotProxy::Widget = nullptr |
Here for convenience and backwards compatibility. Not always valid.