UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DrawElementTypes.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "Fonts/FontCache.h"
9#include "SlateRenderBatch.h"
10#include "Styling/SlateBrush.h"
11#include "Types/SlateVector2.h"
12
13#include "UObject/GCObject.h"
14#include "Fonts/ShapedTextFwd.h"
15#include "Misc/MemStack.h"
16#include "Styling/WidgetStyle.h"
17#include "Fonts/SlateFontInfo.h"
18#include "Layout/SlateRect.h"
19#include "Layout/Clipping.h"
20#include "Types/PaintArgs.h"
21#include "Types/SlateVector2.h"
22#include "Layout/Geometry.h"
27#include "ElementBatcher.h"
29#include "Types/SlateVector2.h"
30
35class SWidget;
36class SWindow;
37struct FSlateBrush;
40
46{
48public:
49
57
67
80
102 SLATECORE_API static void MakeBox(
103 FSlateWindowElementList& ElementList,
106 const FSlateBrush* InBrush,
109
110 SLATECORE_API static void MakeRotatedBox(
111 FSlateWindowElementList& ElementList,
114 const FSlateBrush* InBrush,
116 float Angle,
118 ERotationSpace RotationSpace = RelativeToElement,
120
135
137
142
154
168
181
196
211
214
227#if UE_ENABLE_SLATE_VECTOR_DEPRECATION_MECHANISMS
228 SLATECORE_API static void MakeLines(FSlateWindowElementList& ElementList, uint32 InLayer, const FPaintGeometry& PaintGeometry, const TArray<FVector2d>& Points, ESlateDrawEffect InDrawEffects = ESlateDrawEffect::None, const FLinearColor& InTint=FLinearColor::White, bool bAntialias = true, float Thickness = 1.0f);
229#endif
231
232
247
261#if UE_ENABLE_SLATE_VECTOR_DEPRECATION_MECHANISMS
262 SLATECORE_API static void MakeLines(FSlateWindowElementList& ElementList, uint32 InLayer, const FPaintGeometry& PaintGeometry, const TArray<FVector2d>& Points, const TArray<FLinearColor>& PointColors, ESlateDrawEffect InDrawEffects = ESlateDrawEffect::None, const FLinearColor& InTint=FLinearColor::White, bool bAntialias = true, float Thickness = 1.0f);
263#endif
265
281
294
304
306
307 UE_DEPRECATED(5.4, "MakePostProcessPass has been deprecated. If you need to make a blur please call MakePostProcessBlur.")
308 SLATECORE_API static void MakePostProcessPass(FSlateWindowElementList& ElementList, uint32 InLayer, const FPaintGeometry& PaintGeometry, const FVector4f& Params, int32 DownsampleAmount, const FVector4f CornerRadius = FVector4f(0.0f));
309
320 SLATECORE_API static void MakePostProcessBlur(FSlateWindowElementList& ElementList, uint32 InLayer, const FPaintGeometry& PaintGeometry, const FVector4f& Params, int32 DownsampleAmount, const FVector4f CornerRadius = FVector4f(0.0f));
321
323
324 inline int32 GetLayer() const { return LayerId; }
325
328
333
338
343
344 inline float GetScale() const { return Scale; }
345 inline ESlateDrawEffect GetDrawEffects() const { return DrawEffects; }
346 inline ESlateBatchDrawFlag GetBatchFlags() const { return BatchFlags; }
347 inline bool IsPixelSnapped() const { return !EnumHasAllFlags(DrawEffects, ESlateDrawEffect::NoPixelSnapping); }
348
349 inline int32 GetPrecachedClippingIndex() const { return ClipStateHandle.GetPrecachedClipIndex(); }
351
353 inline const FClipStateHandle& GetClippingHandle() const { return ClipStateHandle; }
354 inline const int8 GetSceneIndex() const { return SceneIndex; }
355
356 inline void SetIsCached(bool bInIsCached) { bIsCached = bInIsCached; }
357 inline bool IsCached() const { return bIsCached; }
358
363
371
372private:
374
375 static FVector2f GetRotationPoint( const FPaintGeometry& PaintGeometry, const TOptional<FVector2f>& UserRotationPoint, ERotationSpace RotationSpace );
377private:
380 FVector2f LocalSize;
381 int32 LayerId;
382 float Scale;
383 FClipStateHandle ClipStateHandle;
384 ESlateBatchDrawFlag BatchFlags;
385 int8 SceneIndex;
386 ESlateDrawEffect DrawEffects;
387 EElementType ElementType;
388 // Misc data
389 uint8 bIsCached : 1;
390};
391
393
395{
398
405 template<typename VectorType>
406 FSlateGradientStop(const VectorType& InPosition, const FLinearColor InColor)
407 : Position(UE::Slate::CastToVector2f(InPosition))
408 , Color(InColor)
409 {
410 }
411};
412template <> struct TIsPODType<FSlateGradientStop> { enum { Value = true }; };
413
415{
417
418 inline void SetTint(const FLinearColor& InTint) { Tint = InTint; }
419 inline FLinearColor GetTint() const { return Tint; }
420};
421
423{
430
431 const FMargin& GetBrushMargin() const { return Margin; }
432 const FBox2f& GetBrushUVRegion() const { return UVRegion; }
437
439 {
440 check(InBrush);
441 ensureMsgf(InBrush->GetDrawType() != ESlateBrushDrawType::NoDrawType, TEXT("This should have been filtered out earlier in the Make... call."));
442
443 // Note: Do not store the brush. It is possible brushes are destroyed after an element is enqueued for rendering
444 Margin = InBrush->GetMargin();
445 UVRegion = InBrush->GetUVRegion();
446 Tiling = InBrush->GetTiling();
447 Mirroring = InBrush->GetMirroring();
448 DrawType = InBrush->GetDrawType();
449 const FSlateResourceHandle& Handle = InBrush->GetRenderingResource(InLocalSize, DrawScale);
450 if (Handle.IsValid())
451 {
452 ResourceProxy = Handle.GetResourceProxy();
453 }
454 else
455 {
456 ResourceProxy = nullptr;
457 }
458 }
459};
460
474
476{
477 // The font to use when rendering
479 // Basic text data
481
482 const FSlateFontInfo& GetFontInfo() const { return FontInfo; }
483 const TCHAR* GetText() const { return *ImmutableText; }
484 int32 GetTextLength() const { return ImmutableText.Len(); }
485
487 {
489 const int32 StartIndex = FMath::Min<int32>(InStartIndex, InText.Len());
490 const int32 EndIndex = FMath::Min<int32>(InEndIndex, InText.Len());
491 const int32 TextLength = (EndIndex > StartIndex) ? EndIndex - StartIndex : 0;
492 if (TextLength > 0)
493 {
494 ImmutableText = InText.Mid(StartIndex, TextLength);
495 }
496 }
497
498 void SetText(const FString& InText, const FSlateFontInfo& InFontInfo)
499 {
502 }
503
504
506 {
508 }
509};
510
548
562
564{
566 // Bezier Spline Data points. E.g.
567 //
568 // P1 + - - - - + P2 P1 +
569 // / \ / \
570 // P0 * * P3 P0 * \ * P3
571 // \ /
572 // + P2
577
579
580 // Thickness
582 float GetThickness() const { return Thickness; }
583
593
603
613};
614
616{
620 float DashLength = 0.f;
621 float DashOffset = 0.f;
622
624
625 bool IsAntialiased() const { return bAntialias; }
626 const TArray<FVector2f>& GetPoints() const { return Points; }
628 float GetThickness() const { return Thickness; }
629
631 {
633 }
634
635#if UE_ENABLE_SLATE_VECTOR_DEPRECATION_MECHANISMS
637 {
640 for (FVector2D Vect : InPoints)
641 {
643 }
644 if (InPointColors)
645 {
647 }
648 else
649 {
651 }
652 }
653#endif
654
661
668};
669
686
697
709
711{
712 // Cached render data
713 class FSlateRenderDataHandle* CachedRenderData;
715
716 // Cached Buffers
724};
725
750
#define checkSlow(expr)
Definition AssertionMacros.h:332
#define check(expr)
Definition AssertionMacros.h:314
#define ensureMsgf( InExpression, InFormat,...)
Definition AssertionMacros.h:465
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
FPlatformTypes::int8 int8
An 8-bit signed integer.
Definition Platform.h:1121
#define TEXT(x)
Definition Platform.h:1272
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
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
constexpr bool EnumHasAllFlags(Enum Flags, Enum Contains)
Definition EnumClassFlags.h:28
void Init()
Definition LockFreeList.h:4
UE::Math::TVector4< float > FVector4f
Definition MathFwd.h:75
ESlateBatchDrawFlag
Definition RenderingCommon.h:118
ESlateDrawEffect
Definition RenderingCommon.h:89
EOrientation
Definition SlateEnums.h:261
UE_INTRINSIC_CAST UE_REWRITE constexpr std::remove_reference_t< T > && MoveTemp(T &&Obj) noexcept
Definition UnrealTemplate.h:520
uint32 Offset
Definition VulkanMemory.cpp:4033
uint8_t uint8
Definition binka_ue_file_header.h:8
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition UObjectGlobals.h:2492
Definition FontCache.h:334
Definition Clipping.h:207
Definition DrawElementTypes.h:46
static SLATECORE_API void MakePostProcessPass(FSlateWindowElementList &ElementList, uint32 InLayer, const FPaintGeometry &PaintGeometry, const FVector4f &Params, int32 DownsampleAmount, const FVector4f CornerRadius=FVector4f(0.0f))
Definition DrawElementTypes.cpp:790
float GetScale() const
Definition DrawElementTypes.h:344
void SetPosition(UE::Slate::FDeprecateVector2DParameter InPosition)
Definition DrawElementTypes.h:334
FSlateLayoutTransform GetInverseLayoutTransform() const
Definition DrawElementTypes.h:359
int32 GetPrecachedClippingIndex() const
Definition DrawElementTypes.h:349
static SLATECORE_API void MakeViewport(FSlateWindowElementList &ElementList, uint32 InLayer, const FPaintGeometry &PaintGeometry, TSharedPtr< const ISlateViewport > Viewport, ESlateDrawEffect InDrawEffects=ESlateDrawEffect::None, const FLinearColor &InTint=FLinearColor::White)
Definition DrawElementTypes.cpp:731
UE::Slate::FDeprecateVector2DResult GetLocalSize() const
Definition DrawElementTypes.h:339
ESlateDrawEffect GetDrawEffects() const
Definition DrawElementTypes.h:345
bool IsPixelSnapped() const
Definition DrawElementTypes.h:347
bool IsCached() const
Definition DrawElementTypes.h:357
UE::Slate::FDeprecateVector2DResult GetPosition() const
Definition DrawElementTypes.h:329
void SetPrecachedClippingIndex(int32 InClippingIndex)
Definition DrawElementTypes.h:350
static void MakeText(FSlateWindowElementList &ElementList, uint32 InLayer, const FPaintGeometry &PaintGeometry, const FText &InText, const FSlateFontInfo &InFontInfo, ESlateDrawEffect InDrawEffects=ESlateDrawEffect::None, const FLinearColor &InTint=FLinearColor::White)
Definition DrawElementTypes.h:138
static SLATECORE_API void MakeCubicBezierSpline(FSlateWindowElementList &ElementList, uint32 InLayer, const FPaintGeometry &PaintGeometry, const UE::Slate::FDeprecateVector2DParameter P0, const UE::Slate::FDeprecateVector2DParameter P1, const UE::Slate::FDeprecateVector2DParameter P2, const UE::Slate::FDeprecateVector2DParameter P3, float InThickness=0.0f, ESlateDrawEffect InDrawEffects=ESlateDrawEffect::None, const FLinearColor &InTint=FLinearColor::White)
Definition DrawElementTypes.cpp:585
void SetIsCached(bool bInIsCached)
Definition DrawElementTypes.h:356
void SetCachedClippingState(const FSlateClippingState *CachedState)
Definition DrawElementTypes.h:352
static SLATECORE_API void MakeGeometryOutline(FSlateWindowElementList &ElementList, uint32 InLayer, const FPaintGeometry &PaintGeometry, FLinearColor Tint=FLinearColor::White, ESlateDrawEffect InDrawEffects=ESlateDrawEffect::None, bool bAntialias=true, float Thickness=1.0f)
Definition DrawElementTypes.cpp:246
static SLATECORE_API void MakeShapedText(FSlateWindowElementList &ElementList, uint32 InLayer, const FPaintGeometry &PaintGeometry, const FShapedGlyphSequenceRef &InShapedGlyphSequence, ESlateDrawEffect InDrawEffects, const FLinearColor &BaseTint, const FLinearColor &OutlineTint, FTextOverflowArgs TextOverflowArgs=FTextOverflowArgs())
Definition DrawElementTypes.cpp:464
int32 GetLayer() const
Definition DrawElementTypes.h:324
static SLATECORE_API void MakeBox(FSlateWindowElementList &ElementList, uint32 InLayer, const FPaintGeometry &PaintGeometry, const FSlateBrush *InBrush, ESlateDrawEffect InDrawEffects=ESlateDrawEffect::None, const FLinearColor &InTint=FLinearColor::White)
Definition DrawElementTypes.cpp:333
static SLATECORE_API void MakeRotatedBox(FSlateWindowElementList &ElementList, uint32 InLayer, const FPaintGeometry &PaintGeometry, const FSlateBrush *InBrush, ESlateDrawEffect, float Angle, UE::Slate::FDeprecateOptionalVector2DParameter InRotationPoint=TOptional< FVector2f >(), ERotationSpace RotationSpace=RelativeToElement, const FLinearColor &InTint=FLinearColor::White)
Definition DrawElementTypes.cpp:351
static SLATECORE_API void MakeLines(FSlateWindowElementList &ElementList, uint32 InLayer, const FPaintGeometry &PaintGeometry, TArray< FVector2f > Points, ESlateDrawEffect InDrawEffects=ESlateDrawEffect::None, const FLinearColor &InTint=FLinearColor::White, bool bAntialias=true, float Thickness=1.0f)
Definition DrawElementTypes.cpp:623
void ApplyPositionOffset(UE::Slate::FDeprecateVector2DParameter InOffset)
Definition DrawElementTypes.cpp:222
static SLATECORE_API void MakeRotatedShapedText(FSlateWindowElementList &ElementList, uint32 InLayer, const FPaintGeometry &PaintGeometry, const FShapedGlyphSequenceRef &InShapedGlyphSequence, ESlateDrawEffect InDrawEffects, const FLinearColor &BaseTint, const FLinearColor &OutlineTint, float Angle2D, const UE::Slate::FDeprecateOptionalVector2DParameter &InRotationPoint=TOptional< FVector2f >(), ERotationSpace RotationSpace=RelativeToElement, const FTextOverflowArgs &TextOverflowArgs=FTextOverflowArgs())
Definition DrawElementTypes.cpp:500
static SLATECORE_API void MakeDebugQuad(FSlateWindowElementList &ElementList, uint32 InLayer, const FPaintGeometry &PaintGeometry, FLinearColor Tint=FLinearColor::White)
Definition DrawElementTypes.cpp:231
void SetRenderTransform(const FSlateRenderTransform &InRenderTransform)
Definition DrawElementTypes.h:327
static SLATECORE_API void MakeGradient(FSlateWindowElementList &ElementList, uint32 InLayer, const FPaintGeometry &PaintGeometry, TArray< FSlateGradientStop > InGradientStops, EOrientation InGradientType, ESlateDrawEffect InDrawEffects=ESlateDrawEffect::None, FVector4f CornerRadius=FVector4f(0.0f))
Definition DrawElementTypes.cpp:554
const FSlateRenderTransform & GetRenderTransform() const
Definition DrawElementTypes.h:326
const int8 GetSceneIndex() const
Definition DrawElementTypes.h:354
static SLATECORE_API void MakeCustomVerts(FSlateWindowElementList &ElementList, uint32 InLayer, const FSlateResourceHandle &InRenderResourceHandle, const TArray< FSlateVertex > &InVerts, const TArray< SlateIndex > &InIndexes, ISlateUpdatableInstanceBuffer *InInstanceData, uint32 InInstanceOffset, uint32 InNumInstances, ESlateDrawEffect InDrawEffects=ESlateDrawEffect::None)
Definition DrawElementTypes.cpp:770
static SLATECORE_API void MakeDashedLines(FSlateWindowElementList &ElementList, uint32 InLayer, const FPaintGeometry &PaintGeometry, TArray< FVector2f > &&Points, ESlateDrawEffect InDrawEffects=ESlateDrawEffect::None, const FLinearColor &InTint=FLinearColor::White, float Thickness=1.0f, float DashLengthPx=10.0f, float DashScreenOffset=0.f)
Definition DrawElementTypes.cpp:649
static SLATECORE_API void MakeCustom(FSlateWindowElementList &ElementList, uint32 InLayer, TSharedPtr< ICustomSlateElement, ESPMode::ThreadSafe > CustomDrawer)
Definition DrawElementTypes.cpp:754
static SLATECORE_API void MakeSpline(FSlateWindowElementList &ElementList, uint32 InLayer, const FPaintGeometry &PaintGeometry, const UE::Slate::FDeprecateVector2DParameter InStart, const UE::Slate::FDeprecateVector2DParameter InStartDir, const UE::Slate::FDeprecateVector2DParameter InEnd, const UE::Slate::FDeprecateVector2DParameter InEndDir, float InThickness=0.0f, ESlateDrawEffect InDrawEffects=ESlateDrawEffect::None, const FLinearColor &InTint=FLinearColor::White)
Definition DrawElementTypes.cpp:570
static SLATECORE_API void MakeDrawSpaceSpline(FSlateWindowElementList &ElementList, uint32 InLayer, const UE::Slate::FDeprecateVector2DParameter InStart, const UE::Slate::FDeprecateVector2DParameter InStartDir, const UE::Slate::FDeprecateVector2DParameter InEnd, const UE::Slate::FDeprecateVector2DParameter InEndDir, float InThickness=0.0f, ESlateDrawEffect InDrawEffects=ESlateDrawEffect::None, const FLinearColor &InTint=FLinearColor::White)
Definition DrawElementTypes.cpp:600
const FClipStateHandle & GetClippingHandle() const
Definition DrawElementTypes.h:353
static SLATECORE_API void MakeText(FSlateWindowElementList &ElementList, uint32 InLayer, const FPaintGeometry &PaintGeometry, const FString &InText, const int32 StartIndex, const int32 EndIndex, const FSlateFontInfo &InFontInfo, ESlateDrawEffect InDrawEffects=ESlateDrawEffect::None, const FLinearColor &InTint=FLinearColor::White)
Definition DrawElementTypes.cpp:391
ESlateBatchDrawFlag GetBatchFlags() const
Definition DrawElementTypes.h:346
ERotationSpace
Definition DrawElementTypes.h:51
@ RelativeToWorld
Definition DrawElementTypes.h:55
@ RelativeToElement
Definition DrawElementTypes.h:53
static SLATECORE_API void MakePostProcessBlur(FSlateWindowElementList &ElementList, uint32 InLayer, const FPaintGeometry &PaintGeometry, const FVector4f &Params, int32 DownsampleAmount, const FVector4f CornerRadius=FVector4f(0.0f))
Definition DrawElementTypes.cpp:796
Definition SlateLayoutTransform.h:20
Definition SlateRenderBatch.h:45
Definition SlateResourceHandle.h:16
Definition SlateShaderResource.h:129
Definition SlateShaderResource.h:44
Definition DrawElements.h:220
Definition Text.h:385
Definition RenderingCommon.h:957
Definition RenderingCommon.h:974
Definition SWidget.h:165
Definition SWindow.h:243
Definition Array.h:670
void Reset(SizeType NewSize=0)
Definition Array.h:2246
UE_FORCEINLINE_HINT void Reserve(SizeType Number)
Definition Array.h:3016
Definition SharedPointer.h:692
UE_FORCEINLINE_HINT ObjectType * Get() const
Definition SharedPointer.h:1065
UE_FORCEINLINE_HINT const bool IsValid() const
Definition SharedPointer.h:1085
Definition SharedPointer.h:153
Definition TransformCalculus2D.h:682
Definition SharedPointer.h:1295
Type
Definition SlateBrush.h:21
Type
Definition SlateBrush.h:70
Type
Definition SlateBrush.h:47
Definition SScissorRectBox.cpp:10
FDeprecateSlateVector2D FDeprecateVector2DResult
Definition SlateVector2.h:469
const FVector2f & CastToVector2f(const FVector2f &InValue)
Definition SlateVector2.h:591
Definition AdvancedWidgetsModule.cpp:13
Definition Clipping.h:296
void SetCachedClipState(const FSlateClippingState *CachedState)
Definition Clipping.h:316
void SetPreCachedClipIndex(int32 InClipIndex)
Definition Clipping.h:311
int32 GetPrecachedClipIndex() const
Definition Clipping.h:303
Definition Color.h:48
static CORE_API const FLinearColor White
Definition Color.h:456
Definition Margin.h:17
Definition PaintGeometry.h:24
Definition DrawElementTypes.h:423
ESlateBrushMirrorType::Type Mirroring
Definition DrawElementTypes.h:428
const FSlateShaderResourceProxy * ResourceProxy
Definition DrawElementTypes.h:426
FBox2f UVRegion
Definition DrawElementTypes.h:425
const FMargin & GetBrushMargin() const
Definition DrawElementTypes.h:431
const FSlateShaderResourceProxy * GetResourceProxy() const
Definition DrawElementTypes.h:436
ESlateBrushDrawType::Type DrawType
Definition DrawElementTypes.h:429
void SetBrush(const FSlateBrush *InBrush, UE::Slate::FDeprecateVector2DParameter InLocalSize, float DrawScale)
Definition DrawElementTypes.h:438
ESlateBrushTileType::Type Tiling
Definition DrawElementTypes.h:427
ESlateBrushDrawType::Type GetBrushDrawType() const
Definition DrawElementTypes.h:435
ESlateBrushMirrorType::Type GetBrushMirroring() const
Definition DrawElementTypes.h:434
const FBox2f & GetBrushUVRegion() const
Definition DrawElementTypes.h:432
ESlateBrushTileType::Type GetBrushTiling() const
Definition DrawElementTypes.h:433
FMargin Margin
Definition DrawElementTypes.h:424
Definition SlateBrush.h:239
Definition DrawElementTypes.h:711
void SetCachedBuffer(FSlateRenderDataHandle *InRenderDataHandle, const UE::Slate::FDeprecateVector2DParameter Offset)
Definition DrawElementTypes.h:717
class FSlateRenderDataHandle * CachedRenderData
Definition DrawElementTypes.h:713
FVector2f CachedRenderDataOffset
Definition DrawElementTypes.h:714
Definition DrawElementTypes.h:688
void SetCustomDrawer(const TSharedPtr< ICustomSlateElement, ESPMode::ThreadSafe > &InCustomDrawer)
Definition DrawElementTypes.h:692
TWeakPtr< ICustomSlateElement, ESPMode::ThreadSafe > CustomDrawer
Definition DrawElementTypes.h:690
Definition DrawElementTypes.h:727
uint32 NumInstances
Definition DrawElementTypes.h:736
ISlateUpdatableInstanceBufferRenderProxy * InstanceData
Definition DrawElementTypes.h:734
void SetCustomVerts(const FSlateShaderResourceProxy *InRenderProxy, TArray< FSlateVertex > InVerts, TArray< SlateIndex > InIndices, ISlateUpdatableInstanceBufferRenderProxy *InInstanceData, uint32 InInstanceOffset, uint32 InNumInstances)
Definition DrawElementTypes.h:738
TArray< SlateIndex > Indices
Definition DrawElementTypes.h:731
TArray< FSlateVertex > Vertices
Definition DrawElementTypes.h:730
const FSlateShaderResourceProxy * ResourceProxy
Definition DrawElementTypes.h:728
uint32 InstanceOffset
Definition DrawElementTypes.h:735
Definition SlateFontInfo.h:147
SLATECORE_API void AddReferencedObjects(FReferenceCollector &Collector)
Definition SlateFontInfo.cpp:220
Definition DrawElementTypes.h:550
EOrientation GradientType
Definition DrawElementTypes.h:552
FVector4f CornerRadius
Definition DrawElementTypes.h:553
void SetGradient(TArray< FSlateGradientStop > InGradientStops, EOrientation InGradientType, FVector4f InCornerRadius)
Definition DrawElementTypes.h:555
TArray< FSlateGradientStop > GradientStops
Definition DrawElementTypes.h:551
Definition DrawElementTypes.h:395
FVector2f Position
Definition DrawElementTypes.h:396
FSlateGradientStop(const VectorType &InPosition, const FLinearColor InColor)
Definition DrawElementTypes.h:406
FLinearColor Color
Definition DrawElementTypes.h:397
Definition DrawElementTypes.h:699
void SetLayer(FSlateDrawLayerHandle *InLayerHandle)
Definition DrawElementTypes.h:702
class FSlateDrawLayerHandle * LayerHandle
Definition DrawElementTypes.h:700
Definition DrawElementTypes.h:616
const TArray< FLinearColor > & GetPointColors() const
Definition DrawElementTypes.h:627
float DashOffset
Definition DrawElementTypes.h:621
float Thickness
Definition DrawElementTypes.h:619
TArray< FVector2f > Points
Definition DrawElementTypes.h:617
bool IsAntialiased() const
Definition DrawElementTypes.h:625
void SetThickness(float InThickness)
Definition DrawElementTypes.h:630
void SetLines(TArray< FVector2f > InPoints, bool bInAntialias)
Definition DrawElementTypes.h:655
const TArray< FVector2f > & GetPoints() const
Definition DrawElementTypes.h:626
float GetThickness() const
Definition DrawElementTypes.h:628
TArray< FLinearColor > PointColors
Definition DrawElementTypes.h:618
float DashLength
Definition DrawElementTypes.h:620
void SetLines(TArray< FVector2f > InPoints, bool bInAntialias, TArray< FLinearColor > InPointColors)
Definition DrawElementTypes.h:662
bool bAntialias
Definition DrawElementTypes.h:623
Definition DrawElementTypes.h:752
FVector4f PostProcessData
Definition DrawElementTypes.h:754
int32 DownsampleAmount
Definition DrawElementTypes.h:756
FVector4f CornerRadius
Definition DrawElementTypes.h:755
Definition DrawElementTypes.h:462
void SetRadius(FVector4f InRadius)
Definition DrawElementTypes.h:467
FVector4f Radius
Definition DrawElementTypes.h:464
FLinearColor GetOutlineColor() const
Definition DrawElementTypes.h:471
float GetOutlineWeight() const
Definition DrawElementTypes.h:472
FLinearColor OutlineColor
Definition DrawElementTypes.h:463
void SetOutline(const FLinearColor &InOutlineColor, float InOutlineWeight)
Definition DrawElementTypes.h:470
FVector4f GetRadius() const
Definition DrawElementTypes.h:468
float OutlineWeight
Definition DrawElementTypes.h:465
Definition DrawElementTypes.h:512
void SetOverflowArgs(const FTextOverflowArgs &InArgs)
Definition DrawElementTypes.h:529
FLinearColor OutlineTint
Definition DrawElementTypes.h:516
FLinearColor GetOutlineTint() const
Definition DrawElementTypes.h:521
void SetShapedText(const FShapedGlyphSequencePtr &InShapedGlyphSequence, const FLinearColor &InOutlineTint)
Definition DrawElementTypes.h:523
const FShapedGlyphSequencePtr & GetShapedGlyphSequence() const
Definition DrawElementTypes.h:520
FTextOverflowArgs OverflowArgs
Definition DrawElementTypes.h:518
void AddReferencedObjects(FReferenceCollector &Collector)
Definition DrawElementTypes.h:535
FShapedGlyphSequencePtr ShapedGlyphSequence
Definition DrawElementTypes.h:514
Definition DrawElementTypes.h:564
FVector2f P1
Definition DrawElementTypes.h:574
FVector2f P0
Definition DrawElementTypes.h:573
float GetThickness() const
Definition DrawElementTypes.h:582
FVector2f P3
Definition DrawElementTypes.h:576
float Thickness
Definition DrawElementTypes.h:578
FVector2f P2
Definition DrawElementTypes.h:575
void SetThickness(float InThickness)
Definition DrawElementTypes.h:581
void SetHermiteSpline(const UE::Slate::FDeprecateVector2DParameter InStart, const UE::Slate::FDeprecateVector2DParameter InStartDir, const UE::Slate::FDeprecateVector2DParameter InEnd, const UE::Slate::FDeprecateVector2DParameter InEndDir, float InThickness, const FLinearColor InTint)
Definition DrawElementTypes.h:594
TArray< FSlateGradientStop > GradientStops
Definition DrawElementTypes.h:565
void SetGradientHermiteSpline(const UE::Slate::FDeprecateVector2DParameter InStart, const UE::Slate::FDeprecateVector2DParameter InStartDir, const UE::Slate::FDeprecateVector2DParameter InEnd, const UE::Slate::FDeprecateVector2DParameter InEndDir, float InThickness, TArray< FSlateGradientStop > InGradientStops)
Definition DrawElementTypes.h:604
void SetCubicBezier(const UE::Slate::FDeprecateVector2DParameter InP0, const UE::Slate::FDeprecateVector2DParameter InP1, const UE::Slate::FDeprecateVector2DParameter InP2, const UE::Slate::FDeprecateVector2DParameter InP3, float InThickness, const FLinearColor InTint)
Definition DrawElementTypes.h:584
Definition DrawElementTypes.h:476
void SetText(const FString &InText, const FSlateFontInfo &InFontInfo)
Definition DrawElementTypes.h:498
FString ImmutableText
Definition DrawElementTypes.h:480
const FSlateFontInfo & GetFontInfo() const
Definition DrawElementTypes.h:482
void SetText(const FString &InText, const FSlateFontInfo &InFontInfo, int32 InStartIndex, int32 InEndIndex)
Definition DrawElementTypes.h:486
FSlateFontInfo FontInfo
Definition DrawElementTypes.h:478
int32 GetTextLength() const
Definition DrawElementTypes.h:484
const TCHAR * GetText() const
Definition DrawElementTypes.h:483
void AddReferencedObjects(FReferenceCollector &Collector)
Definition DrawElementTypes.h:505
Definition DrawElementTypes.h:415
FLinearColor Tint
Definition DrawElementTypes.h:416
FLinearColor GetTint() const
Definition DrawElementTypes.h:419
void SetTint(const FLinearColor &InTint)
Definition DrawElementTypes.h:418
Definition DrawElementTypes.h:671
uint8 bViewportTextureAlphaOnly
Definition DrawElementTypes.h:674
void SetViewport(const TSharedPtr< const ISlateViewport > &InViewport, const FLinearColor &InTint)
Definition DrawElementTypes.h:677
uint8 bRequiresVSync
Definition DrawElementTypes.h:675
FSlateShaderResource * RenderTargetResource
Definition DrawElementTypes.h:672
uint8 bAllowViewportScaling
Definition DrawElementTypes.h:673
Definition DrawElementTextOverflowArgs.h:19
FShapedGlyphSequencePtr OverflowTextPtr
Definition DrawElementTextOverflowArgs.h:44
ETextOverflowDirection OverflowDirection
Definition DrawElementTextOverflowArgs.h:45
Definition IsPODType.h:12
@ Value
Definition IsPODType.h:13
Definition Optional.h:131
Definition SlateVector2.h:485