mseparator.h
00001
00002 #ifndef _MGUI_NCSCTRL_SPRTR_H
00003 #define _MGUI_NCSCTRL_SPRTR_H
00004
00005
00006 #ifdef __cplusplus
00007 extern "C" {
00008 #endif
00009
00020 #define NCSCTRL_SEPARATOR NCSCLASSNAME("separator")
00021
00022 typedef struct _mSeparator mSeparator;
00023 typedef struct _mSeparatorClass mSeparatorClass;
00024 typedef struct _mSeparatorRenderer mSeparatorRenderer;
00025
00026 #define mSeparatorHeader(clsName) \
00027 mStaticHeader(clsName)
00028
00034 struct _mSeparator
00035 {
00036 mSeparatorHeader(mSeparator)
00037 };
00038
00039 #define mSeparatorClassHeader(clsName, parentClass) \
00040 mStaticClassHeader(clsName, parentClass)
00041
00047 struct _mSeparatorClass
00048 {
00049 mSeparatorClassHeader(mSeparator, mStatic)
00050 };
00051
00052 #define mHSeparator mSeparator
00053 #define mHSeparatorClass mSeparatorClass
00054 #define g_stmHSeparatorCls g_stmSeparatorCls
00055 #define mVSeparator mSeparator
00056 #define mVSeparatorclass mSeparatorclass
00057 #define g_stmVSeparatorCls g_stmSeparatorCls
00058
00059 #define mSeparatorRendererHeader(clsName, parentClass) \
00060 mStaticRendererHeader(clsName, parentClass)
00061
00067
00068 struct _mSeparatorRenderer {
00069 mSeparatorRendererHeader(mSeparator, mStatic)
00070 };
00071
00077 MGNCS_EXPORT extern mSeparatorClass g_stmSeparatorCls;
00078
00084
00085 enum mSeparatorProp {
00086 NCSP_SPRTR_MAX = NCSP_STATIC_MAX + 1
00087 };
00088
00093 #define NCSS_SPRTR_VERT (0x1<<NCSS_STATIC_SHIFT)
00094 #define NCSS_SPRTR_SHIFT (1+NCSS_STATIC_SHIFT)
00095
00100 enum enumSeparatorNotify{
00101 NCSN_SPRTR_MAX = NCSN_STATIC_MAX + 1
00102 };
00103
00107 #ifdef __cplusplus
00108 }
00109 #endif
00110
00111 #endif
00112