home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / intrvews / xgrab.lha / xgrab / include / textpainter.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-19  |  1019 b   |  50 lines

  1. /**
  2.    GRAB Graph Layout and Browser System
  3.  
  4.    Copyright (c) 1989, Tera Computer Company
  5.  **/
  6.  
  7.   /**
  8.      stolen from the InterViews 2.5 source files (text directory, which 
  9.      is unsupported in 2.6.  
  10.    **/
  11.  
  12. /*
  13.  * TextPainter - styled text
  14.  */
  15.  
  16. #ifndef textpainter_h
  17. #define textpainter_h
  18.  
  19. #include <InterViews/painter.h>
  20.  
  21. class Canvas;
  22.  
  23. class TextPainter : public Painter {
  24.     boolean bold;
  25.     boolean underlined;
  26.     boolean boxed;
  27.     boolean transparent;
  28.     boolean greyed;
  29.     boolean inverted;
  30. public:
  31.     TextPainter( Painter * p );
  32.  
  33.     void Text( Canvas *, const char *, int );
  34.  
  35.     void Bold() { bold = true; }
  36.     void NotBold() { bold = false; }
  37.     void Underlined() { underlined = true; }
  38.     void NotUnderlined() { underlined = false; }
  39.     void Boxed() { boxed = true; }
  40.     void NotBoxed() { boxed = false; }
  41.     void Greyed() { greyed = true; }
  42.     void NotGreyed() { greyed = false; }
  43.     void Transparent();
  44.     void NotTransparent();
  45.     void Inverted();
  46.     void NotInverted();
  47. };
  48.  
  49. #endif
  50.