sGUI  V1.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
Geometry

Functionality to draw simple geometric objects on the lcd. More...

+ Collaboration diagram for Geometry:

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...
 

Detailed Description

Functionality to draw simple geometric objects on the lcd.

Function Documentation

void LCD_DrawCircle ( uint16_t  Xpos,
uint16_t  Ypos,
uint16_t  Radius,
LCDCOLOR  Color 
)

Displays a circle.

Parameters
[in]Xposspecifies the X position of the center.
[in]Yposspecifies the Y position of the center.
[in]Radiusradius of the circle.
[in]Colorspecifies the color of the line.
Examples:
geometry.c.

Definition at line 191 of file geometry.c.

+ Here is the call graph for this function:

void LCD_DrawCircleF ( uint8_t  Xpos,
uint16_t  Ypos,
uint16_t  Radius,
LCDCOLOR  Color 
)

Displays a filled circle.

Parameters
[in]Xposspecifies the X position of the center.
[in]Yposspecifies the Y position of the center.
[in]Radiusradius of the circle.
[in]Colorspecifies the color of the line.

Definition at line 212 of file geometry.c.

+ Here is the call graph for this function:

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.

Parameters
[in]Xstartspecifies the X start position.
[in]Ystartspecifies the Y start position.
[in]Xstopspecifies the X stop position.
[in]Ystopspecifies the Y stop position.
[in]Colorspecifies the color of the line.
Examples:
geometry.c.

Definition at line 103 of file geometry.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void LCD_DrawRect ( uint16_t  Xpos,
uint16_t  Ypos,
uint16_t  width,
uint16_t  height,
LCDCOLOR  Color 
)

Displays a rectangle.

Parameters
[in]Xposspecifies the X position.
[in]Yposspecifies the Y position.
[in]widthdisplay rectangle width.
[in]heightdisplay rectangle height.
[in]Colorspecifies the color of the line.
Examples:
geometry.c.

Definition at line 161 of file geometry.c.

+ Here is the call graph for this function:

void LCD_DrawRectF ( uint16_t  Xpos,
uint16_t  Ypos,
uint16_t  width,
uint16_t  height,
LCDCOLOR  Color 
)

Displays a filled rectangle.

Parameters
[in]Xposspecifies the X position.
[in]Yposspecifies the Y position.
[in]widthdisplay rectangle width.
[in]heightdisplay rectangle height.
[in]Colorspecifies the color of the line.
Examples:
geometry.c.

Definition at line 178 of file geometry.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: