FabGL
ESP32 Display Controller and Graphics Library
|
void scroll | ( | int | offsetX, |
int | offsetY | ||
) |
Scrolls pixels horizontally and/or vertically.
Scrolling occurs inside the scrolling region defined by Canvas.setScrollingRegion().
Vertical scroll is done moving line pointers, so it is very fast to perform.
Horizontal scroll is done moving pixel by pixel (CPU intensive task).
offsetX | Number of pixels to scroll left (offsetX < 0) or right (offsetX > 0). |
offsetY | Number of pixels to scroll up (offsetY < 0) or down (offsetY > 0). |
Definition at line 129 of file canvas.cpp.