FabGL2 2.0.0
ESP32 Display Controller and Graphics Library for ESP-IDF
Loading...
Searching...
No Matches

◆ scroll()

void scroll ( int offsetX,
int offsetY )

Scrolls pixels horizontally and/or vertically.

Scrolling occurs inside the scrolling region defined by setScrollingRegion().
Vertical scrolling moves line pointers, so it is very fast.
Horizontal scrolling moves pixels one by one, so it is CPU intensive.

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