mGNCS API Reference  v1.2.0
A new control set and a new framework for MiniGUI apps
mgroupbox.h
Go to the documentation of this file.
1 
42 #ifndef _MGUI_NCSCTRL_GRPBOX_H
43 #define _MGUI_NCSCTRL_GRPBOX_H
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif /* __cplusplus */
48 
59 #define NCSCTRL_GROUPBOX NCSCLASSNAME("groupbox")
60 
61 typedef struct _mGroupBox mGroupBox;
62 typedef struct _mGroupBoxClass mGroupBoxClass;
63 typedef struct _mGroupBoxRenderer mGroupBoxRenderer;
64 
65 #define mGroupBoxHeader(clsName) \
66  mStaticHeader(clsName)
67 
73 struct _mGroupBox
74 {
75  mGroupBoxHeader(mGroupBox)
76 };
77 
78 #define mGroupBoxClassHeader(clsName, parentClass) \
79  mStaticClassHeader(clsName, parentClass) \
80  int (*hitTest)(clsName *self, int x, int y);
81 
94 struct _mGroupBoxClass
95 {
96  mGroupBoxClassHeader(mGroupBox, mStatic)
97 };
98 
99 #define mGroupBoxRendererHeader(clsName, parentClass) \
100  mStaticRendererHeader(clsName, parentClass) \
101  void (*drawGroupbox)(clsName *self, HDC hdc, const RECT *pRect);
102 
114 /* define the render of image static */
115 struct _mGroupBoxRenderer {
116  mGroupBoxRendererHeader(mGroupBox, mStatic)
117 };
118 
124 MGNCS_EXPORT extern mGroupBoxClass g_stmGroupBoxCls;
125 
131 /* property */
133  NCSP_GRPBOX_MAX = NCSP_STATIC_MAX + 1
134 };
135 
136 #define NCSS_GRPBOX_SHIFT NCSS_STATIC_SHIFT
137 
143  NCSN_GRPBOX_MAX = NCSN_STATIC_MAX + 1
144 };
145 
149 #ifdef __cplusplus
150 }
151 #endif /* __cplusplus */
152 
153 #endif /* _MGUI_NCSCTRL_GRPBOX_H */
154 
MGNCS_EXPORT mGroupBoxClass g_stmGroupBoxCls
global mGroupBoxClass
enumGroupBoxNotify
the notification code of mGroupBox
Definition: mgroupbox.h:142
groupbox class, derived from mStatic
groupbox class renderer interface, derived from mStaticRenderer
mGroupBoxProp
the properties id of mGroupBox
Definition: mgroupbox.h:132
struct of groupbox control, derived from mStaticClass
Static class, derived from mWidget.