54 #ifdef _MGNCSCTRL_ICONVIEW
56 #ifndef _MGUI_CTRL_ICONV_H
57 #define _MGUI_CTRL_ICONV_H
73 typedef struct _NCS_ICONV_ITEMINFO
94 typedef struct _mIconView mIconView;
95 typedef struct _mIconViewClass mIconViewClass;
96 typedef struct _mIconViewRenderer mIconViewRenderer;
102 #define NCSCTRL_ICONVIEW NCSCLASSNAME("iconview")
108 #define NCSS_ICONV_SHIFT (NCSS_SCRLV_SHIFT)
114 #define NCSS_ICONV_SORT NCSS_ITEMV_AUTOSORT
120 #define NCSS_ICONV_LOOP NCSS_ITEMV_LOOP
122 #define mIconViewHeader(className) \
123 mItemViewHeader(className) \
145 mIconViewHeader(mIconView)
148 #define mIconViewClassHeader(clsName, parentClass) \
149 mItemViewClassHeader(clsName, parentClass) \
150 void (*setIconSize)(clsName*, int width, int height); \
151 HITEM (*addItem)(clsName*, NCS_ICONV_ITEMINFO *info, int *pos);
154 struct _mIconViewClass
156 mIconViewClassHeader(mIconView,
mItemView)
173 #define mIconViewRendererHeader(clsName, parentClass) \
174 mItemViewRendererHeader(clsName, parentClass)
181 struct _mIconViewRenderer {
182 mIconViewRendererHeader(mIconView,
mItemView)
226 MGNCS_EXPORT
extern mIconViewClass g_stmIconViewCls;
234 #endif //_MGNCSCTRL_ICONVIEW