home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / SCRNMS.ZIP / WINDOW.H < prev   
C/C++ Source or Header  |  1990-02-20  |  2KB  |  62 lines

  1. /* window.h
  2. **
  3. ** Copyright (c) 1987-90, Chris Laforet Software/Chris Laforet
  4. ** All Rights Reserved
  5. **
  6. ** Started: 17 February 1990
  7. **
  8. ** Revision Information: $Logfile:   F:/libs/scrnlib/vcs/window.h_v  $
  9. **                       $Date:   20 Feb 1990 05:03:12  $
  10. **                       $Revision:   1.1  $
  11. **
  12. */
  13.  
  14.  
  15. #ifdef __cplusplus
  16. extern "C"
  17.     {
  18. #endif
  19.  
  20.  
  21. #ifndef LIBRARY
  22.     #ifndef __TURBOC__
  23.         #ifndef __ZTC__
  24.             #ifndef PROTECTED
  25.                 #pragma comment(lib,"LSCREEN")
  26.             #else
  27.                 #pragma comment(lib,"LSCREENP")
  28.             #endif
  29.         #endif
  30.     #endif
  31. #endif
  32.  
  33.  
  34. struct window
  35.     {
  36.     int *save;        /* pointer to screen data */
  37.     int curpos;        /* cursor position to be restored */
  38.     int curmode;     /* cursor mode to be restored */
  39.     int start;        /* starting position of window on screen */
  40.     int stop;        /* ending position of window on screen */
  41.     };
  42.  
  43.  
  44. extern void far clrblk(int start,int stop,int attribute);
  45. extern int scroll_up(int tlc,int brc,int color,int lines);
  46. extern int scroll_down(int tlc,int brc,int color,int lines);
  47.  
  48. extern void far drawbox(int start,int stop,int attribute,int type);
  49.  
  50. extern int far phantom(int cursor,int length,int attribute);
  51.  
  52. extern struct window far *far open_window(int start,int stop,int attribute,int type);
  53. extern void far close_window(struct window *scrn);
  54.  
  55. extern struct window far *far open_shadow_window(int start,int stop,int attribute,int type);
  56. extern void far close_shadow_window(struct window *scrn);
  57.  
  58. #ifdef __cplusplus
  59.     }
  60. #endif
  61.  
  62.