mGNCS API Reference  v1.2.0
A new control set and a new framework for MiniGUI apps
mscrollview.h
Go to the documentation of this file.
1 
42 #ifndef _MGUI_CTRL_SCRLV_H
43 #define _MGUI_CTRL_SCRLV_H
44 
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif /* __cplusplus */
49 
58 typedef struct _NCS_SCRLV_ITEMINFO
59 {
61  int index;
63  int height;
65  DWORD addData;
67 
68 typedef struct _mScrollView mScrollView;
69 typedef struct _mScrollViewClass mScrollViewClass;
70 typedef struct _mScrollViewRenderer mScrollViewRenderer;
71 
76 #define NCSCTRL_SCROLLVIEW NCSCLASSNAME("scrollview")
77 
82 #define NCSS_SCRLV_SHIFT (NCSS_ITEMV_SHIFT)
83 
88 #define NCSS_SCRLV_UPNOTIFY NCSS_ITEMV_UPNOTIFY
89 
94 #define NCSS_SCRLV_LOOP NCSS_ITEMV_LOOP
95 
100 #define NCSS_SCRLV_SORT NCSS_ITEMV_AUTOSORT
101 
102 #define mScrollViewHeader(className) \
103  mItemViewHeader(className)
104 
105 
110 struct _mScrollView
111 {
112  mScrollViewHeader(mScrollView)
113 };
114 
115 #define mScrollViewClassHeader(clsName, parentClass) \
116  mItemViewClassHeader(clsName, parentClass) \
117  HITEM (*addItem)(clsName*, NCS_SCRLV_ITEMINFO *info, int *pos);
118 
128 struct _mScrollViewClass
129 {
130  mScrollViewClassHeader(mScrollView, mItemView)
131 };
132 
133 #define mScrollViewRendererHeader(clsName, parentClass) \
134  mItemViewRendererHeader(clsName, parentClass)
135 
141 struct _mScrollViewRenderer {
142  mScrollViewRendererHeader(mScrollView, mItemView)
143 };
144 
150 {
155 };
156 
162 {
173 };
174 
181 MGNCS_EXPORT extern mScrollViewClass g_stmScrollViewCls;
184 #ifdef __cplusplus
185 }
186 #endif /* __cplusplus */
187 
188 #endif /* _MGUI_CTRL_SCRLV_H */
mScrollViewProp
The properties id of mScrollView.
Definition: mscrollview.h:149
struct _NCS_SCRLV_ITEMINFO NCS_SCRLV_ITEMINFO
The structure of mScrollView control, which derived from mItemView.
mScrollViewNotify
The notification code id of mScrollView.
Definition: mscrollview.h:161
The structure of mScrollView renderer, which inheried from mItemViewRenderer.
MGNCS_EXPORT mScrollViewClass g_stmScrollViewCls
The instance of mScrollViewClass.
The structure of mItemView control, which derived from mScrollWidget. It is the abstract superclass o...
The virtual function table of mScrollView, which derived from mItemViewClass.