FabGL
ESP32 Display Controller and Graphics Library

◆ setScrollingRegion()

void setScrollingRegion ( int  X1,
int  Y1,
int  X2,
int  Y2 
)

Defines the scrolling region.

A scrolling region is the rectangle area where Canvas.scroll() method can operate.

Parameters
X1Top left horizontal coordinate.
Y1Top left vertical coordiante.
X2Bottom right horizontal coordinate.
Y2Bottom right vertical coordiante.

Definition at line 145 of file canvas.cpp.