MiniGUI API Reference (MiniGUI-Processes)  v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
animation.h
Go to the documentation of this file.
1 
43 /*
44  * $Id: animation.h 10865 2008-08-27 06:52:22Z wangjian $
45  *
46  * MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
47  * pSOS, ThreadX, NuCleus, OSE, and Win32.
48  */
49 
50 #ifndef EXT_ANIMATION_H
51 #define EXT_ANIMATION_H
52 
53 
54 #ifdef __cplusplus
55 extern "C" {
56 #endif
57 
69 typedef struct _ANIMATIONFRAME
70 {
80  int disposal;
82  int off_x;
84  int off_y;
86  unsigned int width;
88  unsigned int height;
89 
91  unsigned int delay_time;
96 
102 
104 typedef struct _ANIMATION
105 {
107  unsigned int width;
109  unsigned int height;
110 
113 
123 } ANIMATION;
124 
140 
155 MG_EXPORT ANIMATION* CreateAnimationFromGIF89aFile (HDC hdc, const char* file);
156 
172 MG_EXPORT ANIMATION* CreateAnimationFromGIF89aMem (HDC hdc, const void* mem, int size);
173 
186 MG_EXPORT void DestroyAnimation (ANIMATION* anim, BOOL free_it);
187 
189 #define CTRL_ANIMATION ("Animation")
190 
192 #define ANIMATION_OKAY 0
193 
194 #define ANIMATION_ERR 1
195 
227 #define ANS_AUTOLOOP 0x0001L
228 
233 #define ANS_SCALED 0x0002L
234 
239 #define ANS_FITTOANI 0x0004L
240 
245 #define ANS_WINBGC 0x0010L
246 
270 #define ANM_SETANIMATION 0xF110
271 
287 #define ANM_GETANIMATION 0xF111
288 
306 #define ANM_STARTPLAY 0xF112
307 
324 #define ANM_PAUSE_RESUME 0xF113
325 
343 #define ANM_STOPPLAY 0xF114
344 
345 #define ANM_MSGMAX 0xF120
346 
357 #define ANNC_CLICKED 1
358 
363 #define ANNC_DBLCLK 2
364 
369 #define ANNC_NOFRAME 3
370 
377 #ifdef __cplusplus
378 }
379 #endif
380 
381 #endif /* EXT_ANIMATION_H */
382 
ANIMATION * CreateAnimationFromGIF89a(HDC hdc, MG_RWops *area)
Creates an ANIMATION obeject from a GIF 89a data source.
int BOOL
A type definition for boolean value.
Definition: common.h:294
unsigned int width
Definition: animation.h:86
unsigned int width
Definition: animation.h:107
MG_EXPORT ANIMATION * CreateAnimationFromGIF89aFile(HDC hdc, const char *file)
Creates an ANIMATION obeject from a GIF 89a file.
MG_EXPORT ANIMATION * CreateAnimationFromGIF89aMem(HDC hdc, const void *mem, int size)
Creates an ANIMATION obeject from a GIF 89a memory data.
MG_EXPORT void DestroyAnimation(ANIMATION *anim, BOOL free_it)
Destories an ANIMATION object.
unsigned int height
Definition: animation.h:109
GHANDLE HDC
Handle to device context.
Definition: common.h:363
unsigned int height
Definition: animation.h:88
struct _ANIMATIONFRAME * prev
Definition: animation.h:100
Uint8 * bits
Definition: animation.h:95
ANIMATIONFRAME * frames
Definition: animation.h:122
struct _ANIMATION ANIMATION
unsigned char Uint8
A type definition for an 8-bit unsigned character.
Definition: common.h:142
Definition: common.h:920
struct _ANIMATIONFRAME ANIMATIONFRAME
int time_unit
Definition: animation.h:120
struct _ANIMATIONFRAME * next
Definition: animation.h:98
int nr_frames
Definition: animation.h:115
unsigned int delay_time
Definition: animation.h:91