home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / XenonSource.exe / gamesystem / includes / gs_font.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-25  |  1002 b   |  49 lines

  1. //-------------------------------------------------------------
  2. //
  3. // Class:    gsCFont
  4. //
  5. // Author:    John M Phillips
  6. //
  7. // Started:    12/03/00
  8. //
  9. // Base:    gsCTiledImage
  10. //
  11. // Derived:    None
  12. //
  13. //-------------------------------------------------------------
  14.  
  15. #ifndef _INCLUDE_GS_FONT_H
  16. #define _INCLUDE_GS_FONT_H
  17.  
  18. #include "gs_types.h"
  19. #include "gs_tiledimage.h"
  20.  
  21. //-------------------------------------------------------------
  22.  
  23. class gsCFont : public gsCTiledImage
  24. {
  25.     private:
  26.         gsCPoint m_text_cursor;
  27.         gsCColour m_tint;
  28.         bool m_use_tint;
  29.  
  30.     public:
  31.         gsCFont();
  32.         virtual ~gsCFont();
  33.  
  34.         void setTextCursor(const gsCPoint& position);
  35.         void enableTint(const gsCColour& colour);
  36.         void disableTint();
  37.  
  38.         gsCPoint getTextCursor();
  39.  
  40.         gsCPoint getStringSize(const char *string);
  41.  
  42.         bool _cdecl printString(const char *format,...);
  43.         bool _cdecl justifyString(const char *format,...);
  44. };
  45.  
  46. //-------------------------------------------------------------
  47.  
  48. #endif
  49.