1 | /* |
---|
2 | * (c) Copyright 1989, 1990, 1991, 1992, 1993 OPEN SOFTWARE FOUNDATION, INC. |
---|
3 | * ALL RIGHTS RESERVED |
---|
4 | */ |
---|
5 | /* |
---|
6 | * Motif Release 1.2.3 |
---|
7 | */ |
---|
8 | /* $RCSfile: WmIBitmap.h,v $ $Revision: 1.1.1.1 $ $Date: 1997-03-25 09:12:19 $ */ |
---|
9 | /* |
---|
10 | * (c) Copyright 1987, 1988, 1989, 1990 HEWLETT-PACKARD COMPANY */ |
---|
11 | |
---|
12 | /* |
---|
13 | * Global Variables And Definitions: |
---|
14 | */ |
---|
15 | |
---|
16 | |
---|
17 | |
---|
18 | #ifdef MWM_NEED_IIMAGE |
---|
19 | #ifdef MOTIF_DEFAULT_ICON |
---|
20 | /* |
---|
21 | * Default icon image with four buttons: |
---|
22 | */ |
---|
23 | |
---|
24 | #define iImage_width 50 |
---|
25 | #define iImage_height 50 |
---|
26 | static unsigned char iImage_bits[] = { |
---|
27 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
---|
28 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, |
---|
29 | 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0xc0, 0x00, 0xe0, |
---|
30 | 0xff, 0xdf, 0x40, 0x55, 0xd5, 0x00, 0xe0, 0xff, 0xdf, 0xa0, 0xaa, 0xca, |
---|
31 | 0x00, 0xe0, 0xff, 0xdf, 0x40, 0x55, 0xd5, 0x00, 0xe0, 0xff, 0xdf, 0xa0, |
---|
32 | 0xaa, 0xca, 0x00, 0xe0, 0xff, 0xdf, 0x40, 0x55, 0xd5, 0x00, 0xe0, 0xff, |
---|
33 | 0xdf, 0xa0, 0xaa, 0xca, 0x00, 0xe0, 0xff, 0xdf, 0x40, 0x55, 0xd5, 0x00, |
---|
34 | 0xe0, 0xff, 0xdf, 0xa0, 0xaa, 0xca, 0x00, 0xe0, 0xff, 0xdf, 0x40, 0x55, |
---|
35 | 0xd5, 0x00, 0xe0, 0xff, 0xdf, 0xa0, 0xaa, 0xca, 0x00, 0xe0, 0xff, 0xdf, |
---|
36 | 0x40, 0x55, 0xd5, 0x00, 0xe0, 0xff, 0xdf, 0xa0, 0xaa, 0xca, 0x00, 0xe0, |
---|
37 | 0xff, 0xdf, 0x40, 0x55, 0xd5, 0x00, 0xe0, 0xff, 0xdf, 0xa0, 0xaa, 0xca, |
---|
38 | 0x00, 0xe0, 0xff, 0xdf, 0x40, 0x55, 0xd5, 0x00, 0xe0, 0xff, 0xdf, 0xa0, |
---|
39 | 0xaa, 0xca, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x80, 0x00, 0xe0, 0xff, |
---|
40 | 0x3f, 0xe0, 0xff, 0x3f, 0x00, 0xf0, 0xff, 0x7f, 0xf0, 0xff, 0x7f, 0x00, |
---|
41 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
---|
42 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, |
---|
43 | 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0xc0, 0x00, 0x40, |
---|
44 | 0x55, 0xd5, 0xe0, 0xff, 0xdf, 0x00, 0xa0, 0xaa, 0xca, 0xe0, 0xff, 0xdf, |
---|
45 | 0x00, 0x40, 0x55, 0xd5, 0xe0, 0xff, 0xdf, 0x00, 0xa0, 0xaa, 0xca, 0xe0, |
---|
46 | 0xff, 0xdf, 0x00, 0x40, 0x55, 0xd5, 0xe0, 0xff, 0xdf, 0x00, 0xa0, 0xaa, |
---|
47 | 0xca, 0xe0, 0xff, 0xdf, 0x00, 0x40, 0x55, 0xd5, 0xe0, 0xff, 0xdf, 0x00, |
---|
48 | 0xa0, 0xaa, 0xca, 0xe0, 0xff, 0xdf, 0x00, 0x40, 0x55, 0xd5, 0xe0, 0xff, |
---|
49 | 0xdf, 0x00, 0xa0, 0xaa, 0xca, 0xe0, 0xff, 0xdf, 0x00, 0x40, 0x55, 0xd5, |
---|
50 | 0xe0, 0xff, 0xdf, 0x00, 0xa0, 0xaa, 0xca, 0xe0, 0xff, 0xdf, 0x00, 0x40, |
---|
51 | 0x55, 0xd5, 0xe0, 0xff, 0xdf, 0x00, 0xa0, 0xaa, 0xca, 0xe0, 0xff, 0xdf, |
---|
52 | 0x00, 0x40, 0x55, 0xd5, 0xe0, 0xff, 0xdf, 0x00, 0xa0, 0xaa, 0xca, 0xe0, |
---|
53 | 0xff, 0xdf, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x80, 0x00, 0xe0, 0xff, |
---|
54 | 0x3f, 0xe0, 0xff, 0x3f, 0x00, 0xf0, 0xff, 0x7f, 0xf0, 0xff, 0x7f, 0x00, |
---|
55 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
---|
56 | 0x00, 0x00}; |
---|
57 | #else |
---|
58 | /* |
---|
59 | * Default icon image with X logo: |
---|
60 | */ |
---|
61 | |
---|
62 | #define iImage_width 50 |
---|
63 | #define iImage_height 50 |
---|
64 | static unsigned char iImage_bits[] = { |
---|
65 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
---|
66 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, |
---|
67 | 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0xc0, 0x00, 0xe0, |
---|
68 | 0xff, 0xdf, 0x40, 0x55, 0xd5, 0x00, 0xe0, 0xff, 0xdf, 0xa0, 0xaa, 0xca, |
---|
69 | 0x00, 0xe0, 0xff, 0xdf, 0x40, 0x55, 0xd5, 0x00, 0xe0, 0xff, 0xdf, 0xa0, |
---|
70 | 0xaa, 0xca, 0x00, 0xe0, 0xff, 0xdf, 0x40, 0x55, 0xd5, 0x00, 0xe0, 0xff, |
---|
71 | 0xdf, 0xa0, 0xaa, 0xca, 0x00, 0xe0, 0xff, 0xdf, 0x40, 0x55, 0xd5, 0x00, |
---|
72 | 0xe0, 0xff, 0xdf, 0xa0, 0xaa, 0xca, 0x00, 0xe0, 0xff, 0xdf, 0x40, 0x55, |
---|
73 | 0xd5, 0x00, 0xe0, 0xff, 0xdf, 0xa0, 0xaa, 0xca, 0x00, 0xe0, 0xff, 0xdf, |
---|
74 | 0x40, 0x55, 0xd5, 0x00, 0xe0, 0xff, 0xdf, 0xa0, 0xaa, 0xca, 0x00, 0xe0, |
---|
75 | 0xff, 0xdf, 0x40, 0x55, 0xd5, 0x00, 0xe0, 0xff, 0xdf, 0xa0, 0xaa, 0xca, |
---|
76 | 0x00, 0xe0, 0xff, 0xdf, 0x40, 0x55, 0xd5, 0x00, 0xe0, 0xff, 0xdf, 0xa0, |
---|
77 | 0xaa, 0xca, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x80, 0x00, 0xe0, 0xff, |
---|
78 | 0x3f, 0xe0, 0xff, 0x3f, 0x00, 0xf0, 0xff, 0x7f, 0xf0, 0xff, 0x7f, 0x00, |
---|
79 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
---|
80 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, |
---|
81 | 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0xc0, 0x00, 0x40, |
---|
82 | 0x55, 0xd5, 0xe0, 0xff, 0xdf, 0x00, 0xa0, 0xaa, 0xca, 0xe0, 0xff, 0xdf, |
---|
83 | 0x00, 0x40, 0x55, 0xd5, 0xe0, 0xff, 0xdf, 0x00, 0xa0, 0xaa, 0xca, 0xe0, |
---|
84 | 0xff, 0xdf, 0x00, 0x40, 0x55, 0xd5, 0xe0, 0xff, 0xdf, 0x00, 0xa0, 0xaa, |
---|
85 | 0xca, 0xe0, 0xff, 0xdf, 0x00, 0x40, 0x55, 0xd5, 0xe0, 0xff, 0xdf, 0x00, |
---|
86 | 0xa0, 0xaa, 0xca, 0xe0, 0xff, 0xdf, 0x00, 0x40, 0x55, 0xd5, 0xe0, 0xff, |
---|
87 | 0xdf, 0x00, 0xa0, 0xaa, 0xca, 0xe0, 0xff, 0xdf, 0x00, 0x40, 0x55, 0xd5, |
---|
88 | 0xe0, 0xff, 0xdf, 0x00, 0xa0, 0xaa, 0xca, 0xe0, 0xff, 0xdf, 0x00, 0x40, |
---|
89 | 0x55, 0xd5, 0xe0, 0xff, 0xdf, 0x00, 0xa0, 0xaa, 0xca, 0xe0, 0xff, 0xdf, |
---|
90 | 0x00, 0x40, 0x55, 0xd5, 0xe0, 0xff, 0xdf, 0x00, 0xa0, 0xaa, 0xca, 0xe0, |
---|
91 | 0xff, 0xdf, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x80, 0x00, 0xe0, 0xff, |
---|
92 | 0x3f, 0xe0, 0xff, 0x3f, 0x00, 0xf0, 0xff, 0x7f, 0xf0, 0xff, 0x7f, 0x00, |
---|
93 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
---|
94 | 0x00, 0x00}; |
---|
95 | |
---|
96 | #endif /* MOTIF_DEFAULT_ICON */ |
---|
97 | #endif /* MWM_NEED_IIMAGE */ |
---|
98 | |
---|
99 | #ifdef MWM_NEED_ICONBOX |
---|
100 | #define iconBox_width 50 |
---|
101 | #define iconBox_height 50 |
---|
102 | static unsigned char iconBox_bits[] = { |
---|
103 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, |
---|
104 | 0xd0, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0xd0, 0x02, 0x01, 0x00, 0x00, |
---|
105 | 0x00, 0x00, 0xf0, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x10, 0x02, 0xf9, |
---|
106 | 0xe3, 0x8f, 0x3f, 0xfe, 0x10, 0x02, 0x09, 0x24, 0x90, 0x40, 0x02, 0xd1, |
---|
107 | 0x02, 0x09, 0x24, 0x90, 0x40, 0x02, 0xd1, 0x02, 0x09, 0x24, 0x90, 0x40, |
---|
108 | 0x02, 0xd1, 0x02, 0x09, 0x24, 0x90, 0x40, 0x02, 0xd1, 0x02, 0x09, 0x24, |
---|
109 | 0x90, 0x40, 0x02, 0xd1, 0x02, 0x09, 0x24, 0x90, 0x40, 0x02, 0xd1, 0x02, |
---|
110 | 0x09, 0x24, 0x90, 0x40, 0x02, 0xd1, 0x02, 0xf1, 0xc7, 0x1f, 0x7f, 0xfc, |
---|
111 | 0xd0, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x10, 0x02, 0x01, 0x00, 0x00, |
---|
112 | 0x00, 0x00, 0x10, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x10, 0x02, 0x01, |
---|
113 | 0x00, 0x00, 0x00, 0x00, 0x10, 0x02, 0xf9, 0xe3, 0x8f, 0x3f, 0xfe, 0x10, |
---|
114 | 0x02, 0x09, 0x24, 0x90, 0x40, 0x02, 0x11, 0x02, 0x09, 0x24, 0x90, 0x40, |
---|
115 | 0x02, 0x11, 0x02, 0x09, 0x24, 0x90, 0x40, 0x02, 0x11, 0x02, 0x09, 0x24, |
---|
116 | 0x90, 0x40, 0x02, 0x11, 0x02, 0x09, 0x24, 0x90, 0x40, 0x02, 0x11, 0x02, |
---|
117 | 0x09, 0x24, 0x90, 0x40, 0x02, 0x11, 0x02, 0x09, 0x24, 0x90, 0x40, 0x02, |
---|
118 | 0x11, 0x02, 0xf1, 0xc7, 0x1f, 0x7f, 0xfc, 0x10, 0x02, 0x01, 0x00, 0x00, |
---|
119 | 0x00, 0x00, 0x10, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x10, 0x02, 0x01, |
---|
120 | 0x00, 0x00, 0x00, 0x00, 0x10, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x10, |
---|
121 | 0x02, 0xf9, 0xe3, 0x8f, 0x3f, 0x00, 0x10, 0x02, 0x09, 0x24, 0x90, 0x40, |
---|
122 | 0x00, 0x10, 0x02, 0x09, 0x24, 0x90, 0x40, 0x00, 0x10, 0x02, 0x09, 0x24, |
---|
123 | 0x90, 0x40, 0x00, 0x10, 0x02, 0x09, 0x24, 0x90, 0x40, 0x00, 0x10, 0x02, |
---|
124 | 0x09, 0x24, 0x90, 0x40, 0x00, 0x10, 0x02, 0x09, 0x24, 0x90, 0x40, 0x00, |
---|
125 | 0x10, 0x02, 0x09, 0x24, 0x90, 0x40, 0x00, 0x10, 0x02, 0xf1, 0xc7, 0x1f, |
---|
126 | 0x7f, 0x00, 0x10, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x10, 0x02, 0x01, |
---|
127 | 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0xd0, |
---|
128 | 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0xd0, 0x02, 0xff, 0xff, 0xff, 0xff, |
---|
129 | 0xff, 0xff, 0x03, 0x09, 0x00, 0x00, 0x00, 0x00, 0x12, 0x02, 0xcf, 0xff, |
---|
130 | 0xff, 0x01, 0x00, 0x1e, 0x02, 0xcf, 0xff, 0xff, 0x01, 0x00, 0x1e, 0x02, |
---|
131 | 0x09, 0x00, 0x00, 0x00, 0x00, 0x12, 0x02, 0xff, 0xff, 0xff, 0xff, 0xff, |
---|
132 | 0xff, 0x03}; |
---|
133 | #endif /* MWM_NEED_ICONBOX */ |
---|
134 | |
---|
135 | |
---|
136 | |
---|
137 | /* |
---|
138 | * Used to create the stipple for greyed icons |
---|
139 | */ |
---|
140 | |
---|
141 | #ifdef MWM_NEED_GREYED75 |
---|
142 | #define greyed75_width 16 |
---|
143 | #define greyed75_height 16 |
---|
144 | static unsigned char greyed75_bits[] = { |
---|
145 | 0xee, 0xee, 0xbb, 0xbb, 0xee, 0xee, 0xbb, 0xbb, 0xee, 0xee, 0xbb, 0xbb, |
---|
146 | 0xee, 0xee, 0xbb, 0xbb, 0xee, 0xee, 0xbb, 0xbb, 0xee, 0xee, 0xbb, 0xbb, |
---|
147 | 0xee, 0xee, 0xbb, 0xbb, 0xee, 0xee, 0xbb, 0xbb}; |
---|
148 | #endif /* MWM_NEED_GREYED75 */ |
---|
149 | |
---|
150 | |
---|
151 | |
---|
152 | /* |
---|
153 | * Used to create the stipple for greyed icons |
---|
154 | */ |
---|
155 | |
---|
156 | #ifdef MWM_NEED_GREYED50 |
---|
157 | #define greyed50_width 16 |
---|
158 | #define greyed50_height 16 |
---|
159 | static unsigned char greyed50_bits[] = { |
---|
160 | 0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa, |
---|
161 | 0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa, |
---|
162 | 0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa}; |
---|
163 | #endif /* MWM_NEED_GREYED50 */ |
---|
164 | |
---|
165 | |
---|
166 | |
---|
167 | |
---|
168 | /* |
---|
169 | * Used to create the stipple for greyed icons |
---|
170 | */ |
---|
171 | |
---|
172 | #ifdef MWM_NEED_GREYED25 |
---|
173 | #define greyed25_width 16 |
---|
174 | #define greyed25_height 16 |
---|
175 | static unsigned char greyed25_bits[] = { |
---|
176 | 0x11, 0x11, 0x44, 0x44, 0x11, 0x11, 0x44, 0x44, 0x11, 0x11, 0x44, 0x44, |
---|
177 | 0x11, 0x11, 0x44, 0x44, 0x11, 0x11, 0x44, 0x44, 0x11, 0x11, 0x44, 0x44, |
---|
178 | 0x11, 0x11, 0x44, 0x44, 0x11, 0x11, 0x44, 0x44}; |
---|
179 | #endif /* MWM_NEED_GREYED25 */ |
---|
180 | |
---|
181 | |
---|
182 | |
---|
183 | |
---|
184 | /* |
---|
185 | * Used to create the stipple for greyed icons |
---|
186 | */ |
---|
187 | |
---|
188 | #ifdef MWM_NEED_SLANT2 |
---|
189 | #define slant2_width 16 |
---|
190 | #define slant2_height 16 |
---|
191 | static unsigned char slant2_bits[] = { |
---|
192 | 0x99, 0x99, 0xcc, 0xcc, 0x66, 0x66, 0x33, 0x33, 0x99, 0x99, 0xcc, 0xcc, |
---|
193 | 0x66, 0x66, 0x33, 0x33, 0x99, 0x99, 0xcc, 0xcc, 0x66, 0x66, 0x33, 0x33, |
---|
194 | 0x99, 0x99, 0xcc, 0xcc, 0x66, 0x66, 0x33, 0x33}; |
---|
195 | #endif /* MWM_NEED_SLANT2 */ |
---|