Navigation
API > API/Runtime > API/Runtime/SlateCore
SWidget::OnPaint and SWidget::Paint use FPaintArgs as their sole parameter in order to ease the burden of passing through multiple fields.
| Name | FPaintArgs |
| Type | class |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Types/PaintArgs.h |
| Include Path | #include "Types/PaintArgs.h" |
Syntax
class FPaintArgs
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPaintArgs
(
const SWidget* PaintParent, |
Types/PaintArgs.h | ||
FPaintArgs
(
const SWidget* PaintParent, |
Types/PaintArgs.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bDeferredPainting | uint8 | Types/PaintArgs.h | ||
| bInheritedHittestability | uint8 | Types/PaintArgs.h | ||
| CurrentGrid | FHittestGrid & | The current hit test grid. | Types/PaintArgs.h | |
| CurrentTime | double | Types/PaintArgs.h | ||
| DeltaTime | float | Types/PaintArgs.h | ||
| PaintParentPtr | const SWidget * | Types/PaintArgs.h | ||
| RootGrid | FHittestGrid & | The root most grid. Only the window should set this and only invalidation panels should modify it | Types/PaintArgs.h | |
| WindowOffset | FVector2f | Types/PaintArgs.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
double GetCurrentTime() |
Types/PaintArgs.h | ||
bool GetDeferredPaint() |
Types/PaintArgs.h | ||
float GetDeltaTime() |
Types/PaintArgs.h | ||
FHittestGrid & GetHittestGrid() |
Types/PaintArgs.h | ||
bool GetInheritedHittestability() |
Types/PaintArgs.h | ||
const SWidget * GetPaintParent() |
Types/PaintArgs.h | ||
UE::Slate::FDeprecateVector2DResult GetWindowToDesktopTransform() |
Types/PaintArgs.h | ||
FPaintArgs InsertCustomHitTestPath
(
const SWidget* Widget, |
Types/PaintArgs.h | ||
void SetDeferredPaint
(
bool InDeferredPaint |
Types/PaintArgs.h | ||
void SetInheritedHittestability
(
bool InInheritedHittestability |
Types/PaintArgs.h | ||
FPaintArgs WithNewHitTestGrid
(
FHittestGrid& NewHitTestGrid |
Types/PaintArgs.h | ||
FPaintArgs WithNewParent
(
const SWidget* PaintParent |
Types/PaintArgs.h |