本文整理汇总了C++中FSlateWindowElementList::AddUninitialized方法的典型用法代码示例。如果您正苦于以下问题:C++ FSlateWindowElementList::AddUninitialized方法的具体用法?C++ FSlateWindowElementList::AddUninitialized怎么用?C++ FSlateWindowElementList::AddUninitialized使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FSlateWindowElementList
的用法示例。
在下文中一共展示了FSlateWindowElementList::AddUninitialized方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: MakeDebugQuad
void FSlateDrawElement::MakeDebugQuad( FSlateWindowElementList& ElementList, uint32 InLayer, const FPaintGeometry& PaintGeometry, const FSlateRect& InClippingRect)
{
PaintGeometry.CommitTransformsIfUsingLegacyConstructor();
FSlateDrawElement& DrawElt = ElementList.AddUninitialized();
DrawElt.Init(InLayer, PaintGeometry, InClippingRect, ESlateDrawEffect::None);
DrawElt.ElementType = ET_DebugQuad;
}
示例2: MakeSpline
void FSlateDrawElement::MakeSpline( FSlateWindowElementList& ElementList, uint32 InLayer, const FPaintGeometry& PaintGeometry, const FVector2D& InStart, const FVector2D& InStartDir, const FVector2D& InEnd, const FVector2D& InEndDir, const FSlateRect InClippingRect, float InThickness, ESlateDrawEffect::Type InDrawEffects, const FLinearColor& InTint )
{
PaintGeometry.CommitTransformsIfUsingLegacyConstructor();
FSlateDrawElement& DrawElt = ElementList.AddUninitialized();
DrawElt.Init(InLayer, PaintGeometry, InClippingRect, InDrawEffects);
DrawElt.ElementType = ET_Spline;
DrawElt.DataPayload.SetSplinePayloadProperties( InStart, InStartDir, InEnd, InEndDir, InThickness, InTint );
}
示例3: MakeGradient
void FSlateDrawElement::MakeGradient( FSlateWindowElementList& ElementList, uint32 InLayer, const FPaintGeometry& PaintGeometry, TArray<FSlateGradientStop> InGradientStops, EOrientation InGradientType, const FSlateRect& InClippingRect, ESlateDrawEffect::Type InDrawEffects, bool bGammaCorrect )
{
PaintGeometry.CommitTransformsIfUsingLegacyConstructor();
FSlateDrawElement& DrawElt = ElementList.AddUninitialized();
DrawElt.Init(InLayer, PaintGeometry, InClippingRect, InDrawEffects);
DrawElt.ElementType = ET_Gradient;
DrawElt.DataPayload.SetGradientPayloadProperties( InGradientStops, InGradientType, bGammaCorrect );
}
示例4: MakeText
void FSlateDrawElement::MakeText( FSlateWindowElementList& ElementList, uint32 InLayer, const FPaintGeometry& PaintGeometry, const FText& InText, const FSlateFontInfo& InFontInfo, const FSlateRect& InClippingRect,ESlateDrawEffect::Type InDrawEffects, const FLinearColor& InTint )
{
PaintGeometry.CommitTransformsIfUsingLegacyConstructor();
FSlateDrawElement& DrawElt = ElementList.AddUninitialized();
DrawElt.Init(InLayer, PaintGeometry, InClippingRect, InDrawEffects);
DrawElt.ElementType = ET_Text;
DrawElt.DataPayload.SetTextPayloadProperties( InText.ToString(), InFontInfo, InTint );
}
示例5: MakeCustom
void FSlateDrawElement::MakeCustom( FSlateWindowElementList& ElementList, uint32 InLayer, TSharedPtr<ICustomSlateElement, ESPMode::ThreadSafe> CustomDrawer )
{
FSlateDrawElement& DrawElt = ElementList.AddUninitialized();
DrawElt.Init(InLayer, FPaintGeometry(), FSlateRect(1,1,1,1), ESlateDrawEffect::None);
DrawElt.RenderTransform = FSlateRenderTransform();
DrawElt.ElementType = ET_Custom;
DrawElt.DataPayload.SetCustomDrawerPayloadProperties( CustomDrawer );
}
示例6: MakeLines
void FSlateDrawElement::MakeLines( FSlateWindowElementList& ElementList, uint32 InLayer, const FPaintGeometry& PaintGeometry, const TArray<FVector2D>& Points, const FSlateRect InClippingRect, ESlateDrawEffect::Type InDrawEffects, const FLinearColor& InTint, bool bAntialias )
{
PaintGeometry.CommitTransformsIfUsingLegacyConstructor();
FSlateDrawElement& DrawElt = ElementList.AddUninitialized();
DrawElt.Init(InLayer, PaintGeometry, InClippingRect, InDrawEffects);
DrawElt.ElementType = ET_Line;
DrawElt.DataPayload.SetLinesPayloadProperties( Points, InTint, bAntialias, ESlateLineJoinType::Sharp );
}
示例7: MakeViewport
void FSlateDrawElement::MakeViewport( FSlateWindowElementList& ElementList, uint32 InLayer, const FPaintGeometry& PaintGeometry, TSharedPtr<const ISlateViewport> Viewport, const FSlateRect& InClippingRect, bool bGammaCorrect, bool bAllowBlending, ESlateDrawEffect::Type InDrawEffects, const FLinearColor& InTint )
{
PaintGeometry.CommitTransformsIfUsingLegacyConstructor();
FSlateDrawElement& DrawElt = ElementList.AddUninitialized();
DrawElt.Init(InLayer, PaintGeometry, InClippingRect, InDrawEffects);
DrawElt.ElementType = ET_Viewport;
DrawElt.DataPayload.SetViewportPayloadProperties( Viewport, InTint, bGammaCorrect, bAllowBlending );
}
示例8: MakeCustom
void FSlateDrawElement::MakeCustom( FSlateWindowElementList& ElementList, uint32 InLayer, TSharedPtr<ICustomSlateElement, ESPMode::ThreadSafe> CustomDrawer )
{
FSlateDrawElement& DrawElt = ElementList.AddUninitialized();
DrawElt.ElementType = ET_Custom;
DrawElt.Layer = InLayer;
DrawElt.DataPayload.SetCustomDrawerPayloadProperties( CustomDrawer );
DrawElt.ClippingRect = FSlateRect(1,1,1,1);
}
示例9: MakeLines
void FSlateDrawElement::MakeLines( FSlateWindowElementList& ElementList, uint32 InLayer, const FPaintGeometry& PaintGeometry, const TArray<FVector2D>& Points, const FSlateRect InClippingRect, ESlateDrawEffect::Type InDrawEffects, const FLinearColor& InTint, bool bAntialias )
{
FSlateDrawElement& DrawElt = ElementList.AddUninitialized();
DrawElt.ElementType = ET_Line;
DrawElt.Position = PaintGeometry.DrawPosition;
DrawElt.ClippingRect = InClippingRect;
DrawElt.DataPayload.SetLinesPayloadProperties( Points, InTint, bAntialias, ESlateLineJoinType::Sharp );
DrawElt.Layer = InLayer;
DrawElt.DrawEffects = InDrawEffects;
DrawElt.Scale = PaintGeometry.DrawScale;
}
示例10: MakeSpline
void FSlateDrawElement::MakeSpline( FSlateWindowElementList& ElementList, uint32 InLayer, const FPaintGeometry& PaintGeometry, const FVector2D& InStart, const FVector2D& InStartDir, const FVector2D& InEnd, const FVector2D& InEndDir, const FSlateRect InClippingRect, float InThickness, ESlateDrawEffect::Type InDrawEffects, const FLinearColor& InTint )
{
FSlateDrawElement& DrawElt = ElementList.AddUninitialized();
DrawElt.ElementType = ET_Spline;
DrawElt.Position = PaintGeometry.DrawPosition;
DrawElt.ClippingRect = InClippingRect;
DrawElt.DataPayload.SetSplinePayloadProperties( InStart, InStartDir, InEnd, InEndDir, InThickness, InTint );
DrawElt.Layer = InLayer;
DrawElt.DrawEffects = InDrawEffects;
DrawElt.Scale = PaintGeometry.DrawScale;
}
示例11: MakeDebugQuad
void FSlateDrawElement::MakeDebugQuad( FSlateWindowElementList& ElementList, uint32 InLayer, const FPaintGeometry& PaintGeometry, const FSlateRect& InClippingRect)
{
FSlateDrawElement& DrawElt = ElementList.AddUninitialized();
DrawElt.ElementType = ET_DebugQuad;
DrawElt.Position = PaintGeometry.DrawPosition;
DrawElt.Size = PaintGeometry.DrawSize;
DrawElt.ClippingRect = InClippingRect;
DrawElt.Layer = InLayer;
DrawElt.DrawEffects = ESlateDrawEffect::None;
DrawElt.Scale = PaintGeometry.DrawScale;
}
示例12: MakeGradient
void FSlateDrawElement::MakeGradient( FSlateWindowElementList& ElementList, uint32 InLayer, const FPaintGeometry& InPaintGeometry, TArray<FSlateGradientStop> InGradientStops, EOrientation InGradientType, const FSlateRect& InClippingRect, ESlateDrawEffect::Type InDrawEffects, bool bGammaCorrect )
{
FSlateDrawElement& DrawElt = ElementList.AddUninitialized();
DrawElt.ElementType = ET_Gradient;
DrawElt.Position = InPaintGeometry.DrawPosition;
DrawElt.Size = InPaintGeometry.DrawSize;
DrawElt.ClippingRect = InClippingRect;
DrawElt.DataPayload.SetGradientPayloadProperties( InGradientStops, InGradientType, bGammaCorrect );
DrawElt.Layer = InLayer;
DrawElt.DrawEffects = InDrawEffects;
DrawElt.Scale = InPaintGeometry.DrawScale;
}
示例13: MakeText
void FSlateDrawElement::MakeText( FSlateWindowElementList& ElementList, uint32 InLayer, const FPaintGeometry& PaintGeometry, const FText& InText, const FSlateFontInfo& InFontInfo, const FSlateRect& InClippingRect,ESlateDrawEffect::Type InDrawEffects, const FLinearColor& InTint )
{
FSlateDrawElement& DrawElt = ElementList.AddUninitialized();
DrawElt.ElementType = ET_Text;
DrawElt.Position = PaintGeometry.DrawPosition;
DrawElt.Size = PaintGeometry.DrawSize;
DrawElt.ClippingRect = InClippingRect;
DrawElt.DataPayload.SetTextPayloadProperties( InText.ToString(), InFontInfo, InTint );
DrawElt.Layer = InLayer;
DrawElt.DrawEffects = InDrawEffects;
DrawElt.Scale = PaintGeometry.DrawScale;
}
示例14: MakeViewport
void FSlateDrawElement::MakeViewport( FSlateWindowElementList& ElementList, uint32 InLayer, const FPaintGeometry& PaintGeometry, TSharedPtr<const ISlateViewport> Viewport, const FSlateRect& InClippingRect, bool bGammaCorrect, bool bAllowBlending, ESlateDrawEffect::Type InDrawEffects, const FLinearColor& InTint )
{
FSlateDrawElement& DrawElt = ElementList.AddUninitialized();
DrawElt.ElementType = ET_Viewport;
DrawElt.Position = PaintGeometry.DrawPosition;
DrawElt.Size = PaintGeometry.DrawSize;
DrawElt.ClippingRect = InClippingRect;
DrawElt.DataPayload.SetViewportPayloadProperties( Viewport, InTint, bGammaCorrect, bAllowBlending );
DrawElt.Layer = InLayer;
DrawElt.DrawEffects = InDrawEffects;
DrawElt.Scale = PaintGeometry.DrawScale;
}
示例15: MakeBox
void FSlateDrawElement::MakeBox(
FSlateWindowElementList& ElementList,
uint32 InLayer,
const FPaintGeometry& PaintGeometry,
const FSlateBrush* InBrush,
const FSlateRect& InClippingRect,
ESlateDrawEffect::Type InDrawEffects,
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;
DrawElt.DataPayload.SetBoxPayloadProperties( InBrush, InTint );
}