mrectpiece.h
00001 #ifndef _MGNCS_RECTPIECE_H
00002 #define _MGNCS_RECTPIECE_H
00003
00004 #ifdef __cplusplus
00005 extern "C" {
00006 #endif
00007
00008 typedef struct _mRectPieceClass mRectPieceClass;
00009 typedef struct _mRectPiece mRectPiece;
00010
00011 #define mRectPieceClassHeader(clss, superCls) \
00012 mStaticPieceClassHeader(clss, superCls)
00013
00014 struct _mRectPieceClass
00015 {
00016 mRectPieceClassHeader(mRectPiece, mStaticPiece)
00017 };
00018
00019 MGNCS_EXPORT extern mRectPieceClass g_stmRectPieceCls;
00020
00021 #define mRectPieceHeader(clss) \
00022 mStaticPieceHeader(clss) \
00023 DWORD fill_color; \
00024 DWORD border_color; \
00025 unsigned int border_size:12; \
00026 unsigned int x_radius:10; \
00027 unsigned int y_radius:10;
00028
00029 struct _mRectPiece
00030 {
00031 mRectPieceHeader(mRectPiece)
00032 };
00033
00034 enum mRectPieceProps {
00035 NCSP_RECTPIECE_FILLCOLOR = RECTPIECE_PROP_BEGIN,
00036 NCSP_RECTPIECE_BORDERCOLOR,
00037 NCSP_RECTPIECE_BORDERSIZE,
00038 NCSP_RECTPIECE_XRADIUS,
00039 NCSP_RECTPIECE_YRADIUS,
00040 NCSP_RECTPIECE_FILLCLR_RED,
00041 NCSP_RECTPIECE_FILLCLR_GREEN,
00042 NCSP_RECTPIECE_FILLCLR_BLUE,
00043 NCSP_RECTPIECE_FILLCLR_ALPHA,
00044 NCSP_RECTPIECE_BRDCLR_RED,
00045 NCSP_RECTPIECE_BRDCLR_GREEN,
00046 NCSP_RECTPIECE_BRDCLR_BLUE,
00047 NCSP_RECTPIECE_BRDCLR_ALPHA,
00048 NCSP_RECTPIECE_MAX
00049 };
00050
00051
00052 #ifdef __cplusplus
00053 }
00054 #endif
00055
00056 #endif
00057