home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / cprog / ev_201.zip / SCRFCTS.H < prev    next >
C/C++ Source or Header  |  1993-07-03  |  2KB  |  81 lines

  1. #if !defined (SCRFCTS)            /* Prevents multiple declarations errors */
  2. #define SCRFCTS
  3.  
  4.  
  5. /*
  6.    Module        : SCRFCTS.H
  7.    Version       : 2.0
  8.    Revision date : July 3rd, 1993
  9.    Author(s)     : Remy Gendron
  10.  
  11.    Description   : Screen related functions.
  12. */
  13.  
  14.  
  15. /* Headers --------------------------------------------------------------- */
  16.  
  17. #include <conio.h>
  18.  
  19.  
  20. /* Macros ---------------------------------------------------------------- */
  21.  
  22. #include "stdmacro.h"
  23.  
  24.  
  25. /* Typedefs -------------------------------------------------------------- */
  26.  
  27. #include "stdtype.h"
  28.  
  29. struct cur_info                        /* Can hold every cursor attributes */
  30. {
  31.    byte attribute ;                                      /* Text attribute */
  32.    byte curx ;                           /* X coordinate in current window */
  33.    byte cury ;                           /* Y coordinate in current window */
  34.    word curtype ;                                          /* Cursor shape */
  35. } ;
  36.  
  37.  
  38. /* Prototypes ------------------------------------------------------------ */
  39.  
  40. #ifdef __cplusplus                     /* Enables linking with C++ modules */
  41. extern "C" {
  42. #endif
  43.  
  44. void far scr_textattr                 /* Sets colors of next video outputs */
  45. (
  46.    int back,                                           /* Background color */
  47.    int fore                                            /* Foreground color */
  48. ) ;
  49.  
  50. void far scr_vsave           /* Saves all video informations except cursor */
  51. (
  52.    struct text_info huge *ti,                 /* Ptr to a text_info struct */
  53.    char huge*huge *savedscr            /* Ptr to ptr to screen's save area */
  54. ) ;
  55.  
  56. void far scr_vrestore     /* Restores all video informations except cursor */
  57. (
  58.    struct text_info huge *ti,                 /* Ptr to a text_info struct */
  59.    char huge*huge *savedscr            /* Ptr to ptr to screen's save area */
  60. ) ;
  61.  
  62. void far scr_csave                          /* Saves all cursor attributes */
  63. (
  64.    struct cur_info huge *ci                    /* Ptr to a cur_info struct */
  65. ) ;
  66.  
  67. void far scr_crestore                    /* Restores all cursor attributes */
  68. (
  69.    struct cur_info huge *ci                    /* Ptr to a cur_info struct */
  70. ) ;
  71.  
  72.  
  73. #ifdef __cplusplus
  74. }
  75. #endif
  76.  
  77.  
  78. /* End Source File ------------------------------------------------------- */
  79.  
  80. #endif
  81.