/lvgl-latest/src/draw/sdl/ |
D | lv_draw_sdl_mask.c | 44 lv_opa_t * lv_draw_sdl_mask_dump_opa(const lv_area_t * coords, const int16_t * ids, int16_t ids_cou… in lv_draw_sdl_mask_dump_opa() argument 46 SDL_assert(coords->x2 >= coords->x1); in lv_draw_sdl_mask_dump_opa() 47 SDL_assert(coords->y2 >= coords->y1); in lv_draw_sdl_mask_dump_opa() 48 lv_coord_t w = lv_area_get_width(coords), h = lv_area_get_height(coords); in lv_draw_sdl_mask_dump_opa() 53 …lv_coord_t abs_x = (lv_coord_t) coords->x1, abs_y = (lv_coord_t)(y + coords->y1), len = (lv_coord_… in lv_draw_sdl_mask_dump_opa() 68 SDL_Texture * lv_draw_sdl_mask_dump_texture(SDL_Renderer * renderer, const lv_area_t * coords, cons… in lv_draw_sdl_mask_dump_texture() argument 71 lv_coord_t w = lv_area_get_width(coords), h = lv_area_get_height(coords); in lv_draw_sdl_mask_dump_texture() 72 lv_opa_t * mask_buf = lv_draw_sdl_mask_dump_opa(coords, ids, ids_count); in lv_draw_sdl_mask_dump_texture()
|
D | lv_draw_sdl_img.c | 65 static bool check_mask_simple_radius(const lv_area_t * coords, lv_coord_t * radius); 68 … const lv_draw_img_dsc_t * draw_dsc, const lv_area_t * coords, const lv_area_t * clip); 71 … const lv_draw_img_dsc_t * draw_dsc, const lv_area_t * coords, const lv_area_t * clip, 81 …draw_part(SDL_Texture * texture, const lv_draw_sdl_img_header_t * header, const lv_area_t * coords, 98 const lv_area_t * coords, const void * src) in lv_draw_sdl_img_core() argument 123 …g_buf_get_transformed_area(&zoomed_cords, lv_area_get_width(coords), lv_area_get_height(coords), 0, in lv_draw_sdl_img_core() 125 lv_area_move(&zoomed_cords, coords->x1, coords->y1); in lv_draw_sdl_img_core() 167 …draw_part(SDL_Texture * texture, const lv_draw_sdl_img_header_t * header, const lv_area_t * coords, in calc_draw_part() argument 186 _lv_area_intersect(&clipped_area, coords, clip); in calc_draw_part() 190 lv_area_to_sdl_rect(coords, clipped_dst); in calc_draw_part() [all …]
|
D | lv_draw_sdl_rect.c | 76 static void draw_bg_color(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t * draw… 79 static void draw_bg_grad_simple(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t … 82 static void draw_bg_grad_radius(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t … 85 static void draw_bg_img(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t * draw_a… 88 static void draw_border(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t * draw_a… 91 static void draw_shadow(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t * clip, 94 static void draw_outline(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t * clip, 102 const lv_area_t * coords, const lv_area_t * clipped, bool full); 105 const lv_area_t * coords, const lv_area_t * clipped, bool full); 135 …w_sdl_draw_rect(lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * dsc, const lv_area_t * coords) in lv_draw_sdl_draw_rect() argument [all …]
|
D | lv_draw_sdl_bg.c | 35 static void draw_bg_color(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t * draw… 38 static void draw_bg_img(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t * draw_a… 53 …raw_sdl_draw_bg(lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * dsc, const lv_area_t * coords) in lv_draw_sdl_draw_bg() argument 59 bool has_content = _lv_area_intersect(&t_area, coords, clip); in lv_draw_sdl_draw_bg() 64 draw_bg_img(ctx, coords, &t_area, dsc); in lv_draw_sdl_draw_bg() 67 draw_bg_color(ctx, coords, &t_area, dsc); in lv_draw_sdl_draw_bg() 77 static void draw_bg_color(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t * draw… in draw_bg_color() argument 92 static void draw_bg_img(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords, const lv_area_t * draw_a… in draw_bg_img() argument 103 lv_draw_rect((lv_draw_ctx_t *) ctx, dsc, coords); in draw_bg_img()
|
D | lv_draw_sdl_polygon.c | 38 static void dump_masks(SDL_Texture * texture, const lv_area_t * coords); 106 static void dump_masks(SDL_Texture * texture, const lv_area_t * coords) in dump_masks() argument 108 lv_coord_t w = lv_area_get_width(coords), h = lv_area_get_height(coords); in dump_masks() 118 …lv_coord_t abs_x = (lv_coord_t) coords->x1, abs_y = (lv_coord_t)(y + coords->y1), len = (lv_coord_… in dump_masks()
|
/lvgl-latest/src/draw/ |
D | lv_draw_img.c | 30 … const lv_area_t * coords, const void * src); 32 static void show_error(lv_draw_ctx_t * draw_ctx, const lv_area_t * coords, const char * msg); 63 void lv_draw_img(lv_draw_ctx_t * draw_ctx, const lv_draw_img_dsc_t * dsc, const lv_area_t * coords,… in lv_draw_img() argument 67 show_error(draw_ctx, coords, "No\ndata"); in lv_draw_img() 76 res = draw_ctx->draw_img(draw_ctx, dsc, coords, src); in lv_draw_img() 80 res = decode_and_draw(draw_ctx, dsc, coords, src); in lv_draw_img() 85 show_error(draw_ctx, coords, "No\ndata"); in lv_draw_img() 229 const lv_area_t * coords, const uint8_t * map_p, lv_img_cf_t color_format) argument 233 draw_ctx->draw_img_decoded(draw_ctx, dsc, coords, map_p, color_format); 242 const lv_area_t * coords, const void * src) argument [all …]
|
D | lv_draw_rect.c | 62 …id lv_draw_rect(lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * dsc, const lv_area_t * coords) in lv_draw_rect() argument 64 if(lv_area_get_height(coords) < 1 || lv_area_get_width(coords) < 1) return; in lv_draw_rect() 66 draw_ctx->draw_rect(draw_ctx, dsc, coords); in lv_draw_rect()
|
D | lv_draw_label.c | 78 … const lv_area_t * coords, const char * txt, lv_draw_label_hint_t * hint) in lv_draw_label() argument 101 bool clip_ok = _lv_area_intersect(&clipped_area, coords, draw_ctx->clip_area); in lv_draw_label() 111 w = lv_area_get_width(coords); in lv_draw_label() 127 pos.x = coords->x1; in lv_draw_label() 128 pos.y = coords->y1; in lv_draw_label() 140 if(hint && y_ofs == 0 && coords->y1 < 0) { in lv_draw_label() 142 if(LV_ABS(hint->coord_y - coords->y1) > LV_LABEL_HINT_UPDATE_TH - 2 * line_height) { in lv_draw_label() 166 hint->y = pos.y - coords->y1; in lv_draw_label() 167 hint->coord_y = coords->y1; in lv_draw_label() 177 pos.x += (lv_area_get_width(coords) - line_width) / 2; in lv_draw_label() [all …]
|
D | lv_draw.h | 77 …_rect)(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * dsc, const lv_area_t * coords); 83 … const lv_area_t * coords, const uint8_t * map_p, lv_img_cf_t color_format); 86 const lv_area_t * coords, const void * src); 117 …)(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * draw_dsc, const lv_area_t * coords);
|
/lvgl-latest/src/draw/nxp/vglite/ |
D | lv_draw_vglite_rect.c | 78 const lv_area_t * coords); 92 lv_res_t lv_gpu_nxp_vglite_draw_bg(const lv_area_t * coords, const lv_area_t * clip_area, in lv_gpu_nxp_vglite_draw_bg() argument 96 lv_coord_t width = lv_area_get_width(coords); in lv_gpu_nxp_vglite_draw_bg() 97 lv_coord_t height = lv_area_get_height(coords); in lv_gpu_nxp_vglite_draw_bg() 108 lv_vglite_create_rect_path_data(path_data, &path_data_size, radius, coords); in lv_gpu_nxp_vglite_draw_bg() 153 vg_lite_translate((float)coords->x1, (float)coords->y1, grad_matrix); in lv_gpu_nxp_vglite_draw_bg() 196 lv_res_t lv_gpu_nxp_vglite_draw_border_generic(const lv_area_t * coords, const lv_area_t * clip_are… in lv_gpu_nxp_vglite_draw_border_generic() argument 229 lv_vglite_create_rect_path_data(path_data, &path_data_size, radius, coords); in lv_gpu_nxp_vglite_draw_border_generic() 293 const lv_area_t * coords) in lv_vglite_create_rect_path_data() argument 295 lv_coord_t rect_width = lv_area_get_width(coords); in lv_vglite_create_rect_path_data() [all …]
|
D | lv_draw_vglite.c | 70 … const lv_area_t * coords, const uint8_t * map_p, lv_img_cf_t cf); 81 …aw_vglite_rect(lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * dsc, const lv_area_t * coords); 83 …draw_vglite_bg(lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * dsc, const lv_area_t * coords); 86 const lv_area_t * coords); 89 const lv_area_t * coords); 218 … const lv_area_t * coords, const uint8_t * map_p, lv_img_cf_t cf) in lv_draw_vglite_img_decoded() argument 224 lv_draw_sw_img_decoded(draw_ctx, dsc, coords, map_p, cf); in lv_draw_vglite_img_decoded() 230 lv_draw_sw_img_decoded(draw_ctx, dsc, coords, map_p, cf); in lv_draw_vglite_img_decoded() 235 lv_area_copy(&rel_coords, coords); in lv_draw_vglite_img_decoded() 261 src_area.x1 = blend_area.x1 - (coords->x1 - draw_ctx->buf_area->x1); in lv_draw_vglite_img_decoded() [all …]
|
D | lv_draw_vglite_rect.h | 69 lv_res_t lv_gpu_nxp_vglite_draw_bg(const lv_area_t * coords, const lv_area_t * clip_area, 84 lv_res_t lv_gpu_nxp_vglite_draw_border_generic(const lv_area_t * coords, const lv_area_t * clip_are…
|
/lvgl-latest/src/widgets/ |
D | lv_img.c | 196 a.x1 += obj->coords.x1; in lv_img_set_angle() 197 a.y1 += obj->coords.y1; in lv_img_set_angle() 198 a.x2 += obj->coords.x1; in lv_img_set_angle() 199 a.y2 += obj->coords.y1; in lv_img_set_angle() 212 a.x1 += obj->coords.x1; in lv_img_set_angle() 213 a.y1 += obj->coords.y1; in lv_img_set_angle() 214 a.x2 += obj->coords.x1; in lv_img_set_angle() 215 a.y2 += obj->coords.y1; in lv_img_set_angle() 229 a.x1 += obj->coords.x1; in lv_img_set_pivot() 230 a.y1 += obj->coords.y1; in lv_img_set_pivot() [all …]
|
D | lv_roller.c | 485 int32_t label_y_prop = label->coords.y1 - (roller_h / 2 + in draw_main() 486 … obj->coords.y1); /*label offset from the middle line of the roller*/ in draw_main() 496 int32_t label_sel_y = roller_h / 2 + obj->coords.y1; in draw_main() 506 label_sel_area.x1 = obj->coords.x1 + pleft + bwidth; in draw_main() 508 label_sel_area.x2 = obj->coords.x2 - pright - bwidth; in draw_main() 538 if(!_lv_area_intersect(&roller_clip_area, draw_ctx->clip_area, &roller->coords)) return; in draw_label() 545 clip2.x1 = label_obj->coords.x1; in draw_label() 546 clip2.y1 = label_obj->coords.y1; in draw_label() 547 clip2.x2 = label_obj->coords.x2; in draw_label() 552 … lv_draw_label(draw_ctx, &label_draw_dsc, &label_obj->coords, lv_label_get_text(label_obj), NULL); in draw_label() [all …]
|
/lvgl-latest/src/extra/widgets/imgbtn/ |
D | lv_imgbtn.c | 230 lv_area_t coords; in draw_main() local 231 lv_area_copy(&coords, &obj->coords); in draw_main() 232 coords.x1 -= tw; in draw_main() 233 coords.x2 += tw; in draw_main() 234 coords.y1 -= th; in draw_main() 235 coords.y2 += th; in draw_main() 249 coords_part.x1 = coords.x1; in draw_main() 250 coords_part.y1 = coords.y1; in draw_main() 251 coords_part.x2 = coords.x1 + header.w - 1; in draw_main() 252 coords_part.y2 = coords.y1 + header.h - 1; in draw_main() [all …]
|
/lvgl-latest/src/core/ |
D | lv_indev_scroll.c | 247 p->x = find_snap_point_x(obj, obj->coords.x1, obj->coords.x2, 0); in lv_indev_scroll_get_snap_dist() 248 p->y = find_snap_point_y(obj, obj->coords.y1, obj->coords.y2, 0); in lv_indev_scroll_get_snap_dist() 395 … proc->types.pointer.scroll_area.y1 = find_snap_point_y(obj, obj->coords.y1 + 1, LV_COORD_MAX, 0); in init_scroll_limits() 396 … proc->types.pointer.scroll_area.y2 = find_snap_point_y(obj, LV_COORD_MIN, obj->coords.y1 - 1, 0); in init_scroll_limits() 399 … proc->types.pointer.scroll_area.y1 = find_snap_point_y(obj, obj->coords.y2, LV_COORD_MAX, 0); in init_scroll_limits() 400 … proc->types.pointer.scroll_area.y2 = find_snap_point_y(obj, LV_COORD_MIN, obj->coords.y2, 0); in init_scroll_limits() 403 lv_coord_t y_mid = obj->coords.y1 + lv_area_get_height(&obj->coords) / 2; in init_scroll_limits() 416 … proc->types.pointer.scroll_area.x1 = find_snap_point_x(obj, obj->coords.x1, LV_COORD_MAX, 0); in init_scroll_limits() 417 … proc->types.pointer.scroll_area.x2 = find_snap_point_x(obj, LV_COORD_MIN, obj->coords.x1, 0); in init_scroll_limits() 420 … proc->types.pointer.scroll_area.x1 = find_snap_point_x(obj, obj->coords.x2, LV_COORD_MAX, 0); in init_scroll_limits() [all …]
|
D | lv_obj_scroll.c | 144 child_res = LV_MAX(child_res, child->coords.y2); in lv_obj_get_scroll_bottom() 152 child_res -= (obj->coords.y2 - pad_bottom - border_width); in lv_obj_get_scroll_bottom() 185 x1 = LV_MIN(x1, child->coords.x1); in lv_obj_get_scroll_left() 191 child_res = (obj->coords.x1 + pad_left + border_width) - child_res; in lv_obj_get_scroll_left() 222 child_res = LV_MAX(child_res, child->coords.x2); in lv_obj_get_scroll_right() 230 child_res -= (obj->coords.x2 - pad_right - border_width); in lv_obj_get_scroll_right() 393 scroll_area_into_view(&obj->coords, obj, &p, anim_en); in lv_obj_scroll_to_view() 405 scroll_area_into_view(&obj->coords, child, &p, anim_en); in lv_obj_scroll_to_view_recursive() 515 ver_area->y1 = obj->coords.y1; in lv_obj_get_scrollbar_area() 516 ver_area->y2 = obj->coords.y2; in lv_obj_get_scrollbar_area() [all …]
|
D | lv_obj_pos.c | 186 obj->coords.y2 = obj->coords.y1 + h - 1; in lv_obj_refr_size() 188 obj->coords.x1 = obj->coords.x2 - w + 1; in lv_obj_refr_size() 191 obj->coords.x2 = obj->coords.x1 + w - 1; in lv_obj_refr_size() 207 bool on2 = _lv_area_is_in(&obj->coords, &parent_fit_area, 0); in lv_obj_refr_size() 476 x += x_ofs + base->coords.x1 - parent->coords.x1 + lv_obj_get_scroll_right(parent) - pleft; in lv_obj_align_to() 479 x += x_ofs + base->coords.x1 - parent->coords.x1 + lv_obj_get_scroll_left(parent) - pleft; in lv_obj_align_to() 481 y += y_ofs + base->coords.y1 - parent->coords.y1 + lv_obj_get_scroll_top(parent) - ptop; in lv_obj_align_to() 487 void lv_obj_get_coords(const lv_obj_t * obj, lv_area_t * coords) in lv_obj_get_coords() argument 491 lv_area_copy(coords, &obj->coords); in lv_obj_get_coords() 501 rel_x = obj->coords.x1 - parent->coords.x1; in lv_obj_get_x() [all …]
|
D | lv_obj.c | 429 obj->coords.y1 = parent->coords.y1 + lv_obj_get_style_pad_top(parent, LV_PART_MAIN) - st; in lv_obj_constructor() 430 obj->coords.y2 = obj->coords.y1 - 1; in lv_obj_constructor() 431 obj->coords.x1 = parent->coords.x1 + lv_obj_get_style_pad_left(parent, LV_PART_MAIN) - sl; in lv_obj_constructor() 432 obj->coords.x2 = obj->coords.x1 - 1; in lv_obj_constructor() 499 lv_area_t coords; in lv_obj_draw() local 500 lv_area_copy(&coords, &obj->coords); in lv_obj_draw() 501 coords.x1 -= w; in lv_obj_draw() 502 coords.x2 += w; in lv_obj_draw() 503 coords.y1 -= h; in lv_obj_draw() 504 coords.y2 += h; in lv_obj_draw() [all …]
|
/lvgl-latest/examples/widgets/chart/ |
D | lv_example_chart_2.py | 20 coords = lv.area_t() 21 obj.get_coords(coords) 22 fade_mask_param.init(coords, lv.OPA.COVER, coords.y1 + h // 8, lv.OPA.TRANSP,coords.y2) 35 coords = lv.area_t() 36 obj.get_coords(coords) 37 a.y2 = coords.y2
|
D | lv_example_chart_4.py | 31 coords = lv.area_t() 32 chart.get_coords(coords) 33 a.x1 = coords.x1 + p.x - 20 34 a.x2 = coords.x1 + p.x + 20 35 a.y1 = coords.y1 + p.y - 30 36 a.y2 = coords.y1 + p.y - 10
|
D | lv_example_chart_4.c | 42 a.x1 = chart->coords.x1 + p.x - 20; in event_cb() 43 a.x2 = chart->coords.x1 + p.x + 20; in event_cb() 44 a.y1 = chart->coords.y1 + p.y - 30; in event_cb() 45 a.y2 = chart->coords.y1 + p.y - 10; in event_cb()
|
/lvgl-latest/src/draw/nxp/pxp/ |
D | lv_draw_pxp.c | 65 … const lv_area_t * coords, const uint8_t * map_p, lv_img_cf_t cf); 176 const lv_area_t * coords, const uint8_t * map_p, lv_img_cf_t cf) in lv_draw_pxp_img_decoded() argument 182 lv_draw_sw_img_decoded(draw_ctx, dsc, coords, map_p, cf); in lv_draw_pxp_img_decoded() 188 lv_draw_sw_img_decoded(draw_ctx, dsc, coords, map_p, cf); in lv_draw_pxp_img_decoded() 193 lv_area_copy(&rel_coords, coords); in lv_draw_pxp_img_decoded() 211 lv_coord_t src_width = lv_area_get_width(coords); in lv_draw_pxp_img_decoded() 212 lv_coord_t src_height = lv_area_get_height(coords); in lv_draw_pxp_img_decoded() 243 lv_draw_sw_img_decoded(draw_ctx, dsc, coords, map_p, cf); in lv_draw_pxp_img_decoded() 251 src_area.x1 = blend_area.x1 - (coords->x1 - draw_ctx->buf_area->x1); in lv_draw_pxp_img_decoded() 252 src_area.y1 = blend_area.y1 - (coords->y1 - draw_ctx->buf_area->y1); in lv_draw_pxp_img_decoded() [all …]
|
/lvgl-latest/src/draw/sw/ |
D | lv_draw_sw_img.c | 46 const lv_area_t * coords, const uint8_t * src_buf, in lv_draw_sw_img_decoded() argument 68 blend_dsc.blend_area = coords; in lv_draw_sw_img_decoded() 73 if(!_lv_area_intersect(&clipped_coords, coords, draw_ctx->clip_area)) return; in lv_draw_sw_img_decoded() 76 blend_dsc.mask_area = coords; in lv_draw_sw_img_decoded() 81 blend_dsc.blend_area = coords; in lv_draw_sw_img_decoded() 86 lv_coord_t src_w = lv_area_get_width(coords); in lv_draw_sw_img_decoded() 87 lv_coord_t src_h = lv_area_get_height(coords); in lv_draw_sw_img_decoded() 91 blend_dsc.blend_area = coords; in lv_draw_sw_img_decoded() 92 blend_dsc.mask_area = coords; in lv_draw_sw_img_decoded() 104 lv_coord_t src_w = lv_area_get_width(coords); in lv_draw_sw_img_decoded() [all …]
|
D | lv_draw_sw_rect.c | 30 …c void draw_bg(lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * dsc, const lv_area_t * coords); 31 …id draw_bg_img(lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * dsc, const lv_area_t * coords); 32 …id draw_border(lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * dsc, const lv_area_t * coords); 34 …d draw_outline(lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * dsc, const lv_area_t * coords); 38 const lv_area_t * coords); 39 static void /* LV_ATTRIBUTE_FAST_MEM */ shadow_draw_corner_buf(const lv_area_t * coords, uint16_t *… 67 …lv_draw_sw_rect(lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * dsc, const lv_area_t * coords) in lv_draw_sw_rect() argument 70 draw_shadow(draw_ctx, dsc, coords); in lv_draw_sw_rect() 73 draw_bg(draw_ctx, dsc, coords); in lv_draw_sw_rect() 74 draw_bg_img(draw_ctx, dsc, coords); in lv_draw_sw_rect() [all …]
|