JWM Source Documentation

font.h
Go to the documentation of this file.
00001 
00010 #ifndef FONT_H
00011 #define FONT_H
00012 
00013 #include "color.h"
00014 
00016 typedef enum {
00017 
00018    FONT_BORDER,
00019    FONT_MENU,
00020    FONT_TASK,
00021    FONT_POPUP,
00022    FONT_CLOCK,
00023    FONT_TRAY,
00024    FONT_TRAYBUTTON,
00025    FONT_PAGER,
00026 
00027    FONT_COUNT
00028 
00029 } FontType;
00030 
00031 void InitializeFonts();
00032 void StartupFonts();
00033 void ShutdownFonts();
00034 void DestroyFonts();
00035 
00040 void SetFont(FontType type, const char *value);
00041 
00052 void RenderString(Drawable d, FontType font, ColorType color,
00053    int x, int y, int width, Region region, const char *str);
00054 
00060 int GetStringWidth(FontType type, const char *str);
00061 
00066 int GetStringHeight(FontType type);
00067 
00068 #endif /* FONT_H */
00069