mstatic.h

00001 
00002 #ifndef _MGUI_NCSCTRL_STATIC_H
00003 #define _MGUI_NCSCTRL_STATIC_H
00004  
00005 #ifdef __cplusplus
00006 extern "C" {
00007 #endif  /* __cplusplus */
00008 
00014 #include "mwidget.h"
00015 
00021 #define NCSCTRL_STATIC   NCSCLASSNAME("static") 
00022 
00023 typedef struct _mStatic mStatic;
00024 typedef struct _mStaticClass mStaticClass;
00025 typedef struct _mStaticRenderer mStaticRenderer;
00026 
00027 /* define mStatic */
00028 #define mStaticHeader(clsName)  \
00029         mWidgetHeader(clsName) \
00030 
00031 
00037 struct _mStatic
00038 {
00039         mStaticHeader(mStatic)
00040 };
00041 
00042 /* define mStaticClass */
00043 #define mStaticClassHeader(clsName, parentClass)    \
00044         mWidgetClassHeader(clsName, parentClass)        \
00045 
00046 
00051 struct _mStaticClass
00052 {
00053         mStaticClassHeader(mStatic, mWidget)
00054 };
00055 
00056 /* define IRendererStatic */
00057 #define mStaticRendererHeader(clsName, parentClass) \
00058         mWidgetRendererHeader(clsName, parentClass)
00059 
00064 struct  _mStaticRenderer {
00065         mStaticRendererHeader(mStatic, mWidget)
00066 };
00067 
00072 MGNCS_EXPORT extern mStaticClass g_stmStaticCls;
00073 
00074 /* define property of static */
00075 
00081 enum mStaticProp {
00089         NCSP_STATIC_ALIGN = NCSP_WIDGET_MAX + 1,
00097         NCSP_STATIC_VALIGN,
00105         NCSP_STATIC_AUTOWRAP,
00106         NCSP_STATIC_MAX
00107 };
00108 
00114 #define NCSS_STATIC_PREFIX  (0x1<<(NCSS_WIDGET_SHIFT))
00115 
00120 #define NCSS_STATIC_SHIFT  (NCSS_WIDGET_SHIFT + 1)
00121 
00126 enum enumStaticNotify {
00127         NCSN_STATIC_MAX = NCSN_WIDGET_MAX + 1
00128 };
00129 
00133 #ifdef __cplusplus
00134 }
00135 #endif  /* __cplusplus */
00136 
00137 #endif /* _MGUI_NCSCTRL_STATIC_H */
00138 
Generated on Fri Jun 10 11:18:06 2011 for New Control Set V1.0.0 API Reference by  doxygen 1.6.3