C# 클래스 Texter.TextExtensions

파일 보기 프로젝트 열기: Rohansi/Texter

공개 메소드들

메소드 설명
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