Navigation
API > API/Runtime > API/Runtime/SlateCore
Utility class used during widget instantiation. Performs widget allocation and construction. Ensures that debug info is set correctly. Returns TSharedRef to widget.
| Name | TSlateDecl |
| Type | struct |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Widgets/DeclarativeSyntaxSupport.h |
| Include Path | #include "Widgets/DeclarativeSyntaxSupport.h" |
Syntax
template<class WidgetType, typename RequiredArgsPayloadType>
struct TSlateDecl
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSlateDecl
(
const ANSICHAR* InType, |
Widgets/DeclarativeSyntaxSupport.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| _RequiredArgs | RequiredArgsPayloadType & | Widgets/DeclarativeSyntaxSupport.h | ||
| _Widget | TSharedPtr< WidgetType > | Widgets/DeclarativeSyntaxSupport.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSlateDecl && Expose
(
TSharedPtr< ExposeAsWidgetType >& OutVarToInit |
Initialize OutVarToInit with the widget that is being constructed. | Widgets/DeclarativeSyntaxSupport.h | |
TSlateDecl && Expose
(
TSharedRef< ExposeAsWidgetType >& OutVarToInit |
Initialize OutVarToInit with the widget that is being constructed. | Widgets/DeclarativeSyntaxSupport.h | |
TSlateDecl && Expose
(
TWeakPtr< ExposeAsWidgetType >& OutVarToInit |
Initialize a WEAK OutVarToInit with the widget that is being constructed. | Widgets/DeclarativeSyntaxSupport.h |
See Also
-
SNew
-
SAssignNew