font_manager.h

Go to the documentation of this file.
00001 /* MANTAINER: Bernard */
00002 
00003 #ifndef _FONT_MANAGER_H
00004 #define _FONT_MANAGER_H
00005 
00006 
00007 #include "hash_hack.h"
00008 #include "stlextdefs.h"
00009 #include "universal_manager.h"
00010 #include "font.h"
00011 #include "task.h"
00012 
00013 // Some font types will be defined
00014 
00015 //FONT_MENU_BIG...
00033 class FontManager : public UniversalManager<Font, FontManager>, public Task
00034 {
00035 protected:
00036         friend class Singleton<FontManager>;    
00037 
00038         FontManager();
00039         ~FontManager();
00040 
00041 public:
00042 //      TRef getFont(int type);
00043 
00052         TRef get(const char* font_name, int size);
00053 
00060         virtual void update(int dtime, int atime);
00061 
00062 private:
00063         int mNextCleanup; 
00064         
00065 };
00066 
00067 typedef FontManager::TUniversalManager::TRef FontRef; 
00068 
00069 
00070 // Used for the explicit template instantiation in template_instantces_*.cpp file
00071 #ifdef INSTANTIATE_TEMPLATE
00072         template class Singleton<FontManager>;
00073 #endif
00074 
00075 
00076 #endif // _FONT_MANAGER_H

Generated on Wed Apr 12 13:55:28 2006 for bjs by  doxygen 1.4.5