MiniGUI API Reference (MiniGUI-Processes)  v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
animation.h
Go to the documentation of this file.
1 //
3 // IMPORTANT NOTICE
4 //
5 // The following open source license statement does not apply to any
6 // entity in the Exception List published by FMSoft.
7 //
8 // For more information, please visit:
9 //
10 // https://www.fmsoft.cn/exception-list
11 //
13 
55 /*
56  * $Id: animation.h 10865 2008-08-27 06:52:22Z wangjian $
57  *
58  * MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
59  * pSOS, ThreadX, NuCleus, OSE, and Win32.
60  */
61 
62 #ifndef EXT_ANIMATION_H
63 #define EXT_ANIMATION_H
64 
65 #ifdef __cplusplus
66 extern "C" {
67 #endif
68 
80 typedef struct _ANIMATIONFRAME
81 {
91  int disposal;
93  int off_x;
95  int off_y;
97  unsigned int width;
99  unsigned int height;
100 
102  unsigned int delay_time;
107 
113 
115 typedef struct _ANIMATION
116 {
118  unsigned int width;
120  unsigned int height;
121 
124 
134 } ANIMATION;
135 
151 
166 MG_EXPORT ANIMATION* CreateAnimationFromGIF89aFile (HDC hdc, const char* file);
167 
183 MG_EXPORT ANIMATION* CreateAnimationFromGIF89aMem (HDC hdc, const void* mem, int size);
184 
197 MG_EXPORT void DestroyAnimation (ANIMATION* anim, BOOL free_it);
198 
200 #define CTRL_ANIMATION ("Animation")
201 
203 #define ANIMATION_OKAY 0
204 
205 #define ANIMATION_ERR 1
206 
238 #define ANS_AUTOLOOP 0x0001L
239 
244 #define ANS_SCALED 0x0002L
245 
250 #define ANS_FITTOANI 0x0004L
251 
256 #define ANS_WINBGC 0x0010L
257 
281 #define ANM_SETANIMATION 0xF110
282 
298 #define ANM_GETANIMATION 0xF111
299 
317 #define ANM_STARTPLAY 0xF112
318 
335 #define ANM_PAUSE_RESUME 0xF113
336 
354 #define ANM_STOPPLAY 0xF114
355 
356 #define ANM_MSGMAX 0xF120
357 
368 #define ANNC_CLICKED 1
369 
374 #define ANNC_DBLCLK 2
375 
380 #define ANNC_NOFRAME 3
381 
388 #ifdef __cplusplus
389 }
390 #endif
391 
392 #endif /* EXT_ANIMATION_H */
393 
_ANIMATIONFRAME::next
struct _ANIMATIONFRAME * next
Definition: animation.h:109
HDC
GHANDLE HDC
Handle to device context.
Definition: common.h:412
_ANIMATION::height
unsigned int height
Definition: animation.h:120
DestroyAnimation
MG_EXPORT void DestroyAnimation(ANIMATION *anim, BOOL free_it)
Destories an ANIMATION object.
CreateAnimationFromGIF89a
ANIMATION * CreateAnimationFromGIF89a(HDC hdc, MG_RWops *area)
Creates an ANIMATION obeject from a GIF 89a data source.
_ANIMATIONFRAME::off_x
int off_x
Definition: animation.h:93
CreateAnimationFromGIF89aFile
MG_EXPORT ANIMATION * CreateAnimationFromGIF89aFile(HDC hdc, const char *file)
Creates an ANIMATION obeject from a GIF 89a file.
ANIMATION
struct _ANIMATION ANIMATION
_ANIMATION::frames
ANIMATIONFRAME * frames
Definition: animation.h:133
_ANIMATIONFRAME::bits
Uint8 * bits
Definition: animation.h:106
_ANIMATIONFRAME::width
unsigned int width
Definition: animation.h:97
_ANIMATIONFRAME
Definition: animation.h:80
_ANIMATION::nr_frames
int nr_frames
Definition: animation.h:126
Uint8
unsigned char Uint8
A type definition for an 8-bit unsigned character.
Definition: common.h:157
BOOL
int BOOL
A type definition for boolean value.
Definition: common.h:343
_RGB
Definition: common.h:1012
_ANIMATION::time_unit
int time_unit
Definition: animation.h:131
_ANIMATIONFRAME::height
unsigned int height
Definition: animation.h:99
_ANIMATION
Definition: animation.h:115
_ANIMATIONFRAME::prev
struct _ANIMATIONFRAME * prev
Definition: animation.h:111
_ANIMATIONFRAME::delay_time
unsigned int delay_time
Definition: animation.h:102
_MG_RWops
Definition: endianrw.h:118
_ANIMATION::width
unsigned int width
Definition: animation.h:118
_ANIMATION::bk
RGB bk
Definition: animation.h:123
_ANIMATIONFRAME::mem_dc
HDC mem_dc
Definition: animation.h:104
_ANIMATIONFRAME::disposal
int disposal
Definition: animation.h:91
_ANIMATIONFRAME::off_y
int off_y
Definition: animation.h:95
ANIMATIONFRAME
struct _ANIMATIONFRAME ANIMATIONFRAME
CreateAnimationFromGIF89aMem
MG_EXPORT ANIMATION * CreateAnimationFromGIF89aMem(HDC hdc, const void *mem, int size)
Creates an ANIMATION obeject from a GIF 89a memory data.