mGNCS API Reference  v1.5.0
A new control set and a new framework for MiniGUI apps
mpanel.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_PANEL_H
55 #define _MGUI_NCSCTRL_PANEL_H
56 
57 
58 #ifdef __cplusplus
59 extern "C" {
60 #endif /* __cplusplus */
61 
71 #define NCSCTRL_PANEL NCSCLASSNAME("panel")
72 
73 typedef struct _mPanel mPanel;
74 typedef struct _mPanelClass mPanelClass;
75 typedef struct _mPanelRenderer mPanelRenderer;
76 
77 #define mPanelHeader(className) \
78  mWidgetHeader(className)
79 
85 struct _mPanel
86 {
87  mPanelHeader(mPanel)
88 };
89 
90 #define mPanelClassHeader(clsName, parentClass) \
91  mWidgetClassHeader(clsName, parentClass)
92 
98 struct _mPanelClass
99 {
100  mPanelClassHeader(mPanel, mWidget)
101 };
102 
103 #define mPanelRendererHeader(clsName, parentClass) \
104  mWidgetRendererHeader(clsName, parentClass)
105 
111 struct _mPanelRenderer {
112  mPanelRendererHeader(mPanel, mWidget)
113 };
114 
115 
122 MGNCS_EXPORT extern mPanelClass g_stmPanelCls;
123 
132  NCSP_PANEL_MAX = NCSP_WIDGET_MAX + 1
133 };
134 
139 #define NCSS_PANEL_SHIFT NCSS_WIDGET_SHIFT
140 
149  NCSN_PANEL_MAX = NCSN_WIDGET_MAX + 1
150 };
151 
154 #ifdef __cplusplus
155 }
156 #endif /* __cplusplus */
157 
158 #endif /* _MGUI_NCSCTRL_PANEL_H */
mPanelNotify
mPanelNotify
The notification code id of mPanel.
Definition: mpanel.h:145
mPanelClass
The virtual function table of mPanelClass, which derived from mWidgetClass.
mWidget
define the mWidget members, inherit from mComponent
NCSN_PANEL_MAX
@ NCSN_PANEL_MAX
Definition: mpanel.h:149
NCSP_PANEL_MAX
@ NCSP_PANEL_MAX
Definition: mpanel.h:132
mPanelRenderer
The structure of mPanel renderer, which derived from mWidgetRenderer.
mPanel
The structure of mPanel control, which derived from mWidget. It is a control which is capable of cont...
g_stmPanelCls
MGNCS_EXPORT mPanelClass g_stmPanelCls
The instance of mPanelClass.
mPanelProp
mPanelProp
The properties id of mPanel.
Definition: mpanel.h:128