UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FPaintContext Struct Reference

#include <UserWidget.h>

Public Member Functions

UMG_API FPaintContext ()
 
 FPaintContext (const FGeometry &InAllottedGeometry, const FSlateRect &InMyCullingRect, FSlateWindowElementList &InOutDrawElements, const int32 InLayerId, const FWidgetStyle &InWidgetStyle, const bool bInParentEnabled)
 
void operator= (const FPaintContext &Other)
 

Public Attributes

const FGeometryAllottedGeometry
 
const FSlateRectMyCullingRect
 
FSlateWindowElementListOutDrawElements
 
int32 LayerId
 
const FWidgetStyleWidgetStyle
 
bool bParentEnabled
 
int32 MaxLayer
 

Detailed Description

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

Constructor & Destructor Documentation

◆ FPaintContext() [1/2]

FPaintContext::FPaintContext ( )

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

◆ FPaintContext() [2/2]

FPaintContext::FPaintContext ( const FGeometry InAllottedGeometry,
const FSlateRect InMyCullingRect,
FSlateWindowElementList InOutDrawElements,
const int32  InLayerId,
const FWidgetStyle InWidgetStyle,
const bool  bInParentEnabled 
)
inline

Member Function Documentation

◆ operator=()

void FPaintContext::operator= ( const FPaintContext Other)
inline

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

Member Data Documentation

◆ AllottedGeometry

const FGeometry& FPaintContext::AllottedGeometry

◆ bParentEnabled

bool FPaintContext::bParentEnabled

◆ LayerId

int32 FPaintContext::LayerId

◆ MaxLayer

int32 FPaintContext::MaxLayer

◆ MyCullingRect

const FSlateRect& FPaintContext::MyCullingRect

◆ OutDrawElements

FSlateWindowElementList& FPaintContext::OutDrawElements

◆ WidgetStyle

const FWidgetStyle& FPaintContext::WidgetStyle

The documentation for this struct was generated from the following files: