mGNCS API Reference
v1.5.0
A new control set and a new framework for MiniGUI apps
|
Go to the documentation of this file.
54 #ifndef _MGUI_WIDGET_SCROLL_H
55 #define _MGUI_WIDGET_SCROLL_H
72 #define NCSCTRL_SCROLLWIDGET NCSCLASSNAME("scrollwidget")
98 #define mScrollWidgetHeader(className) \
99 mWidgetHeader(className) \
100 unsigned int realContWidth; \
101 unsigned int realContHeight; \
102 unsigned int hStepVal; \
103 unsigned int vStepVal; \
106 unsigned int contWidth; \
107 unsigned int contHeight; \
108 unsigned int visWidth; \
109 unsigned int visHeight; \
110 unsigned int leftMargin; \
111 unsigned int topMargin; \
112 unsigned int rightMargin; \
113 unsigned int bottomMargin; \
114 unsigned int drawMode;
167 struct _mScrollWidget
172 #define mScrollWidgetClassHeader(clsName, parentClass) \
173 mWidgetClassHeader(clsName, parentClass) \
174 void (*onHScroll)(clsName*, int code, int mouseX); \
175 void (*onVScroll)(clsName*, int code, int mouseY); \
176 void (*initMargins)(clsName*, int l, int t, int r, int b); \
177 void (*moveContent)(clsName*); \
178 void (*resetViewPort)(clsName*, unsigned int,unsigned int); \
179 void (*setScrollInfo)(clsName*, BOOL reDraw); \
180 BOOL (*makePosVisible)(clsName*, int x, int y); \
181 void (*getContRect)(clsName*, RECT *rcCont); \
182 void (*getVisRect)(clsName*, RECT *rcVis); \
183 void (*viewportToWindow)(clsName*, int *x, int *y); \
184 void (*viewportToContent)(clsName*, int *x, int *y); \
185 void (*windowToViewport)(clsName*, int *x, int *y); \
186 void (*contentToViewport)(clsName*, int *x, int *y); \
187 void (*contentToWindow)(clsName*, int *x, int *y); \
188 void (*windowToContent)(clsName*, int *x, int *y); \
189 void (*refreshRect)(clsName*, const RECT *rc); \
190 BOOL (*isVisible)(clsName*, int x, int y);
248 struct _mScrollWidgetClass
253 #define mScrollWidgetRendererHeader(clsName, parentClass) \
254 mWidgetRendererHeader(clsName, parentClass)
261 struct _mScrollWidgetRenderer {
329 #define NCSS_SWGT_SHIFT NCSS_WIDGET_SHIFT