home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 20 / AACD20.BIN / AACD / Programming / AmiSlate-Source / AmiSource-h / drawlang.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-31  |  4.5 KB  |  84 lines

  1. /* DrawLang.h -- This file contains the drawing commands for the transmission
  2.    language. */
  3.  
  4. #ifdef DEBUG
  5. #define Printf printf
  6. #endif
  7.  
  8. #ifndef DEBUG
  9. #define Printf printf
  10. #endif
  11.  
  12.  
  13.  
  14. #define SEND_EMPTY       0xF0F7 /* No words ready in incoming buffer */
  15. #define SEND_ERROR       0xF0F8 /* Socket disconnected ?  */
  16. #define COMMAND_QUIT     0xF0F9 /* Quit----------No parameters */
  17. #define NOTSENDABLE      0xF0FA /* Guaranteed never to be transmitted */
  18. #define CONTROL1         0xF0FB /* Meaning specific to operation */
  19. #define NOP_PAD          0xF0FC /* Does nothing... used as padding */
  20. #define COMMAND          0xF0FD /* Means next word is command word... */
  21. #define STOP_STRING      0xF0FE /* Used to terminate strings */
  22. #define MODE_CHANGE      0xF0FF /* Means next word is Mode change word... */
  23.  
  24. /* MODE_CHANGE followed by any of these makes a mode change command. */
  25. #define MODE_FIRST       0x0000 /* Range Start marker */
  26. #define MODE_DOT         0x0001 /* Two words: x,y */
  27. #define MODE_PEN         0x0002 /* Stream of words x,y,x,y,... until STOP_STRING */
  28. #define MODE_LINE        0x0003 /* Two words: x,y */
  29. #define MODE_CIRCLE      0x0004 /* Three words: x,y,r */
  30. #define MODE_SQUARE      0x0005 /* Four words: x1,y1,x2,y2 */
  31. #define MODE_POLY        0x0006 /* Stream of words x,y,x,y,... until STOP_STRING */
  32. #define MODE_FLOOD       0x0007 /* Two words: x,y */
  33. #define MODE_DTEXT       0x0008 /* Stream of single words, each represents a char  */
  34. #define MODE_RASTER     0x0009 /* Two words:  color, length */
  35. #define MODE_LAST        0x000A /* Range End marker */
  36. #define MODE_INVALID     0x000B /* Used to force mode change */
  37. #define MODE_FILLED      0x0100 /* OR this in with the above MODES_  */
  38. #define MODE_XOR         0x0200 /* OR this in with the above MODES_  */
  39.  
  40. /* The following modes are used only by the input parsing mechanism */
  41. #define MODE_MODE        0x000C     /* = awaiting MODE code */
  42. #define MODE_COMMAND     0x000D  /* = awaiting COMMAND code */
  43. #define MODEC_SIZE       0x000E  /* = awaiting window size values */
  44. #define MODEC_RGB     0x000F  /* = awaiting RGB values */
  45. #define MODEC_SYNCH      0x0010  /* = awaiting state/setup value(s) */
  46. #define MODEC_SETCOLOR   0x0011  /* = awaiting color information */
  47. #define MODEC_SENDSTRING 0x0012  /* = awaiting NULL-terminated string */
  48. #define MODEC_SETRASTER     0x0013  /* = awaiting bounding information */
  49. #define FILE_END         0x0014  /* = end of input file */
  50.  
  51. /* COMMAND followed by any of these makes a command */
  52. #define COMMAND_CLEAR       0x0015  /* Clear Screen--No parameters */
  53. #define COMMAND_RGB         0x0016  /* Change color--Six words  rf, gf, bf, tb,gb, bb */
  54. #define COMMAND_SIZE        0x0017  /* Change size---Two words: x, y */
  55. #define COMMAND_LOCK        0x0018  /* Disallow drawing */
  56. #define COMMAND_UNLOCK      0x0019  /* Allow drawing */
  57. #define COMMAND_SYNCH       0x001A  /* (Re)transmit state information */
  58. #define COMMAND_SETCOLOR    0x001B  /* Set a color register to this color */
  59. #define COMMAND_SENDPALETTE 0x001C  /* Request a transmit of palette information */
  60. #define COMMAND_HELLO       0x001D  /* Recognize caller */
  61. #define COMMAND_SENDSTRING  0x001E  /* Send szSendString */
  62. #define COMMAND_SIZELOCK    0x001F  /* Puts receiver in "sizeme", passive state until resize command */
  63. #define COMMAND_SIZEUNLOCK  0x0020  /* Undos the SIZELOCK command.  */
  64. #define COMMAND_SIZEOK        0x0021  /* Gives the go-ahead for a resize */
  65. #define COMMAND_BEEP        0x0022  /* Flashes the display--no parameters */
  66. #define COMMAND_SETRASTER   0x0023  /* Sets up Raster window on remote display */
  67. #define COMMAND_SENDSCREEN  0x0024  /* Requests full-screen transmission */
  68. #define COMMAND_CLEARMAP    0x0025  /* Requests remote pen map to be cleared */
  69.  
  70. /* Flags to tell ReceiveString where to send the string */
  71. #define STRING_USER        0x0026  /* Store for/send to user's ARexx program */
  72. #define STRING_EASYREQ        0x0027  /* Send to EasyReqFromRemote */
  73. #define STRING_EASYREQREP    0x0028  /* Reply of EasyReqFromRemote */
  74. #define STRING_STRINGREQ    0x0029    /* Send to StringReqFromRemote */
  75. #define STRING_STRINGREQREP    0x002A  /* Reply of StringReqFromRemote */
  76. #define STRING_SETWINTITLE      0x002B  /* Send to SetWindowTitle */
  77. #define STRING_REXXCOMMAND      0x002C  /* Attempt to start a Rexx script */
  78.  
  79. /* Flag to tell OutputAction what context to use */
  80. #define FROM_REXX           0x01  /* Send Rexx graphics */
  81. #define FROM_IDCMP          0x02  /* Send User graphics */
  82. #define FROM_REMOTE        0x03  /* Saving Remote actions to local script */
  83.  
  84.