home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xfont.h < prev    next >
Text File  |  1998-04-06  |  1KB  |  44 lines

  1. #ifndef __OOL_XFONT_H__
  2. #define __OOL_XFONT_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XFont                                 */
  8. /*                       derived from: XObject                               */
  9. /*                        last update: 12/96                                 */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14.  
  15. #include "xobject.h"
  16.  
  17. class XFrameWindow;
  18. class XGraphicDevice;
  19.  
  20. #define FONT_BOLD        FATTR_SEL_BOLD
  21. #define FONT_UNDERSCORE  FATTR_SEL_UNDERSCORE
  22. #define FONT_ITALIC      FATTR_SEL_ITALIC
  23. #define FONT_STRIKEOUT   FATTR_SEL_STRIKEOUT
  24. #define FONT_OUTLINE     FATTR_SEL_OUTLINE
  25.  
  26.  
  27. class _export_ XFont: public XObject
  28. {
  29.       friend class XGraphicDevice;
  30.       friend class XPrinterDevice;
  31.       friend class XText;
  32.    private:
  33.       char fontId;
  34.       SHORT fontSize;
  35.       SHORT realSize, pixelSize;
  36.       BOOL fixed;
  37.    public:
  38.       XFont( XGraphicDevice *, const char * fontName, const SHORT size, const LONG options = 0);
  39.       virtual ~XFont() {;}
  40.       SHORT GetPixelSize() const { return pixelSize; }
  41. };
  42.  
  43. #endif
  44.