mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
Make lv_obj_is_point_on_coords
accept a constant point
This commit is contained in:
parent
23625441a8
commit
08a125c860
@ -2419,7 +2419,7 @@ bool lv_obj_is_focused(const lv_obj_t * obj)
|
||||
* @param obj object to check
|
||||
* @param point screen-space point
|
||||
*/
|
||||
bool lv_obj_is_point_on_coords(lv_obj_t * obj, lv_point_t * point) {
|
||||
bool lv_obj_is_point_on_coords(lv_obj_t * obj, const lv_point_t * point) {
|
||||
#if LV_USE_EXT_CLICK_AREA == LV_EXT_CLICK_AREA_TINY
|
||||
lv_area_t ext_area;
|
||||
ext_area.x1 = obj->coords.x1 - obj->ext_click_pad_hor;
|
||||
|
@ -948,7 +948,7 @@ lv_event_cb_t lv_obj_get_event_cb(const lv_obj_t * obj);
|
||||
* @param obj object to check
|
||||
* @param point screen-space point
|
||||
*/
|
||||
bool lv_obj_is_point_on_coords(lv_obj_t * obj, lv_point_t * point);
|
||||
bool lv_obj_is_point_on_coords(lv_obj_t * obj, const lv_point_t * point);
|
||||
|
||||
/**
|
||||
* Hit-test an object given a particular point in screen space.
|
||||
|
Loading…
x
Reference in New Issue
Block a user