167 SLATECORE_API static 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());
227#if UE_ENABLE_SLATE_VECTOR_DEPRECATION_MECHANISMS
261#if UE_ENABLE_SLATE_VECTOR_DEPRECATION_MECHANISMS
307 UE_DEPRECATED(5.4,
"MakePostProcessPass has been deprecated. If you need to make a blur please call MakePostProcessBlur.")
405 template<
typename VectorType>
441 ensureMsgf(
InBrush->GetDrawType() != ESlateBrushDrawType::NoDrawType,
TEXT(
"This should have been filtered out earlier in the Make... call."));
491 const int32 TextLength = (EndIndex > StartIndex) ? EndIndex - StartIndex : 0;
635#if UE_ENABLE_SLATE_VECTOR_DEPRECATION_MECHANISMS
#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
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
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 SlateRenderBatch.h:45
Definition SlateResourceHandle.h:16
Definition SlateShaderResource.h:129
Definition SlateShaderResource.h:44
Definition DrawElements.h:220
Definition RenderingCommon.h:957
Definition RenderingCommon.h:974
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 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
static CORE_API const FLinearColor White
Definition Color.h:456
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:519
Definition SlateVector2.h:485