Logo
MSP Graphics Library
Checkbox_api

Functions

void Graphics_drawCheckBox (const Graphics_Context *context, const Graphics_CheckBox *checkBox)
 
bool Graphics_isCheckBoxSelected (const Graphics_CheckBox *checkBox, uint16_t x, uint16_t y)
 
void Graphics_drawSelectedCheckBox (const Graphics_Context *context, const Graphics_CheckBox *checkBox)
 
void Graphics_drawReleasedCheckBox (const Graphics_Context *context, const Graphics_CheckBox *checkBox)
 

Detailed Description

Function Documentation

void Graphics_drawCheckBox ( const Graphics_Context context,
const Graphics_CheckBox checkBox 
)

Draws a checkbox.

Parameters
contextis a pointer to the drawing context to use.
checkBoxis a pointer to the structure containing the extents of the checkbox.

This function draws a checkbox. The checkbox will be created based on the parameters passed in the checkbox struct.

Returns
None.
void Graphics_drawReleasedCheckBox ( const Graphics_Context context,
const Graphics_CheckBox checkBox 
)

Draws a released Checkbox.

Parameters
contextis a pointer to the drawing context to use.
checkBoxis a pointer to the structure containing the extents of the checkBox.

This function draws a released checkbox using the selected parameters.

Returns
None.
void Graphics_drawSelectedCheckBox ( const Graphics_Context context,
const Graphics_CheckBox checkBox 
)

Draws a selected Checkbox.

Parameters
contextis a pointer to the drawing context to use.
checkBoxis a pointer to the structure containing the extents of the checkBox.

This function draws a selected checkbox using the selected parameters.

Returns
None.
bool Graphics_isCheckBoxSelected ( const Graphics_CheckBox checkBox,
uint16_t  x,
uint16_t  y 
)

Determines if x and y coordinates are contained in the checkbox.

Parameters
checkBoxis a pointer to the structure containing the extents of the checkbox.
xx-coordinate to be determined if is inside button
yy-coordinate to be determined if is inside button .

This function determines if x and y coordinates are contains inside checkbox struct.

Returns
true if x and y coordinates are inside checkbox, false if not