C# Класс Nez.TextRun

provides a cached run of text for super fast text drawing. Note that this is only appropriate for text that doesnt change often and doesnt move.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
position Vector2
rotation float

Открытые методы

Метод Описание
TextRun ( BitmapFont font ) : System
compile ( ) : void

compiles the text into raw verts/texture coordinates. This method must be called anytime text or any other properties are changed.

render ( Graphics graphics ) : void
setFont ( BitmapFont font ) : TextRun
setHorizontalAlign ( HorizontalAlign hAlign ) : TextRun
setText ( string text ) : TextRun
setVerticalAlign ( VerticalAlign vAlign ) : TextRun

Приватные методы

Метод Описание
updateCentering ( ) : void
updateSize ( ) : void

Описание методов

TextRun() публичный Метод

public TextRun ( BitmapFont font ) : System
font BitmapFont
Результат System

compile() публичный Метод

compiles the text into raw verts/texture coordinates. This method must be called anytime text or any other properties are changed.
public compile ( ) : void
Результат void

render() публичный Метод

public render ( Graphics graphics ) : void
graphics Graphics
Результат void

setFont() публичный Метод

public setFont ( BitmapFont font ) : TextRun
font BitmapFont
Результат TextRun

setHorizontalAlign() публичный Метод

public setHorizontalAlign ( HorizontalAlign hAlign ) : TextRun
hAlign HorizontalAlign
Результат TextRun

setText() публичный Метод

public setText ( string text ) : TextRun
text string
Результат TextRun

setVerticalAlign() публичный Метод

public setVerticalAlign ( VerticalAlign vAlign ) : TextRun
vAlign VerticalAlign
Результат TextRun

Описание свойств

position публичное свойство

public Vector2 position
Результат Vector2

rotation публичное свойство

public float rotation
Результат float