The virtual function table of mScrollWidget, which derived from mWidgetClass.
More...
#include <mscroll_widget.h>
The virtual function table of mScrollWidget, which derived from mWidgetClass.
- void (*initMargins)(mScrollWidget *self, int l, int t, int r, int b);
Initialize margin rectangle.
- void (*moveContent)(mScrollWidget *self);
The function is used to move content. It can be implemented by subclass.
- void (*resetViewPort)(mScrollWidget *self, unsigned int visW, unsigned int visH);
The function is used to reset viewport. - Parameters
-
visW | The width of viewport. |
visH | The height of viewport. |
- void (*setScrollInfo)(mScrollWidget *self, BOOL reDraw);
The function is used to set scrollbar information. - Parameters
-
reDraw | Whether draw scrollbar or not. |
- BOOL (*makePosVisible)(mScrollWidget *self, int x, int y);
The function makes the specified position can be seen. - Parameters
-
x | The x coordination of the specified position. |
y | The y coordination of the specified position. |
- Returns
- TRUE for success, otherwise FALSE.
- BOOL (*isVisible)(mScrollWidget *self, int x, int y);
The function is used to decide whether the specified position is visible. - Parameters
-
x | The x coordination of the specified position. |
y | The y coordination of the specified position. |
- Returns
- TRUE for visible, otherwise FALSE.
- void (*getVisRect)(mScrollWidget *self, RECT *rcVis);
Get visible rectangle.
- void (*viewportToWindow)(mScrollWidget *self, int *x, int *y);
The visible to window coordinate's transformation.
- void (*viewportToContent)(mScrollWidget *self, int *x, int *y);
The visible to content coordinate's transformation.
- void (*contentToViewport)(mScrollWidget *self, int *x, int *y);
The content to visible coordinate's transformation.
- void (*contentToWindow)(mScrollWidget *self, int *x, int *y);
The content to window coordinate's transformation.
- void (*windowToViewport)(mScrollWidget *self, int *x, int *y);
The window to visible coordinate's transformation.
- void (*windowToContent)(mScrollWidget *self, int *x, int *y);
The window to content coordinate's transformation.
- void (*refreshRect)(mScrollWidget *self, const RECT *rc);
Refresh the content in specified region.
The documentation for this struct was generated from the following file: