mGNCS API Reference  v1.2.0
A new control set and a new framework for MiniGUI apps
mstatic.h
Go to the documentation of this file.
1 
42 #ifndef _MGUI_NCSCTRL_STATIC_H
43 #define _MGUI_NCSCTRL_STATIC_H
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif /* __cplusplus */
48 
54 #include "mwidget.h"
55 
61 #define NCSCTRL_STATIC NCSCLASSNAME("static")
62 
63 typedef struct _mStatic mStatic;
64 typedef struct _mStaticClass mStaticClass;
65 typedef struct _mStaticRenderer mStaticRenderer;
66 
67 /* define mStatic */
68 #define mStaticHeader(clsName) \
69  mWidgetHeader(clsName) \
70 
71 
77 struct _mStatic
78 {
79  mStaticHeader(mStatic)
80 };
81 
82 /* define mStaticClass */
83 #define mStaticClassHeader(clsName, parentClass) \
84  mWidgetClassHeader(clsName, parentClass) \
85 
86 
91 struct _mStaticClass
92 {
93  mStaticClassHeader(mStatic, mWidget)
94 };
95 
96 /* define IRendererStatic */
97 #define mStaticRendererHeader(clsName, parentClass) \
98  mWidgetRendererHeader(clsName, parentClass)
99 
104 struct _mStaticRenderer {
105  mStaticRendererHeader(mStatic, mWidget)
106 };
107 
112 MGNCS_EXPORT extern mStaticClass g_stmStaticCls;
113 
114 /* define property of static */
115 
129  NCSP_STATIC_ALIGN = NCSP_WIDGET_MAX + 1,
146  NCSP_STATIC_MAX
147 };
148 
154 #define NCSS_STATIC_PREFIX (0x1<<(NCSS_WIDGET_SHIFT))
155 
160 #define NCSS_STATIC_SHIFT (NCSS_WIDGET_SHIFT + 1)
161 
167  NCSN_STATIC_MAX = NCSN_WIDGET_MAX + 1
168 };
169 
173 #ifdef __cplusplus
174 }
175 #endif /* __cplusplus */
176 
177 #endif /* _MGUI_NCSCTRL_STATIC_H */
178 
mStaticProp
the properties id of mStatic
Definition: mstatic.h:121
define the mWidget members, inherit from mComponent
enumStaticNotify
the notification code of mStatic
Definition: mstatic.h:166
Align the content of static controller in vertical mode.
Definition: mstatic.h:137
Set the content of static controller to autowrap mode.
Definition: mstatic.h:145
struct of Static control, derived from mWidgetClass
Static class, derived from mWidget.
Static class renderer interface, derived from mWidgetRenderer.
Align the content of static controller in horizontal mode.
Definition: mstatic.h:129