PSPFFont Class Reference

#include <PSPFFont.h>

Inherits PSPFObject.

List of all members.

Public Member Functions

 PSPFFont (char *filename)
 PSPFFont.
 ~PSPFFont ()
 ~ PSPFFont
void DrawString (int x, int y, int num)
 DrawString.
void DrawString (int x, int y, char *text)
 DrawString.
void DrawInBox (int x0, int y0, int x1, int y1, char *text)
 DrawInBox.
void SetColor (int R, int G, int B)
 SetColor.
void SetBackColor (int R, int G, int B)
 SetBackColor.
void SetBackColor (int R, int G, int B, int A)
 SetBackColor.


Constructor & Destructor Documentation

PSPFFont::PSPFFont ( char *  filename  ) 

PSPFFont.

carry the source in memory for use, the pattern is .oft that should be generate using the software osl2font.

Parameters:
filename road and name file .oft

PSPFFont::~PSPFFont (  ) 

~ PSPFFont

Destroy the loaded source in memory


Member Function Documentation

void PSPFFont::DrawString ( int  x,
int  y,
int  num 
)

DrawString.

Draw an integer in the screen in the position X, Y

Parameters:
x position X of the screen
y position Y of the screen
num whole value to be drawn

void PSPFFont::DrawString ( int  x,
int  y,
char *  text 
)

DrawString.

Desenha um texto na tela na posição X, Y

Parameters:
x posição X da tela
y posicao Y da tela
text string a ser desenhada

void PSPFFont::DrawInBox ( int  x0,
int  y0,
int  x1,
int  y1,
char *  text 
)

DrawInBox.

Draw a rectangle without completion and draw the text inside of the same with line break

Parameters:
x0 position x0 of the screen (initial X)
y0 position y0 of the screen (initial Y)
x1 position x1 of the screen (final X)
y1 position y1 of the screen (final Y)
text string to be drawn inside of the rectangle

void PSPFFont::SetColor ( int  R,
int  G,
int  B 
)

SetColor.

Set the color of the text

Parameters:
R value for red color from 0 to 255
G value for green color from 0 to 255
B value for Blue color from 0 to 255

void PSPFFont::SetBackColor ( int  R,
int  G,
int  B 
)

SetBackColor.

Set the color of bottom of the text, for that bottom be transparent it is enough to inform the parameter TRANSPARENT

Parameters:
R value for red color from 0 to 255
G value for green color from 0 to 255
B value for Blue color from 0 to 255

void PSPFFont::SetBackColor ( int  R,
int  G,
int  B,
int  A 
)

SetBackColor.

Set the color of bottom of the text with transparency, for the bottom to be totally transparent it is enough to inform the parameter TRANSPARENT

Parameters:
R value for red color from 0 to 255
G value for green color from 0 to 255
B value for Blue color from 0 to 255
A value for the transparency from 0 to 255


The documentation for this class was generated from the following file:
Generated on Sat Oct 27 20:25:29 2007 for PSPFramework by  doxygen 1.5.3