Functions |
BBDECL int BBCALL | xFontHeight () |
| Returns the height, in pixels, of the currently selected font.
|
BBDECL int BBCALL | xFontWidth () |
| Returns the width, in pixels, of the currently selected font.
|
BBDECL void BBCALL | xFreeFont (Font *font) |
| Frees up a font.
|
BBDECL Font *BBCALL | xLoadFont (const char *name, int height, int bold=false, int italic=false, int underline=false) |
| Loads a font and returns a font handle.
|
BBDECL void BBCALL | xSetFont (Font *font) |
| Activates a font previously loaded into memory (though the xLoadFont() command) for future use with printing commands such as xText().
|
BBDECL int BBCALL | xStringHeight (const char *textString) |
| Returns the size, in pixels, the height of the indicated string.
|
BBDECL int BBCALL | xStringWidth (const char *textString) |
| Returns the size, in pixels, the width of the indicated string.
|
BBDECL void BBCALL | xText (int x, int y, const char *textString, int centerx=false, int centery=false) |
| Prints a string at the designated screen coordinates.
|
BBDECL int BBCALL xStringWidth |
( |
const char * |
textString ) |
|
Returns the size, in pixels, the width of the indicated string.
This is useful for determining screen layout, scrolling of text, and more. This is calculated based on the size of the currently loaded font.
- Parameters:
-
textString | Any valid string |
BBDECL int BBCALL xStringHeight |
( |
const char * |
textString ) |
|
Returns the size, in pixels, the height of the indicated string.
This is useful for determining screen layout, scrolling of text, and more. This is calculated based on the size of the currently loaded font.
- Parameters:
-
textString | Any valid string |