FPaintArgs

SWidget::OnPaint and [SWidget::Paint](API\Runtime\SlateCore\Widgets\SWidget\Paint) use [FPaintArgs](API\Runtime\SlateCore\Types\FPaintArgs) as their sole parameter in order to ease the burden of passing through multiple fields.

Windows
MacOS
Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Types/PaintArgs.h

Include

#include "Types/PaintArgs.h"

Syntax

class FPaintArgs

Remarks

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

Constructors

Name Description

Public function

FPaintArgs

(
    const SWidget* PaintParent,
    FHittestGrid& InRootHittestGrid,
    FVector2D InWindowOffset,
    double InCurrentTime,
    float InDeltaTime
)

Public function

FPaintArgs

(
    const SWidget* PaintParent,
    FHittestGrid& InRootHittestGrid,
    FHittestGrid& InCurrentHitTestGrid,
    FVector2D InWindowOffset,
    double InCurrentTime,
    float InDeltaTime
)

Functions

Name Description

Public function Const

double

 

GetCurrentTime()

Public function Const

float

 

GetDeltaTime()

Public function Const

FHittestGrid...

 

GetHittestGrid()

Public function Const

bool

 

GetInheritedHittestability()

Public function Const

const SWidge...

 

GetPaintParent()

Public function Const

FVector2D

 

GetWindowToDesktopTransform()

Public function Const

FPaintArgs

 

InsertCustomHitTestPath

(
    const SWidget* Widget,
    TSharedRef< ICustomHitTestPath > Cu...
)

Public function

void

 

SetInheritedHittestability

(
    bool InInheritedHittestability
)

Public function Const

FPaintArgs

 

WithNewHitTestGrid

(
    FHittestGrid& NewHitTestGrid
)

Public function Const

FPaintArgs

 

WithNewParent

(
    const SWidget* PaintParent
)

Deprecated Functions

Name Description

Public function Const

FHittestGrid...

 

GetGrid()

FHittestGrid::GetGrid is deprecated. Use GetHittestGrid instead

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