/lvgl-2.7.6/src/lv_widgets/ |
D | lv_canvas.h | 72 void lv_canvas_set_buffer(lv_obj_t * canvas, void * buf, lv_coord_t w, lv_coord_t h, lv_img_cf_t cf… 130 lv_coord_t h); 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, 250 #define LV_CANVAS_BUF_SIZE_TRUE_COLOR(w, h) LV_IMG_BUF_SIZE_TRUE_COLOR(w, h) argument 251 …define LV_CANVAS_BUF_SIZE_TRUE_COLOR_CHROMA_KEYED(w, h) LV_IMG_BUF_SIZE_TRUE_COLOR_CHROMA_KEYED(w,… argument 252 #define LV_CANVAS_BUF_SIZE_TRUE_COLOR_ALPHA(w, h) LV_IMG_BUF_SIZE_TRUE_COLOR_ALPHA(w, h) argument 255 #define LV_CANVAS_BUF_SIZE_ALPHA_1BIT(w, h) LV_IMG_BUF_SIZE_ALPHA_1BIT(w, h) argument 256 #define LV_CANVAS_BUF_SIZE_ALPHA_2BIT(w, h) LV_IMG_BUF_SIZE_ALPHA_2BIT(w, h) argument 257 #define LV_CANVAS_BUF_SIZE_ALPHA_4BIT(w, h) LV_IMG_BUF_SIZE_ALPHA_4BIT(w, h) argument 258 #define LV_CANVAS_BUF_SIZE_ALPHA_8BIT(w, h) LV_IMG_BUF_SIZE_ALPHA_8BIT(w, h) argument [all …]
|
D | lv_canvas.c | 96 ext->dsc.header.h = 0; in lv_canvas_create() 139 void lv_canvas_set_buffer(lv_obj_t * canvas, void * buf, lv_coord_t w, lv_coord_t h, lv_img_cf_t cf) in lv_canvas_set_buffer() argument 148 ext->dsc.header.h = h; in lv_canvas_set_buffer() 240 …uf(lv_obj_t * canvas, const void * to_copy, lv_coord_t x, lv_coord_t y, lv_coord_t w, lv_coord_t h) in lv_canvas_copy_buf() argument 246 if(x + w >= (lv_coord_t)ext->dsc.header.w || y + h >= (lv_coord_t)ext->dsc.header.h) { in lv_canvas_copy_buf() 255 for(i = 0; i < h; i++) { in lv_canvas_copy_buf() 289 int32_t dest_height = ext_dst->dsc.header.h; in lv_canvas_transform() 300 dsc.cfg.src_h = img->header.h; in lv_canvas_transform() 401 if(a.y2 > ext->dsc.header.h - 1) a.y2 = ext->dsc.header.h - 1; in lv_canvas_blur_hor() 407 a.y2 = ext->dsc.header.h - 1; in lv_canvas_blur_hor() [all …]
|
D | lv_cpicker.c | 195 hsv.h = hue; in lv_cpicker_set_hue() 235 if(hsv.h > 360) hsv.h %= 360; in lv_cpicker_set_hsv() 241 if(ext->hsv.h == hsv.h && ext->hsv.s == hsv.s && ext->hsv.v == hsv.v) return false; in lv_cpicker_set_hsv() 356 return ext->hsv.h; in lv_cpicker_get_hue() 412 return lv_color_hsv_to_rgb(ext->hsv.h, ext->hsv.s, ext->hsv.v); in lv_cpicker_get_color() 477 lv_coord_t h = lv_obj_get_height(cpicker); in draw_disc_grad() local 479 lv_coord_t cy = cpicker->coords.y1 + h / 2; in draw_disc_grad() 556 lv_coord_t h = lv_obj_get_height(cpicker); in draw_rect_grad() local 558 if(r > h / 2) r = h / 2; in draw_rect_grad() 643 lv_coord_t h = lv_obj_get_height(cpicker); in get_knob_area() local [all …]
|
D | lv_img.c | 83 ext->h = lv_obj_get_height(img); in lv_img_create() 217 header.h = size.y; in lv_img_set_src() 222 ext->h = header.h; in lv_img_set_src() 225 ext->pivot.y = header.h / 2; in lv_img_set_src() 228 lv_obj_set_size(img, ext->w, ext->h); in lv_img_set_src() 282 y = y % ext->h; in lv_img_set_offset_y() 307 lv_coord_t h = lv_obj_get_height(img); in lv_img_set_pivot() local 309 _lv_img_buf_get_transformed_area(&a, w, h, transf_angle, transf_zoom, &ext->pivot); in lv_img_set_pivot() 320 _lv_img_buf_get_transformed_area(&a, w, h, transf_angle, transf_zoom, &ext->pivot); in lv_img_set_pivot() 347 lv_coord_t h = lv_obj_get_height(img); in lv_img_set_angle() local [all …]
|
D | lv_imgbtn.c | 337 lv_coord_t h = lv_obj_get_style_transform_height(imgbtn, LV_OBJ_PART_MAIN); in lv_imgbtn_design() local 342 coords.y1 -= h; in lv_imgbtn_design() 343 coords.y2 += h; in lv_imgbtn_design() 360 coords_part.y2 = coords.y1 + header.h - 1; in lv_imgbtn_design() 371 coords_part.y2 = coords.y1 + header.h - 1; in lv_imgbtn_design() 393 coords_part.y2 = coords_part.y1 + header.h - 1; in lv_imgbtn_design() 493 header.h = lv_font_get_line_height(font); in refr_img() 504 if(ext->tiled) lv_obj_set_height(imgbtn, header.h); /*Keep the sure defined width*/ in refr_img() 505 else lv_obj_set_size(imgbtn, header.w, header.h); in refr_img()
|
D | lv_tileview.c | 105 lv_coord_t h; in lv_tileview_create() local 108 h = lv_obj_get_height_fit(lv_obj_get_parent(new_tileview)); in lv_tileview_create() 112 h = lv_disp_get_ver_res(NULL); in lv_tileview_create() 115 lv_obj_set_size(new_tileview, w, h); in lv_tileview_create() 359 lv_coord_t h = lv_obj_get_height(tileview); in lv_tileview_scrl_signal() local 363 … if(!ext->drag_top_en && y > -(ext->act_id.y * h) && indev->proc.types.pointer.vect.y > 0) { in lv_tileview_scrl_signal() 365 lv_obj_set_y(scrl, -ext->act_id.y * h + top); in lv_tileview_scrl_signal() 367 … if(!ext->drag_bottom_en && indev->proc.types.pointer.vect.y < 0 && y < -(ext->act_id.y * h)) { in lv_tileview_scrl_signal() 369 lv_obj_set_y(scrl, -ext->act_id.y * h + top); in lv_tileview_scrl_signal()
|
D | lv_tabview.c | 116 lv_coord_t h; in lv_tabview_create() local 119 h = lv_obj_get_height_fit(lv_obj_get_parent(tabview)); in lv_tabview_create() 123 h = lv_disp_get_ver_res(NULL); in lv_tabview_create() 126 lv_obj_set_size(tabview, w, h); in lv_tabview_create() 215 lv_obj_t * h = lv_page_create(ext->content, NULL); in lv_tabview_add_tab() local 216 lv_obj_set_size(h, lv_obj_get_width(tabview), lv_obj_get_height(ext->content)); in lv_tabview_add_tab() 217 lv_page_set_scrollbar_mode(h, LV_SCROLLBAR_MODE_AUTO); in lv_tabview_add_tab() 218 lv_page_set_scroll_propagation(h, true); in lv_tabview_add_tab() 219 lv_page_set_scrollable_fit4(h, LV_FIT_NONE, LV_FIT_MAX, LV_FIT_NONE, LV_FIT_MAX); in lv_tabview_add_tab() 220 lv_theme_apply(h, LV_THEME_TABVIEW_PAGE); in lv_tabview_add_tab() [all …]
|
D | lv_chart.c | 855 lv_coord_t h = lv_area_get_height(series_area); in draw_series_bg() local 877 p1.y = (int32_t)((int32_t)(h - line_dsc.width) * div_i) / (ext->hdiv_cnt + 1); in draw_series_bg() 896 p2.y = h + y_ofs - 1; in draw_series_bg() 921 lv_coord_t h = lv_area_get_height(series_area); in draw_series_line() local 976 int32_t y_tmp = (int32_t)((int32_t)ser->points[p_prev] - ext->ymin[ser->y_axis]) * h; in draw_series_line() 978 p2.y = h - y_tmp + y_ofs; in draw_series_line() 988 y_tmp = (int32_t)((int32_t)ser->points[p_act] - ext->ymin[ser->y_axis]) * h; in draw_series_line() 990 p2.y = h - y_tmp + y_ofs; in draw_series_line() 1073 lv_coord_t h = lv_area_get_height(series_area); in draw_series_column() local 1112 y_tmp = (int32_t)((int32_t)ser->points[p_act] - ext->ymin[ser->y_axis]) * h; in draw_series_column() [all …]
|
D | lv_win.c | 103 lv_coord_t h; in lv_win_create() local 106 h = lv_obj_get_height_fit(lv_obj_get_parent(new_win)); in lv_win_create() 110 h = lv_disp_get_ver_res(NULL); in lv_win_create() 113 lv_obj_set_size(new_win, w, h); in lv_win_create() 303 void lv_win_set_content_size(lv_obj_t * win, lv_coord_t w, lv_coord_t h) in lv_win_set_content_size() argument 308 h += lv_obj_get_height(ext->header); in lv_win_set_content_size() 310 lv_obj_set_size(win, w, h); in lv_win_set_content_size()
|
D | lv_line.c | 241 lv_coord_t h = lv_obj_get_height(line); in lv_line_design() local 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_page.h | 217 static inline void lv_page_set_scrl_height(lv_obj_t * page, lv_coord_t h) in lv_page_set_scrl_height() argument 219 lv_obj_set_height(lv_page_get_scrollable(page), h); in lv_page_set_scrl_height()
|
D | lv_roller.c | 797 lv_coord_t h = lv_obj_get_height(roller); in draw_bg() local 804 half_mask.y2 = roller->coords.y1 + h / 2; in draw_bg() 816 half_mask.y1 = roller->coords.y1 + h / 2; in draw_bg() 848 lv_coord_t h = lv_obj_get_height(roller); in refr_position() local 861 lv_coord_t new_y = -line_y1 + (h - font_h) / 2; in refr_position() 1020 lv_coord_t h = lv_obj_get_height(roller); in inf_normalize() local 1025 lv_coord_t new_y = -line_y1 + (h - font_h) / 2; in inf_normalize()
|
/lvgl-2.7.6/src/lv_draw/ |
D | lv_img_buf.h | 33 #define LV_IMG_BUF_SIZE_TRUE_COLOR(w, h) ((LV_COLOR_SIZE / 8) * w * h) argument 34 #define LV_IMG_BUF_SIZE_TRUE_COLOR_CHROMA_KEYED(w, h) ((LV_COLOR_SIZE / 8) * w * h) argument 35 #define LV_IMG_BUF_SIZE_TRUE_COLOR_ALPHA(w, h) (LV_IMG_PX_SIZE_ALPHA_BYTE * w * h) argument 38 #define LV_IMG_BUF_SIZE_ALPHA_1BIT(w, h) ((((w / 8) + 1) * h)) argument 39 #define LV_IMG_BUF_SIZE_ALPHA_2BIT(w, h) ((((w / 4) + 1) * h)) argument 40 #define LV_IMG_BUF_SIZE_ALPHA_4BIT(w, h) ((((w / 2) + 1) * h)) argument 41 #define LV_IMG_BUF_SIZE_ALPHA_8BIT(w, h) ((w * h)) argument 44 #define LV_IMG_BUF_SIZE_INDEXED_1BIT(w, h) (LV_IMG_BUF_SIZE_ALPHA_1BIT(w, h) + 4 * 2) argument 45 #define LV_IMG_BUF_SIZE_INDEXED_2BIT(w, h) (LV_IMG_BUF_SIZE_ALPHA_2BIT(w, h) + 4 * 4) argument 46 #define LV_IMG_BUF_SIZE_INDEXED_4BIT(w, h) (LV_IMG_BUF_SIZE_ALPHA_4BIT(w, h) + 4 * 16) argument [all …]
|
D | lv_draw_line.c | 182 int32_t h; in draw_line_hor() local 183 for(h = draw_area.y1; h <= draw_area.y2; h++) { in draw_line_hor() 185 …ask_res = lv_draw_mask_apply(mask_buf, vdb->area.x1 + draw_area.x1, vdb->area.y1 + h, draw_area_w); in draw_line_hor() 286 int32_t h; in draw_line_ver() local 287 for(h = draw_area.y1; h <= draw_area.y2; h++) { in draw_line_ver() 289 …ask_res = lv_draw_mask_apply(mask_buf, vdb->area.x1 + draw_area.x1, vdb->area.y1 + h, draw_area_w); in draw_line_ver() 426 int32_t h; in draw_line_skew() local 442 for(h = draw_area.y1 + disp_area->y1; h <= draw_area.y2 + disp_area->y1; h++) { in draw_line_skew() 444 lv_draw_mask_res_t mask_res = lv_draw_mask_apply(&mask_buf[mask_p], x, h, draw_area_w); in draw_line_skew()
|
D | lv_img_buf.c | 331 lv_img_dsc_t * lv_img_buf_alloc(lv_coord_t w, lv_coord_t h, lv_img_cf_t cf) in lv_img_buf_alloc() argument 341 dsc->data_size = lv_img_buf_get_img_size(w, h, cf); in lv_img_buf_alloc() 358 dsc->header.h = h; in lv_img_buf_alloc() 384 uint32_t lv_img_buf_get_img_size(lv_coord_t w, lv_coord_t h, lv_img_cf_t cf) in lv_img_buf_get_img_size() argument 388 return LV_IMG_BUF_SIZE_TRUE_COLOR(w, h); in lv_img_buf_get_img_size() 390 return LV_IMG_BUF_SIZE_TRUE_COLOR_ALPHA(w, h); in lv_img_buf_get_img_size() 392 return LV_IMG_BUF_SIZE_TRUE_COLOR_CHROMA_KEYED(w, h); in lv_img_buf_get_img_size() 394 return LV_IMG_BUF_SIZE_ALPHA_1BIT(w, h); in lv_img_buf_get_img_size() 396 return LV_IMG_BUF_SIZE_ALPHA_2BIT(w, h); in lv_img_buf_get_img_size() 398 return LV_IMG_BUF_SIZE_ALPHA_4BIT(w, h); in lv_img_buf_get_img_size() [all …]
|
D | lv_draw_rect.c | 243 int32_t h; in draw_bg() local 269 for(h = draw_area.y1; h <= draw_area.y2; h++) { in draw_bg() 270 int32_t y = h + vdb->area.y1; in draw_bg() 280 …ask_res = lv_draw_mask_apply(mask_buf, vdb->area.x1 + draw_area.x1, vdb->area.y1 + h, draw_area_w); in draw_bg() 286 …ask_res = lv_draw_mask_apply(mask_buf, vdb->area.x1 + draw_area.x1, vdb->area.y1 + h, draw_area_w); in draw_bg() 460 int32_t h; in draw_border() local 490 for(h = draw_area.y1; h <= draw_area.y2; h++) { in draw_border() 495 …ask_res = lv_draw_mask_apply(mask_buf, vdb->area.x1 + draw_area.x1, vdb->area.y1 + h, draw_area_w); in draw_border() 652 lv_coord_t h = lv_area_get_height(&ca); in draw_shadow() local 662 for(y = 0; y < h; y++) { in draw_shadow() [all …]
|
/lvgl-2.7.6/src/lv_misc/ |
D | lv_color.c | 149 lv_color_t lv_color_hsv_to_rgb(uint16_t h, uint8_t s, uint8_t v) in lv_color_hsv_to_rgb() argument 151 h = (uint32_t)((uint32_t)h * 255) / 360; in lv_color_hsv_to_rgb() 163 region = h / 43; in lv_color_hsv_to_rgb() 164 remainder = (h - (region * 43)) * 6; in lv_color_hsv_to_rgb() 230 hsv.h = 0; in lv_color_rgb_to_hsv() 238 hsv.h = 0; in lv_color_rgb_to_hsv() 243 int32_t h; in lv_color_rgb_to_hsv() local 245 h = (((g - b) << 10) / delta) + (g < b ? (6 << 10) : 0); // between yellow & magenta in lv_color_rgb_to_hsv() 247 h = (((b - r) << 10) / delta) + (2 << 10); // between cyan & yellow in lv_color_rgb_to_hsv() 249 h = (((r - g) << 10) / delta) + (4 << 10); // between magenta & cyan in lv_color_rgb_to_hsv() [all …]
|
D | lv_area.c | 71 void lv_area_set_height(lv_area_t * area_p, lv_coord_t h) in lv_area_set_height() argument 73 area_p->y2 = area_p->y1 + h - 1; in lv_area_set_height() 85 lv_coord_t h = lv_area_get_height(area_p); in _lv_area_set_pos() local 89 lv_area_set_height(area_p, h); in _lv_area_set_pos() 165 lv_coord_t h = lv_area_get_height(a_p) / 2; in _lv_area_is_point_on() local 166 lv_coord_t max_radius = LV_MATH_MIN(w, h); in _lv_area_is_point_on()
|
/lvgl-2.7.6/examples/ |
D | LVGL_Arduino.ino | 1 #include <lvgl.h> 2 #include <TFT_eSPI.h> 22 uint32_t h = (area->y2 - area->y1 + 1); 25 tft.setAddrWindow(area->x1, area->y1, w, h); 26 tft.pushColors(&color_p->full, w * h, true);
|
/lvgl-2.7.6/ |
D | lv_conf_template.h | 95 # define LV_MEM_CUSTOM_INCLUDE <stdlib.h> /*Header for the dynamic memory function*/ 457 #define LV_THEME_DEFAULT_INCLUDE <stdint.h> /*Include a header for the init. functi… 517 # define LV_SPRINTF_INCLUDE <stdio.h>
|
D | .editorconfig | 1 [*.{c,h}]
|
D | library.properties | 10 includes=lvgl.h
|
/lvgl-2.7.6/docs/ |
D | CODING_STYLE.md | 4 …/lv_misc/lv_templ.c) and [lv_misc/lv_templ.h](https://github.com/lvgl/lvgl/blob/master/src/lv_misc… 29 * Use `<stdint.h>` (*uint8_t*, *int32_t* etc)
|
/lvgl-2.7.6/src/lv_core/ |
D | lv_obj.h | 432 void lv_obj_set_size(lv_obj_t * obj, lv_coord_t w, lv_coord_t h); 446 void lv_obj_set_height(lv_obj_t * obj, lv_coord_t h); 460 void lv_obj_set_height_fit(lv_obj_t * obj, lv_coord_t h); 476 void lv_obj_set_height_margin(lv_obj_t * obj, lv_coord_t h);
|
D | lv_refr.c | 411 lv_coord_t h = lv_area_get_height(area_p); in lv_refr_area() local 417 if(max_row > h) max_row = h; in lv_refr_area() 518 lv_area_set(&a, 0, 0, header.w - 1, header.h - 1); in lv_refr_area_part()
|