home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d5xx / d502 / cells.lha / CELLS / CELLSSource.lzh / cBoxes.h next >
Text File  |  1991-04-20  |  2KB  |  40 lines

  1. /*
  2.  *  CELLS       An Implementation of the WireWorld cellular automata
  3.  *              as described in Scientific American, Jan 1990.
  4.  *
  5.  *              Copyright 1990 by Davide P. Cervone.
  6.  *  You may use this code, provided this copyright notice is kept intact.
  7.  *  See the CELLS.HELP file for complete information on distribution conditions.
  8.  */
  9.  
  10. /*
  11.  *  File:   cBoxes.h        Header file for gadget and requester defines
  12.  */
  13.  
  14.  
  15. #define CHAR_WIDTH  6       /* size of MOONSTONE font */
  16. #define CHAR_HEIGHT 8
  17.  
  18. #define ITEXT(s,x,y)        {TEXTPEN,FOREGROUND,JAM2, x,y, NULL, s, NULL}
  19. #define CTEXT(s,x,y,c)      {c,FOREGROUND,JAM2, x,y, NULL, s, NULL}
  20. #define RTEXT(s,x,y)        {TEXTPEN,TEXTSELECT,JAM2, x,y, NULL, s, NULL}
  21. #define IMAGE(x,y,w,h,c)    {x,y, w,h,0, NULL,0,c, NULL}
  22. #define ARROWIMAGE(data)    {0,0, SLIDEWH,SLIDEWH,2, &data[0], 3,0, NULL}
  23.  
  24. #define HBOX(w,h)           {0,h-1, 0,0, w-2,0, w-1,0, w-1,h-1, 1,h-1}
  25. #define VBOX(w,h)           {0,h-2, 0,0, w-1,0, w-1,1, w-1,h-1, 0,h-1}
  26. #define FBOX(w,h)           {0,h-1, 0,0, w-1,0, w-1,1, w-1,h-1, 1,h-1}
  27. #define BBOX(w,h)           {0,h-2, 0,0, w-2,0, w-1,0, w-1,h-1, 0,h-1}
  28. #define RECT(w,h)           {0,0, w-1,0, w-1,h-1, 0,h-1, 0,1}
  29. #define BRDR(n,c,x,y,box)   {x,y, c,0,JAM1, 5, &box[0], NEXTBORDER(n)}
  30. #define INBRDR(n,x,y,box)\
  31.    {x,y, SHADOW,0,JAM1,    3, &box[0], &BORDERNAME[n+1]},\
  32.    {x,y, HIGHLIGHT,0,JAM1, 3, &box[6], NEXTBORDER(n)}
  33. #define OUTBRDR(n,x,y,box)\
  34.    {x,y, HIGHLIGHT,0,JAM1, 3, &box[0], &BORDERNAME[n+1]},\
  35.    {x,y, SHADOW,0,JAM1,    3, &box[6], NEXTBORDER(n)}
  36.  
  37. #define SLIDEWH     10
  38. #define TEXTH       12
  39. #define LNAMEH      (CHAR_HEIGHT+2)
  40.