mGNCS API Reference  v1.2.0
A new control set and a new framework for MiniGUI apps
mtimer.h
Go to the documentation of this file.
1 
42 #ifndef _MGUI_NCSCTRL_TIMER_H
43 #define _MGUI_NCSCTRL_TIMER_H
44 
45 #ifdef __cplusplus
46 extern "C"{
47 #endif
48 
58 #define NCSCTRL_TIMER NCSCLASSNAME("timer")
59 
60 typedef struct _mTimerClass mTimerClass;
61 typedef struct _mTimer mTimer;
62 
63 #define mTimerClassHeader(clss, superCls) \
64  mInvsbCompClassHeader(clss, superCls) \
65  BOOL (*start)(clss *self); \
66  void (*stop)(clss *self); \
67  HWND (*getParent)(clss *self);
68 
87 struct _mTimerClass {
88  mTimerClassHeader(mTimer, mInvsbComp)
89 };
90 
95 MGNCS_EXPORT extern mTimerClass g_stmTimerCls; //Class(mTimer);
96 
97 #define mTimerHeader(clss) \
98  mInvsbCompHeader(clss) \
99  DWORD interval;
100 
109 struct _mTimer {
110  mTimerHeader(mTimer)
111 };
112 
118  NCSP_TIMER_INTERVAL = NCSP_IVCMPT_MAX + 1,
119  NCSP_TIMER_MAX
120 };
138 typedef BOOL (*NCS_CB_ONTIMER)(mTimer* timer, DWORD total_count);
139 
142 #ifdef __cplusplus
143 }
144 #endif
145 
146 #endif
147 
the interval of timer
Definition: mtimer.h:118
the timer member define
the class of Timer object
ncsTimerProp
the mTimer's property define
Definition: mtimer.h:117
BOOL(* NCS_CB_ONTIMER)(mTimer *timer, DWORD total_count)
the callback of event MSG_TIMER
Definition: mtimer.h:138
MGNCS_EXPORT mTimerClass g_stmTimerCls
the singleton of mTimerClass
define the mInvsbComp members , inherit from mComponent. An Invisible Component is a Component only s...