comparison pytouhou/game/text.pxd @ 590:e15672733c93

Switch to Python 3.x instead of 2.7.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 30 Sep 2014 17:14:24 +0200
parents b895ed2de71f
children a6af3ff86612
comparison
equal deleted inserted replaced
589:0768122da817 590:e15672733c93
33 cdef unsigned long timeout, duration, start 33 cdef unsigned long timeout, duration, start
34 cdef long shift 34 cdef long shift
35 cdef Interpolator fade_interpolator 35 cdef Interpolator fade_interpolator
36 cdef unsigned char alpha 36 cdef unsigned char alpha
37 37
38 cpdef set_text(self, bytes text) 38 cpdef set_text(self, text)
39 #def timeout_update(self) 39 #def timeout_update(self)
40 #def move_timeout_update(self) 40 #def move_timeout_update(self)
41 #def fadeout_timeout_update(self) 41 #def fadeout_timeout_update(self)
42 cdef void fade(self, unsigned long duration, unsigned char alpha, formula=*) except * 42 cdef void fade(self, unsigned long duration, unsigned char alpha, formula=*) except *
43 cpdef set_timeout(self, unsigned long timeout, str effect=*, unsigned long duration=*, unsigned long start=*) 43 cpdef set_timeout(self, unsigned long timeout, str effect=*, unsigned long duration=*, unsigned long start=*)
58 58
59 cdef class NativeText(Element): 59 cdef class NativeText(Element):
60 cdef public object update 60 cdef public object update
61 61
62 cdef unicode text 62 cdef unicode text
63 cdef bytes align #TODO: use a proper enum. 63 cdef str align #TODO: use a proper enum.
64 cdef unsigned long frame, timeout, duration, start 64 cdef unsigned long frame, timeout, duration, start
65 cdef double to[2] 65 cdef double to[2]
66 cdef double end[2] 66 cdef double end[2]
67 cdef list gradient 67 cdef list gradient
68 cdef Interpolator fade_interpolator, offset_interpolator 68 cdef Interpolator fade_interpolator, offset_interpolator