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 >
Wrap
Text File
|
1991-01-02
|
11KB
|
225 lines
/* dith1 button: MonoA1 */
#define MonoA1_offo_width 34
#define MonoA1_offo_height 12
static char MonoA1_offo_label[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x02, 0x04, 0x40, 0x00, 0x40, 0x22,
0x04, 0x60, 0x00, 0x40, 0x20, 0x04, 0x58, 0x00, 0x58, 0xf2, 0x74, 0x40,
0x00, 0x64, 0x22, 0x8c, 0x40, 0x00, 0x42, 0x22, 0x84, 0x40, 0x00, 0x42,
0x22, 0x84, 0x40, 0x00, 0x42, 0x22, 0x84, 0x40, 0x00, 0x64, 0x22, 0x84,
0x40, 0x00, 0x58, 0xc2, 0x84, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static char MonoA1_offo_mask[] = {
0xe0, 0x07, 0x0e, 0xe0, 0x00, 0xe0, 0x77, 0x0e, 0xf0, 0x00, 0xe0, 0x77,
0x0e, 0xfc, 0x00, 0xfc, 0xff, 0xff, 0xfc, 0x00, 0xfe, 0xff, 0xff, 0xfd,
0x00, 0xff, 0xff, 0xff, 0xe1, 0x00, 0xff, 0x77, 0xde, 0xe1, 0x00, 0xe7,
0x77, 0xce, 0xe1, 0x00, 0xff, 0x77, 0xce, 0xe1, 0x00, 0xff, 0xf7, 0xcf,
0xe1, 0x00, 0xfe, 0xf7, 0xcf, 0xe1, 0x00, 0xfc, 0xe7, 0xcf, 0xe1, 0x00 };
static int MonoA1_offo_breaks[] = { 8, 11, 17, 25, 34 };
static ButtonLabel MonoA1_offo = {
(unsigned char *)MonoA1_offo_label, (unsigned char *)MonoA1_offo_mask,
MonoA1_offo_width, MonoA1_offo_height,
0.5, 0.5, 0, 0, /* placement */
5, 5, 0, MonoA1_offo_breaks };
#define MonoA1_offi_width 34
#define MonoA1_offi_height 12
static char MonoA1_offi_label[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x03, 0x06, 0xc0, 0x00, 0x60, 0x33,
0x06, 0xe0, 0x00, 0x60, 0x30, 0x06, 0xf8, 0x00, 0x7e, 0xfb, 0x7e, 0xc0,
0x00, 0x63, 0x33, 0xc6, 0xc0, 0x00, 0x63, 0x33, 0xc6, 0xc0, 0x00, 0x63,
0x33, 0xc6, 0xc0, 0x00, 0x63, 0x33, 0xc6, 0xc0, 0x00, 0x63, 0x33, 0xc6,
0xc0, 0x00, 0x7e, 0xe3, 0xc6, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static char MonoA1_offi_mask[] = {
0xf0, 0x07, 0x0f, 0xe0, 0x01, 0xf0, 0x7f, 0x0f, 0xf0, 0x01, 0xf0, 0x7f,
0x0f, 0xfc, 0x01, 0xff, 0xff, 0xff, 0xfc, 0x01, 0xff, 0xff, 0xff, 0xfd,
0x01, 0xff, 0xff, 0xff, 0xe1, 0x01, 0xf7, 0x7f, 0xef, 0xe1, 0x01, 0xf7,
0x7f, 0xef, 0xe1, 0x01, 0xf7, 0x7f, 0xef, 0xe1, 0x01, 0xff, 0xff, 0xef,
0xe1, 0x01, 0xff, 0xff, 0xef, 0xe1, 0x01, 0xff, 0xf7, 0xef, 0xe1, 0x01 };
static int MonoA1_offi_breaks[] = { 8, 11, 17, 25, 34 };
static ButtonLabel MonoA1_offi = {
(unsigned char *)MonoA1_offi_label, (unsigned char *)MonoA1_offi_mask,
MonoA1_offi_width, MonoA1_offi_height,
0.5, 0.5, 0, 0, /* placement */
5, 5, 0, MonoA1_offi_breaks };
static ButtonLook MonoA1_look = {
&MonoA1_offo, NULL, &MonoA1_offo, NULL,
&MonoA1_offi, NULL, &MonoA1_offi, NULL };
static ButtonFeel MonoA1_feel = {
"MonoA1", 2,
{ BTNCoMode, BTNCoWhile },
{ 0x0004, 0x0004 },
{ 0x0000, 0x0004 },
{ 1, 256, 0, 0 } };
/* dith2 button: MonoA2 */
#define MonoA2_offo_width 34
#define MonoA2_offo_height 12
static char MonoA2_offo_label[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x02, 0x04, 0xf0, 0x00, 0x40, 0x22,
0x04, 0x08, 0x01, 0x40, 0x20, 0x04, 0x08, 0x01, 0x58, 0xf2, 0x74, 0x00,
0x01, 0x64, 0x22, 0x8c, 0x80, 0x00, 0x42, 0x22, 0x84, 0x40, 0x00, 0x42,
0x22, 0x84, 0x20, 0x00, 0x42, 0x22, 0x84, 0x10, 0x00, 0x64, 0x22, 0x84,
0x08, 0x00, 0x58, 0xc2, 0x84, 0xfc, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00 };
static char MonoA2_offo_mask[] = {
0xe0, 0x07, 0x0e, 0xf8, 0x01, 0xe0, 0x77, 0x0e, 0xfc, 0x03, 0xe0, 0x77,
0x0e, 0xfc, 0x03, 0xfc, 0xff, 0xff, 0x9c, 0x03, 0xfe, 0xff, 0xff, 0xdd,
0x03, 0xff, 0xff, 0xff, 0xe1, 0x03, 0xff, 0x77, 0xde, 0xf1, 0x01, 0xe7,
0x77, 0xce, 0xf9, 0x00, 0xff, 0x77, 0xce, 0x7d, 0x00, 0xff, 0xf7, 0xcf,
0xff, 0x03, 0xfe, 0xf7, 0xcf, 0xff, 0x03, 0xfc, 0xe7, 0xcf, 0xff, 0x03 };
static int MonoA2_offo_breaks[] = { 8, 11, 17, 25, 34 };
static ButtonLabel MonoA2_offo = {
(unsigned char *)MonoA2_offo_label, (unsigned char *)MonoA2_offo_mask,
MonoA2_offo_width, MonoA2_offo_height,
0.5, 0.5, 0, 0, /* placement */
5, 5, 0, MonoA2_offo_breaks };
#define MonoA2_offi_width 34
#define MonoA2_offi_height 12
static char MonoA2_offi_label[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x03, 0x06, 0xf8, 0x00, 0x60, 0x33,
0x06, 0x8c, 0x01, 0x60, 0x30, 0x06, 0x8c, 0x01, 0x7e, 0xfb, 0x7e, 0x80,
0x01, 0x63, 0x33, 0xc6, 0xc0, 0x00, 0x63, 0x33, 0xc6, 0x60, 0x00, 0x63,
0x33, 0xc6, 0x30, 0x00, 0x63, 0x33, 0xc6, 0x18, 0x00, 0x63, 0x33, 0xc6,
0x0c, 0x00, 0x7e, 0xe3, 0xc6, 0xfc, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00 };
static char MonoA2_offi_mask[] = {
0xf0, 0x07, 0x0f, 0xfc, 0x01, 0xf0, 0x7f, 0x0f, 0xfe, 0x03, 0xf0, 0x7f,
0x0f, 0xfe, 0x03, 0xff, 0xff, 0xff, 0xde, 0x03, 0xff, 0xff, 0xff, 0xff,
0x03, 0xff, 0xff, 0xff, 0xf1, 0x03, 0xf7, 0x7f, 0xef, 0xf9, 0x01, 0xf7,
0x7f, 0xef, 0xfd, 0x00, 0xf7, 0x7f, 0xef, 0x7f, 0x00, 0xff, 0xff, 0xef,
0xff, 0x03, 0xff, 0xff, 0xef, 0xff, 0x03, 0xff, 0xf7, 0xef, 0xff, 0x03 };
static int MonoA2_offi_breaks[] = { 8, 11, 17, 25, 34 };
static ButtonLabel MonoA2_offi = {
(unsigned char *)MonoA2_offi_label, (unsigned char *)MonoA2_offi_mask,
MonoA2_offi_width, MonoA2_offi_height,
0.5, 0.5, 0, 0, /* placement */
5, 5, 0, MonoA2_offi_breaks };
static ButtonLook MonoA2_look = {
&MonoA2_offo, NULL, &MonoA2_offo, NULL,
&MonoA2_offi, NULL, &MonoA2_offi, NULL };
static ButtonFeel MonoA2_feel = {
"MonoA2", 2,
{ BTNCoMode, BTNCoWhile },
{ 0x0004, 0x0004 },
{ 0x0000, 0x0004 },
{ 1, 512, 0, 0 } };
/* diffuse button: MonoA3 */
#define MonoA3_offo_width 47
#define MonoA3_offo_height 12
static char MonoA3_offo_label[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0xc2, 0x30, 0x00, 0x00, 0x00,
0x40, 0x22, 0x08, 0x00, 0x00, 0x00, 0x40, 0x20, 0x08, 0x00, 0x00, 0x00,
0x58, 0xf2, 0x3c, 0x21, 0x1e, 0x0c, 0x64, 0x22, 0x08, 0x21, 0x21, 0x12,
0x42, 0x22, 0x08, 0x21, 0x01, 0x21, 0x42, 0x22, 0x08, 0x21, 0x1e, 0x3f,
0x42, 0x22, 0x08, 0x21, 0x20, 0x01, 0x64, 0x22, 0x08, 0x31, 0x21, 0x22,
0x58, 0x22, 0x08, 0x2e, 0x1e, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static char MonoA3_offo_mask[] = {
0xe0, 0xe7, 0x79, 0x00, 0x00, 0x00, 0xe0, 0xf7, 0x7d, 0x00, 0x00, 0x00,
0xe0, 0xf7, 0x7d, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0x73, 0x3f, 0x1e,
0xfe, 0xff, 0xff, 0xf3, 0x7f, 0x3f, 0xff, 0xff, 0xff, 0xf3, 0xff, 0x7f,
0xff, 0x77, 0x9c, 0xf3, 0xff, 0x7f, 0xe7, 0x77, 0x9c, 0xf3, 0xff, 0x7f,
0xff, 0x77, 0x9c, 0xfb, 0xff, 0x7f, 0xff, 0x77, 0x9c, 0xff, 0xff, 0x7f,
0xfe, 0x77, 0x9c, 0xff, 0x7f, 0x7f, 0xfc, 0x77, 0x1c, 0x7f, 0x3f, 0x3e };
static int MonoA3_offo_breaks[] = { 8, 11, 17, 23, 31, 39, 47 };
static ButtonLabel MonoA3_offo = {
(unsigned char *)MonoA3_offo_label, (unsigned char *)MonoA3_offo_mask,
MonoA3_offo_width, MonoA3_offo_height,
0.5, 0.5, 0, 0, /* placement */
6, 7, 0, MonoA3_offo_breaks };
#define MonoA3_offi_width 46
#define MonoA3_offi_height 12
static char MonoA3_offi_label[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xe3, 0x38, 0x00, 0x00, 0x00,
0x60, 0x33, 0x0c, 0x00, 0x00, 0x00, 0x60, 0x30, 0x0c, 0x00, 0x00, 0x00,
0x7e, 0xfb, 0xbe, 0x31, 0x8f, 0x0f, 0x63, 0x33, 0x8c, 0xb1, 0xd9, 0x18,
0x63, 0x33, 0x8c, 0xb1, 0xc3, 0x18, 0x63, 0x33, 0x8c, 0x31, 0xcf, 0x1f,
0x63, 0x33, 0x8c, 0x31, 0xdc, 0x00, 0x63, 0x33, 0x8c, 0xb1, 0xd9, 0x18,
0x7e, 0x33, 0x0c, 0x3f, 0x8f, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
static char MonoA3_offi_mask[] = {
0xf0, 0xf7, 0x7d, 0x00, 0x00, 0x00, 0xf0, 0xff, 0x7f, 0x00, 0x00, 0x00,
0xf0, 0xff, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xfb, 0xdf, 0x1f,
0xff, 0xff, 0xff, 0xfb, 0xff, 0x3f, 0xff, 0xff, 0xff, 0xfb, 0xff, 0x3f,
0xf7, 0x7f, 0xde, 0xfb, 0xff, 0x3f, 0xf7, 0x7f, 0xde, 0xfb, 0xff, 0x3f,
0xf7, 0x7f, 0xde, 0xfb, 0xff, 0x3f, 0xff, 0x7f, 0xde, 0xff, 0xff, 0x3f,
0xff, 0x7f, 0xde, 0xff, 0xff, 0x3f, 0xff, 0x7f, 0x9e, 0xff, 0xdf, 0x1f };
static int MonoA3_offi_breaks[] = { 8, 11, 17, 23, 31, 38, 46 };
static ButtonLabel MonoA3_offi = {
(unsigned char *)MonoA3_offi_label, (unsigned char *)MonoA3_offi_mask,
MonoA3_offi_width, MonoA3_offi_height,
0.5, 0.5, 0, 0, /* placement */
6, 7, 0, MonoA3_offi_breaks };
static ButtonLook MonoA3_look = {
&MonoA3_offo, NULL, &MonoA3_offo, NULL,
&MonoA3_offi, NULL, &MonoA3_offi, NULL };
static ButtonFeel MonoA3_feel = {
"MonoA3", 2,
{ BTNCoMode, BTNCoWhile },
{ 0x0004, 0x0004 },
{ 0x0000, 0x0004 },
{ 1, 32, 0, 0 } };
/* invert button: MonoA4 */
#define MonoA4_offo_width 40
#define MonoA4_offo_height 12
static char MonoA4_offo_label[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,
0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0xd2, 0x11, 0x84, 0xa1,
0x79, 0x32, 0x12, 0x44, 0x62, 0x10, 0x12, 0x22, 0x22, 0x24, 0x10, 0x12,
0x22, 0xe2, 0x27, 0x10, 0x12, 0x42, 0x21, 0x20, 0x10, 0x12, 0x42, 0x41,
0x24, 0x10, 0x12, 0x82, 0x80, 0x23, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00 };
static char MonoA4_offo_mask[] = {
0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x38, 0x07, 0x00,
0x00, 0x00, 0x38, 0xff, 0x3b, 0xce, 0xf3, 0xff, 0xff, 0x3f, 0xee, 0xf7,
0xff, 0xff, 0x7f, 0xff, 0xff, 0xff, 0x7f, 0x7f, 0xff, 0xff, 0x38, 0x3f,
0xf7, 0xf7, 0x7f, 0x38, 0x3f, 0xf7, 0xf7, 0x7f, 0x38, 0x3f, 0xe7, 0xf3,
0x7f, 0xf8, 0x3f, 0xe7, 0xe3, 0x7f, 0xf8, 0x3f, 0xc7, 0xc1, 0x77, 0xf0 };
static int MonoA4_offo_breaks[] = { 3, 11, 20, 28, 34, 40 };
static ButtonLabel MonoA4_offo = {
(unsigned char *)MonoA4_offo_label, (unsigned char *)MonoA4_offo_mask,
MonoA4_offo_width, MonoA4_offo_height,
0.5, 0.5, 0, 0, /* placement */
5, 6, 0, MonoA4_offo_breaks };
#define MonoA4_offi_width 40
#define MonoA4_offi_height 12
static char MonoA4_offi_label[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00,
0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x18, 0xfb, 0x19, 0xe6, 0xf3,
0x7d, 0x1b, 0x1b, 0x36, 0xb6, 0x19, 0x1b, 0x33, 0x33, 0x36, 0x18, 0x1b,
0x33, 0xf3, 0x37, 0x18, 0x1b, 0x23, 0x31, 0x30, 0x18, 0x1b, 0xe3, 0x31,
0x36, 0x18, 0x1b, 0xc3, 0xe0, 0x33, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00 };
static char MonoA4_offi_mask[] = {
0x07, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x3c, 0x07, 0x00,
0x00, 0x00, 0x3c, 0xff, 0x3f, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xff, 0xff, 0xff, 0x3f, 0xbf,
0xff, 0xff, 0x7f, 0x3c, 0xbf, 0xff, 0xff, 0x7f, 0x3c, 0xbf, 0xf7, 0xfb,
0x7f, 0xfc, 0xbf, 0xf7, 0xfb, 0x7f, 0xfc, 0xbf, 0xe7, 0xf1, 0x7f, 0xf8 };
static int MonoA4_offi_breaks[] = { 3, 11, 20, 28, 34, 40 };
static ButtonLabel MonoA4_offi = {
(unsigned char *)MonoA4_offi_label, (unsigned char *)MonoA4_offi_mask,
MonoA4_offi_width, MonoA4_offi_height,
0.5, 0.5, 0, 0, /* placement */
5, 6, 0, MonoA4_offi_breaks };
static ButtonLook MonoA4_look = {
&MonoA4_offo, NULL, &MonoA4_offo, NULL,
&MonoA4_offi, NULL, &MonoA4_offi, NULL };
static ButtonFeel MonoA4_feel = {
"MonoA4", 2,
{ BTNToggle, BTNCoWhile },
{ 0x0004, 0x0004 },
{ 0x0000, 0x0004 },
{ 1, 128, 0, 0 } };
static ButtonSpec MonoA[] = {
{ &MonoA1_look, &MonoA1_feel },
{ &MonoA2_look, &MonoA2_feel },
{ &MonoA3_look, &MonoA3_feel },
{ &MonoA4_look, &MonoA4_feel } };
static BoxGeometry MonoA_geo =
{ 0, 4, 4, 1, 4.000000, 1.000000, 0.000000, 0.000000, 0, 1 };
void MakeMonoPanel ( box, parent, gc, visual, background )
BoxParent *parent;
ButtonBox box[1];
GC gc;
Visual *visual;
unsigned long background;
{
box[0] = MakeButtonBox(&parent[3], gc, visual, background,
&MonoA_geo, MonoA, 0);
}