home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / spmio10.zip / gcc2 / pmio / pmtext.h < prev    next >
C/C++ Source or Header  |  1994-06-16  |  926b  |  37 lines

  1. #ifndef include_pmtext_h
  2. #define include_pmtext_h
  3.  
  4. #include <stdwin.h>
  5. #include <framectl.h>
  6. #include <textwin.h>
  7.  
  8. class PMTextWindow: public StdWin, protected TextWindow
  9. {
  10. private:
  11.   FrameControl framectl;
  12.   int char_width, char_height, char_descender;
  13.   const char * const fontspec;
  14.   int font;
  15.   int visible_cursor;
  16.   int cursor_start_line, cursor_stop_line;
  17.   int cursor_color;
  18. protected:  
  19.   virtual MRESULT msg_paint ();
  20.   virtual MRESULT msg_create ();
  21.   void refresh_window ();
  22.   virtual int scroll_region_draw (int scroll_distance,
  23.                   int x1, int y1, int x2, int y2);
  24.  
  25.   void hide_cursor ();
  26.   void set_cursor (int start_line, int stop_line);
  27.   void set_cursor_color (int cursor_color);
  28.   int get_cursor_color () const;
  29.   
  30. public:
  31.   PMTextWindow (const char *afontspec,
  32.         int init_width = 80, int init_height = 25);
  33.   virtual ~PMTextWindow ();
  34. };
  35.  
  36. #endif /* include_pmtext_h */
  37.