UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SSegmentedControl< OptionType >::FSlot Struct Reference

#include <SSegmentedControl.h>

+ Inheritance diagram for SSegmentedControl< OptionType >::FSlot:

Public Member Functions

 FSlot (const OptionType &InValue)
 
 SLATE_SLOT_BEGIN_ARGS_OneMixin (FSlot, TSlotBase< FSlot >, TAlignmentWidgetSlotMixin< FSlot >) void Construct(const FChildren &SlotOwner
 
 TAlignmentWidgetSlotMixin (SlotOwner, MoveTemp(InArgs))
 
 if (InArgs._Text.IsSet())
 
 if (InArgs._ToolTip.IsSet())
 
 if (InArgs._ToolTipWidget.IsSet())
 
 if (InArgs._Icon.IsSet())
 
 if (InArgs._Value.IsSet())
 
void SetText (TAttribute< FText > InText)
 
FText GetText () const
 
void SetIcon (TAttribute< const FSlateBrush * > InBrush)
 
const FSlateBrushGetIcon () const
 
void SetToolTip (TAttribute< FText > InTooltip)
 
FText GetToolTip () const
 
- Public Member Functions inherited from TSlotBase< FSlot >
FSlot & operator[] (TSharedRef< SWidget > &&InChildWidget)
 
FSlot & operator[] (const TSharedRef< SWidget > &InChildWidget)
 
FSlot & Expose (FSlot *&OutVarToInit)
 
void Construct (const FChildren &SlotOwner, FSlotArguments &&InArgs)
 
SLATECORE_API FSlotBase ()
 
SLATECORE_API FSlotBase (const FChildren &InParent)
 
SLATECORE_API FSlotBase (const TSharedRef< SWidget > &InWidget)
 
 FSlotBase (const FSlotBase &)=delete
 
- Public Member Functions inherited from FSlotBase
SLATECORE_API FSlotBase ()
 
SLATECORE_API FSlotBase (const FChildren &InParent)
 
SLATECORE_API FSlotBase (const TSharedRef< SWidget > &InWidget)
 
FSlotBaseoperator= (const FSlotBase &)=delete
 
 FSlotBase (const FSlotBase &)=delete
 
virtual SLATECORE_API ~FSlotBase ()
 
const FChildrenGetOwner () const
 
SLATECORE_API SWidgetGetOwnerWidget () const
 
SLATECORE_API void SetOwner (const FChildren &Children)
 
void AttachWidget (TSharedRef< SWidget > &&InWidget)
 
void AttachWidget (const TSharedRef< SWidget > &InWidget)
 
const TSharedRef< SWidget > & GetWidget () const
 
SLATECORE_API const TSharedPtr< SWidgetDetachWidget ()
 
SLATECORE_API void Invalidate (EInvalidateWidgetReason InvalidateReason)
 
- Public Member Functions inherited from TAlignmentWidgetSlotMixin< FSlot >
 TAlignmentWidgetSlotMixin ()
 
 TAlignmentWidgetSlotMixin (const EHorizontalAlignment InHAlign, const EVerticalAlignment InVAlign)
 
void SetHorizontalAlignment (EHorizontalAlignment Alignment)
 
EHorizontalAlignment GetHorizontalAlignment () const
 
void SetVerticalAlignment (EVerticalAlignment Alignment)
 
EVerticalAlignment GetVerticalAlignment () const
 

Public Attributes

FSlotArguments && InArgs
 
friend SSegmentedControl< OptionType >
 

Additional Inherited Members

- Public Types inherited from TSlotBase< FSlot >
enum  EConstructSlotIsFChildren
 
- Protected Member Functions inherited from FSlotBase
template<typename TargetValueType , typename SourceValueType >
bool SetAttribute (TAttribute< TargetValueType > &TargetValue, const TAttribute< SourceValueType > &SourceValue, EInvalidateWidgetReason BaseInvalidationReason)
 
- Protected Member Functions inherited from TAlignmentWidgetSlotMixin< FSlot >
void ConstructMixin (const FChildren &SlotOwner, FSlotArgumentsMixin &&InArgs)
 

Detailed Description

template<typename OptionType>
struct SSegmentedControl< OptionType >::FSlot

Stores the per-child info for this panel type

Constructor & Destructor Documentation

◆ FSlot()

template<typename OptionType >
SSegmentedControl< OptionType >::FSlot::FSlot ( const OptionType InValue)
inline

Member Function Documentation

◆ GetIcon()

template<typename OptionType >
const FSlateBrush * SSegmentedControl< OptionType >::FSlot::GetIcon ( ) const
inline

◆ GetText()

template<typename OptionType >
FText SSegmentedControl< OptionType >::FSlot::GetText ( ) const
inline

◆ GetToolTip()

template<typename OptionType >
FText SSegmentedControl< OptionType >::FSlot::GetToolTip ( ) const
inline

◆ if() [1/5]

template<typename OptionType >
SSegmentedControl< OptionType >::FSlot::if ( InArgs._Icon.  IsSet())
inline

◆ if() [2/5]

template<typename OptionType >
SSegmentedControl< OptionType >::FSlot::if ( InArgs._Text.  IsSet())
inline

◆ if() [3/5]

template<typename OptionType >
SSegmentedControl< OptionType >::FSlot::if ( InArgs._ToolTip.  IsSet())
inline

◆ if() [4/5]

template<typename OptionType >
SSegmentedControl< OptionType >::FSlot::if ( InArgs._ToolTipWidget.  IsSet())
inline

◆ if() [5/5]

template<typename OptionType >
SSegmentedControl< OptionType >::FSlot::if ( InArgs._Value.  IsSet())
inline

◆ SetIcon()

template<typename OptionType >
void SSegmentedControl< OptionType >::FSlot::SetIcon ( TAttribute< const FSlateBrush * >  InBrush)
inline

◆ SetText()

template<typename OptionType >
void SSegmentedControl< OptionType >::FSlot::SetText ( TAttribute< FText InText)
inline

◆ SetToolTip()

template<typename OptionType >
void SSegmentedControl< OptionType >::FSlot::SetToolTip ( TAttribute< FText InTooltip)
inline

◆ SLATE_SLOT_BEGIN_ARGS_OneMixin()

template<typename OptionType >
SSegmentedControl< OptionType >::FSlot::SLATE_SLOT_BEGIN_ARGS_OneMixin ( FSlot  ,
TSlotBase< FSlot ,
TAlignmentWidgetSlotMixin< FSlot  
) const &

◆ TAlignmentWidgetSlotMixin()

template<typename OptionType >
SSegmentedControl< OptionType >::FSlot::TAlignmentWidgetSlotMixin ( SlotOwner  ,
MoveTemp(InArgs  
)

Member Data Documentation

◆ InArgs

Initial value:
{
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
UE_INTRINSIC_CAST UE_REWRITE constexpr std::remove_reference_t< T > && MoveTemp(T &&Obj) noexcept
Definition UnrealTemplate.h:520
void Construct(const FChildren &SlotOwner, FSlotArguments &&InArgs)
Definition SlotBase.h:212
FSlotArguments && InArgs
Definition SSegmentedControl.h:53

◆ SSegmentedControl< OptionType >

template<typename OptionType >
friend SSegmentedControl< OptionType >::FSlot::SSegmentedControl< OptionType >

The documentation for this struct was generated from the following file: