scroll

fnvoid scroll(int x, int y, int w, int h, int dx, int dy, ScrollDrawAreaCallback drawArea = null, void * data = null) nothrow @nogc

Scrolls a rectangle by a given amount.

The uncovered areas will need to be redrawn. A callback can be provided to handle drawing these areas.

Parameters

xX coordinate of rectangle
yY coordinate of rectangle
wWidth of rectangle
hHeight of rectangle
dxHorizontal scroll amount (positive = right)
dyVertical scroll amount (positive = down)
drawAreaOptional callback to draw uncovered areas
dataUser data passed to callback