Navigation
API > API/Plugins > API/Plugins/CommonUI
Inheritance Hierarchy
- FGCObject
- TWidgetFactory
References
| Module | CommonUI |
| Header | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/WidgetFactory.h |
| Include | #include "WidgetFactory.h" |
Syntax
template<class WidgetType>
class TWidgetFactory : public FGCObject
Constructors
| Type | Name | Description | |
|---|---|---|---|
TWidgetFactory
(
TWidgetFactory&& Other |
|||
TWidgetFactory
(
UWidget& InOwningWidget, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| WidgetType * | Acquire () |
Method to get a widget from this factory, can sometimes call CreateWidget | |
| const TArray< WidgetType * > & | |||
| bool | |||
| void | PreConstruct
(
int32 Num |
||
| void | Release
(
WidgetType* Widget |
Return a widget to the pool, allowing it to be reused in the future | |
| void | Reset
(
const bool bReleaseSlate, |
||
| TSharedRef< DerivedWidgetType > | TakeAndCacheRow
(
WidgetType* Key, |
Convenience function for SObjectTableRows takes and caches the widget, then creates the object row around it | |
| TSharedRef< DerivedWidgetType > | TakeAndCacheWidget
(
WidgetType* Key, |
Overridden from FGCObject
| Type | Name | Description | |
|---|---|---|---|
| void | AddReferencedObjects
(
FReferenceCollector& Collector |
Pure virtual that must be overloaded by the inheriting class. | |
| FString | Overload this method to report a name for your referencer |
Operators
| Type | Name | Description | |
|---|---|---|---|
| TWidgetFactory & | operator=
(
TWidgetFactory&& Other |
Typedefs
| Name | Description |
|---|---|
| ConstructMethodType |