sGUI
V1.0
|
Functionality to draw simple geometric objects on the lcd. More...
Files | |
file | geometry.c |
Simple graphic library draw text functionality. Draw simple characters or full lines. | |
Functions | |
void | LCD_DrawLine (uint16_t Xstart, uint16_t Ystart, uint16_t Xstop, uint16_t Ystop, LCDCOLOR Color) |
Draw a line on the display starting at (Xstart/Ystart) and ending at (Xstop/Ystop). This function draws the line with the Bresenham's line algorithm. More... | |
void | LCD_DrawRect (uint16_t Xpos, uint16_t Ypos, uint16_t width, uint16_t height, LCDCOLOR Color) |
Displays a rectangle. More... | |
void | LCD_DrawRectF (uint16_t Xpos, uint16_t Ypos, uint16_t width, uint16_t height, LCDCOLOR Color) |
Displays a filled rectangle. More... | |
void | LCD_DrawCircle (uint16_t Xpos, uint16_t Ypos, uint16_t Radius, LCDCOLOR Color) |
Displays a circle. More... | |
void | LCD_DrawCircleF (uint8_t Xpos, uint16_t Ypos, uint16_t Radius, LCDCOLOR Color) |
Displays a filled circle. More... | |
Functionality to draw simple geometric objects on the lcd.
void LCD_DrawCircle | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | Radius, | ||
LCDCOLOR | Color | ||
) |
Displays a circle.
[in] | Xpos | specifies the X position of the center. |
[in] | Ypos | specifies the Y position of the center. |
[in] | Radius | radius of the circle. |
[in] | Color | specifies the color of the line. |
Definition at line 191 of file geometry.c.
void LCD_DrawCircleF | ( | uint8_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | Radius, | ||
LCDCOLOR | Color | ||
) |
Displays a filled circle.
[in] | Xpos | specifies the X position of the center. |
[in] | Ypos | specifies the Y position of the center. |
[in] | Radius | radius of the circle. |
[in] | Color | specifies the color of the line. |
Definition at line 212 of file geometry.c.
void LCD_DrawLine | ( | uint16_t | Xstart, |
uint16_t | Ystart, | ||
uint16_t | Xstop, | ||
uint16_t | Ystop, | ||
LCDCOLOR | Color | ||
) |
Draw a line on the display starting at (Xstart/Ystart) and ending at (Xstop/Ystop). This function draws the line with the Bresenham's line algorithm.
[in] | Xstart | specifies the X start position. |
[in] | Ystart | specifies the Y start position. |
[in] | Xstop | specifies the X stop position. |
[in] | Ystop | specifies the Y stop position. |
[in] | Color | specifies the color of the line. |
Definition at line 103 of file geometry.c.
void LCD_DrawRect | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | width, | ||
uint16_t | height, | ||
LCDCOLOR | Color | ||
) |
Displays a rectangle.
[in] | Xpos | specifies the X position. |
[in] | Ypos | specifies the Y position. |
[in] | width | display rectangle width. |
[in] | height | display rectangle height. |
[in] | Color | specifies the color of the line. |
Definition at line 161 of file geometry.c.
void LCD_DrawRectF | ( | uint16_t | Xpos, |
uint16_t | Ypos, | ||
uint16_t | width, | ||
uint16_t | height, | ||
LCDCOLOR | Color | ||
) |
Displays a filled rectangle.
[in] | Xpos | specifies the X position. |
[in] | Ypos | specifies the Y position. |
[in] | width | display rectangle width. |
[in] | height | display rectangle height. |
[in] | Color | specifies the color of the line. |
Definition at line 178 of file geometry.c.