touchgfx::AbstractPainter::setOffset() is only used within TouchGFX.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesTouchGFXtouchgfx::AbstractPainter::setOffset()

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.

Syntax

void setOffset(uint16_t offsetX,     uint16_t offsetY);

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.

References

LocationText
AbstractPainter.hpp:63
void setOffset(uint16_t offsetX, uint16_t offsetY);