/lvgl-2.7.6/src/lv_widgets/ |
D | lv_tileview.c | 91 ext->act_id.y = 0; in lv_tileview_create() 128 ext->act_id.y = copy_ext->act_id.y; in lv_tileview_create() 187 if(valid_pos[i].x == ext->act_id.x && valid_pos[i].y == ext->act_id.y) { in lv_tileview_set_valid_positions() 194 lv_tileview_set_tile_act(tileview, valid_pos[0].x, valid_pos[0].y, LV_ANIM_OFF); in lv_tileview_set_valid_positions() 205 void lv_tileview_set_tile_act(lv_obj_t * tileview, lv_coord_t x, lv_coord_t y, lv_anim_enable_t ani… in lv_tileview_set_tile_act() argument 218 if(ext->valid_pos[tile_id].x == x && ext->valid_pos[tile_id].y == y) { in lv_tileview_set_tile_act() 227 ext->act_id.y = y; in lv_tileview_set_tile_act() 230 lv_coord_t y_coord = -y * lv_obj_get_height(tileview); in lv_tileview_set_tile_act() 280 void lv_tileview_get_tile_act(lv_obj_t * tileview, lv_coord_t * x, lv_coord_t * y) in lv_tileview_get_tile_act() argument 285 *y = ext->act_id.y; in lv_tileview_get_tile_act() [all …]
|
D | lv_canvas.c | 35 lv_coord_t y, 38 …px_cb_alpha1(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t y, 41 …px_cb_alpha2(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t y, 44 …px_cb_alpha4(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t y, 48 …px_cb_alpha8(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t y, 51 static void set_px_alpha_generic(lv_img_dsc_t * d, lv_coord_t x, lv_coord_t y, lv_color_t color, lv… 161 void lv_canvas_set_px(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_color_t c) in lv_canvas_set_px() argument 167 lv_img_buf_set_px_color(&ext->dsc, x, y, c); in lv_canvas_set_px() 202 lv_color_t lv_canvas_get_px(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y) in lv_canvas_get_px() argument 209 return lv_img_buf_get_px_color(&ext->dsc, x, y, color); in lv_canvas_get_px() [all …]
|
D | lv_gauge.c | 91 ext->needle_img_pivot.y = 0; in lv_gauge_create() 225 p_mid.y = y_ofs; in lv_gauge_set_value() 229 p_end.y = (_lv_trigo_sin(needle_angle) * r) / LV_TRIGO_SIN_MAX + y_ofs; in lv_gauge_set_value() 234 a.y1 = LV_MATH_MIN(p_mid.y, p_end.y) - needle_w; in lv_gauge_set_value() 236 a.y2 = LV_MATH_MAX(p_mid.y, p_end.y) + needle_w; in lv_gauge_set_value() 240 p_end.y = (_lv_trigo_sin(needle_angle) * r) / LV_TRIGO_SIN_MAX + y_ofs; in lv_gauge_set_value() 244 a.y1 = LV_MATH_MIN(p_mid.y, p_end.y) - needle_w; in lv_gauge_set_value() 246 a.y2 = LV_MATH_MAX(p_mid.y, p_end.y) + needle_w; in lv_gauge_set_value() 289 ext->needle_img_pivot.y = pivot_y; in lv_gauge_set_needle_img() 396 return ext->needle_img_pivot.y; in lv_gauge_get_needle_img_pivot_y() [all …]
|
D | lv_canvas.h | 81 void lv_canvas_set_px(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_color_t c); 106 lv_color_t lv_canvas_get_px(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y); 129 void lv_canvas_copy_buf(lv_obj_t * canvas, const void * to_copy, lv_coord_t x, lv_coord_t y, lv_coo… 186 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, 199 void lv_canvas_draw_text(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_coord_t max_w, 211 void lv_canvas_draw_img(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, const void * src, 244 void lv_canvas_draw_arc(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_coord_t r, int32_t start_…
|
D | lv_label.c | 50 static void lv_label_set_offset_y(lv_obj_t * label, lv_coord_t y); 108 ext->offset.y = 0; in lv_label_create() 113 ext->hint.y = 0; in lv_label_create() 368 ext->offset.y = 0; in lv_label_set_long_mode() 578 pos->y = 0; in lv_label_get_letter_pos() 604 lv_coord_t y = 0; in lv_label_get_letter_pos() local 622 y += letter_height + line_space; in lv_label_get_letter_pos() 629 y += letter_height + line_space; in lv_label_get_letter_pos() 677 pos->y = y; in lv_label_get_letter_pos() 698 pos.y = pos_in->y - lv_obj_get_style_pad_top(label, LV_LABEL_PART_MAIN); in lv_label_get_letter_on() [all …]
|
D | lv_line.c | 131 ymax = LV_MATH_MAX(point_a[i].y, ymax); in lv_line_set_points() 255 p1.y = ext->point_array[i].y + y_ofs; in lv_line_design() 256 p2.y = ext->point_array[i + 1].y + y_ofs; in lv_line_design() 259 p1.y = h - ext->point_array[i].y + y_ofs; in lv_line_design() 260 p2.y = h - ext->point_array[i + 1].y + y_ofs; in lv_line_design()
|
D | lv_chart.c | 366 void lv_chart_init_points(lv_obj_t * chart, lv_chart_series_t * ser, lv_coord_t y) in lv_chart_init_points() argument 374 ser->points[i] = y; in lv_chart_init_points() 403 void lv_chart_set_next(lv_obj_t * chart, lv_chart_series_t * ser, lv_coord_t y) in lv_chart_set_next() argument 411 … y; /*This was the place of the former left most value, after shifting it is the rightmost*/ in lv_chart_set_next() 416 ser->points[ser->start_point] = y; in lv_chart_set_next() 877 p1.y = (int32_t)((int32_t)(h - line_dsc.width) * div_i) / (ext->hdiv_cnt + 1); in draw_series_bg() 878 p1.y += y_ofs; in draw_series_bg() 879 p2.y = p1.y; in draw_series_bg() 895 p1.y = 0 + y_ofs; in draw_series_bg() 896 p2.y = h + y_ofs - 1; in draw_series_bg() [all …]
|
D | lv_arc.c | 652 lv_draw_arc(center.x, center.y, arc_r, ext->bg_angle_start + ext->rotation_angle, in lv_arc_design() 669 lv_draw_arc(center.x, center.y, indic_r, ext->arc_angle_start + ext->rotation_angle, in lv_arc_design() 738 p.y -= center.y; in lv_arc_signal() 745 if(p.x * p.x + p.y * p.y > r * r) { in lv_arc_signal() 761 angle = 360 - _lv_atan2(p.x, p.y) + 90; /*Some transformation is required*/ in lv_arc_signal() 895 lv_coord_t y = arc->coords.y1 + rout + top; in inv_arc_area() local 921 inv_area.y1 = y + ((_lv_trigo_sin(start_angle) * rin) >> LV_TRIGO_SHIFT) - extra_area; in inv_arc_area() 924 inv_area.y2 = y + ((_lv_trigo_sin(end_angle) * rout) >> LV_TRIGO_SHIFT) + extra_area; in inv_arc_area() 930 inv_area.y2 = y + ((_lv_trigo_sin(start_angle) * rout) >> LV_TRIGO_SHIFT) + extra_area; in inv_arc_area() 933 inv_area.y1 = y + ((_lv_trigo_sin(end_angle) * rin) >> LV_TRIGO_SHIFT) - extra_area; in inv_arc_area() [all …]
|
D | lv_img.c | 89 ext->offset.y = 0; in lv_img_create() 91 ext->pivot.y = 0; in lv_img_create() 118 ext->offset.y = copy_ext->offset.y; in lv_img_create() 120 ext->pivot.y = copy_ext->pivot.y; in lv_img_create() 217 header.h = size.y; in lv_img_set_src() 225 ext->pivot.y = header.h / 2; in lv_img_set_src() 276 void lv_img_set_offset_y(lv_obj_t * img, lv_coord_t y) in lv_img_set_offset_y() argument 282 y = y % ext->h; in lv_img_set_offset_y() 284 ext->offset.y = y; in lv_img_set_offset_y() 298 if(ext->pivot.x == pivot_x && ext->pivot.y == pivot_y) return; in lv_img_set_pivot() [all …]
|
/lvgl-2.7.6/src/lv_draw/ |
D | lv_draw_triangle.c | 66 poly_coords.y1 = LV_MATH_MIN(poly_coords.y1, points[i].y); in lv_draw_polygon() 68 poly_coords.y2 = LV_MATH_MAX(poly_coords.y2, points[i].y); in lv_draw_polygon() 78 lv_coord_t y_min = points[0].y; in lv_draw_polygon() 82 if(points[i].y < y_min) { in lv_draw_polygon() 83 y_min = points[i].y; in lv_draw_polygon() 106 …i_next_left].x > points[i_next_right].x && points[i_next_left].y < points[i_next_right].y) inv = t… in lv_draw_polygon() 124 if(points[i_next_left].y >= points[i_prev_left].y) { in lv_draw_polygon() 125 if(points[i_next_left].y != points[i_prev_left].y && in lv_draw_polygon() 127 lv_draw_mask_line_points_init(mp_next, points[i_prev_left].x, points[i_prev_left].y, in lv_draw_polygon() 128 points[i_next_left].x, points[i_next_left].y, in lv_draw_polygon() [all …]
|
D | lv_draw_line.c | 70 if(point1->x == point2->x && point1->y == point2->y) return; in lv_draw_line() 75 clip_line.y1 = LV_MATH_MIN(point1->y, point2->y) - dsc->width / 2; in lv_draw_line() 76 clip_line.y2 = LV_MATH_MAX(point1->y, point2->y) + dsc->width / 2; in lv_draw_line() 82 if(point1->y == point2->y) draw_line_hor(point1, point2, &clip_line, dsc); in lv_draw_line() 100 cir_area.y1 = point1->y - r; in lv_draw_line() 102 cir_area.y2 = point1->y + r - r_corr ; in lv_draw_line() 108 cir_area.y1 = point2->y - r; in lv_draw_line() 110 cir_area.y2 = point2->y + r - r_corr ; in lv_draw_line() 144 draw_area.y1 = point1->y - w_half1; in draw_line_hor() 145 draw_area.y2 = point1->y + w_half0; in draw_line_hor() [all …]
|
D | lv_draw_blend.c | 265 int32_t y; in fill_set_px() local 268 for(y = draw_area->y1; y <= draw_area->y2; y++) { in fill_set_px() 270 disp->driver.set_px_cb(&disp->driver, (void *)disp_buf, disp_w, x, y, color, opa); in fill_set_px() 283 for(y = draw_area->y1; y <= draw_area->y2; y++) { in fill_set_px() 286 disp->driver.set_px_cb(&disp->driver, (void *)disp_buf, disp_w, x, y, color, in fill_set_px() 328 int32_t y; in fill_normal() local 347 for(y = 0; y < draw_area_h; y++) { in fill_normal() 358 for(y = draw_area->y1; y <= draw_area->y2; y++) { in fill_normal() 372 for(y = 0; y <= draw_area_h - line_h; y += line_h) { in fill_normal() 377 if(y != draw_area_h) { in fill_normal() [all …]
|
D | lv_img_buf.c | 52 lv_color_t lv_img_buf_get_px_color(lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y, lv_color_t color) in lv_img_buf_get_px_color() argument 60 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_get_px_color() 74 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_get_px_color() 85 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_get_px_color() 96 uint32_t px = ((dsc->header.w + 1) >> 1) * y + x; in lv_img_buf_get_px_color() 101 uint32_t px = dsc->header.w * y + x; in lv_img_buf_get_px_color() 119 lv_opa_t lv_img_buf_get_px_alpha(lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y) in lv_img_buf_get_px_alpha() argument 124 uint32_t px = dsc->header.w * y * LV_IMG_PX_SIZE_ALPHA_BYTE + x * LV_IMG_PX_SIZE_ALPHA_BYTE; in lv_img_buf_get_px_alpha() 134 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_get_px_alpha() 147 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_get_px_alpha() [all …]
|
D | lv_draw_rect.c | 270 int32_t y = h + vdb->area.y1; in draw_bg() local 275 if(y > coords_bg.y1 + rout + 1 && in draw_bg() 276 y < coords_bg.y2 - rout - 1) { in draw_bg() 296 grad_color = grad_get(dsc, lv_area_get_height(&coords_bg), y - coords_bg.y1); in draw_bg() 302 (y < coords_bg.y1 + rout + 1 || in draw_bg() 303 y > coords_bg.y2 - rout - 1)) { in draw_bg() 638 int32_t y; in draw_shadow() local 662 for(y = 0; y < h; y++) { in draw_shadow() 699 for(y = 0; y < h; y++) { in draw_shadow() 735 for(y = 0; y < h; y++) { in draw_shadow() [all …]
|
D | lv_img_decoder.c | 40 …s_t lv_img_decoder_built_in_line_true_color(lv_img_decoder_dsc_t * dsc, lv_coord_t x, lv_coord_t y, 42 …lv_res_t lv_img_decoder_built_in_line_alpha(lv_img_decoder_dsc_t * dsc, lv_coord_t x, lv_coord_t y, 44 …_res_t lv_img_decoder_built_in_line_indexed(lv_img_decoder_dsc_t * dsc, lv_coord_t x, lv_coord_t y, 168 lv_res_t lv_img_decoder_read_line(lv_img_decoder_dsc_t * dsc, lv_coord_t x, lv_coord_t y, lv_coord_… in lv_img_decoder_read_line() argument 171 …if(dsc->decoder->read_line_cb) res = dsc->decoder->read_line_cb(dsc->decoder, dsc, x, y, len, buf); in lv_img_decoder_read_line() 483 lv_coord_t y, lv_coord_t len, uint8_t * buf) in lv_img_decoder_built_in_read_line() argument 494 res = lv_img_decoder_built_in_line_true_color(dsc, x, y, len, buf); in lv_img_decoder_built_in_read_line() 500 res = lv_img_decoder_built_in_line_alpha(dsc, x, y, len, buf); in lv_img_decoder_built_in_read_line() 504 res = lv_img_decoder_built_in_line_indexed(dsc, x, y, len, buf); in lv_img_decoder_built_in_read_line() 545 …s_t lv_img_decoder_built_in_line_true_color(lv_img_decoder_dsc_t * dsc, lv_coord_t x, lv_coord_t y, in lv_img_decoder_built_in_line_true_color() argument [all …]
|
D | lv_draw_mask.c | 206 param->cfg.p1.y = p1y; in lv_draw_mask_line_points_init() 208 param->cfg.p2.y = p2y; in lv_draw_mask_line_points_init() 212 param->origo.y = p1y; in lv_draw_mask_line_points_init() 333 param->cfg.vertex_p.y = vertex_y; in lv_draw_mask_angle_init() 436 abs_y -= p->origo.y; in lv_draw_mask_line() 755 int32_t rel_y = abs_y - p->cfg.vertex_p.y; in lv_draw_mask_angle() 763 if(abs_y < p->cfg.vertex_p.y) { in lv_draw_mask_angle() 807 if(abs_y > p->cfg.vertex_p.y) { in lv_draw_mask_angle() 853 if(abs_y < p->cfg.vertex_p.y) res1 = LV_DRAW_MASK_RES_FULL_COVER; in lv_draw_mask_angle() 857 if(abs_y < p->cfg.vertex_p.y) res1 = LV_DRAW_MASK_RES_UNKNOWN; in lv_draw_mask_angle() [all …]
|
D | lv_draw_label.c | 151 pos.y = coords->y1; in lv_draw_label() 157 pos.y += y_ofs; in lv_draw_label() 174 pos.y += hint->y; in lv_draw_label() 180 while(pos.y + line_height_font < mask->y1) { in lv_draw_label() 184 pos.y += line_height; in lv_draw_label() 187 if(hint && pos.y >= -LV_LABEL_HINT_UPDATE_TH && hint->line_start < 0) { in lv_draw_label() 189 hint->y = pos.y - coords->y1; in lv_draw_label() 319 sel_coords.y1 = pos.y; in lv_draw_label() 321 sel_coords.y2 = pos.y + line_height - 1; in lv_draw_label() 337 p1.y = pos.y + (dsc->font->line_height / 2) + line_dsc.width / 2; in lv_draw_label() [all …]
|
D | lv_draw_img.c | 293 int32_t y = mask_com.y1 - coords->y1; in lv_img_draw_core() local 301 read_res = lv_img_decoder_read_line(&cdsc->dec_dsc, x, y, width, buf); in lv_img_draw_core() 313 y++; in lv_img_draw_core() 407 int32_t y; in lv_draw_map() local 408 for(y = 0; y < draw_area_h; y++) { in lv_draw_map() 471 trans_dsc.cfg.pivot_y = draw_dsc->pivot.y; in lv_draw_map() 495 int32_t y; in lv_draw_map() local 499 for(y = 0; y < draw_area_h; y++) { in lv_draw_map() 514 ret = _lv_img_buf_transform(&trans_dsc, rot_x + x, rot_y + y); in lv_draw_map() 573 …ub = lv_draw_mask_apply(mask_buf + px_i_start, draw_area.x1 + vdb->area.x1, y + draw_area.y1 + vdb… in lv_draw_map()
|
/lvgl-2.7.6/src/lv_misc/ |
D | lv_area.c | 82 void _lv_area_set_pos(lv_area_t * area_p, lv_coord_t x, lv_coord_t y) in _lv_area_set_pos() argument 87 area_p->y1 = y; in _lv_area_set_pos() 154 if((p_p->x >= a_p->x1 && p_p->x <= a_p->x2) && ((p_p->y >= a_p->y1 && p_p->y <= a_p->y2))) { in _lv_area_is_point_on() 248 p.y = ain_p->y1; in _lv_area_is_in() 252 p.y = ain_p->y1; in _lv_area_is_in() 256 p.y = ain_p->y2; in _lv_area_is_in() 260 p.y = ain_p->y2; in _lv_area_is_in() 279 res->y = lv_area_get_height(base) / 2 - lv_area_get_height(to_align) / 2; in _lv_area_align() 284 res->y = 0; in _lv_area_align() 288 res->y = 0; in _lv_area_align() [all …]
|
D | lv_math.c | 137 uint16_t _lv_atan2(int x, int y) in _lv_atan2() argument 165 if(y < 0) { in _lv_atan2() 167 y = (0 - y); // is now + in _lv_atan2() 169 uy = y; // copy to unsigned var before multiply in _lv_atan2()
|
/lvgl-2.7.6/tests/ |
D | lv_test_assert.c | 210 int x, y, i_buf = 0; in lv_test_assert_img_eq() local 211 for (y=0; y<p.height; y++) { in lv_test_assert_img_eq() 212 png_byte* row = p.row_pointers[y]; in lv_test_assert_img_eq() 236 …IL: %s. (Expected: %s, diff. at (%d;%d), %08x instead of %08x)", s, fn_ref, x, y, act_px, ref_px); in lv_test_assert_img_eq() 291 int y; in read_png_file() local 292 for (y=0; y<p->height; y++) in read_png_file() 293 p->row_pointers[y] = (png_byte*) malloc(png_get_rowbytes(p->png_ptr,p->info_ptr)); in read_png_file() 354 int y; in png_release() local 355 for (y=0; y<p->height; y++) in png_release() 356 free(p->row_pointers[y]); in png_release()
|
/lvgl-2.7.6/src/lv_core/ |
D | lv_indev.c | 215 …t_pos(indev->cursor, indev->proc.types.pointer.act_point.x, indev->proc.types.pointer.act_point.y); in lv_indev_set_cursor() 255 point->y = 0; in lv_indev_get_point() 260 point->y = -1; in lv_indev_get_point() 264 point->y = indev->proc.types.pointer.act_point.y; in lv_indev_get_point() 314 point->y = 0; in lv_indev_get_vect() 320 point->y = 0; in lv_indev_get_vect() 324 point->y = indev->proc.types.pointer.vect.y; in lv_indev_get_vect() 342 indev->proc.types.pointer.drag_throw_vect.y = 0; in lv_indev_finish_drag() 406 …es.pointer.last_point.x != data->point.x || i->proc.types.pointer.last_point.y != data->point.y)) { in indev_pointer_proc() 407 lv_obj_set_pos(i->cursor, data->point.x, data->point.y); in indev_pointer_proc() [all …]
|
/lvgl-2.7.6/examples/porting/ |
D | lv_port_disp_template.c | 146 int32_t y; 147 for(y = area->y1; y <= area->y2; y++) { 181 int32_t x, y; 184 for(y = fill_area->y1; y <= fill_area->y2; y++) {
|
D | lv_port_indev_template.c | 29 static void touchpad_get_xy(lv_coord_t * x, lv_coord_t * y); 34 static void mouse_get_xy(lv_coord_t * x, lv_coord_t * y); 205 data->point.y = last_y; 220 static void touchpad_get_xy(lv_coord_t * x, lv_coord_t * y) 225 (*y) = 0; 243 mouse_get_xy(&data->point.x, &data->point.y); 265 static void mouse_get_xy(lv_coord_t * x, lv_coord_t * y) 270 (*y) = 0; 289 mouse_get_xy(&data->point.x, &data->point.y);
|
/lvgl-2.7.6/ |
D | lvgl.h | 124 #define LV_VERSION_CHECK(x,y,z) (x == LVGL_VERSION_MAJOR && (y < LVGL_VERSION_MINOR || (y == LVGL_V… argument
|