mGNCS API Reference  v1.5.0
A new control set and a new framework for MiniGUI apps
mradiobutton.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_RDOBTN_H
55 #define _MGUI_NCSCTRL_RDOBTN_H
56 
57 #ifdef __cplusplus
58 extern "C" {
59 #endif /* __cplusplus */
60 
71 #define NCSCTRL_RADIOBUTTON NCSCLASSNAME("radiobutton")
72 
73 typedef struct _mRadioButton mRadioButton;
74 typedef struct _mRadioButtonClass mRadioButtonClass;
75 typedef struct _mRadioButtonRenderer mRadioButtonRenderer;
76 
77 #define mRadioButtonHeader(className) \
78  mCheckButtonHeader(className)
79 
84 struct _mRadioButton
85 {
86  mRadioButtonHeader(mRadioButton)
87 };
88 
89 #define mRadioButtonClassHeader(className, parentClass) \
90  mCheckButtonClassHeader(className, parentClass)
91 
96 struct _mRadioButtonClass
97 {
98  mRadioButtonClassHeader(mRadioButton, mCheckButton)
99 };
100 
101 #define mRadioButtonRendererHeader(clsName, parentClass) \
102  mCheckButtonRendererHeader(clsName, parentClass) \
103  void (*drawRadiobutton)(clsName* self,HDC hdc, const RECT* pRect, int status);
104 
119 /* define the render of image static */
120 struct _mRadioButtonRenderer {
121  mRadioButtonRendererHeader(mRadioButton, mCheckButton)
122 };
123 
128 MGNCS_EXPORT extern mRadioButtonClass g_stmRadioButtonCls;
129 
135 /*property*/
137  NCSP_RDOBTN_MAX = NCSP_CHKBTN_MAX + 1,
138 };
139 
140 #define NCSS_RDOBTN_SHIFT NCSS_CHKBTN_SHIFT
141 
148  NCSN_RDOBTN_MAX = NCSN_CHKBTN_MAX + 1
149 };
150 
155 #ifdef __cplusplus
156 }
157 #endif /* __cplusplus */
158 
159 #endif /* _MGUI_NCSCTRL_RDOBTN_H */
160 
enumRadioButtonNotify
enumRadioButtonNotify
the notification id of mRadioButton
Definition: mradiobutton.h:147
g_stmRadioButtonCls
MGNCS_EXPORT mRadioButtonClass g_stmRadioButtonCls
global mRadioButtonClass
mRadioButtonClass
Radiobutton struct of control, derived from mCheckButtonClass.
mCheckButton
CheckButton, derived from mButton.
mRadioButton
define the member of Radiobutton, derived from mCheckButton
mRadioButtonProp
mRadioButtonProp
the properties id of mRadioButton
Definition: mradiobutton.h:136