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