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

  1.  
  2.  
  3. /* dith1 button: MonoA1 */
  4. #define MonoA1_offo_width 34
  5. #define MonoA1_offo_height 12
  6. static char MonoA1_offo_label[] = {
  7.   0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x02, 0x04, 0x40, 0x00, 0x40, 0x22,
  8.   0x04, 0x60, 0x00, 0x40, 0x20, 0x04, 0x58, 0x00, 0x58, 0xf2, 0x74, 0x40,
  9.   0x00, 0x64, 0x22, 0x8c, 0x40, 0x00, 0x42, 0x22, 0x84, 0x40, 0x00, 0x42,
  10.   0x22, 0x84, 0x40, 0x00, 0x42, 0x22, 0x84, 0x40, 0x00, 0x64, 0x22, 0x84,
  11.   0x40, 0x00, 0x58, 0xc2, 0x84, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
  12. static char MonoA1_offo_mask[] = {
  13.   0xe0, 0x07, 0x0e, 0xe0, 0x00, 0xe0, 0x77, 0x0e, 0xf0, 0x00, 0xe0, 0x77,
  14.   0x0e, 0xfc, 0x00, 0xfc, 0xff, 0xff, 0xfc, 0x00, 0xfe, 0xff, 0xff, 0xfd,
  15.   0x00, 0xff, 0xff, 0xff, 0xe1, 0x00, 0xff, 0x77, 0xde, 0xe1, 0x00, 0xe7,
  16.   0x77, 0xce, 0xe1, 0x00, 0xff, 0x77, 0xce, 0xe1, 0x00, 0xff, 0xf7, 0xcf,
  17.   0xe1, 0x00, 0xfe, 0xf7, 0xcf, 0xe1, 0x00, 0xfc, 0xe7, 0xcf, 0xe1, 0x00 };
  18. static int MonoA1_offo_breaks[] = { 8, 11, 17, 25, 34 };
  19. static ButtonLabel MonoA1_offo = {
  20.   (unsigned char *)MonoA1_offo_label, (unsigned char *)MonoA1_offo_mask,
  21.   MonoA1_offo_width, MonoA1_offo_height,
  22.   0.5, 0.5, 0, 0,            /* placement */
  23.   5, 5, 0, MonoA1_offo_breaks };
  24. #define MonoA1_offi_width 34
  25. #define MonoA1_offi_height 12
  26. static char MonoA1_offi_label[] = {
  27.   0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x03, 0x06, 0xc0, 0x00, 0x60, 0x33,
  28.   0x06, 0xe0, 0x00, 0x60, 0x30, 0x06, 0xf8, 0x00, 0x7e, 0xfb, 0x7e, 0xc0,
  29.   0x00, 0x63, 0x33, 0xc6, 0xc0, 0x00, 0x63, 0x33, 0xc6, 0xc0, 0x00, 0x63,
  30.   0x33, 0xc6, 0xc0, 0x00, 0x63, 0x33, 0xc6, 0xc0, 0x00, 0x63, 0x33, 0xc6,
  31.   0xc0, 0x00, 0x7e, 0xe3, 0xc6, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
  32. static char MonoA1_offi_mask[] = {
  33.   0xf0, 0x07, 0x0f, 0xe0, 0x01, 0xf0, 0x7f, 0x0f, 0xf0, 0x01, 0xf0, 0x7f,
  34.   0x0f, 0xfc, 0x01, 0xff, 0xff, 0xff, 0xfc, 0x01, 0xff, 0xff, 0xff, 0xfd,
  35.   0x01, 0xff, 0xff, 0xff, 0xe1, 0x01, 0xf7, 0x7f, 0xef, 0xe1, 0x01, 0xf7,
  36.   0x7f, 0xef, 0xe1, 0x01, 0xf7, 0x7f, 0xef, 0xe1, 0x01, 0xff, 0xff, 0xef,
  37.   0xe1, 0x01, 0xff, 0xff, 0xef, 0xe1, 0x01, 0xff, 0xf7, 0xef, 0xe1, 0x01 };
  38. static int MonoA1_offi_breaks[] = { 8, 11, 17, 25, 34 };
  39. static ButtonLabel MonoA1_offi = {
  40.   (unsigned char *)MonoA1_offi_label, (unsigned char *)MonoA1_offi_mask,
  41.   MonoA1_offi_width, MonoA1_offi_height,
  42.   0.5, 0.5, 0, 0,            /* placement */
  43.   5, 5, 0, MonoA1_offi_breaks };
  44. static ButtonLook MonoA1_look = {
  45.   &MonoA1_offo, NULL, &MonoA1_offo, NULL,
  46.   &MonoA1_offi, NULL, &MonoA1_offi, NULL };
  47. static ButtonFeel MonoA1_feel = {
  48.   "MonoA1", 2,
  49.   { BTNCoMode, BTNCoWhile },
  50.   { 0x0004, 0x0004 },
  51.   { 0x0000, 0x0004 },
  52.   { 1, 256, 0, 0 } };
  53. /* dith2 button: MonoA2 */
  54. #define MonoA2_offo_width 34
  55. #define MonoA2_offo_height 12
  56. static char MonoA2_offo_label[] = {
  57.   0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x02, 0x04, 0xf0, 0x00, 0x40, 0x22,
  58.   0x04, 0x08, 0x01, 0x40, 0x20, 0x04, 0x08, 0x01, 0x58, 0xf2, 0x74, 0x00,
  59.   0x01, 0x64, 0x22, 0x8c, 0x80, 0x00, 0x42, 0x22, 0x84, 0x40, 0x00, 0x42,
  60.   0x22, 0x84, 0x20, 0x00, 0x42, 0x22, 0x84, 0x10, 0x00, 0x64, 0x22, 0x84,
  61.   0x08, 0x00, 0x58, 0xc2, 0x84, 0xfc, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00 };
  62. static char MonoA2_offo_mask[] = {
  63.   0xe0, 0x07, 0x0e, 0xf8, 0x01, 0xe0, 0x77, 0x0e, 0xfc, 0x03, 0xe0, 0x77,
  64.   0x0e, 0xfc, 0x03, 0xfc, 0xff, 0xff, 0x9c, 0x03, 0xfe, 0xff, 0xff, 0xdd,
  65.   0x03, 0xff, 0xff, 0xff, 0xe1, 0x03, 0xff, 0x77, 0xde, 0xf1, 0x01, 0xe7,
  66.   0x77, 0xce, 0xf9, 0x00, 0xff, 0x77, 0xce, 0x7d, 0x00, 0xff, 0xf7, 0xcf,
  67.   0xff, 0x03, 0xfe, 0xf7, 0xcf, 0xff, 0x03, 0xfc, 0xe7, 0xcf, 0xff, 0x03 };
  68. static int MonoA2_offo_breaks[] = { 8, 11, 17, 25, 34 };
  69. static ButtonLabel MonoA2_offo = {
  70.   (unsigned char *)MonoA2_offo_label, (unsigned char *)MonoA2_offo_mask,
  71.   MonoA2_offo_width, MonoA2_offo_height,
  72.   0.5, 0.5, 0, 0,            /* placement */
  73.   5, 5, 0, MonoA2_offo_breaks };
  74. #define MonoA2_offi_width 34
  75. #define MonoA2_offi_height 12
  76. static char MonoA2_offi_label[] = {
  77.   0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x03, 0x06, 0xf8, 0x00, 0x60, 0x33,
  78.   0x06, 0x8c, 0x01, 0x60, 0x30, 0x06, 0x8c, 0x01, 0x7e, 0xfb, 0x7e, 0x80,
  79.   0x01, 0x63, 0x33, 0xc6, 0xc0, 0x00, 0x63, 0x33, 0xc6, 0x60, 0x00, 0x63,
  80.   0x33, 0xc6, 0x30, 0x00, 0x63, 0x33, 0xc6, 0x18, 0x00, 0x63, 0x33, 0xc6,
  81.   0x0c, 0x00, 0x7e, 0xe3, 0xc6, 0xfc, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00 };
  82. static char MonoA2_offi_mask[] = {
  83.   0xf0, 0x07, 0x0f, 0xfc, 0x01, 0xf0, 0x7f, 0x0f, 0xfe, 0x03, 0xf0, 0x7f,
  84.   0x0f, 0xfe, 0x03, 0xff, 0xff, 0xff, 0xde, 0x03, 0xff, 0xff, 0xff, 0xff,
  85.   0x03, 0xff, 0xff, 0xff, 0xf1, 0x03, 0xf7, 0x7f, 0xef, 0xf9, 0x01, 0xf7,
  86.   0x7f, 0xef, 0xfd, 0x00, 0xf7, 0x7f, 0xef, 0x7f, 0x00, 0xff, 0xff, 0xef,
  87.   0xff, 0x03, 0xff, 0xff, 0xef, 0xff, 0x03, 0xff, 0xf7, 0xef, 0xff, 0x03 };
  88. static int MonoA2_offi_breaks[] = { 8, 11, 17, 25, 34 };
  89. static ButtonLabel MonoA2_offi = {
  90.   (unsigned char *)MonoA2_offi_label, (unsigned char *)MonoA2_offi_mask,
  91.   MonoA2_offi_width, MonoA2_offi_height,
  92.   0.5, 0.5, 0, 0,            /* placement */
  93.   5, 5, 0, MonoA2_offi_breaks };
  94. static ButtonLook MonoA2_look = {
  95.   &MonoA2_offo, NULL, &MonoA2_offo, NULL,
  96.   &MonoA2_offi, NULL, &MonoA2_offi, NULL };
  97. static ButtonFeel MonoA2_feel = {
  98.   "MonoA2", 2,
  99.   { BTNCoMode, BTNCoWhile },
  100.   { 0x0004, 0x0004 },
  101.   { 0x0000, 0x0004 },
  102.   { 1, 512, 0, 0 } };
  103. /* diffuse button: MonoA3 */
  104. #define MonoA3_offo_width 47
  105. #define MonoA3_offo_height 12
  106. static char MonoA3_offo_label[] = {
  107.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0xc2, 0x30, 0x00, 0x00, 0x00,
  108.   0x40, 0x22, 0x08, 0x00, 0x00, 0x00, 0x40, 0x20, 0x08, 0x00, 0x00, 0x00,
  109.   0x58, 0xf2, 0x3c, 0x21, 0x1e, 0x0c, 0x64, 0x22, 0x08, 0x21, 0x21, 0x12,
  110.   0x42, 0x22, 0x08, 0x21, 0x01, 0x21, 0x42, 0x22, 0x08, 0x21, 0x1e, 0x3f,
  111.   0x42, 0x22, 0x08, 0x21, 0x20, 0x01, 0x64, 0x22, 0x08, 0x31, 0x21, 0x22,
  112.   0x58, 0x22, 0x08, 0x2e, 0x1e, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
  113. static char MonoA3_offo_mask[] = {
  114.   0xe0, 0xe7, 0x79, 0x00, 0x00, 0x00, 0xe0, 0xf7, 0x7d, 0x00, 0x00, 0x00,
  115.   0xe0, 0xf7, 0x7d, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0x73, 0x3f, 0x1e,
  116.   0xfe, 0xff, 0xff, 0xf3, 0x7f, 0x3f, 0xff, 0xff, 0xff, 0xf3, 0xff, 0x7f,
  117.   0xff, 0x77, 0x9c, 0xf3, 0xff, 0x7f, 0xe7, 0x77, 0x9c, 0xf3, 0xff, 0x7f,
  118.   0xff, 0x77, 0x9c, 0xfb, 0xff, 0x7f, 0xff, 0x77, 0x9c, 0xff, 0xff, 0x7f,
  119.   0xfe, 0x77, 0x9c, 0xff, 0x7f, 0x7f, 0xfc, 0x77, 0x1c, 0x7f, 0x3f, 0x3e };
  120. static int MonoA3_offo_breaks[] = { 8, 11, 17, 23, 31, 39, 47 };
  121. static ButtonLabel MonoA3_offo = {
  122.   (unsigned char *)MonoA3_offo_label, (unsigned char *)MonoA3_offo_mask,
  123.   MonoA3_offo_width, MonoA3_offo_height,
  124.   0.5, 0.5, 0, 0,            /* placement */
  125.   6, 7, 0, MonoA3_offo_breaks };
  126. #define MonoA3_offi_width 46
  127. #define MonoA3_offi_height 12
  128. static char MonoA3_offi_label[] = {
  129.   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xe3, 0x38, 0x00, 0x00, 0x00,
  130.   0x60, 0x33, 0x0c, 0x00, 0x00, 0x00, 0x60, 0x30, 0x0c, 0x00, 0x00, 0x00,
  131.   0x7e, 0xfb, 0xbe, 0x31, 0x8f, 0x0f, 0x63, 0x33, 0x8c, 0xb1, 0xd9, 0x18,
  132.   0x63, 0x33, 0x8c, 0xb1, 0xc3, 0x18, 0x63, 0x33, 0x8c, 0x31, 0xcf, 0x1f,
  133.   0x63, 0x33, 0x8c, 0x31, 0xdc, 0x00, 0x63, 0x33, 0x8c, 0xb1, 0xd9, 0x18,
  134.   0x7e, 0x33, 0x0c, 0x3f, 0x8f, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
  135. static char MonoA3_offi_mask[] = {
  136.   0xf0, 0xf7, 0x7d, 0x00, 0x00, 0x00, 0xf0, 0xff, 0x7f, 0x00, 0x00, 0x00,
  137.   0xf0, 0xff, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xfb, 0xdf, 0x1f,
  138.   0xff, 0xff, 0xff, 0xfb, 0xff, 0x3f, 0xff, 0xff, 0xff, 0xfb, 0xff, 0x3f,
  139.   0xf7, 0x7f, 0xde, 0xfb, 0xff, 0x3f, 0xf7, 0x7f, 0xde, 0xfb, 0xff, 0x3f,
  140.   0xf7, 0x7f, 0xde, 0xfb, 0xff, 0x3f, 0xff, 0x7f, 0xde, 0xff, 0xff, 0x3f,
  141.   0xff, 0x7f, 0xde, 0xff, 0xff, 0x3f, 0xff, 0x7f, 0x9e, 0xff, 0xdf, 0x1f };
  142. static int MonoA3_offi_breaks[] = { 8, 11, 17, 23, 31, 38, 46 };
  143. static ButtonLabel MonoA3_offi = {
  144.   (unsigned char *)MonoA3_offi_label, (unsigned char *)MonoA3_offi_mask,
  145.   MonoA3_offi_width, MonoA3_offi_height,
  146.   0.5, 0.5, 0, 0,            /* placement */
  147.   6, 7, 0, MonoA3_offi_breaks };
  148. static ButtonLook MonoA3_look = {
  149.   &MonoA3_offo, NULL, &MonoA3_offo, NULL,
  150.   &MonoA3_offi, NULL, &MonoA3_offi, NULL };
  151. static ButtonFeel MonoA3_feel = {
  152.   "MonoA3", 2,
  153.   { BTNCoMode, BTNCoWhile },
  154.   { 0x0004, 0x0004 },
  155.   { 0x0000, 0x0004 },
  156.   { 1, 32, 0, 0 } };
  157. /* invert button: MonoA4 */
  158. #define MonoA4_offo_width 40
  159. #define MonoA4_offo_height 12
  160. static char MonoA4_offo_label[] = {
  161.   0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,
  162.   0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0xd2, 0x11, 0x84, 0xa1,
  163.   0x79, 0x32, 0x12, 0x44, 0x62, 0x10, 0x12, 0x22, 0x22, 0x24, 0x10, 0x12,
  164.   0x22, 0xe2, 0x27, 0x10, 0x12, 0x42, 0x21, 0x20, 0x10, 0x12, 0x42, 0x41,
  165.   0x24, 0x10, 0x12, 0x82, 0x80, 0x23, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00 };
  166. static char MonoA4_offo_mask[] = {
  167.   0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x38, 0x07, 0x00,
  168.   0x00, 0x00, 0x38, 0xff, 0x3b, 0xce, 0xf3, 0xff, 0xff, 0x3f, 0xee, 0xf7,
  169.   0xff, 0xff, 0x7f, 0xff, 0xff, 0xff, 0x7f, 0x7f, 0xff, 0xff, 0x38, 0x3f,
  170.   0xf7, 0xf7, 0x7f, 0x38, 0x3f, 0xf7, 0xf7, 0x7f, 0x38, 0x3f, 0xe7, 0xf3,
  171.   0x7f, 0xf8, 0x3f, 0xe7, 0xe3, 0x7f, 0xf8, 0x3f, 0xc7, 0xc1, 0x77, 0xf0 };
  172. static int MonoA4_offo_breaks[] = { 3, 11, 20, 28, 34, 40 };
  173. static ButtonLabel MonoA4_offo = {
  174.   (unsigned char *)MonoA4_offo_label, (unsigned char *)MonoA4_offo_mask,
  175.   MonoA4_offo_width, MonoA4_offo_height,
  176.   0.5, 0.5, 0, 0,            /* placement */
  177.   5, 6, 0, MonoA4_offo_breaks };
  178. #define MonoA4_offi_width 40
  179. #define MonoA4_offi_height 12
  180. static char MonoA4_offi_label[] = {
  181.   0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00,
  182.   0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x18, 0xfb, 0x19, 0xe6, 0xf3,
  183.   0x7d, 0x1b, 0x1b, 0x36, 0xb6, 0x19, 0x1b, 0x33, 0x33, 0x36, 0x18, 0x1b,
  184.   0x33, 0xf3, 0x37, 0x18, 0x1b, 0x23, 0x31, 0x30, 0x18, 0x1b, 0xe3, 0x31,
  185.   0x36, 0x18, 0x1b, 0xc3, 0xe0, 0x33, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00 };
  186. static char MonoA4_offi_mask[] = {
  187.   0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x3c, 0x07, 0x00,
  188.   0x00, 0x00, 0x3c, 0xff, 0x3f, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xff, 0xff,
  189.   0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xff, 0xff, 0xff, 0x3f, 0xbf,
  190.   0xff, 0xff, 0x7f, 0x3c, 0xbf, 0xff, 0xff, 0x7f, 0x3c, 0xbf, 0xf7, 0xfb,
  191.   0x7f, 0xfc, 0xbf, 0xf7, 0xfb, 0x7f, 0xfc, 0xbf, 0xe7, 0xf1, 0x7f, 0xf8 };
  192. static int MonoA4_offi_breaks[] = { 3, 11, 20, 28, 34, 40 };
  193. static ButtonLabel MonoA4_offi = {
  194.   (unsigned char *)MonoA4_offi_label, (unsigned char *)MonoA4_offi_mask,
  195.   MonoA4_offi_width, MonoA4_offi_height,
  196.   0.5, 0.5, 0, 0,            /* placement */
  197.   5, 6, 0, MonoA4_offi_breaks };
  198. static ButtonLook MonoA4_look = {
  199.   &MonoA4_offo, NULL, &MonoA4_offo, NULL,
  200.   &MonoA4_offi, NULL, &MonoA4_offi, NULL };
  201. static ButtonFeel MonoA4_feel = {
  202.   "MonoA4", 2,
  203.   { BTNToggle, BTNCoWhile },
  204.   { 0x0004, 0x0004 },
  205.   { 0x0000, 0x0004 },
  206.   { 1, 128, 0, 0 } };
  207. static ButtonSpec MonoA[] = {
  208.   { &MonoA1_look, &MonoA1_feel },
  209.   { &MonoA2_look, &MonoA2_feel },
  210.   { &MonoA3_look, &MonoA3_feel },
  211.   { &MonoA4_look, &MonoA4_feel } };
  212. static BoxGeometry MonoA_geo = 
  213.   { 0, 4, 4, 1, 4.000000, 1.000000, 0.000000, 0.000000, 0, 1 };
  214.  
  215. void MakeMonoPanel ( box, parent, gc, visual, background )
  216.      BoxParent *parent;
  217.      ButtonBox box[1];
  218.      GC gc;
  219.      Visual *visual;
  220.      unsigned long background;
  221. {
  222.   box[0] = MakeButtonBox(&parent[3], gc, visual, background,
  223.              &MonoA_geo, MonoA, 0);
  224. }
  225.