FDrawContext

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

Unreal Engine C++ API Reference > Developer > TraceInsights > Insights > Common

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

Type Name Description
const FSlateRec... CullingRect  
const ESlateDra... DrawEffects  
FSlateWindowEle... ElementList  
const FGeometry... Geometry Accessors.
int32 & LayerId  
const FWidgetSt... WidgetStyle  

Constructors

Type Name Description
  FDrawContext ( const FDrawContext& ) Non-copyable
  FDrawContext ( const FGeometry& InGeometry, const FSlateRect& InCullingRect, const FWidgetStyle& InWidgetStyle, const ESlateDrawEffect InDrawEffect..., FSlateWindowElementList& InOutElem..., int32& InOutLayerId )  

Functions

Type Name Description
void DrawBox ( const float X, const float Y, const float W, const float H, const FSlateBrush* Brush, const FLinearColor& Color )  
void DrawBox ( const int32 InLayer, const float X, const float Y, const float W, const float H, const FSlateBrush* Brush, const FLinearColor& Color )  
void DrawLines ( uint32 InLayer, const float X, const float Y, const TArray< FVector2D >& Points, ESlateDrawEffect InDrawEffects, const FLinearColor& InTint, bool bAntialias, float Thickness )  
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... )  
void DrawSpline ( uint32 InLayer, const float X, const float Y, const FVector2D& InStart, const FVector2D& InStartDir, const FVector2D& InEnd, const FVector2D& InEndDir, float InThickness, const FLinearColor& InTint )  
void DrawText ( const float X, const float Y, const FString& Text, const FSlateFontInfo& Font, const FLinearColor& Color )  
void DrawText ( const int32 InLayer, const float X, const float Y, const FString& Text, const FSlateFontInfo& Font, const FLinearColor& Color )  
void DrawText ( const float X, const float Y, const FString& Text, const int32 StartIndex, const int32 EndIndex, const FSlateFontInfo& Font, const FLinearColor& Color )  
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 )  
void DrawTextAligned ( EHorizontalAlignment HAlign, const float X, const float Y, const FString& Text, const FSlateFontInfo& Font, const FLinearColor& Color )  

Operators

Type Name Description
FDrawContext... operator= ( const FDrawContext& )  

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library