home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / source / ncsat.cpt / Telnet2.5 final / vr / vdevice.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-23  |  588 b   |  34 lines

  1.  
  2. #ifndef VDEVS
  3. #define VDEVS
  4. /*
  5. *  Virtual device record.
  6. *  Defines the handles and hooks required for the vdevice code.
  7. */
  8.  
  9. typedef struct {
  10.     GDHandle vgd;                /* GDevice created off-screen */
  11.     CGrafPort vport;            /* Virtual port created in the GDevice */
  12.     unsigned char *bp;            /* base pointer of data in the virtual device */
  13.     Rect bounds;                /* boundary rectangle for vdevice */
  14. } VDevice, *VDevicePtr;
  15.  
  16.  
  17. #endif
  18.  
  19. extern int InitVDevice
  20.   (
  21.     VDevicePtr vdev
  22.   );
  23.  
  24. extern void ColorVDevice
  25.   (
  26.     VDevicePtr vdev,
  27.     PaletteHandle pal
  28.   );
  29.  
  30. extern void TrashVDevice
  31.   (
  32.     VDevicePtr vdev
  33.   );
  34.