mdaygridpiece.h

00001 
00002 #ifndef _MGUI_NCSCTRL_DAYGRIDPIECE_H
00003 #define _MGUI_NCSCTRL_DAYGRIDPIECE_H
00004 
00005 #ifdef __cplusplus
00006 extern "C" {
00007 #endif
00008 
00009 typedef struct _mDayGridPieceClass mDayGridPieceClass;
00010 typedef struct _mDayGridPiece mDayGridPiece;
00011 
00012 #define mDayGridPieceClassHeader(clss, superCls) \
00013         mGridBoxPieceClassHeader(clss, superCls)  \
00014         CELL_POINT (*day2Cell)(clss*, int day); \
00015         int (*cell2Day)(clss *, int row, int col);
00016 
00017 
00018 struct _mDayGridPieceClass
00019 {
00020         mDayGridPieceClassHeader(mDayGridPiece, mGridBoxPiece)
00021 };
00022 
00023 MGNCS_EXPORT extern mDayGridPieceClass g_stmDayGridPieceCls;
00024 
00025 #define mDayGridPieceHeader(clss) \
00026         mGridBoxPieceHeader(clss)  \
00027         unsigned char month_days; \
00028         unsigned char last_month_days; \
00029         unsigned char weekday_of_first_day;
00030         
00031 struct _mDayGridPiece
00032 {
00033         mDayGridPieceHeader(mDayGridPiece)
00034 };
00035 
00036 enum mDayGridPieceProps{
00037         NCSP_DAYGRIDPIECE_MONTH_DAYS = DAYGRIDPIECE_PROP_BEGIN,
00038         NCSP_DAYGRIDPIECE_LASTMONTH_DAYS,
00039         NCSP_DAYGRIDPIECE_WEEKDAY_OF_FIRSTDAY
00040 };
00041 
00042 enum WeekDays{
00043         Sunday = 0,
00044         Monday,
00045         Tuesday,
00046         Wednesday,
00047         Thursday,
00048         Friday,
00049         Saturday
00050 };
00051 
00052 
00053 #ifdef __cplusplus
00054 }
00055 #endif
00056 
00057 #endif
00058 
Generated on Fri Jun 10 11:18:06 2011 for New Control Set V1.0.0 API Reference by  doxygen 1.6.3