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