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.

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss