Navigation
Unreal Engine C++ API Reference > Runtime > SlateCore > Widgets
References
Module | SlateCore |
Header | /Engine/Source/Runtime/SlateCore/Public/Widgets/DeclarativeSyntaxSupport.h |
Include | #include "Widgets/DeclarativeSyntaxSupport.h" |
Syntax
template<class WidgetType, typename RequiredArgsPayloadType>
struct TSlateDecl
Remarks
Utility class used during widget instantiation. Performs widget allocation and construction. Ensures that debug info is set correctly. Returns TSharedRef to widget.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
RequiredArgsPayloadType & | _RequiredArgs | |
![]() |
TSharedPtr< WidgetType > | _Widget |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
TSlateDecl
(
const ANSICHAR* InType, |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
TSlateDecl && | Expose
(
TSharedPtr< ExposeAsWidgetType >& OutVarToInit |
Initialize OutVarToInit with the widget that is being constructed. |
![]() |
TSlateDecl && | Expose
(
TSharedRef< ExposeAsWidgetType >& OutVarToInit |
Initialize OutVarToInit with the widget that is being constructed. |
![]() |
TSlateDecl && | Initialize a WEAK OutVarToInit with the widget that is being constructed. |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
TSharedRef< WidgetType > | operator<<=
(
const typename WidgetType::FArguments& InArgs |
Complete widget construction from InArgs. |
See Also
SNew
SAssignNew