mGNCS API Reference  v1.5.0
A new control set and a new framework for MiniGUI apps
mmemanimateframes.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 
54 #ifndef _MGUI_NCS_CTRLMEMANIMATEFRAMES_H
55 #define _MGUI_NCS_CTRLMEMANIMATEFRAMES_H
56 
57 #ifdef _cplusplus
58 extern "C"{
59 #endif
60 
61 typedef struct _mMemAnimateFrames mMemAnimateFrames;
62 typedef struct _mMemAnimateFramesClass mMemAnimateFramesClass;
63 
64 typedef struct _mMemAnimateFrame{
65  PBITMAP pbmp;
66  struct _mMemAnimateFrame* next;
67  struct _mMemAnimateFrame* prev;
68 }mMemAnimateFrame;
69 
70 #define mMemAnimateFramesHeader(clsName) \
71  mAnimateFramesHeader(clsName) \
72  mMemAnimateFrame *frames;
73 
74 struct _mMemAnimateFrames{
75  mMemAnimateFramesHeader(mAnimateFrames)
76 };
77 
78 #define mMemAnimateFramesClassHeader(clss, superCls) \
79  mAnimateFramesClassHeader(clss, superCls) \
80 
81 struct _mMemAnimateFramesClass{
82  mMemAnimateFramesClassHeader(mMemAnimateFrames, mAnimateFrames)
83 };
84 
85 MGNCS_EXPORT extern mMemAnimateFramesClass g_stmMemAnimateFramesCls;
86 
87 //MGNCS_EXPORT mMemAnimateFrames * ncsCreateAnimateFramesFromMEM(PBITMAP * bmps, int count);
88 
89 #ifdef _cplusplus
90 }
91 #endif
92 
93 #endif