MiniGUI API Reference (MiniGUI-Standalone)  v5.0.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 //
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 
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:343
unsigned int width
Definition: animation.h:97
unsigned int width
Definition: animation.h:118
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:120
GHANDLE HDC
Handle to device context.
Definition: common.h:412
unsigned int height
Definition: animation.h:99
struct _ANIMATIONFRAME * prev
Definition: animation.h:111
Uint8 * bits
Definition: animation.h:106
ANIMATIONFRAME * frames
Definition: animation.h:133
struct _ANIMATION ANIMATION
unsigned char Uint8
A type definition for an 8-bit unsigned character.
Definition: common.h:157
Definition: common.h:1012
struct _ANIMATIONFRAME ANIMATIONFRAME
int time_unit
Definition: animation.h:131
struct _ANIMATIONFRAME * next
Definition: animation.h:109
int nr_frames
Definition: animation.h:126
unsigned int delay_time
Definition: animation.h:102