Table of Contents

Class DrawText2d

Namespace
AstraEngine.Canvas2D
Assembly
AstraEngine.Canvas2D.dll

Represents a Rectangle that can be drawn in 2D space

public class DrawText2d : Drawable
Inheritance
DrawText2d
Inherited Members

Properties

Color

The color of this rectangle

public Color Color { get; set; }

Property Value

Color

Fsize

The font size of the texrt

public double Fsize { get; set; }

Property Value

double

PosX

The left and right position of the text

public int PosX { get; set; }

Property Value

int

PosY

The up and down position of the text

public int PosY { get; set; }

Property Value

int

Todraw

This string is what the text is

public string? Todraw { get; set; }

Property Value

string

Methods

Draw(ICanvas2D)

Draws this rectangle using the specified renderer

public override void Draw(ICanvas2D renderer)

Parameters

renderer ICanvas2D