mstaticpiece.h
00001 #ifndef _MGNCS_STATICPIECE_H
00002 #define _MGNCS_STATICPIECE_H
00003
00004 #ifdef __cplusplus
00005 extern "C" {
00006 #endif
00007
00008 typedef struct _mStaticPieceClass mStaticPieceClass;
00009 typedef struct _mStaticPiece mStaticPiece;
00010
00011 #define mStaticPieceClassHeader(clss, superCls) \
00012 mHotPieceClassHeader(clss, superCls)
00013
00014 struct _mStaticPieceClass
00015 {
00016 mStaticPieceClassHeader(mStaticPiece, mHotPiece)
00017 };
00018
00019 MGNCS_EXPORT extern mStaticPieceClass g_stmStaticPieceCls;
00020
00021 #define mStaticPieceHeader(clss) \
00022 mHotPieceHeader(clss) \
00023 int left:16; \
00024 int top:16; \
00025 int right:16; \
00026 int bottom:16;
00027
00028 struct _mStaticPiece
00029 {
00030 mStaticPieceHeader(mStaticPiece)
00031 };
00032
00033 #define SetStaticPieceRect(self, prc) do{ \
00034 (self)->left = (short)((prc->left)&0xFFFF); \
00035 (self)->top = (short)((prc->top)&0xFFFF); \
00036 (self)->right = (short)((prc->right)&0xFFFF); \
00037 (self)->bottom = (short)((prc->bottom)&0xFFFF); \
00038 }while(0)
00039
00040
00041 #ifdef __cplusplus
00042 }
00043 #endif
00044
00045 #endif
00046