32 #ifndef _MGUI_NCSCTRL_BOXLAYOUTPIECE_H 33 #define _MGUI_NCSCTRL_BOXLAYOUTPIECE_H 39 typedef struct _mBoxLayoutPieceClass mBoxLayoutPieceClass;
40 typedef struct _mBoxLayoutPiece mBoxLayoutPiece;
42 #define mBoxLayoutPieceClassHeader(clss, superCls) \ 43 mLayoutPieceClassHeader(clss, superCls) \ 45 void (*recalcBox)(clss *); \ 46 int (*getCellAutoSize)(clss *, int i); \ 48 int (*setCellInfo)(clss *, int idx, int size, int type, BOOL bupdate); \ 49 mHotPiece* (*setCell)(clss *, int idx, mHotPiece *cell); \ 50 mHotPiece* (*getCell)(clss *, int idx); 52 struct _mBoxLayoutPieceClass
54 mBoxLayoutPieceClassHeader(mBoxLayoutPiece, mLayoutPiece)
57 MGNCS_EXPORT
extern mBoxLayoutPieceClass g_stmBoxLayoutPieceCls;
59 #define mBoxLayoutPieceHeader(clss) \ 60 mLayoutPieceHeader(clss) \ 65 unsigned short count; \ 66 unsigned char margin; \ 67 unsigned char space; \ 68 unsigned short * cell_info; \ 72 struct _mBoxLayoutPiece
74 mBoxLayoutPieceHeader(mBoxLayoutPiece)
77 #define mBoxLayoutPiece_getSizeType(size) mLayoutPiece_getSizeType(size) 78 #define mBoxLayoutPiece_setSizeType(size, type) mLayoutPiece_setSizeType(size, type) 79 #define mBoxLayoutPiece_setSize(size, value) mLayoutPiece_setSize(size, value) 80 #define mBoxLayoutPiece_getSize(size) mLayoutPiece_getSize(size) 83 enum mBoxLayoutPieceProps{
84 NCSP_BOXLAYOUTPIECE_COUNT = BOXLAYOUTPIECE_PROP_BEGIN,
85 NCSP_BOXLAYOUTPIECE_SPACE = PIECECOMM_PROP_SPACE,
86 NCSP_BOXLAYOUTPIECE_MARGIN = PIECECOMM_PROP_MARGIN
91 BOOL mBoxLayoutPiece_calcSize(mBoxLayoutPiece *
self,
int total_size,
int *sizes);