Searched refs:obj_cords (Results 1 – 1 of 1) sorted by relevance
927 lv_area_t obj_cords; in get_button_from_point() local931 lv_obj_get_coords(obj, &obj_cords); in get_button_from_point()954 … if(btn_area.x1 <= pleft) btn_area.x1 += obj_cords.x1 - LV_MIN(pleft, BTN_EXTRA_CLICK_AREA_MAX); in get_button_from_point()955 else btn_area.x1 += obj_cords.x1 - pcol; in get_button_from_point()957 … if(btn_area.y1 <= ptop) btn_area.y1 += obj_cords.y1 - LV_MIN(ptop, BTN_EXTRA_CLICK_AREA_MAX); in get_button_from_point()958 else btn_area.y1 += obj_cords.y1 - prow; in get_button_from_point()960 if(btn_area.x2 >= w - pright - 2) btn_area.x2 += obj_cords.x1 + LV_MIN(pright, in get_button_from_point()962 else btn_area.x2 += obj_cords.x1 + pcol; in get_button_from_point()964 if(btn_area.y2 >= h - pbottom - 2) btn_area.y2 += obj_cords.y1 + LV_MIN(pbottom, in get_button_from_point()966 else btn_area.y2 += obj_cords.y1 + prow; in get_button_from_point()