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

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