touchgfx::AbstractPainter::setOffset() method
@fn void AbstractPainter::setOffset(uint16_t offsetX, uint16_t offsetY); Sets the offset of the area being drawn. Sets the offset of the area being drawn. This allows render() to calculate the x, y relative to the widget, and not just relative to the invalidated area.
Arguments
offsetX
The offset x coordinate of the invalidated area relative to the widget.
offsetY
The offset y coordinate of the invalidated area relative to the widget.