diff options
author | pixel <pixel> | 2003-03-26 14:07:43 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-03-26 14:07:43 +0000 |
commit | c00cd54ca5ed959cbccff7aa7261fb5025d1832c (patch) | |
tree | e706afd7029361a9f59882452a8ad2ecf2da0db6 /include/font.h | |
parent | a749e5e0f870dc2acde2de55cba2cd074d524442 (diff) |
bleh
Diffstat (limited to 'include/font.h')
-rw-r--r-- | include/font.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/include/font.h b/include/font.h new file mode 100644 index 0000000..a6f4a16 --- /dev/null +++ b/include/font.h @@ -0,0 +1,43 @@ +#ifndef __FONT_H__ +#define __FONT_H__ + +#include <SDL.h> +#include <stdarg.h> +#include <BString.h> +#include <Handle.h> +#include <gltexture.h> +#include <glcolor.h> + +namespace mogltk { + class font : public Base { + public: + font(Handle *); + virtual ~font(); + virtual void drawentry(Uint16, int, int, ColorP = WHITE); + void putcursor(int, int); + void putentry(Uint16, ColorP = WHITE); + void putchar(char, ColorP = WHITE); + void newline(void); + int printf(const ugly_string &, ...); + int printf(const char *, ...); + int printf(const ugly_string &, va_list); + void setcolor(ColorP); + void setshadow(int); + void setwspace(int); + int getchar(char) const; + int singletextsize(const String &) const; + + protected: + Uint8 * sizes; + Uint16 nbentries, nbcT, nbT; + Uint8 flags, maxX, maxY, nbcU, nbcV, base, inter; + texture ** fonttex; + Uint16 * corresp; + int cx, cy, ox; + ColorP textcolor; + int shadow, wspace; + }; + extern font * SystemFont; +}; + +#endif |