43 #ifdef _MGNCSCTRL_IMWORDSEL
45 #ifndef _MGUI_SIMPLE_LIST_H
46 #define _MGUI_SIMPLE_LIST_H
52 typedef struct _mSimpleListPieceClass mSimpleListPieceClass;
53 typedef struct _mSimpleListPiece mSimpleListPiece;
55 #define mSimpleListPieceClassHeader(clss, superCls) \
56 mContainerPieceClassHeader(clss, superCls) \
57 void (*reset)(clss*, void(*free_piece)(mHotPiece*));
60 #define mSimpleListPieceHeader(clss) \
61 mContainerPieceHeader(clss) \
62 mLineLayoutPieceNode * cur_node;
64 struct _mSimpleListPieceClass {
65 mSimpleListPieceClassHeader(mSimpleListPiece, mContainerPiece)
68 struct _mSimpleListPiece {
69 mSimpleListPieceHeader(mSimpleListPiece)
72 extern mSimpleListPieceClass g_stmSimpleListPieceCls;
74 enum mSimpleListPieceProps {
75 NCSP_SIMPLELISTPIECE_CURINDEX = SIMPLELISTPIECE_PROP_BEGIN,
78 enum mSimpleListPieceEvent {
79 NCSN_SIMPLELISTPIECE_REACHHEAD = SIMPLELISTPIECE_EVENT_BEGIN,
80 NCSN_SIMPLELISTPIECE_REACHTAIL,
81 NCSN_SIMPLELISTPIECE_CHANGED
84 #define mSimpleListPiece_getLineLayout(slp) \
85 ((mLineLayoutPiece*)((slp)?(slp)->body:NULL))
94 #endif //_MGNCSCTRL_IMWORDSEL