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
Fsize
The font size of the texrt
public double Fsize { get; set; }
Property Value
PosX
The left and right position of the text
public int PosX { get; set; }
Property Value
PosY
The up and down position of the text
public int PosY { get; set; }
Property Value
Todraw
This string is what the text is
public string? Todraw { get; set; }
Property Value
Methods
Draw(ICanvas2D)
Draws this rectangle using the specified renderer
public override void Draw(ICanvas2D renderer)
Parameters
rendererICanvas2D