mGNCS API Reference  v1.5.0
A new control set and a new framework for MiniGUI apps
mchecknode.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_WIDGET_CHECKNODE_H
55 #define _MGUI_WIDGET_CHECKNODE_H
56 
57 typedef struct _mCheckNode mCheckNode;
58 typedef struct _mCheckNodeClass mCheckNodeClass;
59 
60 #define mCheckNodeHeader(className) \
61  mNodeHeader(className) \
62  BOOL isChecked;
63 
64 struct _mCheckNode
65 {
66  mCheckNodeHeader(mCheckNode)
67 };
68 
69 #define mCheckNodeClassHeader(clsName, superCls) \
70  mNodeClassHeader(clsName, superCls) \
71  BOOL (*setCheck)(clsName* , BOOL isCheck);
72 
73 struct _mCheckNodeClass
74 {
75  mCheckNodeClassHeader(mCheckNode, mNode)
76 };
77 
78 MGNCS_EXPORT extern mCheckNodeClass g_stmCheckNodeCls;
79 
80 #ifdef __cplusplus
81 extern "C" {
82 #endif /* __cplusplus */
83 
84 #ifdef __cplusplus
85 }
86 #endif /* __cplusplus */
87 
88 #endif /* _MGUI_WIDGET_CHECKNODE_H */
89 
mNode
The structure of mNode. It is the basic class of all nodes occur within specific controls....