mprogresspiece.h

00001 #ifdef _MGNCSCTRL_PROGRESSBAR
00002 
00003 #ifndef _MGUI_NCSCTRL_PROGRESSPIECE_H
00004 #define _MGUI_NCSCTRL_PROGRESSPIECE_H
00005 
00006 #ifdef __cplusplus
00007 extern "C" {
00008 #endif
00009 
00010 typedef struct _mProgressPieceClass mProgressPieceClass;
00011 typedef struct _mProgressPiece mProgressPiece;
00012 
00013 #define mProgressPieceClassHeader(clss, superCls) \
00014         mRenderablePieceClassHeader(clss, superCls)  \
00015         int (*step)(clss *self, int offset/*=0*/, BOOL bdec);
00016 
00017 struct _mProgressPieceClass
00018 {
00019         mProgressPieceClassHeader(mProgressPiece, mRenderablePiece)
00020 };
00021 
00022 extern mProgressPieceClass g_stmProgressPieceCls;
00023 
00024 #define mProgressPieceHeader(clss) \
00025         mRenderablePieceHeader(clss)  \
00026         int max; \
00027         int min; \
00028         int cur; \
00029         int step;
00030 
00031 struct _mProgressPiece
00032 {
00033         mProgressPieceHeader(mProgressPiece)
00034 };
00035 
00036 enum mProgressPieceProp{
00037         NCSP_PROGRESSPIECE_MAXPOS = PIECECOMM_PROP_MAX,
00038         NCSP_PROGRESSPIECE_MINPOS = PIECECOMM_PROP_MIN,
00039         NCSP_PROGRESSPIECE_LINESTEP = PIECECOMM_PROP_LINESTEP,
00040         NCSP_PROGRESSPIECE_CURPOS   = PIECECOMM_PROP_POS
00041 };
00042 
00043 
00044 #ifdef __cplusplus
00045 }
00046 #endif
00047 
00048 #endif
00049 #endif //_MGNCSCTRL_PROGRESSBAR
Generated on Fri Jun 10 11:18:06 2011 for New Control Set V1.0.0 API Reference by  doxygen 1.6.3