mGNCS API Reference  v1.5.0
A new control set and a new framework for MiniGUI apps
mstatic.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_STATIC_H
55 #define _MGUI_NCSCTRL_STATIC_H
56 
57 #ifdef __cplusplus
58 extern "C" {
59 #endif /* __cplusplus */
60 
66 #include "mwidget.h"
67 
73 #define NCSCTRL_STATIC NCSCLASSNAME("static")
74 
75 typedef struct _mStatic mStatic;
76 typedef struct _mStaticClass mStaticClass;
77 typedef struct _mStaticRenderer mStaticRenderer;
78 
79 /* define mStatic */
80 #define mStaticHeader(clsName) \
81  mWidgetHeader(clsName) \
82 
83 
89 struct _mStatic
90 {
91  mStaticHeader(mStatic)
92 };
93 
94 /* define mStaticClass */
95 #define mStaticClassHeader(clsName, parentClass) \
96  mWidgetClassHeader(clsName, parentClass) \
97 
98 
103 struct _mStaticClass
104 {
105  mStaticClassHeader(mStatic, mWidget)
106 };
107 
108 /* define IRendererStatic */
109 #define mStaticRendererHeader(clsName, parentClass) \
110  mWidgetRendererHeader(clsName, parentClass)
111 
116 struct _mStaticRenderer {
117  mStaticRendererHeader(mStatic, mWidget)
118 };
119 
124 MGNCS_EXPORT extern mStaticClass g_stmStaticCls;
125 
126 /* define property of static */
127 
141  NCSP_STATIC_ALIGN = NCSP_WIDGET_MAX + 1,
158  NCSP_STATIC_MAX
159 };
160 
166 #define NCSS_STATIC_PREFIX (0x1<<(NCSS_WIDGET_SHIFT))
167 
172 #define NCSS_STATIC_SHIFT (NCSS_WIDGET_SHIFT + 1)
173 
179  NCSN_STATIC_MAX = NCSN_WIDGET_MAX + 1
180 };
181 
185 #ifdef __cplusplus
186 }
187 #endif /* __cplusplus */
188 
189 #endif /* _MGUI_NCSCTRL_STATIC_H */
190 
mStaticRenderer
Static class renderer interface, derived from mWidgetRenderer.
NCSP_STATIC_VALIGN
@ NCSP_STATIC_VALIGN
Align the content of static controller in vertical mode.
Definition: mstatic.h:149
NCSP_STATIC_ALIGN
@ NCSP_STATIC_ALIGN
Align the content of static controller in horizontal mode.
Definition: mstatic.h:141
NCSP_STATIC_AUTOWRAP
@ NCSP_STATIC_AUTOWRAP
Set the content of static controller to autowrap mode.
Definition: mstatic.h:157
mWidget
define the mWidget members, inherit from mComponent
mStatic
Static class, derived from mWidget.
mStaticClass
struct of Static control, derived from mWidgetClass
mStaticProp
mStaticProp
the properties id of mStatic
Definition: mstatic.h:133
enumStaticNotify
enumStaticNotify
the notification code of mStatic
Definition: mstatic.h:178