#include <PSPFFont.h>
Inherits PSPFObject.
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. |
PSPFFont::PSPFFont | ( | char * | filename | ) |
carry the source in memory for use, the pattern is .oft that should be generate using the software osl2font.
filename | road and name file .oft |
PSPFFont::~PSPFFont | ( | ) |
~ PSPFFont
Destroy the loaded source in memory
void PSPFFont::DrawString | ( | int | x, | |
int | y, | |||
int | num | |||
) |
DrawString.
Draw an integer in the screen in the position X, Y
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
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
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
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
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
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 |