Navigation
API > API/Runtime > API/Runtime/UMG
Derive from to add a new Enum binary state
| Name | UWidgetEnumStateRegistration |
| Type | class |
| Header File | /Engine/Source/Runtime/UMG/Public/Binding/States/WidgetStateRegistration.h |
| Include Path | #include "Binding/States/WidgetStateRegistration.h" |
Syntax
UCLASS (Transient, MinimalAPI)
class UWidgetEnumStateRegistration : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UWidgetEnumStateRegistration
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UWidgetEnumStateRegistration() |
Binding/States/WidgetStateRegistration.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~UWidgetEnumStateRegistration() |
Binding/States/WidgetStateRegistration.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual uint8 GetRegisteredWidgetState
(
const UWidget* InWidget |
Called on widget registration to correctly initialize widget state based on the current widget | Binding/States/WidgetStateRegistration.h | |
virtual bool GetRegisteredWidgetUsesState
(
const UWidget* InWidget |
Called on widget registration to determine if this widget uses the given state | Binding/States/WidgetStateRegistration.h | |
virtual FName GetStateName() |
Called once during WidgetStateSettings initialization to get this widget state's name | Binding/States/WidgetStateRegistration.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void InitializeStaticBitfields() |
Called to give CDO chance to initialize any static state bitfields that might be declared for convenience | Binding/States/WidgetStateRegistration.h |