FDrawContext

Holds current state provided by OnPaint function, used to simplify drawing.

Windows
MacOS
Linux

References

Module

TraceInsights

Header

/Engine/Source/Developer/TraceInsights/Public/Insights/Common/PaintUtils.h

Include

#include "Insights/Common/PaintUtils.h"

Syntax

struct FDrawContext

Remarks

Holds current state provided by OnPaint function, used to simplify drawing.

Variables

Name Description

Public variable

const FSlateRec...

 

CullingRect

Public variable

const ESlateDra...

 

DrawEffects

Public variable

FSlateWindowEle...

 

ElementList

Public variable

const FGeometry...

 

Geometry

Accessors.

Public variable

int32 &

 

LayerId

Public variable

const FWidgetSt...

 

WidgetStyle

Constructors

Name Description

Public function

FDrawContext

(
    const FDrawContext&
)

Non-copyable

Public function

FDrawContext

(
    const FGeometry& InGeometry,
    const FSlateRect& InCullingRect,
    const FWidgetStyle& InWidgetStyle,
    const ESlateDrawEffect InDrawEffect...,
    FSlateWindowElementList& InOutElem...,
    int32& InOutLayerId
)

Functions

Name Description

Public function Const

void

 

DrawBox

(
    const float X,
    const float Y,
    const float W,
    const float H,
    const FSlateBrush* Brush,
    const FLinearColor& Color
)

Public function Const

void

 

DrawBox

(
    const int32 InLayer,
    const float X,
    const float Y,
    const float W,
    const float H,
    const FSlateBrush* Brush,
    const FLinearColor& Color
)

Public function Const

void

 

DrawRotatedBox

(
    const float X,
    const float Y,
    const float W,
    const float H,
    const FSlateBrush* Brush,
    const FLinearColor& Color,
    float Angle,
    TOptional< FVector2D > RotationPoin...
)

Public function Const

void

 

DrawText

(
    const float X,
    const float Y,
    const FString& Text,
    const FSlateFontInfo& Font,
    const FLinearColor& Color
)

Public function Const

void

 

DrawText

(
    const int32 InLayer,
    const float X,
    const float Y,
    const FString& Text,
    const FSlateFontInfo& Font,
    const FLinearColor& Color
)

Public function Const

void

 

DrawText

(
    const float X,
    const float Y,
    const FString& Text,
    const int32 StartIndex,
    const int32 EndIndex,
    const FSlateFontInfo& Font,
    const FLinearColor& Color
)

Public function Const

void

 

DrawText

(
    const int32 InLayer,
    const float X,
    const float Y,
    const FString& Text,
    const int32 StartIndex,
    const int32 EndIndex,
    const FSlateFontInfo& Font,
    const FLinearColor& Color
)

Public function Const

void

 

DrawTextAligned

(
    EHorizontalAlignment HAlign,
    const float X,
    const float Y,
    const FString& Text,
    const FSlateFontInfo& Font,
    const FLinearColor& Color
)

Operators

Name Description

Public function

FDrawContext...

 

operator=

(
    const FDrawContext&
)

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