Navigation
API > API/Runtime > API/Runtime/UMG
The state passed into OnPaint that we can expose as a single painting structure to blueprints to allow script code to override OnPaint behavior.
| Name | FPaintContext |
| Type | struct |
| Header File | /Engine/Source/Runtime/UMG/Public/Blueprint/UserWidget.h |
| Include Path | #include "Blueprint/UserWidget.h" |
Syntax
USTRUCT (BlueprintType )
struct FPaintContext
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Don't ever use this constructor. Needed for code generation. | Blueprint/UserWidget.h | ||
FPaintContext
(
const FGeometry& InAllottedGeometry, |
Blueprint/UserWidget.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AllottedGeometry | const FGeometry & | Blueprint/UserWidget.h | ||
| bParentEnabled | bool | Blueprint/UserWidget.h | ||
| LayerId | int32 | Blueprint/UserWidget.h | ||
| MaxLayer | int32 | Blueprint/UserWidget.h | ||
| MyCullingRect | const FSlateRect & | Blueprint/UserWidget.h | ||
| OutDrawElements | FSlateWindowElementList & | Blueprint/UserWidget.h | ||
| WidgetStyle | const FWidgetStyle & | Blueprint/UserWidget.h |
Functions
Public
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void operator=
(
const FPaintContext& Other |
We override the assignment operator to allow generated code to compile with the const ref member. | Blueprint/UserWidget.h |