diff options
Diffstat (limited to 'src/font.h')
-rw-r--r-- | src/font.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/font.h b/src/font.h new file mode 100644 index 0000000..fe1c0c5 --- /dev/null +++ b/src/font.h @@ -0,0 +1,43 @@ +/** + * @file font.h + * @author Joe Wingbermuehle + * @date 2004-2006 + * + * @brief Header for the font functions. + * + */ + +#ifndef FONT_H +#define FONT_H + +#include "color.h" + +typedef enum { + + FONT_BORDER, + FONT_MENU, + FONT_TASK, + FONT_POPUP, + FONT_CLOCK, + FONT_TRAY, + FONT_TRAYBUTTON, + + FONT_COUNT + +} FontType; + +void InitializeFonts(); +void StartupFonts(); +void ShutdownFonts(); +void DestroyFonts(); + +void SetFont(FontType type, const char *value); + +void RenderString(Drawable d, FontType font, ColorType color, + int x, int y, int width, Region region, const char *str); + +int GetStringWidth(FontType type, const char *str); +int GetStringHeight(FontType type); + +#endif + |