mscrollview.h

Go to the documentation of this file.
00001 
00025 #ifndef _MGUI_CTRL_SCRLV_H
00026 #define _MGUI_CTRL_SCRLV_H
00027 
00028 
00029 #ifdef __cplusplus
00030 extern "C" {
00031 #endif  /* __cplusplus */
00032 
00041 typedef struct _NCS_SCRLV_ITEMINFO
00042 {
00044     int     index;
00046     int     height;
00048     DWORD   addData;
00049 }NCS_SCRLV_ITEMINFO;
00050 
00051 typedef struct _mScrollView mScrollView;
00052 typedef struct _mScrollViewClass mScrollViewClass;
00053 typedef struct _mScrollViewRenderer mScrollViewRenderer;
00054 
00059 #define NCSCTRL_SCROLLVIEW NCSCLASSNAME("scrollview")
00060 
00065 #define NCSS_SCRLV_SHIFT       (NCSS_ITEMV_SHIFT)
00066 
00071 #define NCSS_SCRLV_UPNOTIFY    NCSS_ITEMV_UPNOTIFY
00072 
00077 #define NCSS_SCRLV_LOOP        NCSS_ITEMV_LOOP
00078 
00083 #define NCSS_SCRLV_SORT        NCSS_ITEMV_AUTOSORT
00084 
00085 #define mScrollViewHeader(className)    \
00086     mItemViewHeader(className)
00087 
00088 
00093 struct _mScrollView
00094 {
00095         mScrollViewHeader(mScrollView)
00096 };
00097 
00098 #define mScrollViewClassHeader(clsName, parentClass)    \
00099     mItemViewClassHeader(clsName, parentClass)          \
00100     HITEM (*addItem)(clsName*, NCS_SCRLV_ITEMINFO *info, int *pos);
00101 
00111 struct _mScrollViewClass
00112 {
00113         mScrollViewClassHeader(mScrollView, mItemView)
00114 };
00115 
00116 #define mScrollViewRendererHeader(clsName, parentClass) \
00117         mItemViewRendererHeader(clsName, parentClass)
00118 
00124 struct  _mScrollViewRenderer {
00125         mScrollViewRendererHeader(mScrollView, mItemView)
00126 };
00127 
00132 enum mScrollViewProp
00133 {
00137         NCSP_SCRLV_MAX = NCSP_ITEMV_MAX + 1,
00138 };
00139 
00144 enum mScrollViewNotify
00145 {
00147     NCSN_SCRLV_CLICKED = NCSN_ITEMV_CLICKED,
00149     NCSN_SCRLV_SELCHANGED = NCSN_ITEMV_SELCHANGED,
00151     NCSN_SCRLV_SELCHANGING = NCSN_ITEMV_SELCHANGING,
00155     NCSN_SCRLV_MAX = NCSN_ITEMV_MAX + 1,
00156 };
00157 
00164 MGNCS_EXPORT extern mScrollViewClass g_stmScrollViewCls;
00167 #ifdef __cplusplus
00168 }
00169 #endif  /* __cplusplus */
00170 
00171 #endif /* _MGUI_CTRL_SCRLV_H */
Generated on Fri Jun 10 11:18:06 2011 for New Control Set V1.0.0 API Reference by  doxygen 1.6.3