Navigation
API > API/Developer > API/Developer/WidgetRegistration
A Registry for FToolElements, where the FToolElements will generate the UI for a certain tool
| Name | FToolElementRegistry |
| Type | class |
| Header File | /Engine/Source/Developer/WidgetRegistration/Public/ToolElementRegistry.h |
| Include Path | #include "ToolElementRegistry.h" |
Syntax
class FToolElementRegistry
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FToolElementRegistry() |
ToolElementRegistry.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ToolElementKeyToToolElementMap | TMap< FString, TSharedPtr< FToolElement > > | The Map of tool element Key to tool element | ToolElementRegistry.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedRef< SWidget > GenerateWidget
(
TSharedRef< FToolElementRegistrationKey > ToolElementKeySR, |
Generates the widget for the tool element denoted by the FToolElementRegistrationKey, using the specified TSharedPtr |
ToolElementRegistry.h | |
TSharedPtr< FToolElement > GetToolElementSP
(
FToolElementRegistrationKey& ToolElementKey |
Gets the TSharedPtr |
ToolElementRegistry.h | |
void RegisterElement
(
const TSharedRef< FToolElement > ToolElement |
Registers the FToolElement ToolElement | ToolElementRegistry.h | |
void UnregisterElement
(
const TSharedRef< FToolElement > ToolElement |
Unregisters the FToolElement ToolElement | ToolElementRegistry.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FToolElementRegistry & Get() |
ToolElementRegistry.h |