Logo
MSP Graphics Library
RadioButton_api

Functions

void Graphics_drawRadioButton (const Graphics_Context *context, const Graphics_RadioButton *radioButton)
 
bool Graphics_isRadioButtonSelected (const Graphics_RadioButton *radioButton, uint16_t x, uint16_t y)
 
void Graphics_drawSelectedRadioButton (const Graphics_Context *context, const Graphics_RadioButton *radioButton)
 
void Graphics_drawReleasedRadioButton (const Graphics_Context *context, const Graphics_RadioButton *radioButton)
 

Detailed Description

Function Documentation

void Graphics_drawRadioButton ( const Graphics_Context context,
const Graphics_RadioButton radioButton 
)

Draws a RadioButton.

Parameters
contextis a pointer to the drawing context to use.
radioButtonis a pointer to the structure containing the extents of the RadioButton.

This function draws a RadioButton . The RadioButton will contain the image passed in the RadioButton struct.

Returns
None.
void Graphics_drawReleasedRadioButton ( const Graphics_Context context,
const Graphics_RadioButton radioButton 
)

Draws a released RadioButton.

Parameters
contextis a pointer to the drawing context to use.
radioButtonis a pointer to the structure containing the extents of the RadioButton.

This function draws a RadioButton using the released parameters.

Returns
None.
void Graphics_drawSelectedRadioButton ( const Graphics_Context context,
const Graphics_RadioButton radioButton 
)

Draws a selected RadioButton.

Parameters
contextis a pointer to the drawing context to use.
radioButtonis a pointer to the structure containing the extents of the RadioButton.

This function draws a RadioButton using the selected parameters.

Returns
None.
bool Graphics_isRadioButtonSelected ( const Graphics_RadioButton radioButton,
uint16_t  x,
uint16_t  y 
)

Determines if x and y coordinates are contained in RadioButton.

Parameters
radioButtonis a pointer to the structure containing the extents of the RadioButton.
xx-coordinate to be determined if is inside RadioButton
yy-coordinate to be determined if is inside RadioButton

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

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