(read_key_sewuence): Use POSN in second event when needed (bug#30955)
[emacs.git] / src / emacs-icon.h
blobb9bf73f38184a54f170ba2a422bd9a215f6730ca
1 /* XPM */
2 /* Emacs icon
4 Copyright (C) 2008-2018 Free Software Foundation, Inc.
6 Author: Kentaro Ohkouchi <nanasess@fsm.ne.jp>
7 Nicolas Petton <nicolas@petton.fr>
9 This file is part of GNU Emacs.
11 GNU Emacs is free software: you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or (at
14 your option) any later version.
16 GNU Emacs is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
24 /* Note that the GTK port uses gdk to display the icon, so Emacs need
25 not have XPM support compiled in. */
26 #if (defined (HAVE_XPM) && defined (HAVE_X_WINDOWS)) || defined (USE_GTK)
27 static const char * gnu_xpm_bits[] = {
28 /* width height ncolors chars_per_pixel */
29 "32 32 255 2",
30 /* colors */
31 " c None",
32 ". c #3A1F54",
33 "+ c #3E1F5C",
34 "@ c #462060",
35 "# c #41225F",
36 "$ c #432165",
37 "% c #442266",
38 "& c #452267",
39 "* c #3F2466",
40 "= c #462368",
41 "- c #402567",
42 "; c #4C226A",
43 "> c #472469",
44 ", c #4D236B",
45 "' c #48256A",
46 ") c #4E246C",
47 "! c #49266B",
48 "~ c #4C2572",
49 "{ c #4F256D",
50 "] c #4A276C",
51 "^ c #4D2673",
52 "/ c #4E2774",
53 "( c #4F2875",
54 "_ c #552777",
55 ": c #502976",
56 "< c #512A77",
57 "[ c #572979",
58 "} c #5E277B",
59 "| c #522B78",
60 "1 c #4F2C7E",
61 "2 c #572C81",
62 "3 c #512E80",
63 "4 c #5B2C7D",
64 "5 c #552E7B",
65 "6 c #582D82",
66 "7 c #562F7C",
67 "8 c #592E83",
68 "9 c #533082",
69 "0 c #5C2D8A",
70 "a c #58307E",
71 "b c #5A2F84",
72 "c c #543183",
73 "d c #612E86",
74 "e c #5B3085",
75 "f c #682D89",
76 "g c #5C3186",
77 "h c #5F308D",
78 "i c #5D3287",
79 "j c #5A338D",
80 "k c #673090",
81 "l c #5B348E",
82 "m c #5F3489",
83 "n c #5C358F",
84 "o c #5B378A",
85 "p c #62368C",
86 "q c #7A319A",
87 "r c #5F3B8E",
88 "s c #6E3698",
89 "t c #643B8A",
90 "u c #653C8B",
91 "v c #673B91",
92 "w c #613D90",
93 "x c #5F4293",
94 "y c #664295",
95 "z c #624596",
96 "A c #843BB1",
97 "B c #71449C",
98 "C c #654899",
99 "D c #6C479C",
100 "E c #66499A",
101 "F c #8F3CB7",
102 "G c #923BBE",
103 "H c #694C9E",
104 "I c #8144AF",
105 "J c #943DC1",
106 "K c #8B41B8",
107 "L c #7B47AE",
108 "M c #953EC2",
109 "N c #8F41C1",
110 "O c #6D4FA2",
111 "P c #9042C2",
112 "Q c #8E44BB",
113 "R c #764DA9",
114 "S c #6E50A3",
115 "T c #8F45BC",
116 "U c #8948BB",
117 "V c #8A49BC",
118 "W c #894BB7",
119 "X c #854CBC",
120 "Y c #6D56A7",
121 "Z c #844EB6",
122 "` c #854FB8",
123 " . c #8251B1",
124 ".. c #6F58A9",
125 "+. c #8052B7",
126 "@. c #8352B2",
127 "#. c #7E54B2",
128 "$. c #8751BA",
129 "%. c #8153B9",
130 "&. c #8553B3",
131 "*. c #7F55B3",
132 "=. c #8056B4",
133 "-. c #725BAC",
134 ";. c #7B59B4",
135 ">. c #755BB4",
136 ",. c #9052BE",
137 "'. c #7C5AB5",
138 "). c #7D5BB6",
139 "!. c #6F60B0",
140 "~. c #7E5CB7",
141 "{. c #765FB1",
142 "]. c #855AB8",
143 "^. c #7F5DB8",
144 "/. c #805EB9",
145 "(. c #9657C4",
146 "_. c #815FBB",
147 ":. c #7C61BB",
148 "<. c #7864AE",
149 "[. c #7D62BC",
150 "}. c #8760B7",
151 "|. c #8262B7",
152 "1. c #7E63BD",
153 "2. c #8363B8",
154 "3. c #7D66B8",
155 "4. c #8464B9",
156 "5. c #7669B3",
157 "6. c #8B63BB",
158 "7. c #7F68BA",
159 "8. c #8666BC",
160 "9. c #9B60C5",
161 "0. c #8169BB",
162 "a. c #806BB7",
163 "b. c #826ABD",
164 "c. c #836BBE",
165 "d. c #7B6EB8",
166 "e. c #7D6DBE",
167 "f. c #9666C1",
168 "g. c #7E6EBF",
169 "h. c #856CC0",
170 "i. c #7F6FC0",
171 "j. c #8070C1",
172 "k. c #8570BC",
173 "l. c #7F72BC",
174 "m. c #A068C6",
175 "n. c #8671BD",
176 "o. c #8073BD",
177 "p. c #8772BF",
178 "q. c #8274BE",
179 "r. c #8375C0",
180 "s. c #9570C1",
181 "t. c #8476C1",
182 "u. c #9073C2",
183 "v. c #8577C2",
184 "w. c #7F79C2",
185 "x. c #8678C3",
186 "y. c #807AC3",
187 "z. c #817BC4",
188 "A. c #827CC5",
189 "B. c #837DC6",
190 "C. c #8A7CC7",
191 "D. c #7D80C7",
192 "E. c #847EC7",
193 "F. c #8E7CC2",
194 "G. c #7F81C8",
195 "H. c #9D78CA",
196 "I. c #897FC3",
197 "J. c #8381C3",
198 "K. c #907EC4",
199 "L. c #A47AC7",
200 "M. c #9E7DC7",
201 "N. c #8D83C7",
202 "O. c #9A80C8",
203 "P. c #9C82CA",
204 "Q. c #A182C6",
205 "R. c #998AC9",
206 "S. c #A089CA",
207 "T. c #9B8CCB",
208 "U. c #9D8ECD",
209 "V. c #AC8DD1",
210 "W. c #AD91CE",
211 "X. c #A195CE",
212 "Y. c #A995D0",
213 "Z. c #A699D3",
214 "`. c #A79BD4",
215 " + c #A29DD5",
216 ".+ c #A89CD5",
217 "++ c #AE9ED2",
218 "@+ c #BD9AD9",
219 "#+ c #B1A0D5",
220 "$+ c #ACA3D6",
221 "%+ c #B3A3D7",
222 "&+ c #B5A5D9",
223 "*+ c #AFA7D9",
224 "=+ c #C1A5D7",
225 "-+ c #B8ABD9",
226 ";+ c #C7A7E0",
227 ">+ c #BFABDA",
228 ",+ c #CBA8DB",
229 "'+ c #C5AADB",
230 ")+ c #BBAFDC",
231 "!+ c #BCB0DD",
232 "~+ c #B6B2DD",
233 "{+ c #BFB3E0",
234 "]+ c #BDB5DA",
235 "^+ c #C0B8DE",
236 "/+ c #C3BBE1",
237 "(+ c #C5BCE2",
238 "_+ c #CCBBE3",
239 ":+ c #C6C2E1",
240 "<+ c #CEC2E3",
241 "[+ c #D5C1E4",
242 "}+ c #CBC6E5",
243 "|+ c #CCC7E6",
244 "1+ c #CDC8E7",
245 "2+ c #CEC9E8",
246 "3+ c #D4C8E9",
247 "4+ c #DCCDE8",
248 "5+ c #D9D1EA",
249 "6+ c #D6D6EE",
250 "7+ c #E3D7EB",
251 "8+ c #DDD9EB",
252 "9+ c #E4D8EC",
253 "0+ c #E5D9ED",
254 "a+ c #E6DBEF",
255 "b+ c #E8DDF1",
256 "c+ c #E2DFF0",
257 "d+ c #E3E0F2",
258 "e+ c #EADFF3",
259 "f+ c #E6E2F4",
260 "g+ c #E7E3F5",
261 "h+ c #EBE4F0",
262 "i+ c #EEE7F3",
263 "j+ c #E8E9F3",
264 "k+ c #EFE8F5",
265 "l+ c #F0E9F6",
266 "m+ c #F2EAF7",
267 "n+ c #ECECF7",
268 "o+ c #EEEFF9",
269 "p+ c #F5EEFA",
270 "q+ c #EFF0FA",
271 "r+ c #F6EFFB",
272 "s+ c #F1F2FC",
273 "t+ c #F4F2F6",
274 "u+ c #F5F3F7",
275 "v+ c #F6F4F8",
276 "w+ c #F8F5FA",
277 "x+ c #FAF7FC",
278 "y+ c #FBF8FD",
279 "z+ c #FDFBFF",
280 "A+ c #FEFCFF",
281 "B+ c #F8FEFF",
282 "C+ c #FFFDFF",
283 "D+ c #F9FFFF",
284 "E+ c #FCFFFB",
285 "F+ c #FEFFFC",
286 /* pixels */
287 " ",
288 " g d l p p i b c ",
289 " 8 n S d.G.J.G.E.B.z.<.C b | ",
290 " 3 m !.J.J.J.J.G.B.A.z.y.v.t.o.O 4 ",
291 " 8 E B.J.J.J.J.E.B.A.z.y.v.t.r.o.n.a.o : ",
292 " 0 ..J.J.J.J.G.E.B.A.A.X.]+6+g+|+N.j.i.e.x < ",
293 " b Y J.J.J.J.G.B.A.A. +:+1+1+8+A+F+t+x.e.0.0.u ^ ",
294 " 1 C J.J.J.J.E.B.A.z.y.v.r.r.x.`.s+F+F+++0.0.0.3.a ",
295 " h A.J.J.G.E.I. +~+(+}+6+h+w+F+F+F+F+F+U.0.0.4.2.>.( ",
296 " 9 -.J.J.J.B.E.j+F+F+F+F+F+F+A+u+k+c+5+Z.0.4.2.|.1.:.t - ",
297 " j D.J.E.B.A.I.x+F+F+F+h+-+U.p.g.e.0.0.0.4.2.|.[.:._.;./ ",
298 " H G.E.B.A.y.w.$+B+F+F+T.j.i.g.0.0.0.0.4.2.1.[._._.~.).7 ",
299 " b 5.B.A.z.y.v.t.r..+v+F+q+#+g.0.0.0.4.2.|.1.:._.~.~.).'.y * ",
300 " e z.A.z.y.v.r.r.o.k.C.<+z+F+i+#+0.4.2.1.[._._.~.).).=.=.R ) ",
301 " e z.y.v.t.r.q.n.k.i.i.e.F.(+o+F+n+&+8.:._.~.~.).'.=.*.#. .] ",
302 " i y.v.t.r.o.n.j.i.K.*+|+f+f+n+B+F+F+l+P.~.).).=.=.*.#.+.Z ! ",
303 " i t.r.q.o.k.j.R.5+A+F+F+F+F+z+7+)+Q.}.~.).'.=.*.#.@.+.Z Z ! ",
304 " b r.q.n.k.i.!+A+F+F+F+F+i+%+h.:._.~.~.).'.=.*.#.+.+.Z W W ' ",
305 " 6 l.n.j.i.++F+F+F+F+F+{+8.[.:._.~.).).=.=.*.#.+.Z Z W X I > ",
306 " 3 {.j.i.g.2+F+F+F+F+<+1.[._._.~.).'.=.*.#.@.+.Z Z W V V s # ",
307 " z i.e.0.%+F+F+F+F+(+:._.~.~.).'.=.*.#.+.+.Z W X V V T _ ",
308 " 2 0.0.0.0.^+F+F+F+F+f+>+S.u.6.=.*.&.+.Z Z W X V U T K = ",
309 " < S 0.0.4.2.O.3+z+F+F+F+F+F+F+F+F+y+v+p+9+,+,.T T N f + ",
310 " 5 |.2.|.1.:._.8.Y._+0+i+m+h+0+0+b+F+F+F+r+9.Q P F & ",
311 " ^ w |.[.:._.~.).).=.=.#.@.%.H.'+i+F+m+;+(.Q N G _ ",
312 " ( D _._.~.).'.=.].M.=+4+t+e+[+@+m.T T P P G f @ ",
313 " ( D ).).=.=.s.W.V.L.f.$.X V V T Q P P G k % ",
314 " ^ r =.*.#.@.+.Z Z W X V T Q Q N G G } $ ",
315 " ! ( B @.+.Z W X V V T T P N G q = + ",
316 " ) : v L X V V T Q N A k ; $ ",
317 " # ' , ( [ | { = = . ",
318 " "};
319 #endif /* (defined (HAVE_XPM) && defined (HAVE_X_WINDOWS)) || defined (USE_GTK) */
321 #define gnu_xbm_width 50
322 #define gnu_xbm_height 50
323 static unsigned char gnu_xbm_bits[] = {
324 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
325 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00,
326 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x01, 0x00, 0x00,
327 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x0e,
328 0x00, 0x00, 0x0c, 0x00, 0x70, 0x00, 0x1e, 0x00, 0x00, 0x06, 0xc0, 0xdd,
329 0x01, 0x34, 0x00, 0x00, 0x07, 0x3c, 0x07, 0x03, 0x34, 0x00, 0x80, 0x03,
330 0x1f, 0x06, 0x06, 0x24, 0x00, 0x80, 0x03, 0x0f, 0x04, 0x0c, 0x26, 0x00,
331 0xc0, 0x81, 0x07, 0x00, 0x08, 0x33, 0x00, 0x60, 0xc1, 0xe3, 0x80, 0xbb,
332 0x31, 0x00, 0x30, 0xe1, 0x33, 0xfe, 0xff, 0x18, 0x00, 0x10, 0xf1, 0x31,
333 0xc7, 0xe3, 0x1f, 0x00, 0x10, 0xf1, 0xd8, 0x01, 0x05, 0x3c, 0x00, 0x10,
334 0x83, 0x6c, 0x00, 0x1a, 0x40, 0x00, 0x10, 0x66, 0x36, 0x54, 0xd5, 0xff,
335 0x00, 0x30, 0x3c, 0xdb, 0xab, 0x3a, 0x2a, 0x00, 0x60, 0x80, 0xe9, 0x54,
336 0x35, 0x00, 0x00, 0xe0, 0xe0, 0x6c, 0xb9, 0x6a, 0x00, 0x00, 0x80, 0x37,
337 0xb6, 0x66, 0x75, 0x00, 0x00, 0x00, 0x0f, 0xb6, 0xb4, 0x6a, 0x00, 0x00,
338 0x00, 0x06, 0xb3, 0x77, 0x75, 0x00, 0x00, 0x00, 0xe1, 0x19, 0xa7, 0x6a,
339 0x00, 0x00, 0xc0, 0xff, 0x19, 0x48, 0xf5, 0x00, 0x00, 0x40, 0x75, 0x15,
340 0xaf, 0xea, 0x00, 0x00, 0x00, 0x70, 0x35, 0x66, 0xd5, 0x00, 0x00, 0x00,
341 0x58, 0x6a, 0x80, 0xea, 0x00, 0x00, 0x00, 0xdc, 0xaa, 0x80, 0xd5, 0x01,
342 0x00, 0x00, 0x9c, 0x27, 0x03, 0xeb, 0x01, 0x00, 0x00, 0xbc, 0x65, 0x04,
343 0xd4, 0x01, 0x00, 0x00, 0x3c, 0x55, 0xed, 0x6b, 0x03, 0x00, 0x00, 0x3e,
344 0xcd, 0x2a, 0x3e, 0x02, 0x00, 0x00, 0x7e, 0xb9, 0x2a, 0xb8, 0x03, 0x00,
345 0x00, 0x7c, 0x93, 0x3d, 0x91, 0x03, 0x00, 0x00, 0x7c, 0x76, 0x77, 0x96,
346 0x01, 0x00, 0x00, 0xf8, 0x6d, 0xf6, 0xc4, 0x01, 0x00, 0x00, 0xf8, 0xdd,
347 0xfe, 0xc3, 0x01, 0x00, 0x00, 0xf0, 0xb1, 0xfd, 0xfc, 0x01, 0x00, 0x00,
348 0xd0, 0x2f, 0xe7, 0xc1, 0x00, 0x00, 0x00, 0xc0, 0x4f, 0xe6, 0x61, 0x00,
349 0x00, 0x00, 0x80, 0xff, 0xf6, 0x7f, 0x00, 0x00, 0x00, 0x80, 0xfe, 0x1c,
350 0x3e, 0x00, 0x00, 0x00, 0x00, 0xfa, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00,
351 0xf8, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x02, 0x00, 0x00, 0x00,
352 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
353 0x00, 0x00};