Lines Matching refs:y

81 void lv_canvas_set_px_color(lv_obj_t * obj, lv_coord_t x, lv_coord_t y, lv_color_t c)  in lv_canvas_set_px_color()  argument
87 lv_img_buf_set_px_color(&canvas->dsc, x, y, c); in lv_canvas_set_px_color()
91 void lv_canvas_set_px_opa(lv_obj_t * obj, lv_coord_t x, lv_coord_t y, lv_opa_t opa) in lv_canvas_set_px_opa() argument
97 lv_img_buf_set_px_alpha(&canvas->dsc, x, y, opa); in lv_canvas_set_px_opa()
115 lv_color_t lv_canvas_get_px(lv_obj_t * obj, lv_coord_t x, lv_coord_t y) in lv_canvas_get_px() argument
122 return lv_img_buf_get_px_color(&canvas->dsc, x, y, color); in lv_canvas_get_px()
137 void lv_canvas_copy_buf(lv_obj_t * obj, const void * to_copy, lv_coord_t x, lv_coord_t y, lv_coord_… in lv_canvas_copy_buf() argument
144 …if(x + w - 1 >= (lv_coord_t)canvas->dsc.header.w || y + h - 1 >= (lv_coord_t)canvas->dsc.header.h)… in lv_canvas_copy_buf()
150 uint32_t px = canvas->dsc.header.w * y * px_size + x * px_size; in lv_canvas_copy_buf()
175 int32_t y; in lv_canvas_transform() local
191 for(y = -offset_y; y < dest_height - offset_y; y++) { in lv_canvas_transform()
194 ret = _lv_img_buf_transform(&dsc, x, y); in lv_canvas_transform()
198 …if(x + offset_x >= 0 && x + offset_x < dest_width && y + offset_y >= 0 && y + offset_y < dest_heig… in lv_canvas_transform()
201 … lv_img_buf_set_px_color(&canvas->dsc, x + offset_x, y + offset_y, dsc.res.color); in lv_canvas_transform()
204 …lv_color_t bg_color = lv_img_buf_get_px_color(&canvas->dsc, x + offset_x, y + offset_y, dsc.cfg.co… in lv_canvas_transform()
210 … lv_img_buf_set_px_color(&canvas->dsc, x + offset_x, y + offset_y, dsc.res.color); in lv_canvas_transform()
215 … lv_opa_t bg_opa = lv_img_buf_get_px_alpha(&canvas->dsc, x + offset_x, y + offset_y); in lv_canvas_transform()
219 … lv_img_buf_set_px_color(&canvas->dsc, x + offset_x, y + offset_y, dsc.res.color); in lv_canvas_transform()
220 … lv_img_buf_set_px_alpha(&canvas->dsc, x + offset_x, y + offset_y, dsc.res.opa); in lv_canvas_transform()
224 lv_img_buf_set_px_color(&canvas->dsc, x + offset_x, y + offset_y, in lv_canvas_transform()
238 lv_img_buf_set_px_color(&canvas->dsc, x + offset_x, y + offset_y, in lv_canvas_transform()
240 … lv_img_buf_set_px_alpha(&canvas->dsc, x + offset_x, y + offset_y, opa_res_2); in lv_canvas_transform()
306 lv_coord_t y; in lv_canvas_blur_hor() local
309 for(y = a.y1; y <= a.y2; y++) { in lv_canvas_blur_hor()
317 lv_memcpy(line_buf, &canvas->dsc.data[y * line_w], line_w); in lv_canvas_blur_hor()
353 lv_img_buf_set_px_color(&canvas->dsc, x, y, c); in lv_canvas_blur_hor()
355 if(has_alpha) lv_img_buf_set_px_alpha(&canvas->dsc, x, y, opa); in lv_canvas_blur_hor()
433 lv_coord_t y; in lv_canvas_blur_ver() local
445 for(y = a.y1 - r_back; y <= a.y1 + r_front; y++) { in lv_canvas_blur_ver()
446 y_safe = y < 0 ? 0 : y; in lv_canvas_blur_ver()
468 for(y = a.y1; y <= a.y2; y++) { in lv_canvas_blur_ver()
481 lv_img_buf_set_px_color(&canvas->dsc, x, y, c); in lv_canvas_blur_ver()
483 if(has_alpha) lv_img_buf_set_px_alpha(&canvas->dsc, x, y, opa); in lv_canvas_blur_ver()
485 y_safe = y - r_back; in lv_canvas_blur_ver()
499 y_safe = y + 1 + r_front; in lv_canvas_blur_ver()
541 uint32_t y; in lv_canvas_fill_bg() local
542 for(y = 0; y < dsc->header.h; y++) { in lv_canvas_fill_bg()
544 lv_img_buf_set_px_color(dsc, x, y, color); in lv_canvas_fill_bg()
545 lv_img_buf_set_px_alpha(dsc, x, y, opa); in lv_canvas_fill_bg()
553 void lv_canvas_draw_rect(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_coord_t w, lv_coord_t h, in lv_canvas_draw_rect() argument
584 coords.y1 = y; in lv_canvas_draw_rect()
586 coords.y2 = y + h - 1; in lv_canvas_draw_rect()
597 void lv_canvas_draw_text(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_coord_t max_w, in lv_canvas_draw_text() argument
621 coords.y1 = y; in lv_canvas_draw_text()
633 void lv_canvas_draw_img(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, const void * src, in lv_canvas_draw_img() argument
663 coords.y1 = y; in lv_canvas_draw_img()
665 coords.y2 = y + header.h - 1; in lv_canvas_draw_img()
756 void lv_canvas_draw_arc(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_coord_t r, int32_t start_… in lv_canvas_draw_arc() argument
779 lv_point_t p = {x, y}; in lv_canvas_draw_arc()
790 LV_UNUSED(y); in lv_canvas_draw_arc()