42 #ifndef _MGUI_WIDGET_SCROLL_H 43 #define _MGUI_WIDGET_SCROLL_H 60 #define NCSCTRL_SCROLLWIDGET NCSCLASSNAME("scrollwidget") 86 #define mScrollWidgetHeader(className) \ 87 mWidgetHeader(className) \ 88 unsigned int realContWidth; \ 89 unsigned int realContHeight; \ 90 unsigned int hStepVal; \ 91 unsigned int vStepVal; \ 94 unsigned int contWidth; \ 95 unsigned int contHeight; \ 96 unsigned int visWidth; \ 97 unsigned int visHeight; \ 98 unsigned int leftMargin; \ 99 unsigned int topMargin; \ 100 unsigned int rightMargin; \ 101 unsigned int bottomMargin; \ 102 unsigned int drawMode; 155 struct _mScrollWidget
160 #define mScrollWidgetClassHeader(clsName, parentClass) \ 161 mWidgetClassHeader(clsName, parentClass) \ 162 void (*onHScroll)(clsName*, int code, int mouseX); \ 163 void (*onVScroll)(clsName*, int code, int mouseY); \ 164 void (*initMargins)(clsName*, int l, int t, int r, int b); \ 165 void (*moveContent)(clsName*); \ 166 void (*resetViewPort)(clsName*, unsigned int,unsigned int); \ 167 void (*setScrollInfo)(clsName*, BOOL reDraw); \ 168 BOOL (*makePosVisible)(clsName*, int x, int y); \ 169 void (*getContRect)(clsName*, RECT *rcCont); \ 170 void (*getVisRect)(clsName*, RECT *rcVis); \ 171 void (*viewportToWindow)(clsName*, int *x, int *y); \ 172 void (*viewportToContent)(clsName*, int *x, int *y); \ 173 void (*windowToViewport)(clsName*, int *x, int *y); \ 174 void (*contentToViewport)(clsName*, int *x, int *y); \ 175 void (*contentToWindow)(clsName*, int *x, int *y); \ 176 void (*windowToContent)(clsName*, int *x, int *y); \ 177 void (*refreshRect)(clsName*, const RECT *rc); \ 178 BOOL (*isVisible)(clsName*, int x, int y); 236 struct _mScrollWidgetClass
241 #define mScrollWidgetRendererHeader(clsName, parentClass) \ 242 mWidgetRendererHeader(clsName, parentClass) 249 struct _mScrollWidgetRenderer {
317 #define NCSS_SWGT_SHIFT NCSS_WIDGET_SHIFT