FCanvasNGonItem

Windows
MacOS
Linux

Inheritance Hierarchy

FCanvasItem

FCanvasNGonItem

References

Module

Engine

Header

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

Include

#include "CanvasItem.h"

Syntax

class FCanvasNGonItem : public FCanvasItem

Constructors

Name Description

Public function

FCanvasNGonItem

(
    const FVector2D& InPosition,
    const FVector2D& InRadius,
    int32 InNumSides,
    const FLinearColor& InColor
)

NGon item Several tris with a common central point with a fixed radius.

Public function

FCanvasNGonItem

(
    const FVector2D& InPosition,
    const FVector2D& InRadius,
    int32 InNumSides,
    const FTexture* InTexture,
    const FLinearColor& InColor
)

NGon item Several texture tris with a common central point with a fixed radius.

Destructors

Name Description

Public function Virtual

~FCanvasNGonItem()

Functions

Name Description

Public function

void

 

SetupPosition

(
    const FVector2D& InPosition,
    const FVector2D& InRadius
)

Regenerates the tri list for the object with a new central point and radius

Overridden from FCanvasItem

Name Description

Public function Virtual

void

 

Draw

(
    FCanvas* InCanvas
)

Public function Virtual

void

 

SetColor

(
    const FLinearColor& InColor
)

Set the Color of the item.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback