home *** CD-ROM | disk | FTP | other *** search
/ Encyclopedia of Graphics File Formats Companion / GFF_CD.ISO / software / unix / saoimage / sao1_07.tar / panel / menucmap.h < prev    next >
Text File  |  1991-01-02  |  17KB  |  375 lines

  1.  
  2.  
  3. /* write button: CmapA1 */
  4. #define CmapA1_offo_width 34
  5. #define CmapA1_offo_height 14
  6. static char CmapA1_offo_label[] = {
  7.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00,
  8.   0x44, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x22, 0xd2, 0xe4, 0x61,
  9.   0x00, 0x22, 0x32, 0x44, 0x90, 0x00, 0x54, 0x11, 0x44, 0x08, 0x01, 0x54,
  10.   0x11, 0x44, 0xf8, 0x01, 0x54, 0x11, 0x44, 0x08, 0x00, 0x88, 0x10, 0x44,
  11.   0x10, 0x01, 0x88, 0x10, 0x84, 0xe1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  12.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
  13. static char CmapA1_offo_mask[] = {
  14.   0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0xee, 0x00, 0x00, 0x00, 0x00,
  15.   0xee, 0x00, 0x00, 0x77, 0xff, 0xff, 0xf3, 0x00, 0x77, 0xff, 0xff, 0xfb,
  16.   0x01, 0xff, 0xff, 0xff, 0xff, 0x03, 0xff, 0x7f, 0xee, 0xfc, 0x03, 0xfe,
  17.   0x3b, 0xee, 0xfc, 0x03, 0xfe, 0x3b, 0xee, 0xfc, 0x03, 0xfe, 0x3b, 0xee,
  18.   0xff, 0x03, 0xdc, 0x39, 0xee, 0xfb, 0x03, 0xdc, 0x39, 0xce, 0xf3, 0x01,
  19.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
  20. static int CmapA1_offo_breaks[] = { 11, 17, 20, 26, 34 };
  21. static ButtonLabel CmapA1_offo = {
  22.   (unsigned char *)CmapA1_offo_label, (unsigned char *)CmapA1_offo_mask,
  23.   CmapA1_offo_width, CmapA1_offo_height,
  24.   0.5, 0.5, 0, 0,            /* placement */
  25.   5, 5, 0, CmapA1_offo_breaks };
  26. #define CmapA1_offi_width 35
  27. #define CmapA1_offi_height 14
  28. static char CmapA1_offi_label[] = {
  29.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00,
  30.   0xcc, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x23, 0xf6, 0xed, 0xf3,
  31.   0x01, 0x23, 0xb6, 0xcd, 0x18, 0x03, 0x76, 0x33, 0xcc, 0x18, 0x03, 0x76,
  32.   0x33, 0xcc, 0xf8, 0x03, 0xde, 0x33, 0xcc, 0x18, 0x00, 0x8c, 0x31, 0xcc,
  33.   0x18, 0x03, 0x8c, 0x31, 0x8c, 0xf3, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
  34.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
  35. static char CmapA1_offi_mask[] = {
  36.   0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x01, 0x00, 0x00, 0x00,
  37.   0xfe, 0x01, 0x00, 0x77, 0xff, 0xff, 0xff, 0x03, 0x77, 0xff, 0xff, 0xff,
  38.   0x07, 0xff, 0xff, 0xff, 0xff, 0x07, 0xff, 0xff, 0xff, 0xfd, 0x07, 0xff,
  39.   0x7f, 0xfe, 0xfd, 0x07, 0xff, 0x7f, 0xfe, 0xfd, 0x07, 0xff, 0x7f, 0xfe,
  40.   0xff, 0x07, 0xde, 0x7b, 0xfe, 0xff, 0x07, 0xde, 0x7b, 0xde, 0xff, 0x03,
  41.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
  42. static int CmapA1_offi_breaks[] = { 12, 18, 21, 27, 35 };
  43. static ButtonLabel CmapA1_offi = {
  44.   (unsigned char *)CmapA1_offi_label, (unsigned char *)CmapA1_offi_mask,
  45.   CmapA1_offi_width, CmapA1_offi_height,
  46.   0.5, 0.5, 0, 0,            /* placement */
  47.   5, 5, 0, CmapA1_offi_breaks };
  48. static ButtonLook CmapA1_look = {
  49.   &CmapA1_offo, NULL, &CmapA1_offo, NULL,
  50.   &CmapA1_offi, NULL, &CmapA1_offi, NULL };
  51. static ButtonFeel CmapA1_feel = {
  52.   "CmapA1", 2,
  53.   { BTNFlash, BTNCoWhile },
  54.   { 0x0004, 0x0004 },
  55.   { 0x0000, 0x0004 },
  56.   { 5, 48, 0, 0 } };
  57. /* read button: CmapA2 */
  58. #define CmapA2_offo_width 30
  59. #define CmapA2_offo_height 14
  60. static char CmapA2_offo_label[] = {
  61.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10,
  62.   0x00, 0x00, 0x00, 0x10, 0x1a, 0x06, 0x07, 0x16, 0x06, 0x89, 0x08, 0x19,
  63.   0x82, 0x10, 0x8c, 0x10, 0x82, 0x1f, 0x8b, 0x10, 0x82, 0x80, 0x88, 0x10,
  64.   0x02, 0x91, 0x08, 0x19, 0x02, 0x0e, 0x17, 0x16, 0x00, 0x00, 0x00, 0x00,
  65.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
  66. static char CmapA2_offo_mask[] = {
  67.   0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x38,
  68.   0x3f, 0x8f, 0x0f, 0x3f, 0xbf, 0xdf, 0x9f, 0x3f, 0xff, 0xff, 0xdf, 0x3f,
  69.   0xcf, 0xff, 0xdf, 0x3f, 0xc7, 0xff, 0xdf, 0x39, 0xc7, 0xff, 0xdf, 0x3f,
  70.   0xc7, 0xff, 0xff, 0x3f, 0x87, 0xff, 0xbf, 0x3f, 0x07, 0x9f, 0x3f, 0x3f,
  71.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
  72. static int CmapA2_offo_breaks[] = { 6, 14, 22, 30 };
  73. static ButtonLabel CmapA2_offo = {
  74.   (unsigned char *)CmapA2_offo_label, (unsigned char *)CmapA2_offo_mask,
  75.   CmapA2_offo_width, CmapA2_offo_height,
  76.   0.5, 0.5, 0, 0,            /* placement */
  77.   4, 4, 0, CmapA2_offo_breaks };
  78. #define CmapA2_offi_width 30
  79. #define CmapA2_offi_height 14
  80. static char CmapA2_offi_label[] = {
  81.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x18,
  82.   0x00, 0x00, 0x00, 0x18, 0x9f, 0x8f, 0x87, 0x1f, 0xdb, 0xd8, 0xcc, 0x18,
  83.   0xc3, 0x18, 0xcc, 0x18, 0xc3, 0x9f, 0xcf, 0x18, 0xc3, 0xc0, 0xcc, 0x18,
  84.   0xc3, 0xd8, 0xcc, 0x18, 0x83, 0x8f, 0x9b, 0x1f, 0x00, 0x00, 0x00, 0x00,
  85.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
  86. static char CmapA2_offi_mask[] = {
  87.   0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x3c,
  88.   0xff, 0xdf, 0xcf, 0x3f, 0xff, 0xff, 0xff, 0x3f, 0xff, 0xff, 0xff, 0x3f,
  89.   0xff, 0xff, 0xff, 0x3d, 0xe7, 0xff, 0xff, 0x3d, 0xe7, 0xff, 0xff, 0x3d,
  90.   0xe7, 0xff, 0xff, 0x3f, 0xe7, 0xff, 0xff, 0x3f, 0xc7, 0xdf, 0xff, 0x3f,
  91.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
  92. static int CmapA2_offi_breaks[] = { 6, 14, 22, 30 };
  93. static ButtonLabel CmapA2_offi = {
  94.   (unsigned char *)CmapA2_offi_label, (unsigned char *)CmapA2_offi_mask,
  95.   CmapA2_offi_width, CmapA2_offi_height,
  96.   0.5, 0.5, 0, 0,            /* placement */
  97.   4, 4, 0, CmapA2_offi_breaks };
  98. static ButtonLook CmapA2_look = {
  99.   &CmapA2_offo, NULL, &CmapA2_offo, NULL,
  100.   &CmapA2_offi, NULL, &CmapA2_offi, NULL };
  101. static ButtonFeel CmapA2_feel = {
  102.   "CmapA2", 2,
  103.   { BTNFlash, BTNCoWhile },
  104.   { 0x0004, 0x0004 },
  105.   { 0x0000, 0x0004 },
  106.   { 5, 64, 0, 0 } };
  107. /* Gray button: CmapA3 */
  108. #define CmapA3_offo_width 34
  109. #define CmapA3_offo_height 14
  110. static char CmapA3_offo_label[] = {
  111.   0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x01,
  112.   0x00, 0x00, 0x00, 0x04, 0x02, 0x00, 0x00, 0x00, 0x02, 0xd2, 0x38, 0x04,
  113.   0x01, 0x02, 0x30, 0x44, 0x04, 0x01, 0xe2, 0x13, 0x60, 0x88, 0x00, 0x02,
  114.   0x12, 0x58, 0x88, 0x00, 0x04, 0x12, 0x44, 0x50, 0x00, 0x0c, 0x13, 0x44,
  115.   0x50, 0x00, 0xf0, 0x12, 0xb8, 0x20, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00,
  116.   0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00 };
  117. static char CmapA3_offo_mask[] = {
  118.   0xf8, 0x01, 0x00, 0x00, 0x00, 0xfe, 0x03, 0x00, 0x00, 0x00, 0xfe, 0x07,
  119.   0x00, 0x00, 0x00, 0x9f, 0xff, 0x7d, 0x8e, 0x03, 0x0f, 0xff, 0xff, 0x8e,
  120.   0x03, 0xf7, 0xff, 0xff, 0xde, 0x03, 0xf7, 0x7f, 0xfe, 0xde, 0x03, 0xff,
  121.   0x3f, 0xfe, 0xfc, 0x01, 0x9f, 0x3f, 0xfe, 0xfc, 0x01, 0xfe, 0x3f, 0xfe,
  122.   0xf9, 0x00, 0xfe, 0x3f, 0xfe, 0xf9, 0x00, 0xf8, 0x3f, 0xfc, 0x7f, 0x00,
  123.   0x00, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, 0x00, 0x7e, 0x00 };
  124. static int CmapA3_offo_breaks[] = { 11, 17, 25, 34 };
  125. static ButtonLabel CmapA3_offo = {
  126.   (unsigned char *)CmapA3_offo_label, (unsigned char *)CmapA3_offo_mask,
  127.   CmapA3_offo_width, CmapA3_offo_height,
  128.   0.5, 0.5, 0, 0,            /* placement */
  129.   5, 4, 0, CmapA3_offo_breaks };
  130. #define CmapA3_offi_width 32
  131. #define CmapA3_offi_height 14
  132. static char CmapA3_offi_label[] = {
  133.   0x00, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x00, 0x86, 0x01, 0x00, 0x00,
  134.   0x83, 0x01, 0x00, 0x00, 0x03, 0x7c, 0x1e, 0x63, 0x03, 0x6c, 0x33, 0x63,
  135.   0xe3, 0x0d, 0x30, 0x66, 0x83, 0x0d, 0x3e, 0x36, 0x83, 0x0d, 0x33, 0x34,
  136.   0xc6, 0x0d, 0x33, 0x3c, 0xbc, 0x0d, 0x6e, 0x18, 0x00, 0x00, 0x00, 0x18,
  137.   0x00, 0x00, 0x00, 0x1b, 0x00, 0x00, 0x00, 0x0e };
  138. static char CmapA3_offi_mask[] = {
  139.   0xfe, 0x01, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00, 0xff, 0x03, 0x00, 0x00,
  140.   0xcf, 0xff, 0xbf, 0xf7, 0xc7, 0xff, 0xff, 0xf7, 0xf7, 0xff, 0xff, 0xff,
  141.   0xf7, 0xff, 0xff, 0xff, 0xf7, 0x9f, 0x7f, 0xff, 0xef, 0x9f, 0x7f, 0x7f,
  142.   0xff, 0x9f, 0xff, 0x7e, 0xff, 0x9f, 0xff, 0x7e, 0xfe, 0x1f, 0xff, 0x3f,
  143.   0x00, 0x00, 0x80, 0x3f, 0x00, 0x00, 0x80, 0x3f };
  144. static int CmapA3_offi_breaks[] = { 10, 16, 24, 32 };
  145. static ButtonLabel CmapA3_offi = {
  146.   (unsigned char *)CmapA3_offi_label, (unsigned char *)CmapA3_offi_mask,
  147.   CmapA3_offi_width, CmapA3_offi_height,
  148.   0.5, 0.5, 0, 0,            /* placement */
  149.   4, 4, 0, CmapA3_offi_breaks };
  150. static ButtonLook CmapA3_look = {
  151.   &CmapA3_offo, NULL, &CmapA3_offo, NULL,
  152.   &CmapA3_offi, NULL, &CmapA3_offi, NULL };
  153. static ButtonFeel CmapA3_feel = {
  154.   "CmapA3", 2,
  155.   { BTNOneShot, BTNCoWhile },
  156.   { 0x0004, 0x0004 },
  157.   { 0x0000, 0x0004 },
  158.   { 5, 256, 0, 0 } };
  159. /* BB button: CmapA4 */
  160. #define CmapA4_offo_width 18
  161. #define CmapA4_offo_height 12
  162. static char CmapA4_offo_label[] = {
  163.   0x00, 0x00, 0x00, 0x7e, 0xfc, 0x00, 0x82, 0x04, 0x01, 0x82, 0x04, 0x01,
  164.   0x82, 0x04, 0x01, 0x7e, 0xfc, 0x00, 0x82, 0x04, 0x01, 0x82, 0x04, 0x01,
  165.   0x82, 0x04, 0x01, 0x82, 0x04, 0x01, 0x7e, 0xfc, 0x00, 0x00, 0x00, 0x00 };
  166. static char CmapA4_offo_mask[] = {
  167.   0xff, 0xfe, 0x01, 0xff, 0xff, 0x03, 0xff, 0xff, 0x03, 0xc7, 0x8f, 0x03,
  168.   0xff, 0xff, 0x03, 0xff, 0xff, 0x03, 0xff, 0xff, 0x03, 0xc7, 0x8f, 0x03,
  169.   0xc7, 0x8f, 0x03, 0xff, 0xff, 0x03, 0xff, 0xff, 0x03, 0xff, 0xfe, 0x01 };
  170. static int CmapA4_offo_breaks[] = { 9, 18 };
  171. static ButtonLabel CmapA4_offo = {
  172.   (unsigned char *)CmapA4_offo_label, (unsigned char *)CmapA4_offo_mask,
  173.   CmapA4_offo_width, CmapA4_offo_height,
  174.   0.5, 0.5, 0, 0,            /* placement */
  175.   3, 2, 0, CmapA4_offo_breaks };
  176. #define CmapA4_offi_width 16
  177. #define CmapA4_offi_height 12
  178. static char CmapA4_offi_label[] = {
  179.   0x00, 0x00, 0x1f, 0x1f, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x3f, 0x3f,
  180.   0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x3f, 0x3f, 0x00, 0x00 };
  181. static char CmapA4_offi_mask[] = {
  182.   0xbf, 0x3f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0xff, 0xff,
  183.   0xff, 0xff, 0xf7, 0xf7, 0xf7, 0xf7, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f };
  184. static int CmapA4_offi_breaks[] = { 8, 16 };
  185. static ButtonLabel CmapA4_offi = {
  186.   (unsigned char *)CmapA4_offi_label, (unsigned char *)CmapA4_offi_mask,
  187.   CmapA4_offi_width, CmapA4_offi_height,
  188.   0.5, 0.5, 0, 0,            /* placement */
  189.   2, 2, 0, CmapA4_offi_breaks };
  190. static ButtonLook CmapA4_look = {
  191.   &CmapA4_offo, NULL, &CmapA4_offo, NULL,
  192.   &CmapA4_offi, NULL, &CmapA4_offi, NULL };
  193. static ButtonFeel CmapA4_feel = {
  194.   "CmapA4", 2,
  195.   { BTNOneShot, BTNCoWhile },
  196.   { 0x0004, 0x0004 },
  197.   { 0x0000, 0x0004 },
  198.   { 5, 512, 0, 0 } };
  199. /* HE button: CmapA5 */
  200. #define CmapA5_offo_width 19
  201. #define CmapA5_offo_height 12
  202. static char CmapA5_offo_label[] = {
  203.   0x00, 0x00, 0x00, 0x02, 0xf9, 0x03, 0x02, 0x09, 0x00, 0x02, 0x09, 0x00,
  204.   0x02, 0x09, 0x00, 0xfe, 0xf9, 0x01, 0x02, 0x09, 0x00, 0x02, 0x09, 0x00,
  205.   0x02, 0x09, 0x00, 0x02, 0x09, 0x00, 0x02, 0xf9, 0x03, 0x00, 0x00, 0x00 };
  206. static char CmapA5_offo_mask[] = {
  207.   0x87, 0xff, 0x07, 0x87, 0xff, 0x07, 0x87, 0xff, 0x07, 0x87, 0x1f, 0x00,
  208.   0xff, 0xff, 0x03, 0xff, 0xff, 0x03, 0xff, 0xff, 0x03, 0x87, 0x1f, 0x00,
  209.   0x87, 0x1f, 0x00, 0x87, 0xff, 0x07, 0x87, 0xff, 0x07, 0x87, 0xff, 0x07 };
  210. static int CmapA5_offo_breaks[] = { 10, 19 };
  211. static ButtonLabel CmapA5_offo = {
  212.   (unsigned char *)CmapA5_offo_label, (unsigned char *)CmapA5_offo_mask,
  213.   CmapA5_offo_width, CmapA5_offo_height,
  214.   0.5, 0.5, 0, 0,            /* placement */
  215.   3, 2, 0, CmapA5_offo_breaks };
  216. #define CmapA5_offi_width 17
  217. #define CmapA5_offi_height 12
  218. static char CmapA5_offi_label[] = {
  219.   0x00, 0x00, 0x00, 0xc3, 0xfe, 0x00, 0xc3, 0x06, 0x00, 0xc3, 0x06, 0x00,
  220.   0xc3, 0x06, 0x00, 0xff, 0x7e, 0x00, 0xc3, 0x06, 0x00, 0xc3, 0x06, 0x00,
  221.   0xc3, 0x06, 0x00, 0xc3, 0x06, 0x00, 0xc3, 0xfe, 0x00, 0x00, 0x00, 0x00 };
  222. static char CmapA5_offi_mask[] = {
  223.   0xe7, 0xff, 0x01, 0xe7, 0xff, 0x01, 0xe7, 0xff, 0x01, 0xe7, 0x0f, 0x00,
  224.   0xff, 0xff, 0x00, 0xff, 0xff, 0x00, 0xff, 0xff, 0x00, 0xe7, 0x0f, 0x00,
  225.   0xe7, 0x0f, 0x00, 0xe7, 0xff, 0x01, 0xe7, 0xff, 0x01, 0xe7, 0xff, 0x01 };
  226. static int CmapA5_offi_breaks[] = { 9, 17 };
  227. static ButtonLabel CmapA5_offi = {
  228.   (unsigned char *)CmapA5_offi_label, (unsigned char *)CmapA5_offi_mask,
  229.   CmapA5_offi_width, CmapA5_offi_height,
  230.   0.5, 0.5, 0, 0,            /* placement */
  231.   3, 2, 0, CmapA5_offi_breaks };
  232. static ButtonLook CmapA5_look = {
  233.   &CmapA5_offo, NULL, &CmapA5_offo, NULL,
  234.   &CmapA5_offi, NULL, &CmapA5_offi, NULL };
  235. static ButtonFeel CmapA5_feel = {
  236.   "CmapA5", 2,
  237.   { BTNOneShot, BTNCoWhile },
  238.   { 0x0004, 0x0004 },
  239.   { 0x0000, 0x0004 },
  240.   { 5, 768, 0, 0 } };
  241. /* I8 button: CmapA6 */
  242. #define CmapA6_offo_width 12
  243. #define CmapA6_offo_height 12
  244. static char CmapA6_offo_label[] = {
  245.   0x00, 0x00, 0xc2, 0x01, 0x22, 0x02, 0x22, 0x02, 0x22, 0x02, 0xc2, 0x01,
  246.   0x22, 0x02, 0x12, 0x04, 0x12, 0x04, 0x22, 0x02, 0xc2, 0x01, 0x00, 0x00 };
  247. static char CmapA6_offo_mask[] = {
  248.   0xe7, 0x03, 0xf7, 0x07, 0xf7, 0x07, 0x77, 0x07, 0xf7, 0x07, 0xf7, 0x07,
  249.   0xff, 0x0f, 0x7f, 0x0f, 0x7f, 0x0f, 0xff, 0x0f, 0xf7, 0x07, 0xe7, 0x03 };
  250. static int CmapA6_offo_breaks[] = { 3, 12 };
  251. static ButtonLabel CmapA6_offo = {
  252.   (unsigned char *)CmapA6_offo_label, (unsigned char *)CmapA6_offo_mask,
  253.   CmapA6_offo_width, CmapA6_offo_height,
  254.   0.5, 0.5, 0, 0,            /* placement */
  255.   2, 2, 0, CmapA6_offo_breaks };
  256. #define CmapA6_offi_width 12
  257. #define CmapA6_offi_height 12
  258. static char CmapA6_offi_label[] = {
  259.   0x00, 0x00, 0xe3, 0x03, 0x33, 0x06, 0x33, 0x06, 0x33, 0x06, 0xe3, 0x03,
  260.   0x33, 0x06, 0x33, 0x06, 0x33, 0x06, 0x33, 0x06, 0xe3, 0x03, 0x00, 0x00 };
  261. static char CmapA6_offi_mask[] = {
  262.   0xf7, 0x07, 0xff, 0x0f, 0xff, 0x0f, 0x7f, 0x0f, 0xff, 0x0f, 0xff, 0x0f,
  263.   0xff, 0x0f, 0x7f, 0x0f, 0x7f, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xf7, 0x07 };
  264. static int CmapA6_offi_breaks[] = { 3, 12 };
  265. static ButtonLabel CmapA6_offi = {
  266.   (unsigned char *)CmapA6_offi_label, (unsigned char *)CmapA6_offi_mask,
  267.   CmapA6_offi_width, CmapA6_offi_height,
  268.   0.5, 0.5, 0, 0,            /* placement */
  269.   2, 2, 0, CmapA6_offi_breaks };
  270. static ButtonLook CmapA6_look = {
  271.   &CmapA6_offo, NULL, &CmapA6_offo, NULL,
  272.   &CmapA6_offi, NULL, &CmapA6_offi, NULL };
  273. static ButtonFeel CmapA6_feel = {
  274.   "CmapA6", 2,
  275.   { BTNOneShot, BTNCoWhile },
  276.   { 0x0004, 0x0004 },
  277.   { 0x0000, 0x0004 },
  278.   { 5, 1024, 0, 0 } };
  279. /* A button: CmapA7 */
  280. #define CmapA7_offo_width 10
  281. #define CmapA7_offo_height 12
  282. static char CmapA7_offo_label[] = {
  283.   0x00, 0x00, 0x30, 0x00, 0x30, 0x00, 0x48, 0x00, 0x48, 0x00, 0x48, 0x00,
  284.   0x84, 0x00, 0xfc, 0x00, 0x84, 0x00, 0x02, 0x01, 0x02, 0x01, 0x00, 0x00 };
  285. static char CmapA7_offo_mask[] = {
  286.   0x78, 0x00, 0x78, 0x00, 0xfc, 0x00, 0xfc, 0x00, 0xfc, 0x00, 0xfe, 0x01,
  287.   0xfe, 0x01, 0xfe, 0x01, 0xff, 0x03, 0xcf, 0x03, 0x87, 0x03, 0x87, 0x03 };
  288. static int CmapA7_offo_breaks[] = { 10 };
  289. static ButtonLabel CmapA7_offo = {
  290.   (unsigned char *)CmapA7_offo_label, (unsigned char *)CmapA7_offo_mask,
  291.   CmapA7_offo_width, CmapA7_offo_height,
  292.   0.5, 0.5, 0, 0,            /* placement */
  293.   2, 1, 0, CmapA7_offo_breaks };
  294. #define CmapA7_offi_width 9
  295. #define CmapA7_offi_height 12
  296. static char CmapA7_offi_label[] = {
  297.   0x00, 0x00, 0x18, 0x00, 0x18, 0x00, 0x3c, 0x00, 0x3c, 0x00, 0x24, 0x00,
  298.   0x66, 0x00, 0x7e, 0x00, 0x66, 0x00, 0xc3, 0x00, 0xc3, 0x00, 0x00, 0x00 };
  299. static char CmapA7_offi_mask[] = {
  300.   0x3c, 0x00, 0x3c, 0x00, 0x7e, 0x00, 0x7e, 0x00, 0x7e, 0x00, 0xff, 0x00,
  301.   0xff, 0x00, 0xff, 0x00, 0xff, 0x01, 0xff, 0x01, 0xe7, 0x01, 0xe7, 0x01 };
  302. static int CmapA7_offi_breaks[] = { 9 };
  303. static ButtonLabel CmapA7_offi = {
  304.   (unsigned char *)CmapA7_offi_label, (unsigned char *)CmapA7_offi_mask,
  305.   CmapA7_offi_width, CmapA7_offi_height,
  306.   0.5, 0.5, 0, 0,            /* placement */
  307.   2, 1, 0, CmapA7_offi_breaks };
  308. static ButtonLook CmapA7_look = {
  309.   &CmapA7_offo, NULL, &CmapA7_offo, NULL,
  310.   &CmapA7_offi, NULL, &CmapA7_offi, NULL };
  311. static ButtonFeel CmapA7_feel = {
  312.   "CmapA7", 2,
  313.   { BTNOneShot, BTNCoWhile },
  314.   { 0x0004, 0x0004 },
  315.   { 0x0000, 0x0004 },
  316.   { 5, 1280, 0, 0 } };
  317. /* B button: CmapA8 */
  318. #define CmapA8_offo_width 9
  319. #define CmapA8_offo_height 12
  320. static char CmapA8_offo_label[] = {
  321.   0x00, 0x00, 0x7e, 0x00, 0x82, 0x00, 0x82, 0x00, 0x82, 0x00, 0x7e, 0x00,
  322.   0x82, 0x00, 0x82, 0x00, 0x82, 0x00, 0x82, 0x00, 0x7e, 0x00, 0x00, 0x00 };
  323. static char CmapA8_offo_mask[] = {
  324.   0xff, 0x00, 0xff, 0x01, 0xff, 0x01, 0xc7, 0x01, 0xff, 0x01, 0xff, 0x01,
  325.   0xff, 0x01, 0xc7, 0x01, 0xc7, 0x01, 0xff, 0x01, 0xff, 0x01, 0xff, 0x00 };
  326. static int CmapA8_offo_breaks[] = { 9 };
  327. static ButtonLabel CmapA8_offo = {
  328.   (unsigned char *)CmapA8_offo_label, (unsigned char *)CmapA8_offo_mask,
  329.   CmapA8_offo_width, CmapA8_offo_height,
  330.   0.5, 0.5, 0, 0,            /* placement */
  331.   2, 1, 0, CmapA8_offo_breaks };
  332. #define CmapA8_offi_width 8
  333. #define CmapA8_offi_height 12
  334. static char CmapA8_offi_label[] = {
  335.   0x00, 0x1f, 0x33, 0x33, 0x33, 0x3f, 0x63, 0x63, 0x63, 0x63, 0x3f, 0x00 };
  336. static char CmapA8_offi_mask[] = {
  337.   0x3f, 0x7f, 0x7f, 0x7f, 0x7f, 0xff, 0xff, 0xf7, 0xf7, 0xff, 0xff, 0x7f };
  338. static int CmapA8_offi_breaks[] = { 8 };
  339. static ButtonLabel CmapA8_offi = {
  340.   (unsigned char *)CmapA8_offi_label, (unsigned char *)CmapA8_offi_mask,
  341.   CmapA8_offi_width, CmapA8_offi_height,
  342.   0.5, 0.5, 0, 0,            /* placement */
  343.   1, 1, 0, CmapA8_offi_breaks };
  344. static ButtonLook CmapA8_look = {
  345.   &CmapA8_offo, NULL, &CmapA8_offo, NULL,
  346.   &CmapA8_offi, NULL, &CmapA8_offi, NULL };
  347. static ButtonFeel CmapA8_feel = {
  348.   "CmapA8", 2,
  349.   { BTNOneShot, BTNCoWhile },
  350.   { 0x0004, 0x0004 },
  351.   { 0x0000, 0x0004 },
  352.   { 5, 1536, 0, 0 } };
  353. static ButtonSpec CmapA[] = {
  354.   { &CmapA1_look, &CmapA1_feel },
  355.   { &CmapA2_look, &CmapA2_feel },
  356.   { &CmapA3_look, &CmapA3_feel },
  357.   { &CmapA4_look, &CmapA4_feel },
  358.   { &CmapA5_look, &CmapA5_feel },
  359.   { &CmapA6_look, &CmapA6_feel },
  360.   { &CmapA7_look, &CmapA7_feel },
  361.   { &CmapA8_look, &CmapA8_feel } };
  362. static BoxGeometry CmapA_geo = 
  363.   { 0, 8, 8, 1, 9.333000, 1.000000, 0.000000, 0.000000, 0, 1 };
  364.  
  365. void MakeCmapPanel ( box, parent, gc, visual, background )
  366.      BoxParent *parent;
  367.      ButtonBox box[1];
  368.      GC gc;
  369.      Visual *visual;
  370.      unsigned long background;
  371. {
  372.   box[0] = MakeButtonBox(&parent[1], gc, visual, background,
  373.              &CmapA_geo, CmapA, 0);
  374. }
  375.