C# Class Fuji.Font

Afficher le fichier Open project: TurkeyMan/fuji

Méthodes publiques

Méthode Description
BlitText ( string text, int x, int y, MFVector colour, int maxChars = -1 ) : int
CharacterPos ( string text, int charIndex, float height ) : MFVector
CharacterWidth ( char character ) : float
Create ( string name ) : Font
DrawText ( string text, MFVector &pos, float height, MFVector &colour, int maxChars, MFMatrix ltw ) : float
DrawText2 ( string text, float x, float y, float height, MFVector &colour, int maxChars, MFMatrix ltw ) : float
DrawTextAnchored ( string text, MFVector pos, MFFontJustify justification, float lineWidth, float textHeight, MFVector colour, int numChars, MFMatrix ltw ) : float
DrawTextJustified ( string text, MFVector pos, float boxWidth, float boxHeight, MFFontJustify justification, float textHeight, MFVector colour, int numChars, MFMatrix ltw ) : float
Release ( ) : int
StringWidth ( string text, float height, float lineWidth, float &totalHeight, int maxLen = -1 ) : float

Private Methods

Méthode Description
Font ( UIntPtr handle ) : System
MFFont_BlitText ( UIntPtr font, int x, int y, MFVector &colour, [ text, int maxChars ) : int
MFFont_Create ( [ name ) : UIntPtr
MFFont_DrawText ( UIntPtr font, MFVector &pos, float height, MFVector &colour, [ text, int maxChars, MFMatrix &ltw ) : float
MFFont_DrawText2 ( UIntPtr font, float x, float y, float height, MFVector &colour, [ text, int maxChars, MFMatrix &ltw ) : float
MFFont_DrawTextAnchored ( UIntPtr font, [ text, MFVector &pos, MFFontJustify justification, float lineWidth, float textHeight, MFVector &colour, int numChars, MFMatrix &ltw ) : float
MFFont_DrawTextJustified ( UIntPtr font, [ text, MFVector &pos, float boxWidth, float boxHeight, MFFontJustify justification, float textHeight, MFVector &colour, int numChars, MFMatrix &ltw ) : float
MFFont_GetCharPos ( UIntPtr font, [ text, int charIndex, float height ) : MFVector
MFFont_GetCharacterWidth ( UIntPtr font, int character ) : float
MFFont_GetDebugFont ( ) : UIntPtr
MFFont_GetFontHeight ( UIntPtr font ) : float
MFFont_GetStringWidth ( UIntPtr font, [ text, float height, float lineWidth, int maxLen, float &totalHeight ) : float
MFFont_Release ( UIntPtr font ) : int

Method Details

BlitText() public méthode

public BlitText ( string text, int x, int y, MFVector colour, int maxChars = -1 ) : int
text string
x int
y int
colour MFVector
maxChars int
Résultat int

CharacterPos() public méthode

public CharacterPos ( string text, int charIndex, float height ) : MFVector
text string
charIndex int
height float
Résultat MFVector

CharacterWidth() public méthode

public CharacterWidth ( char character ) : float
character char
Résultat float

Create() public static méthode

public static Create ( string name ) : Font
name string
Résultat Font

DrawText() public méthode

public DrawText ( string text, MFVector &pos, float height, MFVector &colour, int maxChars, MFMatrix ltw ) : float
text string
pos MFVector
height float
colour MFVector
maxChars int
ltw MFMatrix
Résultat float

DrawText2() public méthode

public DrawText2 ( string text, float x, float y, float height, MFVector &colour, int maxChars, MFMatrix ltw ) : float
text string
x float
y float
height float
colour MFVector
maxChars int
ltw MFMatrix
Résultat float

DrawTextAnchored() public méthode

public DrawTextAnchored ( string text, MFVector pos, MFFontJustify justification, float lineWidth, float textHeight, MFVector colour, int numChars, MFMatrix ltw ) : float
text string
pos MFVector
justification MFFontJustify
lineWidth float
textHeight float
colour MFVector
numChars int
ltw MFMatrix
Résultat float

DrawTextJustified() public méthode

public DrawTextJustified ( string text, MFVector pos, float boxWidth, float boxHeight, MFFontJustify justification, float textHeight, MFVector colour, int numChars, MFMatrix ltw ) : float
text string
pos MFVector
boxWidth float
boxHeight float
justification MFFontJustify
textHeight float
colour MFVector
numChars int
ltw MFMatrix
Résultat float

Release() public méthode

public Release ( ) : int
Résultat int

StringWidth() public méthode

public StringWidth ( string text, float height, float lineWidth, float &totalHeight, int maxLen = -1 ) : float
text string
height float
lineWidth float
totalHeight float
maxLen int
Résultat float