#include </home/clem/local/src/opie/noncore/games/sfcave-sdl/bfont.h>
Public Member Functions | |
| BFont (const char *__filename) | |
| ~BFont () | |
| int | FontHeight () |
| void | SetFontHeight (int height) |
| int | CharWidth (char c) |
| void | LoadFont (const char *filename) |
| int | PutChar (SDL_Surface *screen, int x, int y, char c) |
| int | TextWidth (const char *text) |
| BFont * | SetFontColor (Uint8 r, Uint8 g, Uint8 b) |
| void | PutString (SDL_Surface *screen, int x, int y, const char *text) |
| void | LeftPutString (SDL_Surface *screen, int y, const char *text) |
| void | CenteredPutString (SDL_Surface *screen, int y, const char *text) |
| void | RightPutString (SDL_Surface *screen, int y, const char *text) |
| void | JustifiedPutString (SDL_Surface *screen, int y, const char *text) |
| void | PrintString (SDL_Surface *screen, int x, int y, char *fmt,...) |
| void | CenteredPrintString (SDL_Surface *screen, int y, char *fmt,...) |
| void | RightPrintString (SDL_Surface *screen, int y, char *fmt,...) |
| void | LeftPrintString (SDL_Surface *screen, int y, char *fmt,...) |
| void | JustifiedPrintString (SDL_Surface *screen, int y, char *fmt,...) |
Private Member Functions | |
| BFont (const BFont &) | |
| void | InitFont () |
| int | count (const char *text) |
| Uint32 | GetPixel (Sint32 X, Sint32 Y) |
| Uint32 | xGetPixel (SDL_Surface *surface, int x, int y) |
| void | PutPixel (SDL_Surface *, int x, int y, Uint32 pixel) |
Private Attributes | |
| int | h |
| SDL_Surface * | Surface |
| SDL_Rect | Chars [256] |
| const char * | name |
|
|
Referenced by SetFontColor(). |
|
|
Definition at line 27 of file bfont.h. References LoadFont(). |
|
|
Definition at line 31 of file bfont.h. References Surface. |
|
||||||||||||||||||||
|
Definition at line 288 of file bfont.cpp. References CenteredPutString(), and NULL. |
|
||||||||||||||||
|
Definition at line 255 of file bfont.cpp. References printf, PutString(), and TextWidth(). Referenced by CenteredPrintString(). |
|
|
Definition at line 40 of file bfont.h. References Chars. Referenced by JustifiedPutString(), PutChar(), and TextWidth(). |
|
|
Definition at line 185 of file bfont.cpp. References i, NULL, p, and pos. Referenced by JustifiedPutString(). |
|
|
Definition at line 34 of file bfont.h. References h. Referenced by PutChar(). |
|
||||||||||||
|
Definition at line 405 of file bfont.cpp. References bits, g, and Surface. Referenced by InitFont(). |
|
|
Definition at line 15 of file bfont.cpp. References Chars, GetPixel(), h, i, Surface, and Opie::MM::x. Referenced by LoadFont(). |
|
||||||||||||||||||||
|
Definition at line 330 of file bfont.cpp. References JustifiedPutString(), and NULL. |
|
||||||||||||||||
|
Definition at line 200 of file bfont.cpp. References CharWidth(), count(), NULL, p, pos, PutString(), and TextWidth(). Referenced by JustifiedPrintString(). |
|
||||||||||||||||||||
|
Definition at line 316 of file bfont.cpp. References LeftPutString(), and NULL. |
|
||||||||||||||||
|
Definition at line 267 of file bfont.cpp. References PutString(). Referenced by LeftPrintString(). |
|
|
Definition at line 51 of file bfont.cpp. References Chars, InitFont(), NULL, Surface, and Opie::MM::x. Referenced by BFont(). |
|
||||||||||||||||||||||||
|
Definition at line 274 of file bfont.cpp. References NULL, and PutString(). |
|
||||||||||||||||||||
|
Definition at line 143 of file bfont.cpp. References Chars, CharWidth(), Opie::MM::dest, FontHeight(), and Surface. Referenced by PutString(). |
|
||||||||||||||||||||
|
Definition at line 345 of file bfont.cpp. References p. Referenced by SetFontColor(). |
|
||||||||||||||||||||
|
Definition at line 161 of file bfont.cpp. Referenced by CenteredPutString(), JustifiedPutString(), LeftPutString(), PrintString(), and RightPutString(). |
|
||||||||||||||||||||
|
Definition at line 302 of file bfont.cpp. References NULL, and RightPutString(). |
|
||||||||||||||||
|
Definition at line 262 of file bfont.cpp. References PutString(), and TextWidth(). Referenced by RightPrintString(). |
|
||||||||||||||||
|
Definition at line 78 of file bfont.cpp. References BFont(), Chars, h, NULL, PutPixel(), Surface, Opie::MM::x, xGetPixel(), and Opie::MM::y. |
|
|
Definition at line 37 of file bfont.h. References h. |
|
|
Definition at line 171 of file bfont.cpp. References CharWidth(), i, and Opie::MM::x. Referenced by CenteredPutString(), JustifiedPutString(), and RightPutString(). |
|
||||||||||||||||
|
Definition at line 378 of file bfont.cpp. References p. Referenced by SetFontColor(). |
|
|
Definition at line 18 of file bfont.h. Referenced by CharWidth(), InitFont(), LoadFont(), PutChar(), and SetFontColor(). |
|
|
Definition at line 16 of file bfont.h. Referenced by FontHeight(), InitFont(), SetFontColor(), and SetFontHeight(). |
|
|
|
|
|
Definition at line 17 of file bfont.h. Referenced by GetPixel(), InitFont(), LoadFont(), PutChar(), SetFontColor(), and ~BFont(). |
1.4.2