ANIMATION control and animation GIF (GIF87a/GIF89a) support
[Standard controls]

Data Structures

Modules

Defines

Typedefs

Functions


Define Documentation

#define ANIMATION_ERR   1

Return values of ANIMATION control.

Definition at line 173 of file animation.h.

#define ANIMATION_OKAY   0

Return values of ANIMATION control.

Definition at line 171 of file animation.h.

#define CTRL_ANIMATION   ("Animation")

Control class name of ANIMATION control.

Definition at line 168 of file animation.h.


Typedef Documentation

typedef struct _ANIMATION ANIMATION

Animation structure

Animation frame structure.


Function Documentation

ANIMATION * CreateAnimationFromGIF89a ( HDC  hdc,
MG_RWops area 
)

Creates an ANIMATION obeject from a GIF 89a data source.

This function load a GIF 89a graphic from the data source area, and create an ANIMATION object from the GIF 89a data.

Parameters:
hdc The dc will be used to create BITMAP object for the animation frame.
area The data source.
Returns:
This function returns an ANIMATION object when success, otherwise NULL.
See also:
DestroyAnimation, ANIMATION
ANIMATION * CreateAnimationFromGIF89aFile ( HDC  hdc,
const char *  file 
)

Creates an ANIMATION obeject from a GIF 89a file.

This function load a GIF 89a graphic from the file file, and create an ANIMATION object.

Parameters:
hdc The dc will be used to create BITMAP object for the animation frame.
file The file name.
Returns:
This function returns an ANIMATION object when success, otherwise NULL.
See also:
DestroyAnimation, ANIMATION
ANIMATION * CreateAnimationFromGIF89aMem ( HDC  hdc,
const void *  mem,
int  size 
)

Creates an ANIMATION obeject from a GIF 89a memory data.

This function load a GIF 89a graphic from the memory mem which is size long and create an ANIMATION object from the GIF 89a data.

Parameters:
hdc The dc will be used to create BITMAP object for the animation frame.
mem The pointer to the memory.
size The size of the memory.
Returns:
This function returns an ANIMATION object when success, otherwise NULL.
See also:
DestroyAnimation, ANIMATION
void DestroyAnimation ( ANIMATION anim,
BOOL  free_it 
)

Destories an ANIMATION object.

This function destroies the ANIMATION object anim, and free it if free_it is TRUE.

Parameters:
anim Pointer to the ANIMATION object.
free_it Specify whether free the object by calling free(3).
See also:
CreateAnimationFromGIF89a, ANIMATION
Generated on Thu Apr 7 16:01:44 2011 for MiniGUI V3.0.12 API Reference by  doxygen 1.6.3