FPaintContext

The state passed into OnPaint that we can expose as a single painting structure to blueprints to allow script code to override OnPaint behavior.

Choose your operating system:

Windows

macOS

Linux

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Blueprint/UserWidget.h

Include

#include "Blueprint/UserWidget.h"

Syntax

struct FPaintContext

Remarks

The state passed into OnPaint that we can expose as a single painting structure to blueprints to allow script code to override OnPaint behavior.

Variables

Name Description

Public variable

const FGeometry...

 

AllottedGeometry

Public variable

bool

 

bParentEnabled

Public variable

int32

 

LayerId

Public variable

int32

 

MaxLayer

Public variable

const FSlateRec...

 

MyCullingRect

Public variable

FSlateWindowEle...

 

OutDrawElements

Public variable

const FWidgetSt...

 

WidgetStyle

Constructors

Name Description

Public function

FPaintContext()

Don't ever use this constructor. Needed for code generation.

Public function

FPaintContext

(
    const FGeometry& InAllottedGeometr...,
    const FSlateRect& InMyCullingRect,
    FSlateWindowElementList& InOutDraw...,
    const int32 InLayerId,
    const FWidgetStyle& InWidgetStyle,
    const bool bInParentEnabled
)

Operators

Name Description

Public function

void

 

operator=

(
    const FPaintContext& Other
)

We override the assignment operator to allow generated code to compile with the const ref member.