mGNCS API Reference  v1.2.0
A new control set and a new framework for MiniGUI apps
mcheckbutton.h
Go to the documentation of this file.
1 
42 #ifndef _MGUI_NCSCTRL_CHKBTN_H
43 #define _MGUI_NCSCTRL_CHKBTN_H
44 
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif /* __cplusplus */
49 
60 #define NCSCTRL_CHECKBUTTON NCSCLASSNAME("checkbutton")
61 
62 typedef struct _mCheckButton mCheckButton;
63 typedef struct _mCheckButtonClass mCheckButtonClass;
64 typedef struct _mCheckButtonRenderer mCheckButtonRenderer;
65 
66 #define mCheckButtonHeader(className) \
67  mButtonHeader(className)
68 
74 struct _mCheckButton
75 {
76  mCheckButtonHeader(mCheckButton)
77 };
78 
79 #define mCheckButtonClassHeader(className, parentClass) \
80  mButtonClassHeader(className, parentClass)
81 
87 struct _mCheckButtonClass
88 {
89  mCheckButtonClassHeader(mCheckButton, mButton)
90 };
91 
92 #define mCheckButtonRendererHeader(clsName, parentClass) \
93  mButtonRendererHeader(clsName, parentClass) \
94  void (*drawCheckbutton)(clsName *self, HDC hdc, const RECT* pRect, int status);
95 
111 /* define the render of image static */
112 struct _mCheckButtonRenderer {
113  mCheckButtonRendererHeader(mCheckButton, mButton)
114 };
115 
120 MGNCS_EXPORT extern mCheckButtonClass g_stmCheckButtonCls;
121 
127  NCSP_CHKBTN_MAX = NCSP_BUTTON_MAX + 1
128 };
129 
136  NCSN_CHKBTN_MAX = NCSN_BUTTON_MAX + 1
137 };
138 
139 #define NCSS_CHKBTN_SHIFT NCSS_BUTTON_SHIFT
140 
144 #ifdef __cplusplus
145 }
146 #endif /* __cplusplus */
147 
148 #endif /* _MGUI_NCSCTRL_RECTANGLE_H */
149 
MGNCS_EXPORT mCheckButtonClass g_stmCheckButtonCls
global mCheckButtonClass
CheckButton, derived from mButton.
mCheckButtonProp
the properties id of mCheckButton, derived from mButtonProp
Definition: mcheckbutton.h:126
Checkbutton class renderer interface, derived from mButtonRenderer.
checkbutton class struct of button control, derived from mButtonClass
Button class, derived from mWidget.
mCheckButtonNotify
the notification id of mCheckButton
Definition: mcheckbutton.h:135