Header menu logo Mibo

TextState Type

State required to render 2D text via SpriteBatch.DrawString.

Record fields

Record Field Description

Color

Full Usage: Color

Field type: Color

Tint color.

Field type: Color

Font

Full Usage: Font

Field type: SpriteFont

The sprite font to use.

Field type: SpriteFont

Layer

Full Usage: Layer

Field type: int<MeasureProduct<RenderLayer, MeasureOne>>

Render layer for ordering.

Field type: int<MeasureProduct<RenderLayer, MeasureOne>>

Position

Full Usage: Position

Field type: Vector2

Top-left position on screen (in pixels).

Field type: Vector2

Scale

Full Usage: Scale

Field type: float32

Uniform scale factor applied to the font (1.0 = default size).

Field type: float32

Text

Full Usage: Text

Field type: string

The text string to draw.

Field type: string

Type something to start searching.