void FSlateDrawElement::MakeRotatedBox( FSlateWindowElementList& ElementList, uint32 InLayer, const FPaintGeometry& PaintGeometry, const FSlateBrush* InBrush, const FSlateRect& InClippingRect, ESlateDrawEffect::Type InDrawEffects, float Angle, TOptional<FVector2D> InRotationPoint, ERotationSpace RotationSpace, const FLinearColor& InTint ) { PaintGeometry.CommitTransformsIfUsingLegacyConstructor(); FSlateDrawElement& DrawElt = ElementList.AddUninitialized(); DrawElt.Init(InLayer, PaintGeometry, InClippingRect, InDrawEffects); DrawElt.ElementType = (InBrush->DrawAs == ESlateBrushDrawType::Border) ? ET_Border : ET_Box; FVector2D RotationPoint = GetRotationPoint( PaintGeometry, InRotationPoint, RotationSpace ); DrawElt.DataPayload.SetRotatedBoxPayloadProperties( InBrush, Angle, RotationPoint, InTint ); }
void FSlateDrawElement::MakeRotatedBox( FSlateWindowElementList& ElementList, uint32 InLayer, const FPaintGeometry& PaintGeometry, const FSlateBrush* InBrush, const FSlateRect& InClippingRect, ESlateDrawEffect::Type InDrawEffects, float Angle, TOptional<FVector2D> InRotationPoint, ERotationSpace RotationSpace, const FLinearColor& InTint ) { FSlateDrawElement& DrawElt = ElementList.AddUninitialized(); DrawElt.ElementType = (InBrush->DrawAs == ESlateBrushDrawType::Border) ? ET_Border : ET_Box; DrawElt.Position = PaintGeometry.DrawPosition; DrawElt.Size = PaintGeometry.DrawSize; DrawElt.ClippingRect = InClippingRect; DrawElt.Layer = InLayer; DrawElt.DrawEffects = InDrawEffects; DrawElt.Scale = PaintGeometry.DrawScale; FVector2D RotationPoint = GetRotationPoint( PaintGeometry, InRotationPoint, RotationSpace ); DrawElt.DataPayload.SetRotatedBoxPayloadProperties( InBrush, Angle, RotationPoint, InTint ); }