Main Page
Modules
Data Structures
Files
Related Pages
File List
Globals
cygdrive
c
msp-grlib
src
grlib
checkbox.h
Go to the documentation of this file.
1
2
#ifndef CHECKBOX_H_
3
#define CHECKBOX_H_
4
5
//*****************************************************************************
6
// typedefs
7
//*****************************************************************************
8
9
12
typedef
struct
Graphics_CheckBox
13
{
14
uint16_t
xPosition
;
15
uint16_t
yPosition
;
16
bool
selected
;
17
uint8_t
gap
;
18
uint32_t
textColor
;
19
uint32_t
backgroundColor
;
20
uint32_t
selectedColor
;
21
uint8_t
numbOfChar
;
22
const
Graphics_Font
*
font
;
23
int8_t *
text
;
24
}
Graphics_CheckBox
;
25
26
//*****************************************************************************
27
//globals
28
//*****************************************************************************
29
extern
Graphics_Context
g_sContext
;
30
31
//*****************************************************************************
32
// the function prototypes
33
//*****************************************************************************
34
extern
void
Graphics_drawCheckBox
(
const
Graphics_Context
*context,
35
const
Graphics_CheckBox
*checkBox);
36
extern
bool
Graphics_isCheckBoxSelected
(
37
const
Graphics_CheckBox
*checkBox,uint16_t x, uint16_t y);
38
extern
void
Graphics_drawSelectedCheckBox
(
const
Graphics_Context
*context,
39
const
Graphics_CheckBox
*checkBox);
40
extern
void
Graphics_drawReleasedCheckBox
(
const
Graphics_Context
*context,
41
const
Graphics_CheckBox
*checkBox);
42
43
#endif
/* CHECKBOX_H_ */
Copyright 2015, Texas Instruments Incorporated