mGNCS API Reference  v1.5.0
A new control set and a new framework for MiniGUI apps
mcheckbutton.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_NCSCTRL_CHKBTN_H
55 #define _MGUI_NCSCTRL_CHKBTN_H
56 
57 
58 #ifdef __cplusplus
59 extern "C" {
60 #endif /* __cplusplus */
61 
72 #define NCSCTRL_CHECKBUTTON NCSCLASSNAME("checkbutton")
73 
74 typedef struct _mCheckButton mCheckButton;
75 typedef struct _mCheckButtonClass mCheckButtonClass;
76 typedef struct _mCheckButtonRenderer mCheckButtonRenderer;
77 
78 #define mCheckButtonHeader(className) \
79  mButtonHeader(className)
80 
86 struct _mCheckButton
87 {
88  mCheckButtonHeader(mCheckButton)
89 };
90 
91 #define mCheckButtonClassHeader(className, parentClass) \
92  mButtonClassHeader(className, parentClass)
93 
99 struct _mCheckButtonClass
100 {
101  mCheckButtonClassHeader(mCheckButton, mButton)
102 };
103 
104 #define mCheckButtonRendererHeader(clsName, parentClass) \
105  mButtonRendererHeader(clsName, parentClass) \
106  void (*drawCheckbutton)(clsName *self, HDC hdc, const RECT* pRect, int status);
107 
123 /* define the render of image static */
124 struct _mCheckButtonRenderer {
125  mCheckButtonRendererHeader(mCheckButton, mButton)
126 };
127 
132 MGNCS_EXPORT extern mCheckButtonClass g_stmCheckButtonCls;
133 
139  NCSP_CHKBTN_MAX = NCSP_BUTTON_MAX + 1
140 };
141 
148  NCSN_CHKBTN_MAX = NCSN_BUTTON_MAX + 1
149 };
150 
151 #define NCSS_CHKBTN_SHIFT NCSS_BUTTON_SHIFT
152 
156 #ifdef __cplusplus
157 }
158 #endif /* __cplusplus */
159 
160 #endif /* _MGUI_NCSCTRL_RECTANGLE_H */
161 
mCheckButtonNotify
mCheckButtonNotify
the notification id of mCheckButton
Definition: mcheckbutton.h:147
mButton
Button class, derived from mWidget.
mCheckButtonProp
mCheckButtonProp
the properties id of mCheckButton, derived from mButtonProp
Definition: mcheckbutton.h:138
mCheckButton
CheckButton, derived from mButton.
g_stmCheckButtonCls
MGNCS_EXPORT mCheckButtonClass g_stmCheckButtonCls
global mCheckButtonClass
mCheckButtonClass
checkbutton class struct of button control, derived from mButtonClass
mCheckButtonRenderer
Checkbutton class renderer interface, derived from mButtonRenderer.