comparison pytouhou/lib/gui.pxd @ 635:80687f258001

Make sdl.Window inherit from gui.Window, so we can swap implementations.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 14 Apr 2016 21:18:03 +0100
parents
children
comparison
equal deleted inserted replaced
634:5270c34b4c00 635:80687f258001
1 # Events
2 cdef int EXIT
3 cdef int PAUSE
4 cdef int SCREENSHOT
5 cdef int RESIZE
6 cdef int FULLSCREEN
7 cdef int DOWN
8
9 # Keystates
10 cdef int SHOOT
11 cdef int BOMB
12 cdef int FOCUS
13 # ??
14 cdef int UP
15 cdef int DOWN
16 cdef int LEFT
17 cdef int RIGHT
18 cdef int SKIP
19
20
21 cdef class Window:
22 cdef void create_gl_context(self) except *
23 cdef void present(self) nogil
24 cdef void set_window_size(self, int width, int height) nogil
25 cdef void set_swap_interval(self, int interval) except *
26 cdef list get_events(self)
27 cdef int get_keystate(self) nogil
28 cdef void toggle_fullscreen(self) nogil