ESP32 Display Controller and Graphics Library

◆ scroll()

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).

offsetXNumber of pixels to scroll left (offsetX < 0) or right (offsetX > 0).
offsetYNumber of pixels to scroll up (offsetY < 0) or down (offsetY > 0).

Definition at line 129 of file canvas.cpp.