UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FCanvasDashedBoxItem Class Reference

#include <CanvasItem.h>

+ Inheritance diagram for FCanvasDashedBoxItem:

Public Member Functions

 FCanvasDashedBoxItem (const FVector2D &InPosition, const FVector2D &InSize)
 
virtual ENGINE_API void Draw (FCanvas *InCanvas) override
 
virtual void Draw (FCanvas *InCanvas)=0
 
virtual void Draw (FCanvas *InCanvas, const FVector2D &InPosition)
 
virtual void Draw (FCanvas *InCanvas, float X, float Y)
 
- Public Member Functions inherited from FCanvasItem
 FCanvasItem (const FVector2D &InPosition)
 
virtual ~FCanvasItem ()
 
virtual void SetColor (const FLinearColor &InColor)
 

Public Attributes

FVector2d Size
 
float DashThickness
 
float DashLength
 
float DashGap
 
- Public Attributes inherited from FCanvasItem
FVector2D Position
 
uint32 StereoDepth
 
ESimpleElementBlendMode BlendMode
 
bool bFreezeTime
 
FBatchedElementParametersBatchedElementParameters
 

Additional Inherited Members

- Protected Attributes inherited from FCanvasItem
FLinearColor Color
 

Detailed Description

A box drawn with dashed lines that wrap at the corners.

Constructor & Destructor Documentation

◆ FCanvasDashedBoxItem()

FCanvasDashedBoxItem::FCanvasDashedBoxItem ( const FVector2D InPosition,
const FVector2D InSize 
)
inline

Member Function Documentation

◆ Draw() [1/4]

void FCanvasDashedBoxItem::Draw ( FCanvas InCanvas)
overridevirtual

Implements FCanvasItem.

◆ Draw() [2/4]

virtual void FCanvasItem::Draw ( FCanvas InCanvas)
virtual

Implements FCanvasItem.

◆ Draw() [3/4]

virtual void FCanvasItem::Draw ( FCanvas InCanvas,
const FVector2D InPosition 
)
inlinevirtual

Draw this item (this will affect the items position for future draw calls that do no specify a position)

Parameters
InCanvasCanvas on which to draw
InPositionDraw position - this will not preserve the items position

Reimplemented from FCanvasItem.

◆ Draw() [4/4]

virtual void FCanvasItem::Draw ( FCanvas InCanvas,
float  X,
float  Y 
)
inlinevirtual

Draw this item (this will affect the items position for future draw calls that do no specify a position)

Parameters
InCanvasCanvas on which to draw
XX Draw position
YY Draw position

Reimplemented from FCanvasItem.

Member Data Documentation

◆ DashGap

float FCanvasDashedBoxItem::DashGap

◆ DashLength

float FCanvasDashedBoxItem::DashLength

◆ DashThickness

float FCanvasDashedBoxItem::DashThickness

◆ Size

FVector2d FCanvasDashedBoxItem::Size

The documentation for this class was generated from the following files: