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

touchgfx::LCD::drawHorizontalLine() method

@fn void LCD::drawHorizontalLine(int16_t x, int16_t y, uint16_t width, uint16_t lineWidth, colortype color, uint8_t alpha = 255); Draws a horizontal line with the specified color. Draws a horizontal line with the specified color.

Syntax

void drawHorizontalLine(int16_t x,     int16_t y,     uint16_t width,     uint16_t lineWidth,     colortype color,     uint8_t alpha = 255);

Arguments

x

The x coordinate of the starting point, in absolute coordinates.

y

The y coordinate of the starting point, in absolute coordinates.

width

The length of the line.

lineWidth

The width of the line.

color

The color to use.

alpha

The alpha value to use (default=solid)

References

LocationText
LCD.hpp:201
void drawHorizontalLine(int16_t x, int16_t y, uint16_t width, uint16_t lineWidth, colortype color, uint8_t alpha = 255);