TWidgetFactory

Windows
MacOS
Linux

Inheritance Hierarchy

FGCObject

TWidgetFactory

References

Module

CommonUI

Header

/Engine/Plugins/Experimental/CommonUI/Source/CommonUI/Public/WidgetFactory.h

Include

#include "WidgetFactory.h"

Syntax

template<class WidgetType, class>
class TWidgetFactory : public FGCObject

Constructors

Name Description

Public function

TWidgetFactory()

Public function

TWidgetFactory

(
    TWidgetFactory&& Other
)

Public function

TWidgetFactory

(
    UWidget& InOwningWidget,
    TSubclassOf< WidgetType > InWidgetC...,
    TFunction< UObject*(void)>&& ...,
    bool InTrackActiveWidgets
)

Destructors

Name Description

Public function Virtual

~TWidgetFactory()

Functions

Name Description

Public function

WidgetType &...

 

Acquire()

Method to get a widget from this factory, can sometimes call CreateWidget

Public function Const

const TArray...

 

GetActiveWidgets()

Public function Const

bool

 

IsInitialized()

Public function

void

 

PreConstruct

(
    int32 Num
)

Public function

void

 

Release

(
    WidgetType* Widget
)

Return a widget to the pool, allowing it to be reused in the future

Public function

void

 

Reset

(
    const bool bReleaseSlate,
    const bool bMoveToInactive
)

Public function

TSharedRef< ...

 

TakeAndCacheRow

(
    WidgetType* Key,
    const TSharedRef< STableViewBase > ...
)

Convenience function for SObjectTableRows takes and caches the widget, then creates the object row around it

Public function

TSharedRef< ...

 

TakeAndCacheWidget

(
    WidgetType* Key,
    ConstructMethodType ConstructMethod
)

Overridden from FGCObject

Name Description

Public function Virtual

void

 

AddReferencedObjects

(
    FReferenceCollector& Collector
)

Pure virtual that must be overloaded by the inheriting class.

Operators

Name Description

Public function

TWidgetFacto...

 

operator=

(
    TWidgetFactory&& Other
)

Typedefs

Name

Description

ConstructMethodType

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss