touchgfx::LCD::drawRect() method
@fn void LCD::drawRect(const Rect& rect, colortype color, uint8_t alpha = 255); Draws a rectangle using the specified line color. Draws a rectangle using the specified line color. Same as calling drawBorder with a line width of 1.
Arguments
rect
The rectangle x, y, width, height in absolute coordinates.
color
The color to use.
alpha
The alpha value to use (default=solid)