home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / source / ncsat.cpt / Telnet2.5 final / vr / rg2.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-23  |  1.7 KB  |  96 lines

  1. /*
  2.  *
  3.  *      Virtual Graphics Kernel Real Graphics Interface
  4.  *                          (rg2.c)
  5.  *
  6.  *   National Center for Supercomputing Applications
  7.  *      by Gaige B. Paulsen
  8.  *
  9.  *    This file contains the macintosh real screen calls for the NCSA
  10.  *  Virtual Graphics Kernel.
  11.  *
  12.  *    Following are the Per Device calls:
  13.  *
  14.  *      RGsetdevice( n)             - Use device n for future output
  15.  * wn = RGnewwindow( name, x1,y1,x2,y2)
  16.  *                                    - create a new window 
  17.  * wn = RGsubwindow( wn,x1,y1,x2,y2)- create a new subwindow in window wn
  18.  *      RGsetwindow( wn)             - Set the current window to wn
  19.  *      RGdestroy( wn)                - Destroy window wn
  20.  * ok = RGupdate( wind)                - Perform graphics update on window n
  21.  * wn = RGfindwn( wind)              - Get the wn from the window pointer
  22.  * ok = RGclick( wind)                - Handle click in the window 
  23.  *
  24.  *
  25.  *      Version Date    Notes
  26.  *      ------- ------  ---------------------------------------------------
  27.  *        0.5     880912    Initial Coding -GBP
  28.  */
  29.  
  30. #include <Windows.h>
  31.  
  32. #include "vrrgmac.h"
  33.  
  34. #define RG_MAC    1                    /* For Now */
  35.  
  36. void RGsetdevice
  37.   (
  38.     int n
  39.   )
  40. {
  41.     if (n==RG_MAC)
  42.         MacRGsetdevice();
  43. }
  44.  
  45. int RGnewwindow( name, x1,y1,x2,y2)
  46. char *name;
  47. int x1,y1,x2,y2;
  48. {
  49.     return( MacRGnewwindow( name, x1, y1, x2, y2));
  50. }
  51.  
  52. int RGsubwindow( wn,x1,y1,x2,y2)
  53.     int wn,x1,y1,x2,y2;
  54.   {
  55. #pragma unused(x1, y1, x2, y2)
  56.     return(MacRGsubwindow( wn));
  57.   }
  58.  
  59. RGsetwindow( wn)
  60. int wn;
  61. {
  62.     MacRGsetwindow( wn);
  63. }
  64.  
  65. void RGdestroy
  66.   (
  67.     int wn
  68.   )
  69. {
  70.     MacRGdestroy(wn);
  71. }
  72.  
  73. int RGupdate
  74.   (
  75.     WindowPtr wind
  76.   )
  77. {
  78.     return
  79.         MacRGupdate(wind);
  80. }
  81.  
  82. int RGfindwn( wind)
  83.     long wind;
  84.   {
  85. #pragma unused(wind)
  86.     return 0;
  87.   }
  88.  
  89. int RGclick( wind)
  90.     long wind;
  91.   {
  92. #pragma unused(wind)
  93.     return 0;
  94.   }
  95.  
  96.