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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback