UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FPaintArgs Class Reference

#include <PaintArgs.h>

Public Member Functions

SLATECORE_API FPaintArgs (const SWidget *PaintParent, FHittestGrid &InRootHittestGrid, FHittestGrid &InCurrentHitTestGrid, UE::Slate::FDeprecateVector2DParameter InWindowOffset, double InCurrentTime, float InDeltaTime)
 
SLATECORE_API FPaintArgs (const SWidget *PaintParent, FHittestGrid &InRootHittestGrid, UE::Slate::FDeprecateVector2DParameter InWindowOffset, double InCurrentTime, float InDeltaTime)
 
FPaintArgs WithNewParent (const SWidget *PaintParent) const
 
FPaintArgs WithNewHitTestGrid (FHittestGrid &NewHitTestGrid) const
 
SLATECORE_API FPaintArgs InsertCustomHitTestPath (const SWidget *Widget, TSharedRef< ICustomHitTestPath > CustomHitTestPath) const
 
void SetInheritedHittestability (bool InInheritedHittestability)
 
bool GetInheritedHittestability () const
 
FHittestGridGetHittestGrid () const
 
const SWidgetGetPaintParent () const
 
UE::Slate::FDeprecateVector2DResult GetWindowToDesktopTransform () const
 
double GetCurrentTime () const
 
float GetDeltaTime () const
 
void SetDeferredPaint (bool InDeferredPaint)
 
bool GetDeferredPaint () const
 

Friends

class SInvalidationPanel
 
class SRetainerWidget
 

Detailed Description

SWidget::OnPaint and SWidget::Paint use FPaintArgs as their sole parameter in order to ease the burden of passing through multiple fields.

Constructor & Destructor Documentation

◆ FPaintArgs() [1/2]

FPaintArgs::FPaintArgs ( const SWidget PaintParent,
FHittestGrid InRootHittestGrid,
FHittestGrid InCurrentHitTestGrid,
UE::Slate::FDeprecateVector2DParameter  InWindowOffset,
double  InCurrentTime,
float  InDeltaTime 
)

◆ FPaintArgs() [2/2]

FPaintArgs::FPaintArgs ( const SWidget PaintParent,
FHittestGrid InRootHittestGrid,
UE::Slate::FDeprecateVector2DParameter  InWindowOffset,
double  InCurrentTime,
float  InDeltaTime 
)

Member Function Documentation

◆ GetCurrentTime()

double FPaintArgs::GetCurrentTime ( ) const
inline

◆ GetDeferredPaint()

bool FPaintArgs::GetDeferredPaint ( ) const
inline

◆ GetDeltaTime()

float FPaintArgs::GetDeltaTime ( ) const
inline

◆ GetHittestGrid()

FHittestGrid & FPaintArgs::GetHittestGrid ( ) const
inline

◆ GetInheritedHittestability()

bool FPaintArgs::GetInheritedHittestability ( ) const
inline

◆ GetPaintParent()

const SWidget * FPaintArgs::GetPaintParent ( ) const
inline

◆ GetWindowToDesktopTransform()

UE::Slate::FDeprecateVector2DResult FPaintArgs::GetWindowToDesktopTransform ( ) const
inline

◆ InsertCustomHitTestPath()

FPaintArgs FPaintArgs::InsertCustomHitTestPath ( const SWidget Widget,
TSharedRef< ICustomHitTestPath CustomHitTestPath 
) const

◆ SetDeferredPaint()

void FPaintArgs::SetDeferredPaint ( bool  InDeferredPaint)
inline

◆ SetInheritedHittestability()

void FPaintArgs::SetInheritedHittestability ( bool  InInheritedHittestability)
inline

◆ WithNewHitTestGrid()

FPaintArgs FPaintArgs::WithNewHitTestGrid ( FHittestGrid NewHitTestGrid) const
inline

◆ WithNewParent()

FPaintArgs FPaintArgs::WithNewParent ( const SWidget PaintParent) const
inline

Friends And Related Symbol Documentation

◆ SInvalidationPanel

friend class SInvalidationPanel
friend

◆ SRetainerWidget

friend class SRetainerWidget
friend

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