home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / spmio10.zip / gcc2 / pmio / msgs.h < prev    next >
C/C++ Source or Header  |  1994-06-21  |  1KB  |  50 lines

  1. #ifndef include_msgs_h
  2. #define include_msgs_h
  3.  
  4. #include "pmtext.h"
  5.  
  6. class MessageWindow: public PMTextWindow
  7. {
  8. private:
  9.   typedef PMTextWindow inherited;
  10.   int batch_count;
  11.   virtual MRESULT msg_user1 (MRESULT mp1, MRESULT mp2);
  12.   void send_message (void *msg);
  13. public:
  14.   MessageWindow (const char *fontspec,
  15.          int init_width = 80, int init_height = 25);
  16.   virtual ~MessageWindow ();
  17.  
  18.   void batch_on ();
  19.   void batch_off ();
  20.   void set_screen_size (int width, int height);
  21.   void set_width (int width);
  22.   void set_height (int height);
  23.   int get_screen_width ();
  24.   int get_screen_height ();
  25.   void set_attr (unsigned char attr);
  26.   void set_fg (unsigned char fg_color);
  27.   void set_bg (unsigned char bg_color);
  28.   int getx ();
  29.   int gety ();
  30.   void gotoxy (int x, int y);
  31.   void put_raw (int len, const char *text);
  32.   void put_tty (int len, const char *text);
  33.   void put_std (int len, const char *text);
  34.   void set_cells (int len, const char *text);
  35.   void clrscr ();
  36.   void clreol ();
  37.   void scroll_window (int scroll_distance);
  38.   void set_window (int x1, int y1, int x2, int y2);
  39.   void unset_window ();
  40.   void hide_cursor ();
  41.   void set_cursor (int start_line, int stop_line);
  42.   void set_cursor_color (int cursor_color);
  43.   int get_cursor_color ();
  44.   void *save_screen_content ();
  45.   void restore_screen_content (void *);
  46. };
  47.  
  48.  
  49. #endif /* include_msgs_h */
  50.