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;
22 
23 //*****************************************************************************
24 //globals
25 //*****************************************************************************
27 
28 //*****************************************************************************
29 // the function prototypes
30 //*****************************************************************************
31 extern void Graphics_drawImageButton(const Graphics_Context *context,
32  const Graphics_ImageButton *imageButton);
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_ */
Definition: grlib.h:145
uint16_t imageHeight
Definition: imageButton.h:16
This structure defines the characteristics of a Bitmap Image.
Definition: grlib.h:47
uint32_t selectedColor
Definition: imageButton.h:19
Graphics_Context g_sContext
This structure defines the characteristics of a ImageButton.
Definition: imageButton.h:10
uint16_t xPosition
Definition: imageButton.h:12
Graphics_Image * image
Definition: imageButton.h:20
uint32_t borderColor
Definition: imageButton.h:18
uint8_t borderWidth
Definition: imageButton.h:14
bool Graphics_isImageButtonSelected(const Graphics_ImageButton *imageButton, uint16_t x, uint16_t y)
Definition: imageButton.c:71
struct Graphics_ImageButton Graphics_ImageButton
This structure defines the characteristics of a ImageButton.
void Graphics_drawImageButton(const Graphics_Context *context, const Graphics_ImageButton *imageButton)
Definition: imageButton.c:27
void Graphics_drawReleasedImageButton(const Graphics_Context *context, const Graphics_ImageButton *imageButton)
Definition: imageButton.c:135
bool selected
Definition: imageButton.h:15
void Graphics_drawSelectedImageButton(const Graphics_Context *context, const Graphics_ImageButton *imageButton)
Definition: imageButton.c:97
uint16_t yPosition
Definition: imageButton.h:13
uint16_t imageWidth
Definition: imageButton.h:17

Copyright 2016, Texas Instruments Incorporated