mGNCS API Reference  v1.2.0
A new control set and a new framework for MiniGUI apps
mgifanimateframes.h
Go to the documentation of this file.
1 
42 #ifndef _MGUI_NCSCTRL_GIFANIMATEFRAMES_H
43 #define _MGUI_NCSCTRL_GIFANIMATEFRAMES_H
44 
45 #ifdef _cplusplus
46 extern "C"{
47 #endif
48 
49 typedef struct _mGIFAnimateFrames mGIFAnimateFrames;
50 typedef struct _mGIFAnimateFramesClass mGIFAnimateFramesClass;
51 
52 typedef struct _mGIFAnimateFrame{
53  int off_x;
54  int off_y;
55  int disposal;
56  unsigned int delay_time;
57  BITMAP bmp;
58  struct _mGIFAnimateFrame* next;
59  struct _mGIFAnimateFrame* prev;
60 }mGIFAnimateFrame;
61 
62 
63 #define mGIFAnimateFramesHeader(clsName) \
64  mAnimateFramesHeader(clsName) \
65  /*RGB bk;*/ \
66  mGIFAnimateFrame *frames; \
67  HDC mem_dc;
68 
69 struct _mGIFAnimateFrames{
70  mGIFAnimateFramesHeader(mAnimateFrames)
71 };
72 
73 #define mGIFAnimateFramesClassHeader(clss, superCls) \
74  mAnimateFramesClassHeader(clss, superCls)
75 
76 struct _mGIFAnimateFramesClass{
77  mGIFAnimateFramesClassHeader(mGIFAnimateFrames, mAnimateFrames)
78 };
79 
80 MGNCS_EXPORT extern mGIFAnimateFramesClass g_stmGIFAnimateFramesCls;
81 
82 MGNCS_EXPORT mGIFAnimateFrames * ncsCreateAnimateFramesFromGIFFile(const char* gif_file);
83 
84 MGNCS_EXPORT mGIFAnimateFrames * ncsCreateAnimateFramesFromGIFMem(const void* mem, int size);
85 
86 #ifdef _cplusplus
87 }
88 #endif
89 
90 #endif