1 /** 2 * @file lv_obj_event_private.h 3 * 4 */ 5 6 #ifndef LV_OBJ_EVENT_PRIVATE_H 7 #define LV_OBJ_EVENT_PRIVATE_H 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 /********************* 14 * INCLUDES 15 *********************/ 16 17 #include "lv_obj_event.h" 18 19 /********************* 20 * DEFINES 21 *********************/ 22 23 /********************** 24 * TYPEDEFS 25 **********************/ 26 27 /** 28 * Used as the event parameter of ::LV_EVENT_HIT_TEST to check if an `point` can click the object or not. 29 * `res` should be set like this: 30 * - If already set to `false` another event wants that point non clickable. If you want to respect it leave it as `false` or set `true` to overwrite it. 31 * - If already set `true` and `point` shouldn't be clickable set to `false` 32 * - If already set to `true` you agree that `point` can click the object leave it as `true` 33 */ 34 struct _lv_hit_test_info_t { 35 const lv_point_t * point; /**< A point relative to screen to check if it can click the object or not*/ 36 bool res; /**< true: `point` can click the object; false: it cannot*/ 37 }; 38 39 /** 40 * Used as the event parameter of ::LV_EVENT_COVER_CHECK to check if an area is covered by the object or not. 41 * In the event use `const lv_area_t * area = lv_event_get_cover_area(e)` to get the area to check 42 * and `lv_event_set_cover_res(e, res)` to set the result. 43 */ 44 struct _lv_cover_check_info_t { 45 lv_cover_res_t res; 46 const lv_area_t * area; 47 }; 48 49 50 /********************** 51 * GLOBAL PROTOTYPES 52 **********************/ 53 54 /********************** 55 * MACROS 56 **********************/ 57 58 #ifdef __cplusplus 59 } /*extern "C"*/ 60 #endif 61 62 #endif /*LV_OBJ_EVENT_PRIVATE_H*/ 63