Lines Matching refs:x
82 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
88 lv_img_buf_set_px_color(&canvas->dsc, x, y, c); in lv_canvas_set_px_color()
92 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
98 lv_img_buf_set_px_alpha(&canvas->dsc, x, y, opa); in lv_canvas_set_px_opa()
116 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
123 return lv_img_buf_get_px_color(&canvas->dsc, x, y, color); in lv_canvas_get_px()
138 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
145 …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()
151 uint32_t px = canvas->dsc.header.w * y * px_size + x * px_size; in lv_canvas_copy_buf()
172 int32_t x; in lv_canvas_transform() local
179 draw_dsc.pivot.x = pivot_x; in lv_canvas_transform()
196 for(x = 0; x < dest_img->header.w; x++) { in lv_canvas_transform()
197 if(abuf[x]) { in lv_canvas_transform()
198 lv_img_buf_set_px_color(dest_img, x, y, cbuf[x]); in lv_canvas_transform()
199 lv_img_buf_set_px_alpha(dest_img, x, y, abuf[x]); in lv_canvas_transform()
268 lv_coord_t x; in lv_canvas_blur_hor() local
282 for(x = a.x1 - r_back; x <= a.x1 + r_front; x++) { in lv_canvas_blur_hor()
283 x_safe = x < 0 ? 0 : x; in lv_canvas_blur_hor()
302 for(x = a.x1; x <= a.x2; x++) { in lv_canvas_blur_hor()
316 lv_img_buf_set_px_color(&canvas->dsc, x, y, c); in lv_canvas_blur_hor()
318 if(has_alpha) lv_img_buf_set_px_alpha(&canvas->dsc, x, y, opa); in lv_canvas_blur_hor()
320 x_safe = x - r_back; in lv_canvas_blur_hor()
334 x_safe = x + 1 + r_front; in lv_canvas_blur_hor()
395 lv_coord_t x; in lv_canvas_blur_ver() local
399 for(x = a.x1; x <= a.x2; x++) { in lv_canvas_blur_ver()
412 c = lv_img_buf_get_px_color(&canvas->dsc, x, y_safe, color); in lv_canvas_blur_ver()
413 if(has_alpha) opa = lv_img_buf_get_px_alpha(&canvas->dsc, x, y_safe); in lv_canvas_blur_ver()
444 lv_img_buf_set_px_color(&canvas->dsc, x, y, c); in lv_canvas_blur_ver()
446 if(has_alpha) lv_img_buf_set_px_alpha(&canvas->dsc, x, y, opa); in lv_canvas_blur_ver()
465 c = lv_img_buf_get_px_color(&canvas->dsc, x, y_safe, color); in lv_canvas_blur_ver()
466 if(has_alpha) opa = lv_img_buf_get_px_alpha(&canvas->dsc, x, y_safe); in lv_canvas_blur_ver()
503 uint32_t x; in lv_canvas_fill_bg() local
506 for(x = 0; x < dsc->header.w; x++) { in lv_canvas_fill_bg()
507 lv_img_buf_set_px_color(dsc, x, y, color); in lv_canvas_fill_bg()
508 lv_img_buf_set_px_alpha(dsc, x, y, opa); in lv_canvas_fill_bg()
516 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
546 coords.x1 = x; in lv_canvas_draw_rect()
548 coords.x2 = x + w - 1; in lv_canvas_draw_rect()
560 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
583 coords.x1 = x; in lv_canvas_draw_text()
585 coords.x2 = x + max_w - 1; in lv_canvas_draw_text()
596 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
625 coords.x1 = x; in lv_canvas_draw_img()
627 coords.x2 = x + header.w - 1; in lv_canvas_draw_img()
719 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
742 lv_point_t p = {x, y}; in lv_canvas_draw_arc()
752 LV_UNUSED(x); in lv_canvas_draw_arc()