Main Page
Modules
Data Structures
Files
Related Pages
File List
Globals
cygdrive
c
msp-grlib3
src
grlib
imageButton.h
Go to the documentation of this file.
1
2
#ifndef IMAGEBUTTON_H_
3
#define IMAGEBUTTON_H_
4
5
//*****************************************************************************
6
//
8
//
9
//*****************************************************************************
10
typedef
struct
Graphics_ImageButton
11
{
12
uint16_t
xPosition
;
13
uint16_t
yPosition
;
14
uint8_t
borderWidth
;
15
bool
selected
;
16
uint16_t
imageHeight
;
17
uint16_t
imageWidth
;
18
uint32_t
borderColor
;
19
uint32_t
selectedColor
;
20
Graphics_Image
*
image
;
21
}
Graphics_ImageButton
;
22
23
//*****************************************************************************
24
//globals
25
//*****************************************************************************
26
extern
Graphics_Context
g_sContext
;
27
28
//*****************************************************************************
29
// the function prototypes
30
//*****************************************************************************
31
extern
void
Graphics_drawImageButton
(
const
Graphics_Context
*context,
32
const
Graphics_ImageButton
*imageButton);
33
extern
bool
Graphics_isImageButtonSelected
(
34
const
Graphics_ImageButton
*imageButton,uint16_t x, uint16_t y);
35
extern
void
Graphics_drawSelectedImageButton
(
const
Graphics_Context
*context,
36
const
Graphics_ImageButton
*imageButton);
37
extern
void
Graphics_drawReleasedImageButton
(
const
Graphics_Context
*context,
38
const
Graphics_ImageButton
*imageButton);
39
40
#endif
/* IMAGEBUTTON_H_ */
Graphics_Context
Definition:
grlib.h:145
Graphics_ImageButton::imageHeight
uint16_t imageHeight
Definition:
imageButton.h:16
Graphics_Image
This structure defines the characteristics of a Bitmap Image.
Definition:
grlib.h:47
Graphics_ImageButton::selectedColor
uint32_t selectedColor
Definition:
imageButton.h:19
g_sContext
Graphics_Context g_sContext
Graphics_ImageButton
This structure defines the characteristics of a ImageButton.
Definition:
imageButton.h:10
Graphics_ImageButton::xPosition
uint16_t xPosition
Definition:
imageButton.h:12
Graphics_ImageButton::image
Graphics_Image * image
Definition:
imageButton.h:20
Graphics_ImageButton::borderColor
uint32_t borderColor
Definition:
imageButton.h:18
Graphics_ImageButton::borderWidth
uint8_t borderWidth
Definition:
imageButton.h:14
Graphics_isImageButtonSelected
bool Graphics_isImageButtonSelected(const Graphics_ImageButton *imageButton, uint16_t x, uint16_t y)
Definition:
imageButton.c:71
Graphics_ImageButton
struct Graphics_ImageButton Graphics_ImageButton
This structure defines the characteristics of a ImageButton.
Graphics_drawImageButton
void Graphics_drawImageButton(const Graphics_Context *context, const Graphics_ImageButton *imageButton)
Definition:
imageButton.c:27
Graphics_drawReleasedImageButton
void Graphics_drawReleasedImageButton(const Graphics_Context *context, const Graphics_ImageButton *imageButton)
Definition:
imageButton.c:135
Graphics_ImageButton::selected
bool selected
Definition:
imageButton.h:15
Graphics_drawSelectedImageButton
void Graphics_drawSelectedImageButton(const Graphics_Context *context, const Graphics_ImageButton *imageButton)
Definition:
imageButton.c:97
Graphics_ImageButton::yPosition
uint16_t yPosition
Definition:
imageButton.h:13
Graphics_ImageButton::imageWidth
uint16_t imageWidth
Definition:
imageButton.h:17
Copyright 2016, Texas Instruments Incorporated