UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FSlateViewportElement Struct Reference

#include <DrawElementTypes.h>

+ Inheritance diagram for FSlateViewportElement:

Public Member Functions

void SetViewport (const TSharedPtr< const ISlateViewport > &InViewport, const FLinearColor &InTint)
 
- Public Member Functions inherited from FSlateDrawElement
 FSlateDrawElement ()
 
int32 GetLayer () const
 
const FSlateRenderTransformGetRenderTransform () const
 
void SetRenderTransform (const FSlateRenderTransform &InRenderTransform)
 
UE::Slate::FDeprecateVector2DResult GetPosition () const
 
void SetPosition (UE::Slate::FDeprecateVector2DParameter InPosition)
 
UE::Slate::FDeprecateVector2DResult GetLocalSize () const
 
float GetScale () const
 
ESlateDrawEffect GetDrawEffects () const
 
ESlateBatchDrawFlag GetBatchFlags () const
 
bool IsPixelSnapped () const
 
int32 GetPrecachedClippingIndex () const
 
void SetPrecachedClippingIndex (int32 InClippingIndex)
 
void SetCachedClippingState (const FSlateClippingState *CachedState)
 
const FClipStateHandleGetClippingHandle () const
 
const int8 GetSceneIndex () const
 
void SetIsCached (bool bInIsCached)
 
bool IsCached () const
 
FSlateLayoutTransform GetInverseLayoutTransform () const
 
void ApplyPositionOffset (UE::Slate::FDeprecateVector2DParameter InOffset)
 
- Public Member Functions inherited from FSlateTintableElement
void SetTint (const FLinearColor &InTint)
 
FLinearColor GetTint () const
 

Public Attributes

FSlateShaderResourceRenderTargetResource
 
uint8 bAllowViewportScaling: 1
 
uint8 bViewportTextureAlphaOnly: 1
 
uint8 bRequiresVSync: 1
 
- Public Attributes inherited from FSlateTintableElement
FLinearColor Tint
 

Additional Inherited Members

- Public Types inherited from FSlateDrawElement
enum  ERotationSpace { RelativeToElement , RelativeToWorld }
 
- Static Public Member Functions inherited from FSlateDrawElement
static SLATECORE_API void MakeDebugQuad (FSlateWindowElementList &ElementList, uint32 InLayer, const FPaintGeometry &PaintGeometry, FLinearColor Tint=FLinearColor::White)
 
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)
 
static SLATECORE_API void MakeBox (FSlateWindowElementList &ElementList, uint32 InLayer, const FPaintGeometry &PaintGeometry, const FSlateBrush *InBrush, ESlateDrawEffect InDrawEffects=ESlateDrawEffect::None, const FLinearColor &InTint=FLinearColor::White)
 
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)
 
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)
 
static SLATECORE_API void MakeText (FSlateWindowElementList &ElementList, uint32 InLayer, const FPaintGeometry &PaintGeometry, const FString &InText, const FSlateFontInfo &InFontInfo, ESlateDrawEffect InDrawEffects=ESlateDrawEffect::None, const FLinearColor &InTint=FLinearColor::White)
 
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)
 
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())
 
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())
 
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))
 
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)
 
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)
 
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)
 
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)
 
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)
 
static SLATECORE_API void MakeLines (FSlateWindowElementList &ElementList, uint32 InLayer, const FPaintGeometry &PaintGeometry, TArray< FVector2f > Points, TArray< FLinearColor > PointColors, ESlateDrawEffect InDrawEffects=ESlateDrawEffect::None, const FLinearColor &InTint=FLinearColor::White, bool bAntialias=true, float Thickness=1.0f)
 
static SLATECORE_API void MakeDashedLines (FSlateWindowElementList &ElementList, uint32 InLayer, const FPaintGeometry &PaintGeometry, TArray< FVector2f > &&Points, TArray< FLinearColor > &&PointColors, ESlateDrawEffect InDrawEffects=ESlateDrawEffect::None, const FLinearColor &InTint=FLinearColor::White, float Thickness=1.0f, float DashLengthPx=10.0f, float DashScreenOffset=0.f)
 
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)
 
static SLATECORE_API void MakeCustom (FSlateWindowElementList &ElementList, uint32 InLayer, TSharedPtr< ICustomSlateElement, ESPMode::ThreadSafe > CustomDrawer)
 
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)
 
static SLATECORE_API void MakePostProcessPass (FSlateWindowElementList &ElementList, uint32 InLayer, const FPaintGeometry &PaintGeometry, const FVector4f &Params, int32 DownsampleAmount, const FVector4f CornerRadius=FVector4f(0.0f))
 
static SLATECORE_API void MakePostProcessBlur (FSlateWindowElementList &ElementList, uint32 InLayer, const FPaintGeometry &PaintGeometry, const FVector4f &Params, int32 DownsampleAmount, const FVector4f CornerRadius=FVector4f(0.0f))
 

Member Function Documentation

◆ SetViewport()

void FSlateViewportElement::SetViewport ( const TSharedPtr< const ISlateViewport > &  InViewport,
const FLinearColor InTint 
)
inline

Member Data Documentation

◆ bAllowViewportScaling

uint8 FSlateViewportElement::bAllowViewportScaling

◆ bRequiresVSync

uint8 FSlateViewportElement::bRequiresVSync

◆ bViewportTextureAlphaOnly

uint8 FSlateViewportElement::bViewportTextureAlphaOnly

◆ RenderTargetResource

FSlateShaderResource* FSlateViewportElement::RenderTargetResource

The documentation for this struct was generated from the following file: