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.
References Graphics_Context::font, Graphics_Context::foreground, g_sContext, Graphics_Button::xMax, Graphics_Button::xMin, Graphics_Button::yMax, and Graphics_Button::yMin.
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
References Graphics_Button::xMax, Graphics_Button::xMin, Graphics_Button::yMax, and Graphics_Button::yMin.
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.
References Graphics_Button::borderWidth, Graphics_Context::font, Graphics_Context::foreground, g_sContext, Graphics_Button::xMax, Graphics_Button::xMin, Graphics_Button::yMax, and Graphics_Button::yMin.
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.
References Graphics_Button::borderWidth, Graphics_Context::font, Graphics_Context::foreground, g_sContext, Graphics_Button::xMax, Graphics_Button::xMin, Graphics_Button::yMax, and Graphics_Button::yMin.