C# Класс Texter.TextExtensions

Показать файл Открыть проект

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

Метод Описание
Clear ( this renderer, Character character, bool useBlending = false ) : void

Clear this renderer to a character.

DrawBox ( this renderer, int x, int y, uint w, uint h, string box, Character color ) : void

Draw a 9-patch box. Box indices: 012 345 678

DrawImage ( this renderer, int x, int y, ITextRenderer image ) : void

Draw a renderer to this renderer.

DrawImagePartial ( this renderer, int x, int y, ITextRenderer image, uint startX, uint startY, uint width, uint height ) : void

Draw part of a renderer to this renderer.

DrawText ( this renderer, int x, int y, string text, Character color ) : void

Draw unformatted text. Will not handle control characters.

Effect ( this renderer, TextEffect effect ) : TextEffect

Access this renderer behind an effect function.

Region ( this renderer, int x, int y, uint w, uint h ) : TextRegion

Access a subregion of this renderer.

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

Clear() публичный статический Метод

Clear this renderer to a character.
public static Clear ( this renderer, Character character, bool useBlending = false ) : void
renderer this
character Character
useBlending bool
Результат void

DrawBox() публичный статический Метод

Draw a 9-patch box. Box indices: 012 345 678
public static DrawBox ( this renderer, int x, int y, uint w, uint h, string box, Character color ) : void
renderer this
x int
y int
w uint
h uint
box string
color Character
Результат void

DrawImage() публичный статический Метод

Draw a renderer to this renderer.
public static DrawImage ( this renderer, int x, int y, ITextRenderer image ) : void
renderer this
x int
y int
image ITextRenderer
Результат void

DrawImagePartial() публичный статический Метод

Draw part of a renderer to this renderer.
public static DrawImagePartial ( this renderer, int x, int y, ITextRenderer image, uint startX, uint startY, uint width, uint height ) : void
renderer this
x int
y int
image ITextRenderer
startX uint
startY uint
width uint
height uint
Результат void

DrawText() публичный статический Метод

Draw unformatted text. Will not handle control characters.
public static DrawText ( this renderer, int x, int y, string text, Character color ) : void
renderer this
x int
y int
text string
color Character
Результат void

Effect() публичный статический Метод

Access this renderer behind an effect function.
public static Effect ( this renderer, TextEffect effect ) : TextEffect
renderer this
effect TextEffect
Результат TextEffect

Region() публичный статический Метод

Access a subregion of this renderer.
public static Region ( this renderer, int x, int y, uint w, uint h ) : TextRegion
renderer this
x int
y int
w uint
h uint
Результат TextRegion