comparison include/mb_animate.h @ 1048:f26c4b621ec0

MErge head
author wycc
date Tue, 23 Nov 2010 23:55:24 +0800
parents 7ccc094bdbe5
children
comparison
equal deleted inserted replaced
1047:4072a302b207 1048:f26c4b621ec0
2 // vim: sw=4:ts=8:sts=4 2 // vim: sw=4:ts=8:sts=4
3 #ifndef __ANIMATE_H_ 3 #ifndef __ANIMATE_H_
4 #define __ANIMATE_H_ 4 #define __ANIMATE_H_
5 5
6 #include "mb_types.h" 6 #include "mb_types.h"
7 #include "mb_timer.h"
8 #include "mb_paint.h" 7 #include "mb_paint.h"
8 #include "mb_backend.h"
9 9
10 /*! \page def_action How to Define An Action? 10 /*! \page def_action How to Define An Action?
11 * 11 *
12 * A action must implement following 4 functions. 12 * A action must implement following 4 functions.
13 * \li start, 13 * \li start,
40 extern mb_progm_t *mb_progm_new(int max_words, redraw_man_t *rdman); 40 extern mb_progm_t *mb_progm_new(int max_words, redraw_man_t *rdman);
41 extern void mb_progm_free(mb_progm_t *progm); 41 extern void mb_progm_free(mb_progm_t *progm);
42 extern mb_word_t *mb_progm_next_word(mb_progm_t *progm, 42 extern mb_word_t *mb_progm_next_word(mb_progm_t *progm,
43 const mb_timeval_t *start, 43 const mb_timeval_t *start,
44 const mb_timeval_t *playing); 44 const mb_timeval_t *playing);
45 extern void mb_progm_start(mb_progm_t *progm, mb_tman_t *tman, 45 extern void mb_progm_start(mb_progm_t *progm, mb_timer_man_t *timer_man,
46 mb_timeval_t *now); 46 mb_timeval_t *now);
47 extern void mb_progm_abort(mb_progm_t *progm); 47 extern void mb_progm_abort(mb_progm_t *progm);
48 extern subject_t *mb_progm_get_complete(mb_progm_t *progm); 48 extern subject_t *mb_progm_get_complete(mb_progm_t *progm);
49 extern void mb_progm_free_completed(mb_progm_t *progm); 49 extern void mb_progm_free_completed(mb_progm_t *progm);
50 50