home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / pd / programming / c / intuitionpp / ipp / cfont.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-06  |  1.0 KB  |  42 lines

  1. ///////////////////////////////////////////////////////////////////////////////
  2. ///////////////////////////////////////////////////////////////////////////////
  3. ///////////////////                                        ////////////////////
  4. ///////////////////           file : cfont.h               ////////////////////
  5. ///////////////////                                        ////////////////////
  6. ///////////////////////////////////////////////////////////////////////////////
  7. ///////////////////////////////////////////////////////////////////////////////
  8. //
  9. //    Class CFont :
  10. //
  11. //        - Encapsulation of TextFont for C++
  12. //
  13.  
  14.  
  15. #ifndef __CFONT__
  16. #define __CFONT__
  17.  
  18. #include <intuition/intuition.h>
  19. #include <graphics/text.h>
  20.  
  21.  
  22. class CFont
  23. {
  24. protected:
  25.     friend class CRastPortHdl;
  26.  
  27.     struct TextAttr fontattr;
  28.     struct TextFont *font;
  29.     BOOL initlibs();
  30. public:
  31.     CFont();
  32.     CFont(STRPTR name, UWORD size, UBYTE style, UBYTE flags);
  33.     ~CFont();
  34.  
  35.     BOOL open(STRPTR name , UWORD size, UBYTE style, UBYTE flags);
  36.     void close();
  37.     BOOL isopen();
  38. };
  39.  
  40.  
  41. #endif //__CFONT__
  42.