31 #ifdef _MGNCSCTRL_IMWORDSEL 33 #ifndef _MGUI_SIMPLE_LIST_H 34 #define _MGUI_SIMPLE_LIST_H 40 typedef struct _mSimpleListPieceClass mSimpleListPieceClass;
41 typedef struct _mSimpleListPiece mSimpleListPiece;
43 #define mSimpleListPieceClassHeader(clss, superCls) \ 44 mContainerPieceClassHeader(clss, superCls) \ 45 void (*reset)(clss*, void(*free_piece)(mHotPiece*)); 48 #define mSimpleListPieceHeader(clss) \ 49 mContainerPieceHeader(clss) \ 50 mLineLayoutPieceNode * cur_node; 52 struct _mSimpleListPieceClass {
53 mSimpleListPieceClassHeader(mSimpleListPiece, mContainerPiece)
56 struct _mSimpleListPiece {
57 mSimpleListPieceHeader(mSimpleListPiece)
60 extern mSimpleListPieceClass g_stmSimpleListPieceCls;
62 enum mSimpleListPieceProps {
63 NCSP_SIMPLELISTPIECE_CURINDEX = SIMPLELISTPIECE_PROP_BEGIN,
66 enum mSimpleListPieceEvent {
67 NCSN_SIMPLELISTPIECE_REACHHEAD = SIMPLELISTPIECE_EVENT_BEGIN,
68 NCSN_SIMPLELISTPIECE_REACHTAIL,
69 NCSN_SIMPLELISTPIECE_CHANGED
72 #define mSimpleListPiece_getLineLayout(slp) \ 73 ((mLineLayoutPiece*)((slp)?(slp)->body:NULL)) 82 #endif //_MGNCSCTRL_IMWORDSEL