Animation

Animation is a set of functions to make graph moving. More...

Modules

 Animation Actions
 Action Supports.

Classes

struct  _mb_progm_complete

Typedefs

typedef struct _mb_progm mb_progm_t
typedef struct _mb_word mb_word_t
typedef struct _mb_action mb_action_t
typedef struct _mb_progm_complete mb_progm_complete_t

Functions

mb_progm_tmb_progm_new (int max_words, redraw_man_t *rdman)
 Create a program object.
void mb_progm_free (mb_progm_t *progm)
mb_word_tmb_progm_next_word (mb_progm_t *progm, const mb_timeval_t *start, const mb_timeval_t *playing)
 Add a new word into a program.
void mb_progm_start (mb_progm_t *progm, mb_tman_t *tman, mb_timeval_t *now)
void mb_progm_abort (mb_progm_t *progm)
subject_tmb_progm_get_complete (mb_progm_t *progm)
 Return event subject for completion of a program.

Detailed Description

Animation is a set of functions to make graph moving.


Typedef Documentation

typedef struct _mb_action mb_action_t

Definition at line 30 of file mb_animate.h.

Definition at line 36 of file mb_animate.h.

typedef struct _mb_progm mb_progm_t

Definition at line 28 of file mb_animate.h.

typedef struct _mb_word mb_word_t

Definition at line 29 of file mb_animate.h.


Function Documentation

void mb_progm_abort ( mb_progm_t progm  ) 

Todo:
Make sure abort release resources.

Definition at line 341 of file animate.c.

void mb_progm_free ( mb_progm_t progm  ) 

Definition at line 139 of file animate.c.

subject_t* mb_progm_get_complete ( mb_progm_t progm  ) 

Return event subject for completion of a program.

Definition at line 351 of file animate.c.

mb_progm_t* mb_progm_new ( int  max_words,
redraw_man_t rdman 
)

Create a program object.

Parameters:
max_words is maximum number of words the program can hold.
rdman is a rdman that show graphics manipulated by it.

Definition at line 113 of file animate.c.

mb_word_t* mb_progm_next_word ( mb_progm_t progm,
const mb_timeval_t start,
const mb_timeval_t playing 
)

Add a new word into a program.

The start time of new word should bigger or equal to last one. The time should be specified in incremental order.

Definition at line 172 of file animate.c.

void mb_progm_start ( mb_progm_t progm,
mb_tman_t tman,
mb_timeval_t now 
)

Definition at line 307 of file animate.c.

SourceForge.net Logo