mGNCS API Reference  v1.2.0
A new control set and a new framework for MiniGUI apps
mradiobutton.h
Go to the documentation of this file.
1 
42 #ifndef _MGUI_NCSCTRL_RDOBTN_H
43 #define _MGUI_NCSCTRL_RDOBTN_H
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif /* __cplusplus */
48 
59 #define NCSCTRL_RADIOBUTTON NCSCLASSNAME("radiobutton")
60 
61 typedef struct _mRadioButton mRadioButton;
62 typedef struct _mRadioButtonClass mRadioButtonClass;
63 typedef struct _mRadioButtonRenderer mRadioButtonRenderer;
64 
65 #define mRadioButtonHeader(className) \
66  mCheckButtonHeader(className)
67 
72 struct _mRadioButton
73 {
74  mRadioButtonHeader(mRadioButton)
75 };
76 
77 #define mRadioButtonClassHeader(className, parentClass) \
78  mCheckButtonClassHeader(className, parentClass)
79 
84 struct _mRadioButtonClass
85 {
86  mRadioButtonClassHeader(mRadioButton, mCheckButton)
87 };
88 
89 #define mRadioButtonRendererHeader(clsName, parentClass) \
90  mCheckButtonRendererHeader(clsName, parentClass) \
91  void (*drawRadiobutton)(clsName* self,HDC hdc, const RECT* pRect, int status);
92 
107 /* define the render of image static */
108 struct _mRadioButtonRenderer {
109  mRadioButtonRendererHeader(mRadioButton, mCheckButton)
110 };
111 
116 MGNCS_EXPORT extern mRadioButtonClass g_stmRadioButtonCls;
117 
123 /*property*/
125  NCSP_RDOBTN_MAX = NCSP_CHKBTN_MAX + 1,
126 };
127 
128 #define NCSS_RDOBTN_SHIFT NCSS_CHKBTN_SHIFT
129 
136  NCSN_RDOBTN_MAX = NCSN_CHKBTN_MAX + 1
137 };
138 
143 #ifdef __cplusplus
144 }
145 #endif /* __cplusplus */
146 
147 #endif /* _MGUI_NCSCTRL_RDOBTN_H */
148 
define the member of Radiobutton, derived from mCheckButton
CheckButton, derived from mButton.
Radiobutton struct of control, derived from mCheckButtonClass.
enumRadioButtonNotify
the notification id of mRadioButton
Definition: mradiobutton.h:135
mRadioButtonProp
the properties id of mRadioButton
Definition: mradiobutton.h:124
MGNCS_EXPORT mRadioButtonClass g_stmRadioButtonCls
global mRadioButtonClass