engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
TDecl< WidgetType, RequiredArgsPayloadType > 模板结构体 参考

Utility class used during widget instantiation. 更多...

#include <DeclarativeSyntaxSupport.h>

Public 成员函数

template<class ExposeAsWidgetType >
TDecl & Expose (TSharedPtr< ExposeAsWidgetType > &OutVarToInit)
 Initialize OutVarToInit with the widget that is being constructed. 更多...
 
template<class ExposeAsWidgetType >
TDecl & Expose (TSharedRef< ExposeAsWidgetType > &OutVarToInit)
 Initialize OutVarToInit with the widget that is being constructed. 更多...
 
template<class ExposeAsWidgetType >
TDecl & Expose (TWeakPtr< ExposeAsWidgetType > &OutVarToInit)
 Initialize a WEAK OutVarToInit with the widget that is being constructed. 更多...
 
TSharedRef< WidgetType > operator<<= (const typename WidgetType::FArguments &InArgs) const
 Complete widget construction from InArgs. 更多...
 

详细描述

template<class WidgetType, typename RequiredArgsPayloadType>
struct TDecl< WidgetType, RequiredArgsPayloadType >

Utility class used during widget instantiation.

Performs widget allocation and construction. Ensures that debug info is set correctly. Returns TSharedRef to widget.

参见
SNew
SAssignNew

成员函数说明

◆ Expose() [1/3]

template<class WidgetType , typename RequiredArgsPayloadType >
template<class ExposeAsWidgetType >
TDecl & TDecl< WidgetType, RequiredArgsPayloadType >::Expose ( TSharedPtr< ExposeAsWidgetType > &  OutVarToInit)
inline

Initialize OutVarToInit with the widget that is being constructed.

参见
SAssignNew

◆ Expose() [2/3]

template<class WidgetType , typename RequiredArgsPayloadType >
template<class ExposeAsWidgetType >
TDecl & TDecl< WidgetType, RequiredArgsPayloadType >::Expose ( TSharedRef< ExposeAsWidgetType > &  OutVarToInit)
inline

Initialize OutVarToInit with the widget that is being constructed.

参见
SAssignNew

◆ Expose() [3/3]

template<class WidgetType , typename RequiredArgsPayloadType >
template<class ExposeAsWidgetType >
TDecl & TDecl< WidgetType, RequiredArgsPayloadType >::Expose ( TWeakPtr< ExposeAsWidgetType > &  OutVarToInit)
inline

Initialize a WEAK OutVarToInit with the widget that is being constructed.

参见
SAssignNew

◆ operator<<=()

template<class WidgetType , typename RequiredArgsPayloadType >
TSharedRef< WidgetType > TDecl< WidgetType, RequiredArgsPayloadType >::operator<<= ( const typename WidgetType::FArguments &  InArgs) const
inline

Complete widget construction from InArgs.

参数
InArgsNamedArguments from which to construct the widget.
返回
A reference to the widget that we constructed.

该结构体的文档由以下文件生成: