#include <GraphicContext.h>
Inheritance diagram for GAG::Font:

Public Types | |
| enum | Shape { STYLE_NORMAL = 0x00, STYLE_BOLD = 0x01, STYLE_ITALIC = 0x02, STYLE_UNDERLINE = 0x04 } |
| Shape of the font. More... | |
Public Member Functions | |
| virtual | ~Font () |
| Virtual destructor, no nothing. | |
| virtual int | getStringWidth (const char *string) const =0 |
| Return width of string in pixels. | |
| virtual int | getStringWidth (const char *string, int len) const |
| Return width of len first pixels of string in pixels. | |
| virtual int | getStringWidth (const int i) const |
| Return width of i in pixels. | |
| virtual int | getStringHeight (const char *string) const =0 |
| Return height of string in pixels. | |
| virtual int | getStringHeight (const char *string, int len) const |
| Return height of len first pixels of string in pixels. | |
| virtual int | getStringHeight (const int i) const |
| Return width of i in pixels. | |
| virtual bool | printable (char c) const =0 |
| Return true if c is a printable character. | |
| virtual void | setColor (Uint8 r, Uint8 g, Uint8 b, Uint8 a=DrawableSurface::ALPHA_OPAQUE) |
| Set the font color, clear the color stack. | |
| virtual void | pushColor (Uint8 r, Uint8 g, Uint8 b, Uint8 a=DrawableSurface::ALPHA_OPAQUE) |
| Push the font color on the color stack and set it. | |
| virtual void | popColor (void) |
| Remove the last element of the color stack. | |
| virtual void | getColor (Uint8 *r, Uint8 *g, Uint8 *b, Uint8 *a) const |
| Return the actual font color. | |
| virtual void | setStyle (unsigned style) |
| Set the font style, clear the style stack. | |
| virtual void | pushStyle (unsigned style) |
| Push the font style on the style stack and set it. | |
| virtual void | popStyle (void) |
| Remove the last element of the style stack. | |
| virtual unsigned | getStyle (void) const |
| Return the actual font style. | |
|
|
Shape of the font.
|
1.4.2