1
0
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:
Themba Dube 2020-01-04 08:52:52 -05:00
parent 23625441a8
commit 08a125c860
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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.