comparison pytouhou/game/text.pxd @ 544:b895ed2de71f

Implement text rendering for the SDL backend.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 15 May 2014 02:56:08 +0200
parents 53fa73932e9a
children e15672733c93
comparison
equal deleted inserted replaced
543:fb837b32c3dd 544:b895ed2de71f
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 long width, height
64 cdef unsigned char alpha
65 cdef bint shadow
66 cdef bytes align #TODO: use a proper enum. 63 cdef bytes align #TODO: use a proper enum.
67 cdef unsigned long frame, timeout, duration, start 64 cdef unsigned long frame, timeout, duration, start
68 cdef double to[2] 65 cdef double to[2]
69 cdef double end[2] 66 cdef double end[2]
70 cdef list gradient 67 cdef list gradient
71 cdef Interpolator fade_interpolator, offset_interpolator 68 cdef Interpolator fade_interpolator, offset_interpolator
72 cdef object texture 69
70 #XXX
71 cdef public bint shadow
72 cdef public long width, height
73 cdef public unsigned char alpha
74 cdef public object texture
73 75
74 #def normal_update(self) 76 #def normal_update(self)
75 #def timeout_update(self) 77 #def timeout_update(self)
76 #def move_timeout_update(self) 78 #def move_timeout_update(self)
77 #def move_ex_timeout_update(self) 79 #def move_ex_timeout_update(self)