C# Class BomberEngine.Core.Assets.Types.Font

Inheritance: Asset
Datei anzeigen Open project: weeeBox/atomic-bomberman-xna Class Usage Examples

Public Methods

Method Description
CharWidth ( char chr ) : int
DrawString ( Context context, String text, float x, float y ) : void
DrawString ( Context context, String text, float x, float y, TextAlign textAlign ) : void
FontHeight ( ) : int
LineOffset ( ) : int
StringWidth ( String str ) : int
WrapString ( String text, int wrapWidth ) : string[]

Method Details

CharWidth() public abstract method

public abstract CharWidth ( char chr ) : int
chr char
return int

DrawString() public abstract method

public abstract DrawString ( Context context, String text, float x, float y ) : void
context Context
text String
x float
y float
return void

DrawString() public abstract method

public abstract DrawString ( Context context, String text, float x, float y, TextAlign textAlign ) : void
context Context
text String
x float
y float
textAlign TextAlign
return void

FontHeight() public abstract method

public abstract FontHeight ( ) : int
return int

LineOffset() public abstract method

public abstract LineOffset ( ) : int
return int

StringWidth() public abstract method

public abstract StringWidth ( String str ) : int
str String
return int

WrapString() public abstract method

public abstract WrapString ( String text, int wrapWidth ) : string[]
text String
wrapWidth int
return string[]