C# Class Texter.TextExtensions

Afficher le fichier Open project: Rohansi/Texter

Méthodes publiques

Méthode Description
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.

Method Details

Clear() public static méthode

Clear this renderer to a character.
public static Clear ( this renderer, Character character, bool useBlending = false ) : void
renderer this
character Character
useBlending bool
Résultat void

DrawBox() public static méthode

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
Résultat void

DrawImage() public static méthode

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
Résultat void

DrawImagePartial() public static méthode

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
Résultat void

DrawText() public static méthode

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
Résultat void

Effect() public static méthode

Access this renderer behind an effect function.
public static Effect ( this renderer, TextEffect effect ) : TextEffect
renderer this
effect TextEffect
Résultat TextEffect

Region() public static méthode

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
Résultat TextRegion