FCanvasLineItem

Line item.

Windows
MacOS
Linux

Inheritance Hierarchy

FCanvasItem

FCanvasLineItem

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/CanvasItem.h

Include

#include "CanvasItem.h"

Syntax

class FCanvasLineItem : public FCanvasItem

Remarks

Line item.

blend mode will be disregarded for these - only SE_BLEND_Opaque is currently supported.

Variables

Name Description

Public variable

FVector

 

EndPos

The end position of the line.

Public variable

float

 

LineThickness

The thickness of the line.

Public variable

FVector

 

Origin

The origin of the line.

Constructors

Name Description

Public function

FCanvasLineItem()

Public function

FCanvasLineItem

(
    const FVector2D& InPosition,
    const FVector2D& InEndPos
)

A Line.

Public function

FCanvasLineItem

(
    const FVector& InPosition,
    const FVector& InEndPos
)

A Line.

Functions

Name Description

Public function Virtual

void

 

Draw

(
    FCanvas* InCanvas,
    const FVector& InPosition
)

Draw line at the given coordinates.

Public function Virtual

void

 

Draw

(
    FCanvas* InCanvas,
    const FVector2D& InStartPos,
    const FVector2D& InEndPos
)

Draw line using the given coordinates.

Public function Virtual

void

 

Draw

(
    FCanvas* InCanvas,
    float X,
    float Y,
    float Z
)

Draw line at the given coordinates.

Public function

void

 

SetEndPos

(
    const FVector2D& InEndPos
)

Set the line end position.

Overridden from FCanvasItem

Name Description

Public function Virtual

void

 

Draw

(
    FCanvas* InCanvas
)

Draw line at the given coordinates.

Public function Virtual

void

 

Draw

(
    FCanvas* InCanvas,
    const FVector2D& InPosition
)

Draw line at the given coordinates.

Public function Virtual

void

 

Draw

(
    FCanvas* InCanvas,
    float InX,
    float InY
)

Draw line at the given coordinates.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss