comparison pytouhou/game/text.pxd @ 491:2276229282fd

Fix gcc’s warnings with -Wall -Wextra.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 04 Oct 2013 14:32:28 +0200
parents 1c891c71cf22
children 53fa73932e9a
comparison
equal deleted inserted replaced
490:1b532e7dd521 491:2276229282fd
28 cpdef set_alpha(self, unsigned char alpha) 28 cpdef set_alpha(self, unsigned char alpha)
29 29
30 30
31 cdef class Text(GlyphCollection): 31 cdef class Text(GlyphCollection):
32 cdef bytes text 32 cdef bytes text
33 cdef long shift, timeout, duration, start 33 cdef unsigned long timeout, duration, start
34 cdef long shift
34 cdef Interpolator fade_interpolator 35 cdef Interpolator fade_interpolator
35 cdef unsigned char alpha 36 cdef unsigned char alpha
36 37
37 cpdef set_text(self, bytes text) 38 cpdef set_text(self, bytes text)
38 #def timeout_update(self) 39 #def timeout_update(self)
39 #def move_timeout_update(self) 40 #def move_timeout_update(self)
40 #def fadeout_timeout_update(self) 41 #def fadeout_timeout_update(self)
41 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 *
42 cpdef set_timeout(self, long timeout, str effect=*, long duration=*, long start=*) 43 cpdef set_timeout(self, unsigned long timeout, str effect=*, unsigned long duration=*, unsigned long start=*)
43 44
44 45
45 cdef class Counter(GlyphCollection): 46 cdef class Counter(GlyphCollection):
46 cdef long value 47 cdef long value
47 48
61 cdef unicode text 62 cdef unicode text
62 cdef long width, height 63 cdef long width, height
63 cdef unsigned char alpha 64 cdef unsigned char alpha
64 cdef bint shadow 65 cdef bint shadow
65 cdef bytes align #TODO: use a proper enum. 66 cdef bytes align #TODO: use a proper enum.
66 cdef unsigned long frame, timeout, duration 67 cdef unsigned long frame, timeout, duration, start
67 cdef long start
68 cdef double to[2], end[2] 68 cdef double to[2], end[2]
69 cdef list gradient 69 cdef list gradient
70 cdef Interpolator fade_interpolator, offset_interpolator 70 cdef Interpolator fade_interpolator, offset_interpolator
71 cdef object texture 71 cdef object texture
72 72
76 #def move_ex_timeout_update(self) 76 #def move_ex_timeout_update(self)
77 #def fadeout_timeout_update(self) 77 #def fadeout_timeout_update(self)
78 78
79 cdef void fade(self, unsigned long duration, unsigned char alpha, formula=*) except * 79 cdef void fade(self, unsigned long duration, unsigned char alpha, formula=*) except *
80 cdef void move_in(self, unsigned long duration, double x, double y, formula=*) except * 80 cdef void move_in(self, unsigned long duration, double x, double y, formula=*) except *
81 cpdef set_timeout(self, long timeout, str effect=*, long duration=*, long start=*, to=*, end=*) 81 cpdef set_timeout(self, unsigned long timeout, str effect=*, unsigned long duration=*, unsigned long start=*, to=*, end=*)