touchgfx::LCD::drawRect() is only used within TouchGFX.
 
Symbols
loading...
Files
loading...

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.

Syntax

void drawRect(const Rect& rect,     colortype color,     uint8_t alpha = 255);

Arguments

rect

The rectangle x, y, width, height in absolute coordinates.

color

The color to use.

alpha

The alpha value to use (default=solid)

References

LocationText
LCD.hpp:231
void drawRect(const Rect& rect, colortype color, uint8_t alpha = 255);