1#    pygame - Python Game Library
2#    Copyright (C) 2000-2003  Pete Shinners
3#
4#    This library is free software; you can redistribute it and/or
5#    modify it under the terms of the GNU Library General Public
6#    License as published by the Free Software Foundation; either
7#    version 2 of the License, or (at your option) any later version.
8#
9#    This library is distributed in the hope that it will be useful,
10#    but WITHOUT ANY WARRANTY; without even the implied warranty of
11#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12#    Library General Public License for more details.
13#
14#    You should have received a copy of the GNU Library General Public
15#    License along with this library; if not, write to the Free
16#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17#
18#    Pete Shinners
19#    pete@shinners.org
20
21
22"""Set of functions from PyGame that are handy to have in
23the local namespace for your module"""
24
25from pygame.constants import *  # pylint: disable=wildcard-import; lgtm[py/polluting-import]
26from pygame.rect import Rect
27from pygame import color
28Color = color.Color
29
30
31__all__ = [
32    'Rect',
33    'Color',
34    'ACTIVEEVENT',
35    'ANYFORMAT',
36    'APPACTIVE',
37    'APPFOCUSMOUSE',
38    'APPINPUTFOCUS',
39    'ASYNCBLIT',
40    'AUDIODEVICEADDED',
41    'AUDIODEVICEREMOVED',
42    'AUDIO_ALLOW_ANY_CHANGE',
43    'AUDIO_ALLOW_CHANNELS_CHANGE',
44    'AUDIO_ALLOW_FORMAT_CHANGE',
45    'AUDIO_ALLOW_FREQUENCY_CHANGE',
46    'AUDIO_S16',
47    'AUDIO_S16LSB',
48    'AUDIO_S16MSB',
49    'AUDIO_S16SYS',
50    'AUDIO_S8',
51    'AUDIO_U16',
52    'AUDIO_U16LSB',
53    'AUDIO_U16MSB',
54    'AUDIO_U16SYS',
55    'AUDIO_U8',
56    'BIG_ENDIAN',
57    'BLENDMODE_ADD',
58    'BLENDMODE_BLEND',
59    'BLENDMODE_MOD',
60    'BLENDMODE_NONE',
61    'BLEND_ADD',
62    'BLEND_MAX',
63    'BLEND_MIN',
64    'BLEND_MULT',
65    'BLEND_PREMULTIPLIED',
66    'BLEND_ALPHA_SDL2',
67    'BLEND_RGBA_ADD',
68    'BLEND_RGBA_MAX',
69    'BLEND_RGBA_MIN',
70    'BLEND_RGBA_MULT',
71    'BLEND_RGBA_SUB',
72    'BLEND_RGB_ADD',
73    'BLEND_RGB_MAX',
74    'BLEND_RGB_MIN',
75    'BLEND_RGB_MULT',
76    'BLEND_RGB_SUB',
77    'BLEND_SUB',
78    'BUTTON_LEFT',
79    'BUTTON_MIDDLE',
80    'BUTTON_RIGHT',
81    'BUTTON_WHEELDOWN',
82    'BUTTON_WHEELUP',
83    'BUTTON_X1',
84    'BUTTON_X2',
85    'CONTROLLERAXISMOTION',
86    'CONTROLLERBUTTONDOWN',
87    'CONTROLLERBUTTONUP',
88    'CONTROLLERDEVICEADDED',
89    'CONTROLLERDEVICEREMAPPED',
90    'CONTROLLERDEVICEREMOVED',
91    'CONTROLLERTOUCHPADDOWN',
92    'CONTROLLERTOUCHPADMOTION',
93    'CONTROLLERTOUCHPADUP',
94    'CONTROLLER_AXIS_INVALID',
95    'CONTROLLER_AXIS_LEFTX',
96    'CONTROLLER_AXIS_LEFTY',
97    'CONTROLLER_AXIS_MAX',
98    'CONTROLLER_AXIS_RIGHTX',
99    'CONTROLLER_AXIS_RIGHTY',
100    'CONTROLLER_AXIS_TRIGGERLEFT',
101    'CONTROLLER_AXIS_TRIGGERRIGHT',
102    'CONTROLLER_BUTTON_A',
103    'CONTROLLER_BUTTON_B',
104    'CONTROLLER_BUTTON_BACK',
105    'CONTROLLER_BUTTON_DPAD_DOWN',
106    'CONTROLLER_BUTTON_DPAD_LEFT',
107    'CONTROLLER_BUTTON_DPAD_RIGHT',
108    'CONTROLLER_BUTTON_DPAD_UP',
109    'CONTROLLER_BUTTON_GUIDE',
110    'CONTROLLER_BUTTON_INVALID',
111    'CONTROLLER_BUTTON_LEFTSHOULDER',
112    'CONTROLLER_BUTTON_LEFTSTICK',
113    'CONTROLLER_BUTTON_MAX',
114    'CONTROLLER_BUTTON_RIGHTSHOULDER',
115    'CONTROLLER_BUTTON_RIGHTSTICK',
116    'CONTROLLER_BUTTON_START',
117    'CONTROLLER_BUTTON_X',
118    'CONTROLLER_BUTTON_Y',
119    'DOUBLEBUF',
120    'DROPBEGIN',
121    'DROPCOMPLETE',
122    'DROPFILE',
123    'DROPTEXT',
124    'FINGERDOWN',
125    'FINGERMOTION',
126    'FINGERUP',
127    'FULLSCREEN',
128    'GL_ACCELERATED_VISUAL',
129    'GL_ACCUM_ALPHA_SIZE',
130    'GL_ACCUM_BLUE_SIZE',
131    'GL_ACCUM_GREEN_SIZE',
132    'GL_ACCUM_RED_SIZE',
133    'GL_ALPHA_SIZE',
134    'GL_BLUE_SIZE',
135    'GL_BUFFER_SIZE',
136    'GL_CONTEXT_DEBUG_FLAG',
137    'GL_CONTEXT_FLAGS',
138    'GL_CONTEXT_FORWARD_COMPATIBLE_FLAG',
139    'GL_CONTEXT_MAJOR_VERSION',
140    'GL_CONTEXT_MINOR_VERSION',
141    'GL_CONTEXT_PROFILE_COMPATIBILITY',
142    'GL_CONTEXT_PROFILE_CORE',
143    'GL_CONTEXT_PROFILE_ES',
144    'GL_CONTEXT_PROFILE_MASK',
145    'GL_CONTEXT_RELEASE_BEHAVIOR',
146    'GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH',
147    'GL_CONTEXT_RELEASE_BEHAVIOR_NONE',
148    'GL_CONTEXT_RESET_ISOLATION_FLAG',
149    'GL_CONTEXT_ROBUST_ACCESS_FLAG',
150    'GL_DEPTH_SIZE',
151    'GL_DOUBLEBUFFER',
152    'GL_FRAMEBUFFER_SRGB_CAPABLE',
153    'GL_GREEN_SIZE',
154    'GL_MULTISAMPLEBUFFERS',
155    'GL_MULTISAMPLESAMPLES',
156    'GL_RED_SIZE',
157    'GL_SHARE_WITH_CURRENT_CONTEXT',
158    'GL_STENCIL_SIZE',
159    'GL_STEREO',
160    'GL_SWAP_CONTROL',
161    'HAT_CENTERED',
162    'HAT_DOWN',
163    'HAT_LEFT',
164    'HAT_LEFTDOWN',
165    'HAT_LEFTUP',
166    'HAT_RIGHT',
167    'HAT_RIGHTDOWN',
168    'HAT_RIGHTUP',
169    'HAT_UP',
170    'HIDDEN',
171    'HWACCEL',
172    'HWPALETTE',
173    'HWSURFACE',
174    'JOYAXISMOTION',
175    'JOYBALLMOTION',
176    'JOYBUTTONDOWN',
177    'JOYBUTTONUP',
178    'JOYHATMOTION',
179    'JOYDEVICEADDED',
180    'JOYDEVICEREMOVED',
181    'KEYDOWN',
182    'KEYUP',
183    'KMOD_ALT',
184    'KMOD_CAPS',
185    'KMOD_CTRL',
186    'KMOD_GUI',
187    'KMOD_LALT',
188    'KMOD_LCTRL',
189    'KMOD_LGUI',
190    'KMOD_LMETA',
191    'KMOD_LSHIFT',
192    'KMOD_META',
193    'KMOD_MODE',
194    'KMOD_NONE',
195    'KMOD_NUM',
196    'KMOD_RALT',
197    'KMOD_RCTRL',
198    'KMOD_RGUI',
199    'KMOD_RMETA',
200    'KMOD_RSHIFT',
201    'KMOD_SHIFT',
202    'KSCAN_0',
203    'KSCAN_1',
204    'KSCAN_2',
205    'KSCAN_3',
206    'KSCAN_4',
207    'KSCAN_5',
208    'KSCAN_6',
209    'KSCAN_7',
210    'KSCAN_8',
211    'KSCAN_9',
212    'KSCAN_A',
213    'KSCAN_APOSTROPHE',
214    'KSCAN_B',
215    'KSCAN_BACKSLASH',
216    'KSCAN_BACKSPACE',
217    'KSCAN_BREAK',
218    'KSCAN_C',
219    'KSCAN_CAPSLOCK',
220    'KSCAN_CLEAR',
221    'KSCAN_COMMA',
222    'KSCAN_CURRENCYSUBUNIT',
223    'KSCAN_CURRENCYUNIT',
224    'KSCAN_D',
225    'KSCAN_DELETE',
226    'KSCAN_DOWN',
227    'KSCAN_E',
228    'KSCAN_END',
229    'KSCAN_EQUALS',
230    'KSCAN_ESCAPE',
231    'KSCAN_EURO',
232    'KSCAN_F',
233    'KSCAN_F1',
234    'KSCAN_F10',
235    'KSCAN_F11',
236    'KSCAN_F12',
237    'KSCAN_F13',
238    'KSCAN_F14',
239    'KSCAN_F15',
240    'KSCAN_F2',
241    'KSCAN_F3',
242    'KSCAN_F4',
243    'KSCAN_F5',
244    'KSCAN_F6',
245    'KSCAN_F7',
246    'KSCAN_F8',
247    'KSCAN_F9',
248    'KSCAN_G',
249    'KSCAN_GRAVE',
250    'KSCAN_H',
251    'KSCAN_HELP',
252    'KSCAN_HOME',
253    'KSCAN_I',
254    'KSCAN_INSERT',
255    'KSCAN_INTERNATIONAL1',
256    'KSCAN_INTERNATIONAL2',
257    'KSCAN_INTERNATIONAL3',
258    'KSCAN_INTERNATIONAL4',
259    'KSCAN_INTERNATIONAL5',
260    'KSCAN_INTERNATIONAL6',
261    'KSCAN_INTERNATIONAL7',
262    'KSCAN_INTERNATIONAL8',
263    'KSCAN_INTERNATIONAL9',
264    'KSCAN_J',
265    'KSCAN_K',
266    'KSCAN_KP0',
267    'KSCAN_KP1',
268    'KSCAN_KP2',
269    'KSCAN_KP3',
270    'KSCAN_KP4',
271    'KSCAN_KP5',
272    'KSCAN_KP6',
273    'KSCAN_KP7',
274    'KSCAN_KP8',
275    'KSCAN_KP9',
276    'KSCAN_KP_0',
277    'KSCAN_KP_1',
278    'KSCAN_KP_2',
279    'KSCAN_KP_3',
280    'KSCAN_KP_4',
281    'KSCAN_KP_5',
282    'KSCAN_KP_6',
283    'KSCAN_KP_7',
284    'KSCAN_KP_8',
285    'KSCAN_KP_9',
286    'KSCAN_KP_DIVIDE',
287    'KSCAN_KP_ENTER',
288    'KSCAN_KP_EQUALS',
289    'KSCAN_KP_MINUS',
290    'KSCAN_KP_MULTIPLY',
291    'KSCAN_KP_PERIOD',
292    'KSCAN_KP_PLUS',
293    'KSCAN_L',
294    'KSCAN_LALT',
295    'KSCAN_LANG1',
296    'KSCAN_LANG2',
297    'KSCAN_LANG3',
298    'KSCAN_LANG4',
299    'KSCAN_LANG5',
300    'KSCAN_LANG6',
301    'KSCAN_LANG7',
302    'KSCAN_LANG8',
303    'KSCAN_LANG9',
304    'KSCAN_LCTRL',
305    'KSCAN_LEFT',
306    'KSCAN_LEFTBRACKET',
307    'KSCAN_LGUI',
308    'KSCAN_LMETA',
309    'KSCAN_LSHIFT',
310    'KSCAN_LSUPER',
311    'KSCAN_M',
312    'KSCAN_MENU',
313    'KSCAN_MINUS',
314    'KSCAN_MODE',
315    'KSCAN_N',
316    'KSCAN_NONUSBACKSLASH',
317    'KSCAN_NONUSHASH',
318    'KSCAN_NUMLOCK',
319    'KSCAN_NUMLOCKCLEAR',
320    'KSCAN_O',
321    'KSCAN_P',
322    'KSCAN_PAGEDOWN',
323    'KSCAN_PAGEUP',
324    'KSCAN_PAUSE',
325    'KSCAN_PERIOD',
326    'KSCAN_POWER',
327    'KSCAN_PRINT',
328    'KSCAN_PRINTSCREEN',
329    'KSCAN_Q',
330    'KSCAN_R',
331    'KSCAN_RALT',
332    'KSCAN_RCTRL',
333    'KSCAN_RETURN',
334    'KSCAN_RGUI',
335    'KSCAN_RIGHT',
336    'KSCAN_RIGHTBRACKET',
337    'KSCAN_RMETA',
338    'KSCAN_RSHIFT',
339    'KSCAN_RSUPER',
340    'KSCAN_S',
341    'KSCAN_SCROLLLOCK',
342    'KSCAN_SCROLLOCK',
343    'KSCAN_SEMICOLON',
344    'KSCAN_SLASH',
345    'KSCAN_SPACE',
346    'KSCAN_SYSREQ',
347    'KSCAN_T',
348    'KSCAN_TAB',
349    'KSCAN_U',
350    'KSCAN_UNKNOWN',
351    'KSCAN_UP',
352    'KSCAN_V',
353    'KSCAN_W',
354    'KSCAN_X',
355    'KSCAN_Y',
356    'KSCAN_Z',
357    'K_0',
358    'K_1',
359    'K_2',
360    'K_3',
361    'K_4',
362    'K_5',
363    'K_6',
364    'K_7',
365    'K_8',
366    'K_9',
367    'K_AC_BACK',
368    'K_AMPERSAND',
369    'K_ASTERISK',
370    'K_AT',
371    'K_BACKQUOTE',
372    'K_BACKSLASH',
373    'K_BACKSPACE',
374    'K_BREAK',
375    'K_CAPSLOCK',
376    'K_CARET',
377    'K_CLEAR',
378    'K_COLON',
379    'K_COMMA',
380    'K_CURRENCYSUBUNIT',
381    'K_CURRENCYUNIT',
382    'K_DELETE',
383    'K_DOLLAR',
384    'K_DOWN',
385    'K_END',
386    'K_EQUALS',
387    'K_ESCAPE',
388    'K_EURO',
389    'K_EXCLAIM',
390    'K_F1',
391    'K_F10',
392    'K_F11',
393    'K_F12',
394    'K_F13',
395    'K_F14',
396    'K_F15',
397    'K_F2',
398    'K_F3',
399    'K_F4',
400    'K_F5',
401    'K_F6',
402    'K_F7',
403    'K_F8',
404    'K_F9',
405    'K_GREATER',
406    'K_HASH',
407    'K_HELP',
408    'K_HOME',
409    'K_INSERT',
410    'K_KP0',
411    'K_KP1',
412    'K_KP2',
413    'K_KP3',
414    'K_KP4',
415    'K_KP5',
416    'K_KP6',
417    'K_KP7',
418    'K_KP8',
419    'K_KP9',
420    'K_KP_0',
421    'K_KP_1',
422    'K_KP_2',
423    'K_KP_3',
424    'K_KP_4',
425    'K_KP_5',
426    'K_KP_6',
427    'K_KP_7',
428    'K_KP_8',
429    'K_KP_9',
430    'K_KP_DIVIDE',
431    'K_KP_ENTER',
432    'K_KP_EQUALS',
433    'K_KP_MINUS',
434    'K_KP_MULTIPLY',
435    'K_KP_PERIOD',
436    'K_KP_PLUS',
437    'K_LALT',
438    'K_LCTRL',
439    'K_LEFT',
440    'K_LEFTBRACKET',
441    'K_LEFTPAREN',
442    'K_LESS',
443    'K_LGUI',
444    'K_LMETA',
445    'K_LSHIFT',
446    'K_LSUPER',
447    'K_MENU',
448    'K_MINUS',
449    'K_MODE',
450    'K_NUMLOCK',
451    'K_NUMLOCKCLEAR',
452    'K_PAGEDOWN',
453    'K_PAGEUP',
454    'K_PAUSE',
455    'K_PERCENT',
456    'K_PERIOD',
457    'K_PLUS',
458    'K_POWER',
459    'K_PRINT',
460    'K_PRINTSCREEN',
461    'K_QUESTION',
462    'K_QUOTE',
463    'K_QUOTEDBL',
464    'K_RALT',
465    'K_RCTRL',
466    'K_RETURN',
467    'K_RGUI',
468    'K_RIGHT',
469    'K_RIGHTBRACKET',
470    'K_RIGHTPAREN',
471    'K_RMETA',
472    'K_RSHIFT',
473    'K_RSUPER',
474    'K_SCROLLLOCK',
475    'K_SCROLLOCK',
476    'K_SEMICOLON',
477    'K_SLASH',
478    'K_SPACE',
479    'K_SYSREQ',
480    'K_TAB',
481    'K_UNDERSCORE',
482    'K_UNKNOWN',
483    'K_UP',
484    'K_a',
485    'K_b',
486    'K_c',
487    'K_d',
488    'K_e',
489    'K_f',
490    'K_g',
491    'K_h',
492    'K_i',
493    'K_j',
494    'K_k',
495    'K_l',
496    'K_m',
497    'K_n',
498    'K_o',
499    'K_p',
500    'K_q',
501    'K_r',
502    'K_s',
503    'K_t',
504    'K_u',
505    'K_v',
506    'K_w',
507    'K_x',
508    'K_y',
509    'K_z',
510    'LIL_ENDIAN',
511    'MIDIIN',
512    'MIDIOUT',
513    'MOUSEBUTTONDOWN',
514    'MOUSEBUTTONUP',
515    'MOUSEMOTION',
516    'MOUSEWHEEL',
517    'MULTIGESTURE',
518    'NOEVENT',
519    'NOFRAME',
520    'NUMEVENTS',
521    'OPENGL',
522    'OPENGLBLIT',
523    'PREALLOC',
524    'QUIT',
525    'RESIZABLE',
526    'RLEACCEL',
527    'RLEACCELOK',
528    'SCALED',
529    'SCRAP_BMP',
530    'SCRAP_CLIPBOARD',
531    'SCRAP_PBM',
532    'SCRAP_PPM',
533    'SCRAP_SELECTION',
534    'SCRAP_TEXT',
535    'SHOWN',
536    'SRCALPHA',
537    'SRCCOLORKEY',
538    'SWSURFACE',
539    'SYSTEM_CURSOR_ARROW',
540    'SYSTEM_CURSOR_CROSSHAIR',
541    'SYSTEM_CURSOR_HAND',
542    'SYSTEM_CURSOR_IBEAM',
543    'SYSTEM_CURSOR_NO',
544    'SYSTEM_CURSOR_SIZEALL',
545    'SYSTEM_CURSOR_SIZENESW',
546    'SYSTEM_CURSOR_SIZENS',
547    'SYSTEM_CURSOR_SIZENWSE',
548    'SYSTEM_CURSOR_SIZEWE',
549    'SYSTEM_CURSOR_WAIT',
550    'SYSTEM_CURSOR_WAITARROW',
551    'SYSWMEVENT',
552    'TEXTEDITING',
553    'TEXTINPUT',
554    'TIMER_RESOLUTION',
555    'USEREVENT',
556    'USEREVENT_DROPFILE',
557    'VIDEOEXPOSE',
558    'VIDEORESIZE',
559    'WINDOWSHOWN',
560    'WINDOWHIDDEN',
561    'WINDOWEXPOSED',
562    'WINDOWMOVED',
563    'WINDOWRESIZED',
564    'WINDOWSIZECHANGED',
565    'WINDOWMINIMIZED',
566    'WINDOWMAXIMIZED',
567    'WINDOWRESTORED',
568    'WINDOWENTER',
569    'WINDOWLEAVE',
570    'WINDOWFOCUSGAINED',
571    'WINDOWFOCUSLOST',
572    'WINDOWCLOSE',
573    'WINDOWTAKEFOCUS',
574    'WINDOWHITTEST',
575
576]
577