home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume12 / postscript / part01 / source / protocol.h < prev    next >
Encoding:
C/C++ Source or Header  |  1987-10-27  |  954 b   |  44 lines

  1. /*
  2.  * Copyright (C) Crispin Goswell 1987, All Rights Reserved.
  3.  */
  4.  
  5. #define NEW_WINDOW    'W'
  6. #define NEW_BITMAP    'B'
  7. #define BITBLT        'b'
  8. #define    SEND_BITMAP    's'
  9. #define GET_BITMAP    'g'
  10. #define    DESTROY_HARDWARE    'D'
  11. #define LINE        'l'
  12. #define GET_MATRIX    'm'
  13. #define GET_TRANSFERSIZE    't'
  14. #define SET_TRANSFER    'T'
  15. #define PAINT        'P'
  16. #define PAINT_LINE    'L'
  17. #define HARD_FLUSH    'F'
  18. #define SCREEN_SIZE    'Z'
  19. #define BUILD_SCREEN    'U'
  20. #define SET_SCREEN    'S'
  21. #define SET_CLIP_HARDWARE    'c'
  22. #define BITBLT_TRAPEZOID    'r'
  23. #define PAINT_TRAPEZOID    'R'
  24. #define SET_UPDATE_CONTROL    'u'
  25.  
  26. void master_protocol ();
  27. void slave_protocol ();
  28. void send_colour ();
  29. Colour recv_colour ();
  30. void send_small ();
  31. float recv_small ();
  32. void send_point ();
  33. DevicePoint recv_point ();
  34. void send_byte ();
  35. unsigned char recv_byte ();
  36. void send_short ();
  37. short recv_short ();
  38. void send_float ();
  39. float recv_float ();
  40. void send_string ();
  41. void recv_string ();
  42. void flush_protocol ();
  43. int can_recv ();
  44.