mGNCS API Reference  v1.2.0
A new control set and a new framework for MiniGUI apps
mpanel.h
Go to the documentation of this file.
1 
42 #ifndef _MGUI_NCSCTRL_PANEL_H
43 #define _MGUI_NCSCTRL_PANEL_H
44 
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif /* __cplusplus */
49 
59 #define NCSCTRL_PANEL NCSCLASSNAME("panel")
60 
61 typedef struct _mPanel mPanel;
62 typedef struct _mPanelClass mPanelClass;
63 typedef struct _mPanelRenderer mPanelRenderer;
64 
65 #define mPanelHeader(className) \
66  mWidgetHeader(className)
67 
73 struct _mPanel
74 {
75  mPanelHeader(mPanel)
76 };
77 
78 #define mPanelClassHeader(clsName, parentClass) \
79  mWidgetClassHeader(clsName, parentClass)
80 
86 struct _mPanelClass
87 {
88  mPanelClassHeader(mPanel, mWidget)
89 };
90 
91 #define mPanelRendererHeader(clsName, parentClass) \
92  mWidgetRendererHeader(clsName, parentClass)
93 
99 struct _mPanelRenderer {
100  mPanelRendererHeader(mPanel, mWidget)
101 };
102 
103 
110 MGNCS_EXPORT extern mPanelClass g_stmPanelCls;
111 
120  NCSP_PANEL_MAX = NCSP_WIDGET_MAX + 1
121 };
122 
127 #define NCSS_PANEL_SHIFT NCSS_WIDGET_SHIFT
128 
137  NCSN_PANEL_MAX = NCSN_WIDGET_MAX + 1
138 };
139 
142 #ifdef __cplusplus
143 }
144 #endif /* __cplusplus */
145 
146 #endif /* _MGUI_NCSCTRL_PANEL_H */
mPanelNotify
The notification code id of mPanel.
Definition: mpanel.h:133
The structure of mPanel renderer, which derived from mWidgetRenderer.
define the mWidget members, inherit from mComponent
The structure of mPanel control, which derived from mWidget. It is a control which is capable of cont...
MGNCS_EXPORT mPanelClass g_stmPanelCls
The instance of mPanelClass.
The virtual function table of mPanelClass, which derived from mWidgetClass.
mPanelProp
The properties id of mPanel.
Definition: mpanel.h:116