C# Class Texter.TextExtensions

ファイルを表示 Open project: Rohansi/Texter

Public Methods

Method 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 method

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

DrawBox() public static method

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
return void

DrawImage() public static method

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
return void

DrawImagePartial() public static method

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
return void

DrawText() public static method

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
return void

Effect() public static method

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

Region() public static method

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
return TextRegion