|
MSP Graphics Library
|
Functions | |
| void | Graphics_drawButton (const Graphics_Context *context, const Graphics_Button *button) |
| bool | Graphics_isButtonSelected (const Graphics_Button *button, uint16_t x, uint16_t y) |
| void | Graphics_drawSelectedButton (const Graphics_Context *context, const Graphics_Button *button) |
| void | Graphics_drawReleasedButton (const Graphics_Context *context, const Graphics_Button *button) |
| void Graphics_drawButton | ( | const Graphics_Context * | context, |
| const Graphics_Button * | button | ||
| ) |
Draws a button.
| context | is a pointer to the drawing context to use. |
| button | is a pointer to the structure containing the extents of the button. |
This function draws a button. The button will contain a text string and will be created based on the parameters passed in the button struct.
| void Graphics_drawReleasedButton | ( | const Graphics_Context * | context, |
| const Graphics_Button * | button | ||
| ) |
Draws a released Button.
| context | is a pointer to the drawing context to use. |
| button | is a pointer to the structure containing the extents of the button. |
This function draws a button using the released parameters.
| void Graphics_drawSelectedButton | ( | const Graphics_Context * | context, |
| const Graphics_Button * | button | ||
| ) |
Draws a selected Button.
| context | is a pointer to the drawing context to use. |
| button | is a pointer to the structure containing the extents of the button. |
This function draws a button using the selected parameters.
| bool Graphics_isButtonSelected | ( | const Graphics_Button * | button, |
| uint16_t | x, | ||
| uint16_t | y | ||
| ) |
Determines if x and y coordinates are contained in button .
| button | is a pointer to the structure containing the extents of the button. |
| x | x-coordinate to be determined if is inside button |
| y | y-coordinate to be determined if is inside button |
This function determines if x and y coordinates are contains inside button