Mercurial > touhou
view pytouhou/ui/window.pxd @ 577:e35a083d4208
Move NextStage outside of pytouhou.vm.msg, to be able to use it from anywhere without dependency on EoSD.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 06 Aug 2014 10:50:19 +0200 |
parents | 8f51e34d911c |
children | 00f228b57840 |
line wrap: on
line source
from pytouhou.lib cimport sdl cdef class Clock: cdef unsigned long _ref_tick cdef long _target_fps, _ref_frame, _fps_tick, _fps_frame cdef double fps cdef void set_target_fps(self, long fps) nogil cdef void tick(self) nogil except * cdef class Runner: cdef long width, height cdef void start(self) except * cdef void finish(self) except * cdef bint update(self) except * cdef class Window: cdef sdl.Window win cdef Runner runner cdef Clock clock cdef void set_size(self, int width, int height) nogil cpdef set_runner(self, Runner runner=*) cpdef run(self) cdef bint run_frame(self) except? False cdef double get_fps(self) nogil