UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CanvasTypes.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*=============================================================================
4 Canvas.h: Unreal canvas definition.
5=============================================================================*/
6
7#pragma once
8
9#include "CoreMinimal.h"
10#include "GameTime.h"
11#include "SceneTypes.h"
13#include "Engine/EngineTypes.h"
14#include "HitProxies.h"
15#include "CanvasTypes.generated.h"
16
19class FRDGBuilder;
24class FCanvasItem;
25class FTexture;
27class FRenderTarget;
28class FSceneInterface;
29class IBreakIterator;
30class UFont;
31class FRDGTexture;
32namespace ERHIFeatureLevel { enum Type : int; }
36
40USTRUCT()
42{
44
45
46 UPROPERTY()
47 float DrawX;
48
50 UPROPERTY()
51 float DrawY;
52
54 UPROPERTY()
55 float DrawXL;
56
58 UPROPERTY()
59 float DrawYL;
60
62 UPROPERTY()
63 FVector2D Scaling;
64
66 UPROPERTY()
67 TObjectPtr<const UFont> DrawFont;
68
70 UPROPERTY()
71 FVector2D SpacingAdjust;
72
74 : DrawX(0)
75 , DrawY(0)
76 , DrawXL(0)
77 , DrawYL(0)
78 , Scaling(ForceInit)
79 , DrawFont(NULL)
80 , SpacingAdjust(ForceInit)
81 {
82 }
83
84
85 FTextSizingParameters( float inDrawX, float inDrawY, float inDrawXL, float inDrawYL, const UFont* inFont=NULL )
86 : DrawX(inDrawX), DrawY(inDrawY), DrawXL(inDrawXL), DrawYL(inDrawYL)
87 , Scaling(1.f,1.f), DrawFont(inFont)
88 , SpacingAdjust( 0.0f, 0.0f )
89 {
90 }
92 : DrawX(0.f), DrawY(0.f), DrawXL(0.f), DrawYL(0.f)
93 , Scaling(ScaleX,ScaleY), DrawFont(inFont)
94 , SpacingAdjust( 0.0f, 0.0f )
95 {
96 }
97
98};
99
103USTRUCT()
105{
107
108
109 UPROPERTY()
110 FString Value;
111
113 UPROPERTY()
114 FVector2D LineExtent;
115
117 : LineExtent(ForceInit)
118 {
119 }
120
121 FWrappedStringElement(FString&& InValue, float Width, float Height )
122 : Value(MoveTemp(InValue)), LineExtent(Width,Height)
123 {}
124
125 FWrappedStringElement(const FString& InValue, float Width, float Height)
126 : Value(CopyTemp(InValue)), LineExtent(Width, Height)
127 {}
128
129};
130
132{
133public:
136
137private:
138 struct FWrappingState
139 {
140 FWrappingState( FStringView InString,
145 , Parameters(InParameters)
146 , StartIndex(0)
147 , Results(InResults)
148 , WrappedLineData(InWrappedLineData)
149 {}
150
152 const FTextSizingParameters& Parameters;
153 int32 StartIndex;
155 FWrappedLineData* const WrappedLineData;
156 };
157
158public:
160
170
171private:
177 bool ProcessLine(FWrappingState& WrappingState);
178
184 bool DoesSubstringFit(FWrappingState& WrappingState, const int32 EndIndex);
185
191 int32 FindIndexAtOrAfterWrapWidth(FWrappingState& WrappingState);
192
196 void AddLine(FWrappingState& WrappingState, const int32 EndIndex);
197
198 int32 FindFirstMandatoryBreakBetween(FWrappingState& WrappingState, const int32 WrapIndex);
199 int32 FindLastBreakCandidateBetween(const int32 StartIndex, const int32 WrapIndex);
200 int32 FindEndOfLastWholeGraphemeCluster(const int32 StartIndex, const int32 WrapIndex);
201
202private:
203 TSharedPtr<IBreakIterator> GraphemeBreakIterator;
204 TSharedPtr<IBreakIterator> LineBreakIterator;
205};
206
211{
212public:
213
223
228 {
229 // flushing and rendering
230 Allow_Flush = 1 << 0,
231 // delete the render batches when rendering
232 Allow_DeleteOnRender = 1 << 1
233 };
234
240
242
247
252
257
258
272
276 ENGINE_API void AddTileRenderItem(float X, float Y, float SizeX, float SizeY, float U, float V, float SizeU, float SizeV, const FMaterialRenderProxy* MaterialRenderProxy, FHitProxyId HitProxyId, bool bFreezeTime, FColor InColor);
277
281 ENGINE_API void AddTriangleRenderItem(const FCanvasUVTri& Tri, const FMaterialRenderProxy* MaterialRenderProxy, FHitProxyId HitProxyId, bool bFreezeTime);
282
290 ENGINE_API void Flush_RenderThread(FRHICommandListImmediate& RHICmdList, bool bForce = false);
291 ENGINE_API void Flush_RenderThread(FRDGBuilder& GraphBuilder, bool bForce = false);
292
297 ENGINE_API void Flush_GameThread(bool bForce = false);
298
304
310
315
322
331
342
352
363
369 {
370 return TransformStack.Top().GetMatrix() * TransformStack[0].GetMatrix().InverseFast();
371 }
372
378 {
379 return TransformStack[0].GetMatrix();
380 }
381
387 {
388 return TransformStack.Top().GetMatrix();
389 }
390
397
402
407 {
408 return RenderTarget;
409 }
410
417 ENGINE_API void SetRenderTargetRect(const FIntRect& ViewRect);
418
423 ENGINE_API void SetRenderTargetScissorRect( const FIntRect& ScissorRect );
424
428 void SetRenderTargetDirty(bool bDirty)
429 {
430 bRenderTargetDirty = bDirty;
431 }
432
436 ENGINE_API void SetHitProxy(HHitProxy* HitProxy);
437
438 // HitProxy Accessors.
439
440 FHitProxyId GetHitProxyId() const { return CurrentHitProxy ? CurrentHitProxy->Id : FHitProxyId(); }
441 FHitProxyConsumer* GetHitProxyConsumer() const { return HitProxyConsumer; }
442 bool IsHitTesting() const { return HitProxyConsumer != NULL; }
443
444 FSceneInterface* GetScene() const { return Scene; }
445
452 {
453 DepthSortKeyStack.Push(InSortKey);
454 };
455
462 {
463 int32 Result = 0;
464 if (DepthSortKeyStack.Num() > 0)
465 {
466 Result = DepthSortKeyStack.Pop();
467 }
468 else
469 {
470 // should always have one entry
472 }
473 return Result;
474 };
475
482 {
483 checkSlow(DepthSortKeyStack.Num() > 0);
484 return DepthSortKeyStack.Top();
485 }
486
493 {
494 AllowedModes = InAllowedModes;
495 }
502 {
503 return AllowedModes;
504 }
505
511 bool HasBatchesToRender() const;
512
517
523 ERHIFeatureLevel::Type GetFeatureLevel() const { return FeatureLevel; }
524
531
532public:
534
537 {
538 public:
540 : Matrix(InMatrix)
541 {
542 MatrixCRC = FCrc::MemCrc_DEPRECATED(&Matrix, sizeof(FMatrix));
543 }
544 inline void SetMatrix(const FMatrix& InMatrix)
545 {
546 Matrix = InMatrix;
547 MatrixCRC = FCrc::MemCrc_DEPRECATED(&Matrix, sizeof(FMatrix));
548 }
549 inline const FMatrix& GetMatrix() const
550 {
551 return Matrix;
552 }
553 inline uint32 GetMatrixCRC() const
554 {
555 return MatrixCRC;
556 }
557 private:
558 FMatrix Matrix;
559 uint32 MatrixCRC;
560 };
561
564 {
565 return TransformStack;
566 }
567 inline const FIntRect& GetViewRect() const
568 {
569 return ViewRect;
570 }
571
572 inline void SetScaledToRenderTarget(bool bScale = true)
573 {
574 bScaledToRenderTarget = bScale;
575 }
576 inline bool IsScaledToRenderTarget() const { return bScaledToRenderTarget; }
577
578 inline void SetStereoRendering(bool bStereo = true)
579 {
580 bStereoRendering = bStereo;
581 }
582 inline bool IsStereoRendering() const { return bStereoRendering; }
583
585 {
586 bUseInternalTexture = bInUseInternalTexture;
587 }
588
589 inline bool IsUsingInternalTexture() const { return bUseInternalTexture; }
590
592 {
593 bWriteDestinationAlpha = bInForceWriteAlpha;
594 }
595
596 inline bool IsWriteDestinationAlphaSet() const { return bWriteDestinationAlpha; }
597
599 {
600 ParentSize = InParentSize;
601 }
602
603 inline FIntPoint GetParentCanvasSize() const { return ParentSize; }
604
605 float GetDPIScale() const { return bStereoRendering ? 1.0f : DPIScale; }
606public:
609
610private:
611
613 TArray<int32> DepthSortKeyStack;
615 TArray<FTransformEntry> TransformStack;
617 FIntRect ViewRect;
619 FIntRect ScissorRect;
621 FRenderTarget* RenderTarget;
623 FHitProxyConsumer* HitProxyConsumer;
625 TRefCountPtr<HHitProxy> CurrentHitProxy;
626 /* Optional scene for rendering. */
627 FSceneInterface* Scene;
629 uint32 AllowedModes;
631 bool bRenderTargetDirty;
633 FGameTime Time;
635 bool bScaledToRenderTarget;
637 ERHIFeatureLevel::Type FeatureLevel;
638
640 bool bStereoRendering;
641
643 bool bUseInternalTexture;
644
646 bool bWriteDestinationAlpha;
647
648 FIntPoint ParentSize;
649
650 ECanvasDrawMode DrawMode;
651
652 float DPIScale;
653
657 void Construct();
658
659public:
660
664 const FGameTime& GetTime() const
665 {
666 return Time;
667 }
668
674 ENGINE_API void DrawItem(FCanvasItem& Item);
675
683
691 ENGINE_API void DrawItem(FCanvasItem& Item, float X, float Y);
692
698 ENGINE_API void Clear(const FLinearColor& Color);
699
700
701
717 ENGINE_API void DrawTile(double X, double Y, double SizeX, double SizeY, float U, float V, float SizeU, float SizeV, const FLinearColor& Color, const FTexture* Texture = NULL, bool AlphaBlend = true);
718 ENGINE_API void DrawTile(double X, double Y, double SizeX, double SizeY, float U, float V, float SizeU, float SizeV, const FLinearColor& Color, const FTexture* Texture, ESimpleElementBlendMode BlendMode);
719
733
734 ENGINE_API int32 DrawShadowedText(double StartX, double StartY, const FText& Text, const UFont* Font, const FLinearColor& Color, const FLinearColor& ShadowColor = FLinearColor::Black );
735
737
738 ENGINE_API void DrawNGon(const FVector2D& Center, const FColor& Color, int32 NumSides, float Radius);
739
769
774
777
785
788};
789
837
838
848extern ENGINE_API void StringSize( const UFont* Font, int32& XL, int32& YL, FStringView Text);
849
854{
859
860 inline void EmptyLine()
861 {
862 Y += 14;
863 }
864
865 ENGINE_API void DrawLine(const FText& Message, int32 X = 10, const FLinearColor& Color = FLinearColor(1.0f, 0.05f, 0.05f, 1.0f));
866
869};
#define NULL
Definition oodle2base.h:134
#define checkSlow(expr)
Definition AssertionMacros.h:332
ENGINE_API void StringSize(const UFont *Font, int32 &XL, int32 &YL, FStringView Text)
Definition Canvas.cpp:1181
@ ForceInit
Definition CoreMiscDefines.h:155
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EElementType
Definition DrawElementCoreTypes.h:35
EBlendMode
Definition EngineTypes.h:245
#define X(Name, Desc)
Definition FormatStringSan.h:47
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
EShaderPlatform
Definition RHIShaderPlatform.h:11
ESimpleElementBlendMode
Definition SceneTypes.h:191
@ SE_BLEND_MAX
Definition SceneTypes.h:212
USkinnedMeshComponent float
Definition SkinnedMeshComponent.h:60
UE_REWRITE T CopyTemp(T &Val)
Definition UnrealTemplate.h:554
UE_INTRINSIC_CAST UE_REWRITE constexpr std::remove_reference_t< T > && MoveTemp(T &&Obj) noexcept
Definition UnrealTemplate.h:520
uint16_t uint16
Definition binka_ue_file_header.h:7
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition BatchedElements.h:88
Definition BatchedElements.h:102
Definition CanvasTypes.h:794
virtual bool Render_GameThread(const FCanvas *Canvas, FCanvasRenderThreadScope &RenderScope)=0
virtual ~FCanvasBaseRenderItem()
Definition CanvasTypes.h:796
virtual bool Render_RenderThread(FCanvasRenderContext &RenderContext, FMeshPassProcessorRenderState &DrawRenderState, const FCanvas *Canvas)=0
virtual class FCanvasTriangleRendererItem * GetCanvasTriangleRendererItem()
Definition CanvasTypes.h:835
virtual class FCanvasTileRendererItem * GetCanvasTileRendererItem()
Definition CanvasTypes.h:828
virtual class FCanvasBatchedElementRenderItem * GetCanvasBatchedElementRenderItem()
Definition CanvasTypes.h:821
Definition CanvasBatchedElementRenderItem.h:16
Definition CanvasItem.h:25
Definition CanvasRender.h:9
Definition CanvasRender.h:95
Definition CanvasRendererItem.h:13
Definition CanvasRendererItem.h:161
Definition CanvasTypes.h:132
ENGINE_API FCanvasWordWrapper()
Definition Canvas.cpp:116
TArray< TPair< int32, int32 > > FWrappedLineData
Definition CanvasTypes.h:135
Definition CanvasTypes.h:744
int32 DepthSortKey
Definition CanvasTypes.h:765
TArray< class FCanvasBaseRenderItem * > RenderBatchArray
Definition CanvasTypes.h:767
FCanvasSortElement(int32 InDepthSortKey=0)
Definition CanvasTypes.h:749
bool operator==(const FCanvasSortElement &Other) const
Definition CanvasTypes.h:759
Definition CanvasTypes.h:537
FTransformEntry(const FMatrix &InMatrix)
Definition CanvasTypes.h:539
uint32 GetMatrixCRC() const
Definition CanvasTypes.h:553
const FMatrix & GetMatrix() const
Definition CanvasTypes.h:549
void SetMatrix(const FMatrix &InMatrix)
Definition CanvasTypes.h:544
Definition CanvasTypes.h:211
ENGINE_API void SetRenderTarget_GameThread(FRenderTarget *NewRenderTarget)
Definition Canvas.cpp:1042
ENGINE_API void PopTransform()
Definition Canvas.cpp:987
const FMatrix & GetFullTransform() const
Definition CanvasTypes.h:386
ECanvasAllowModes
Definition CanvasTypes.h:228
@ Allow_DeleteOnRender
Definition CanvasTypes.h:232
@ Allow_Flush
Definition CanvasTypes.h:230
static ENGINE_API ESimpleElementBlendMode BlendToSimpleElementBlend(EBlendMode BlendMode)
Definition Canvas.cpp:1601
const FMatrix & GetBottomTransform() const
Definition CanvasTypes.h:377
void SetAllowedModes(uint32 InAllowedModes)
Definition CanvasTypes.h:492
bool IsStereoRendering() const
Definition CanvasTypes.h:582
ENGINE_API int32 DrawShadowedText(double StartX, double StartY, const FText &Text, const UFont *Font, const FLinearColor &Color, const FLinearColor &ShadowColor=FLinearColor::Black)
Definition Canvas.cpp:1154
FHitProxyId GetHitProxyId() const
Definition CanvasTypes.h:440
static ENGINE_API FMatrix CalcProjectionMatrix(uint32 ViewSizeX, uint32 ViewSizeY, float fFOV, float NearPlane)
Definition Canvas.cpp:439
float GetDPIScale() const
Definition CanvasTypes.h:605
ENGINE_API void SetRenderTargetRect(const FIntRect &ViewRect)
Definition Canvas.cpp:1056
void SetStereoRendering(bool bStereo=true)
Definition CanvasTypes.h:578
ENGINE_API void WrapString(FTextSizingParameters &Parameters, const float InCurX, FStringView Text, TArray< FWrappedStringElement > &out_Lines, FCanvasWordWrapper::FWrappedLineData *const OutWrappedLineData=nullptr)
Definition Canvas.cpp:1172
bool IsWriteDestinationAlphaSet() const
Definition CanvasTypes.h:596
ENGINE_API void DrawItem(FCanvasItem &Item)
Definition Canvas.cpp:2088
EElementType
Definition CanvasTypes.h:218
@ ET_MAX
Definition CanvasTypes.h:221
@ ET_Line
Definition CanvasTypes.h:219
@ ET_Triangle
Definition CanvasTypes.h:220
static ENGINE_API FMatrix CalcViewMatrix(uint32 ViewSizeX, uint32 ViewSizeY, float fFOV)
Definition Canvas.cpp:417
bool IsScaledToRenderTarget() const
Definition CanvasTypes.h:576
float AlphaModulate
Definition CanvasTypes.h:533
static ENGINE_API FMatrix CalcBaseTransform3D(uint32 ViewSizeX, uint32 ViewSizeY, float fFOV, float NearPlane)
Definition Canvas.cpp:409
ENGINE_API ~FCanvas()
Definition Canvas.cpp:762
bool HasBatchesToRender() const
Definition Canvas.cpp:1004
void SetWriteDestinationAlpha(const bool bInForceWriteAlpha)
Definition CanvasTypes.h:591
ENGINE_API void PushAbsoluteTransform(const FMatrix &Transform)
Definition Canvas.cpp:975
bool IsHitTesting() const
Definition CanvasTypes.h:442
int32 LastElementIndex
Definition CanvasTypes.h:776
ENGINE_API void AddTriangleRenderItem(const FCanvasUVTri &Tri, const FMaterialRenderProxy *MaterialRenderProxy, FHitProxyId HitProxyId, bool bFreezeTime)
Definition Canvas.cpp:732
ENGINE_API void AddTileRenderItem(float X, float Y, float SizeX, float SizeY, float U, float V, float SizeU, float SizeV, const FMaterialRenderProxy *MaterialRenderProxy, FHitProxyId HitProxyId, bool bFreezeTime, FColor InColor)
Definition Canvas.cpp:702
int32 PopDepthSortKey()
Definition CanvasTypes.h:461
static ENGINE_API FMatrix CalcBaseTransform2D(uint32 ViewSizeX, uint32 ViewSizeY)
Definition Canvas.cpp:391
ECanvasDrawMode
Definition CanvasTypes.h:236
@ CDM_ImmediateDrawing
Definition CanvasTypes.h:238
@ CDM_DeferDrawing
Definition CanvasTypes.h:237
TArray< FCanvasSortElement > SortedElements
Definition CanvasTypes.h:771
ERHIFeatureLevel::Type GetFeatureLevel() const
Definition CanvasTypes.h:523
const FIntRect & GetViewRect() const
Definition CanvasTypes.h:567
ENGINE_API EShaderPlatform GetShaderPlatform() const
Definition Canvas.cpp:2119
void SetScaledToRenderTarget(bool bScale=true)
Definition CanvasTypes.h:572
TMap< int32, int32 > SortedElementLookupMap
Definition CanvasTypes.h:773
ENGINE_API void DrawNGon(const FVector2D &Center, const FColor &Color, int32 NumSides, float Radius)
Definition Canvas.cpp:1148
void SetUseInternalTexture(const bool bInUseInternalTexture)
Definition CanvasTypes.h:584
ENGINE_API void SetRenderTargetScissorRect(const FIntRect &ScissorRect)
Definition Canvas.cpp:1061
ENGINE_API void Flush_RenderThread(FRHICommandListImmediate &RHICmdList, bool bForce=false)
Definition Canvas.cpp:768
ENGINE_API int32 DrawShadowedString(double StartX, double StartY, FStringView Text, const UFont *Font, const FLinearColor &Color, const FLinearColor &ShadowColor=FLinearColor::Black)
Definition Canvas.cpp:1130
TSharedPtr< FCanvasWordWrapper > WordWrapper
Definition CanvasTypes.h:608
bool IsUsingInternalTexture() const
Definition CanvasTypes.h:589
ENGINE_API void DrawTile(double X, double Y, double SizeX, double SizeY, float U, float V, float SizeU, float SizeV, const FLinearColor &Color, const FTexture *Texture=NULL, bool AlphaBlend=true)
Definition Canvas.cpp:1102
void SetRenderTargetDirty(bool bDirty)
Definition CanvasTypes.h:428
ENGINE_API FBatchedElements * GetBatchedElements(EElementType InElementType, FBatchedElementParameters *InBatchedElementParameters=NULL, const FTexture *Texture=NULL, ESimpleElementBlendMode BlendMode=SE_BLEND_MAX, const FDepthFieldGlowInfo &GlowInfo=FDepthFieldGlowInfo(), bool bApplyDPIScale=true)
Definition Canvas.cpp:666
FSceneInterface * GetScene() const
Definition CanvasTypes.h:444
void SetParentCanvasSize(FIntPoint InParentSize)
Definition CanvasTypes.h:598
ENGINE_API FCanvasSortElement & GetSortElement(int32 DepthSortKey)
Definition Canvas.cpp:632
const FGameTime & GetTime() const
Definition CanvasTypes.h:664
FMatrix GetTransform() const
Definition CanvasTypes.h:368
ENGINE_API void SetBaseTransform(const FMatrix &Transform)
Definition Canvas.cpp:378
ENGINE_API void CopyTransformStack(const FCanvas &Copy)
Definition Canvas.cpp:1037
ENGINE_API void PushRelativeTransform(const FMatrix &Transform)
Definition Canvas.cpp:957
const TArray< FTransformEntry > & GetTransformStack() const
Definition CanvasTypes.h:563
uint32 GetAllowedModes() const
Definition CanvasTypes.h:501
FRenderTarget * GetRenderTarget() const
Definition CanvasTypes.h:406
ENGINE_API void SetHitProxy(HHitProxy *HitProxy)
Definition Canvas.cpp:992
FIntPoint GetParentCanvasSize() const
Definition CanvasTypes.h:603
ENGINE_API void Flush_GameThread(bool bForce=false)
Definition Canvas.cpp:870
int32 TopDepthSortKey()
Definition CanvasTypes.h:481
void ClearBatchesToRender()
Definition Canvas.cpp:1020
FHitProxyConsumer * GetHitProxyConsumer() const
Definition CanvasTypes.h:441
void PushDepthSortKey(int32 InSortKey)
Definition CanvasTypes.h:451
Definition HitProxies.h:218
Definition HitProxies.h:86
Definition MaterialRenderProxy.h:102
Definition RenderGraphBuilder.h:49
Definition RenderGraphResources.h:571
Definition RHICommandList.h:4626
Definition UnrealClient.h:30
Definition SceneInterface.h:106
Definition Text.h:385
Definition RenderResource.h:354
Definition HitProxies.h:135
FHitProxyId Id
Definition HitProxies.h:153
Definition IBreakIterator.h:9
Definition Array.h:670
UE_REWRITE SizeType Num() const
Definition Array.h:1144
UE_NODEBUG UE_FORCEINLINE_HINT void Push(ElementType &&Item)
Definition Array.h:1224
ElementType Pop(EAllowShrinking AllowShrinking=UE::Core::Private::AllowShrinkingByDefault< AllocatorType >())
Definition Array.h:1196
UE_NODEBUG UE_FORCEINLINE_HINT ElementType & Top() UE_LIFETIMEBOUND
Definition Array.h:1248
Definition UnrealString.h.inl:34
Definition RefCounting.h:454
Definition SharedPointer.h:692
Definition Font.h:111
Definition World.h:918
Definition SceneComponent.h:24
Type
Definition RHIFeatureLevel.h:20
int
Definition TestServer.py:515
Definition EngineTypes.h:4113
Definition Color.h:486
static CORE_API uint32 MemCrc_DEPRECATED(const void *Data, int32 Length, uint32 CRC=0)
Definition Crc.cpp:592
Definition EngineTypes.h:4031
Definition GameTime.h:10
Definition Color.h:48
static CORE_API const FLinearColor Black
Definition Color.h:458
Definition MeshPassProcessor.h:2118
Definition CanvasTypes.h:854
FScreenMessageWriter(FCanvas &InCanvas, int32 InY)
Definition CanvasTypes.h:855
void EmptyLine()
Definition CanvasTypes.h:860
int32 Y
Definition CanvasTypes.h:868
ENGINE_API void DrawLine(const FText &Message, int32 X=10, const FLinearColor &Color=FLinearColor(1.0f, 0.05f, 0.05f, 1.0f))
Definition Canvas.cpp:2124
FCanvas & Canvas
Definition CanvasTypes.h:867
Definition CanvasTypes.h:42
FTextSizingParameters(float inDrawX, float inDrawY, float inDrawXL, float inDrawYL, const UFont *inFont=NULL)
Definition CanvasTypes.h:85
FTextSizingParameters(const UFont *inFont, float ScaleX, float ScaleY)
Definition CanvasTypes.h:91
Definition CanvasTypes.h:105
FWrappedStringElement(FString &&InValue, float Width, float Height)
Definition CanvasTypes.h:121
FWrappedStringElement(const FString &InValue, float Width, float Height)
Definition CanvasTypes.h:125
Definition ObjectPtr.h:488
Definition IntPoint.h:25