Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

ANIMATION control and animation GIF (GIF87a/GIF89a) support
[Controls defined in libmgext]

Modules

Data Structures

Defines

Typedefs

Functions


Define Documentation

#define ANIMATION_ERR   1
 

Return values of ANIMATION control.

Definition at line 182 of file animation.h.

#define ANIMATION_OKAY   0
 

Return values of ANIMATION control.

Definition at line 180 of file animation.h.

#define ANNC_CLICKED   1
 

Indicates the user has clicked the control.

Definition at line 342 of file animation.h.

#define ANNC_DBLCLK   2
 

Indicates the user has double clicked the control.

Definition at line 348 of file animation.h.

#define CTRL_ANIMATION   ("Animation")
 

Control class name of ANIMATION control.

Definition at line 177 of file animation.h.


Typedef Documentation

typedef struct _ANIMATION ANIMATION
 

Animation structure

typedef struct _ANIMATIONFRAME ANIMATIONFRAME
 

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 Mon Jun 26 13:54:33 2006 for MiniGUI V1.6.9 API Reference by  doxygen 1.4.2