blob: d061fd8e574266d5384955f4dd700421987b9fa8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/**
* @file lv_imagebutton_private.h
*
*/
#ifndef LV_IMAGEBUTTON_PRIVATE_H
#define LV_IMAGEBUTTON_PRIVATE_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "lv_imagebutton.h"
#if LV_USE_IMAGEBUTTON != 0
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
struct lv_imagebutton_src_info_t {
const void * img_src;
lv_image_header_t header;
};
/** Data of image button */
struct lv_imagebutton_t {
lv_obj_t obj;
lv_imagebutton_src_info_t src_mid[LV_IMAGEBUTTON_STATE_NUM]; /**< Store center images to each state */
lv_imagebutton_src_info_t src_left[LV_IMAGEBUTTON_STATE_NUM]; /**< Store left side images to each state */
lv_imagebutton_src_info_t src_right[LV_IMAGEBUTTON_STATE_NUM]; /**< Store right side images to each state */
};
/**********************
* GLOBAL PROTOTYPES
**********************/
/**********************
* MACROS
**********************/
#endif /* LV_USE_IMAGEBUTTON != 0 */
#ifdef __cplusplus
} /*extern "C"*/
#endif
#endif /*LV_IMAGEBUTTON_PRIVATE_H*/
|