UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SlateControlledConstruction.h File Reference

Go to the source code of this file.

Classes

class  FSlateWidgetClassData
 
struct  FSlateWidgetClassRegistration
 
class  FSlateControlledConstruction
 

Namespaces

namespace  SharedPointerInternals
 

Macros

#define SLATE_DECLARE_WIDGET(WidgetType, ParentType)    SLATE_DECLARE_WIDGET_API(WidgetType, ParentType, NO_API)
 
#define SLATE_DECLARE_WIDGET_API(WidgetType, ParentType, ModuleApiDefine)
 
#define SLATE_IMPLEMENT_WIDGET(WidgetType)    FSlateWidgetClassRegistration ClassRegistration__##WidgetType = WidgetType::StaticWidgetClass();
 

Macro Definition Documentation

◆ SLATE_DECLARE_WIDGET

#define SLATE_DECLARE_WIDGET (   WidgetType,
  ParentType 
)     SLATE_DECLARE_WIDGET_API(WidgetType, ParentType, NO_API)

◆ SLATE_DECLARE_WIDGET_API

#define SLATE_DECLARE_WIDGET_API (   WidgetType,
  ParentType,
  ModuleApiDefine 
)
Value:
private: \
using Super = ParentType; \
using ThisClass = WidgetType; \
using PrivateThisType = WidgetType; \
using PrivateParentType = ParentType; \
template<class WidgetType, bool bIsUserWidget> \
friend struct TWidgetAllocator; \
template <typename ObjectType, ESPMode Mode> \
friend class SharedPointerInternals::TIntrusiveReferenceController; /* Shouldn't really forward-declare this to allow MakeShared to work, but is for legacy reasons */ \
{ \
static FSlateWidgetClassData WidgetClassDataInstance = FSlateWidgetClassData(TIdentity<ParentType>(), #WidgetType, &WidgetType::PrivateRegisterAttributes); \
} \
public: \
static const FSlateWidgetClassData& StaticWidgetClass() { return GetPrivateWidgetClass(); } \
virtual const FSlateWidgetClassData& GetWidgetClass() const override { return GetPrivateWidgetClass(); } \
private:
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition SlateControlledConstruction.h:49
Definition SharedPointerInternals.h:400
Definition SlateAttributeDescriptor.h:261
Definition Identity.h:18

◆ SLATE_IMPLEMENT_WIDGET

#define SLATE_IMPLEMENT_WIDGET (   WidgetType)     FSlateWidgetClassRegistration ClassRegistration__##WidgetType = WidgetType::StaticWidgetClass();