mimage.h
00001
00002 #ifndef _MGUI_NCSCTRL_IMAGESTATIC_H
00003 #define _MGUI_NCSCTRL_IMAGESTATIC_H
00004
00005
00006 #ifdef __cplusplus
00007 extern "C" {
00008 #endif
00009 #include "mstatic.h"
00010
00020 #define NCSCTRL_IMAGE NCSCLASSNAME("image")
00021
00022 typedef struct _mImage mImage;
00023 typedef struct _mImageClass mImageClass;
00024 typedef struct _mImageRenderer mImageRenderer;
00025
00026 #define mImageHeader(clsName) \
00027 mStaticHeader(clsName)
00028
00033 struct _mImage
00034 {
00035 mImageHeader(mImage)
00036 };
00037
00038 #define mImageClassHeader(clsName, parentClass) \
00039 mStaticClassHeader(clsName, parentClass)
00040
00045 struct _mImageClass
00046 {
00047 mImageClassHeader(mImage, mStatic)
00048 };
00049
00050 #define mImageRendererHeader(clsName, parentClass) \
00051 mStaticRendererHeader(clsName, parentClass)
00052
00056
00057 struct _mImageRenderer {
00058 mImageRendererHeader(mImage, mStatic)
00059 };
00060
00066 MGNCS_EXPORT extern mImageClass g_stmImageCls;
00067
00073
00074 enum mImageProp {
00082 NCSP_IMAGE_IMAGE = NCSP_STATIC_MAX + 1,
00090 NCSP_IMAGE_IMAGEFILE,
00098 NCSP_IMAGE_DRAWMODE,
00099 NCSP_IMAGE_MAX
00100 };
00101
00102 #define NCSS_IMAGE_SHIFT NCSS_STATIC_SHIFT
00103
00108 enum enumImageNotify{
00109 NCSN_IMAGE_MAX = NCSN_STATIC_MAX + 1
00110 };
00111
00116 #ifdef __cplusplus
00117 }
00118 #endif
00119
00120 #endif
00121