Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

GAG::Font Class Reference
[Libgag graphic library]

#include <GraphicContext.h>

Inheritance diagram for GAG::Font:

GAG::SDLFont List of all members.

Detailed Description

Font with a given foundery, shape and color.


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.


Member Enumeration Documentation

enum GAG::Font::Shape
 

Shape of the font.

Enumeration values:
STYLE_NORMAL  normal fond
STYLE_BOLD  bold font
STYLE_ITALIC  italic font
STYLE_UNDERLINE  underlined font


The documentation for this class was generated from the following files:
Generated on Mon Oct 24 17:38:26 2005 for Teem by  doxygen 1.4.2