MSP Graphics Library
Main Page
Introduction
Usage
Modules
Data Structures
Disclaimer
imageButton.h
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,
35
uint16_t x,
36
uint16_t y);
37
extern
void
Graphics_drawSelectedImageButton
(
38
const
Graphics_Context
*context,
39
const
Graphics_ImageButton
*
40
imageButton);
41
extern
void
Graphics_drawReleasedImageButton
(
42
const
Graphics_Context
*context,
43
const
Graphics_ImageButton
*
44
imageButton);
45
46
#endif
/* IMAGEBUTTON_H_ */
Graphics_ImageButton::selectedColor
uint32_t selectedColor
Definition:
imageButton.h:19
Graphics_drawImageButton
void Graphics_drawImageButton(const Graphics_Context *context, const Graphics_ImageButton *imageButton)
Definition:
imageButton.c:27
Graphics_isImageButtonSelected
bool Graphics_isImageButtonSelected(const Graphics_ImageButton *imageButton, uint16_t x, uint16_t y)
Definition:
imageButton.c:75
Graphics_ImageButton::yPosition
uint16_t yPosition
Definition:
imageButton.h:13
Graphics_drawSelectedImageButton
void Graphics_drawSelectedImageButton(const Graphics_Context *context, const Graphics_ImageButton *imageButton)
Definition:
imageButton.c:102
Graphics_ImageButton
This structure defines the characteristics of a ImageButton.
Definition:
imageButton.h:10
Graphics_Image
This structure defines the characteristics of a Bitmap Image.
Definition:
grlib.h:46
Graphics_ImageButton::xPosition
uint16_t xPosition
Definition:
imageButton.h:12
Graphics_ImageButton::imageHeight
uint16_t imageHeight
Definition:
imageButton.h:16
Graphics_ImageButton::imageWidth
uint16_t imageWidth
Definition:
imageButton.h:17
Graphics_Context
Definition:
grlib.h:194
Graphics_ImageButton::selected
bool selected
Definition:
imageButton.h:15
Graphics_drawReleasedImageButton
void Graphics_drawReleasedImageButton(const Graphics_Context *context, const Graphics_ImageButton *imageButton)
Definition:
imageButton.c:142
Graphics_ImageButton::borderWidth
uint8_t borderWidth
Definition:
imageButton.h:14
Graphics_ImageButton::image
Graphics_Image * image
Definition:
imageButton.h:20
Graphics_ImageButton::borderColor
uint32_t borderColor
Definition:
imageButton.h:18
Copyright © 2015, Texas Instruments Incorporated