/lvgl-3.5.0/scripts/ |
D | style_api_gen.py | 364 def obj_style_get(p): argument 365 if 'section' in p: return 367 cast = style_get_cast(p['style_type'], p['var_type']) 368 …print("static inline " + p['var_type'] + " lv_obj_get_style_" + p['name'].lower() +"(const struct … 370 print(" lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_" + p['name'] + ");") 371 print(" return " + cast + "v." + p['style_type'] + ";") 375 if 'filtered' in p and p['filtered']: 376 …print("static inline " + p['var_type'] + " lv_obj_get_style_" + p['name'].lower() +"_filtered(cons… 378 …tyle_apply_color_filter(obj, part, lv_obj_get_style_prop(obj, part, LV_STYLE_" + p['name'] + "));") 379 print(" return " + cast + "v." + p['style_type'] + ";") [all …]
|
/lvgl-3.5.0/tests/unity/ |
D | unity_support.c | 49 static int read_png_file(png_img_t * p, const char* file_name); 50 static void png_release(png_img_t * p); 69 png_img_t p; in lv_test_assert_img_eq() local 70 int res = read_png_file(&p, fn_ref_full); in lv_test_assert_img_eq() 86 for (y = 0; y < p.height; y++) { in lv_test_assert_img_eq() 87 png_byte* row = p.row_pointers[y]; in lv_test_assert_img_eq() 89 for (x = 0; x < p.width; x++) { in lv_test_assert_img_eq() 152 png_release(&p); in lv_test_assert_img_eq() 162 static int read_png_file(png_img_t * p, const char* file_name) in read_png_file() argument 180 p->png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); in read_png_file() [all …]
|
/lvgl-3.5.0/src/draw/sw/ |
D | lv_draw_sw_polygon.c | 55 lv_point_t * p = lv_mem_buf_get(point_cnt * sizeof(lv_point_t)); in lv_draw_sw_polygon() local 56 if(p == NULL) return; in lv_draw_sw_polygon() 59 p[0] = points[0]; in lv_draw_sw_polygon() 62 p[pcnt] = points[i]; in lv_draw_sw_polygon() 68 p[pcnt] = points[point_cnt - 1]; in lv_draw_sw_polygon() 74 lv_mem_buf_release(p); in lv_draw_sw_polygon() 81 poly_coords.x1 = LV_MIN(poly_coords.x1, p[i].x); in lv_draw_sw_polygon() 82 poly_coords.y1 = LV_MIN(poly_coords.y1, p[i].y); in lv_draw_sw_polygon() 83 poly_coords.x2 = LV_MAX(poly_coords.x2, p[i].x); in lv_draw_sw_polygon() 84 poly_coords.y2 = LV_MAX(poly_coords.y2, p[i].y); in lv_draw_sw_polygon() [all …]
|
/lvgl-3.5.0/src/draw/ |
D | lv_draw_mask.c | 50 lv_draw_mask_line_param_t * p); 53 lv_draw_mask_line_param_t * p); 173 _lv_draw_mask_common_dsc_t * p = NULL; in lv_draw_mask_remove_id() local 176 p = LV_GC_ROOT(_lv_draw_mask_list[id]).param; in lv_draw_mask_remove_id() 181 return p; in lv_draw_mask_remove_id() 192 _lv_draw_mask_common_dsc_t * p = NULL; in lv_draw_mask_remove_custom() local 196 p = LV_GC_ROOT(_lv_draw_mask_list[i]).param; in lv_draw_mask_remove_custom() 200 return p; in lv_draw_mask_remove_custom() 210 void lv_draw_mask_free_param(void * p) in lv_draw_mask_free_param() argument 212 _lv_draw_mask_common_dsc_t * pdsc = p; in lv_draw_mask_free_param() [all …]
|
D | lv_img_buf.c | 435 lv_point_t p[4] = { in _lv_img_buf_get_transformed_area() local 441 lv_point_transform(&p[0], angle, zoom, pivot); in _lv_img_buf_get_transformed_area() 442 lv_point_transform(&p[1], angle, zoom, pivot); in _lv_img_buf_get_transformed_area() 443 lv_point_transform(&p[2], angle, zoom, pivot); in _lv_img_buf_get_transformed_area() 444 lv_point_transform(&p[3], angle, zoom, pivot); in _lv_img_buf_get_transformed_area() 445 res->x1 = LV_MIN4(p[0].x, p[1].x, p[2].x, p[3].x) - 2; in _lv_img_buf_get_transformed_area() 446 res->x2 = LV_MAX4(p[0].x, p[1].x, p[2].x, p[3].x) + 2; in _lv_img_buf_get_transformed_area() 447 res->y1 = LV_MIN4(p[0].y, p[1].y, p[2].y, p[3].y) - 2; in _lv_img_buf_get_transformed_area() 448 res->y2 = LV_MAX4(p[0].y, p[1].y, p[2].y, p[3].y) + 2; in _lv_img_buf_get_transformed_area()
|
/lvgl-3.5.0/src/misc/ |
D | lv_area.c | 26 static bool lv_point_within_circle(const lv_area_t * area, const lv_point_t * p); 263 lv_point_t p; in _lv_area_is_in() local 265 p.x = ain_p->x1; in _lv_area_is_in() 266 p.y = ain_p->y1; in _lv_area_is_in() 267 if(_lv_area_is_point_on(aholder_p, &p, radius) == false) return false; in _lv_area_is_in() 269 p.x = ain_p->x2; in _lv_area_is_in() 270 p.y = ain_p->y1; in _lv_area_is_in() 271 if(_lv_area_is_point_on(aholder_p, &p, radius) == false) return false; in _lv_area_is_in() 273 p.x = ain_p->x1; in _lv_area_is_in() 274 p.y = ain_p->y2; in _lv_area_is_in() [all …]
|
D | lv_log.c | 77 size_t p; in _lv_log_add() local 78 for(p = strlen(file); p > 0; p--) { in _lv_log_add() 79 if(file[p] == '/' || file[p] == '\\') { in _lv_log_add() 80 p++; /*Skip the slash*/ in _lv_log_add() 92 printf(" \t(in %s line #%d)\n", &file[p], line); in _lv_log_add() 100 … lvl_prefix[level], t / 1000, t % 1000, t - last_log_time, func, msg, &file[p], line); in _lv_log_add() 104 … lvl_prefix[level], t / 1000, t % 1000, t - last_log_time, func, (void *)&vaf, &file[p], line); in _lv_log_add()
|
D | lv_assert.h | 58 # define LV_ASSERT_NULL(p) LV_ASSERT_MSG(p != NULL, "NULL pointer"); argument 60 # define LV_ASSERT_NULL(p) 64 # define LV_ASSERT_MALLOC(p) LV_ASSERT_MSG(p != NULL, "Out of memory"); argument 66 # define LV_ASSERT_MALLOC(p)
|
D | lv_color.c | 159 uint8_t region, remainder, p, q, t; in lv_color_hsv_to_rgb() local 168 p = (v * (255 - s)) >> 8; in lv_color_hsv_to_rgb() 176 b = p; in lv_color_hsv_to_rgb() 181 b = p; in lv_color_hsv_to_rgb() 184 r = p; in lv_color_hsv_to_rgb() 189 r = p; in lv_color_hsv_to_rgb() 195 g = p; in lv_color_hsv_to_rgb() 200 g = p; in lv_color_hsv_to_rgb() 274 lv_color_t lv_palette_main(lv_palette_t p) in lv_palette_main() argument 284 if(p >= _LV_PALETTE_LAST) { in lv_palette_main() [all …]
|
D | lv_mem.c | 288 return LV_GC_ROOT(lv_mem_buf[i]).p; in lv_mem_buf_get() 303 LV_GC_ROOT(lv_mem_buf[i_guess]).p); in lv_mem_buf_get() 304 return LV_GC_ROOT(lv_mem_buf[i_guess]).p; in lv_mem_buf_get() 311 void * buf = lv_mem_realloc(LV_GC_ROOT(lv_mem_buf[i]).p, size); in lv_mem_buf_get() 317 LV_GC_ROOT(lv_mem_buf[i]).p = buf; in lv_mem_buf_get() 318 MEM_TRACE("allocated (buffer id: %d, address: %p)", i, LV_GC_ROOT(lv_mem_buf[i]).p); in lv_mem_buf_get() 319 return LV_GC_ROOT(lv_mem_buf[i]).p; in lv_mem_buf_get() 332 void lv_mem_buf_release(void * p) in lv_mem_buf_release() argument 334 MEM_TRACE("begin (address: %p)", p); in lv_mem_buf_release() 337 if(LV_GC_ROOT(lv_mem_buf[i]).p == p) { in lv_mem_buf_release() [all …]
|
D | lv_mem.h | 47 void * p; member 115 void lv_mem_buf_release(void * p);
|
/lvgl-3.5.0/examples/widgets/chart/ |
D | lv_example_chart_4.c | 25 lv_point_t p; in event_cb() local 26 lv_chart_get_point_pos_by_id(chart, ser, id, &p); in event_cb() 43 a.x1 = chart->coords.x1 + p.x - 20; in event_cb() 44 a.x2 = chart->coords.x1 + p.x + 20; in event_cb() 45 a.y1 = chart->coords.y1 + p.y - 30; in event_cb() 46 a.y2 = chart->coords.y1 + p.y - 10; in event_cb()
|
D | lv_example_chart_9.c | 12 uint16_t p = lv_chart_get_point_count(chart); in add_data() local 16 a[(s + 1) % p] = LV_CHART_POINT_NONE; in add_data() 17 a[(s + 2) % p] = LV_CHART_POINT_NONE; in add_data() 18 a[(s + 2) % p] = LV_CHART_POINT_NONE; in add_data()
|
D | lv_example_chart_9.py | 7 p = chart.get_point_count() 11 a[(s + 1) % p] = lv.CHART_POINT.NONE 12 a[(s + 2) % p] = lv.CHART_POINT.NONE 13 a[(s + 3) % p] = lv.CHART_POINT.NONE
|
D | lv_example_chart_4.py | 17 p = lv.point_t() 18 chart.get_point_pos_by_id(series[i], id, p) 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
|
/lvgl-3.5.0/docs/others/ |
D | ime_pinyin.md | 9 <p> 15 </p> 31 <p> 42 </p> 58 <p> 66 </p> 77 <p> 83 </p> 109 <p> 113 </p> [all …]
|
/lvgl-3.5.0/src/extra/widgets/colorwheel/ |
D | lv_colorwheel.c | 289 lv_point_t p[2]; in draw_disc_grad() local 290 p[0].x = cx + ((r + cir_w_extra) * lv_trigo_sin(angle_trigo) >> LV_TRIGO_SHIFT); in draw_disc_grad() 291 p[0].y = cy + ((r + cir_w_extra) * lv_trigo_cos(angle_trigo) >> LV_TRIGO_SHIFT); in draw_disc_grad() 292 p[1].x = cx + ((r - cir_w - cir_w_extra) * lv_trigo_sin(angle_trigo) >> LV_TRIGO_SHIFT); in draw_disc_grad() 293 p[1].y = cy + ((r - cir_w - cir_w_extra) * lv_trigo_cos(angle_trigo) >> LV_TRIGO_SHIFT); in draw_disc_grad() 295 lv_draw_line(draw_ctx, &line_dsc, &p[0], &p[1]); in draw_disc_grad() 448 lv_point_t p; in lv_colorwheel_event() local 450 p.x = obj->coords.x1 + lv_obj_get_width(obj) / 2; in lv_colorwheel_event() 451 p.y = obj->coords.y1 + lv_obj_get_height(obj) / 2; in lv_colorwheel_event() 454 lv_indev_get_point(indev, &p); in lv_colorwheel_event() [all …]
|
/lvgl-3.5.0/src/extra/libs/qrcode/ |
D | lv_qrcode.c | 135 uint8_t p = 0; in lv_qrcode_update() local 148 if(!a) b |= (1 << (7 - p)); in lv_qrcode_update() 149 p++; in lv_qrcode_update() 150 if(p == 8) { in lv_qrcode_update() 154 p = 0; in lv_qrcode_update() 160 if(p) { in lv_qrcode_update() 162 b |= (1 << (8 - p)) - 1; in lv_qrcode_update()
|
/lvgl-3.5.0/src/core/ |
D | lv_obj_pos.c | 29 static void transform_point(const lv_obj_t * obj, lv_point_t * p, bool inv); 607 lv_point_t p = {0, LV_COORD_MIN}; in lv_obj_get_self_width() local 608 lv_event_send((lv_obj_t *)obj, LV_EVENT_GET_SELF_SIZE, &p); in lv_obj_get_self_width() 609 return p.x; in lv_obj_get_self_width() 614 lv_point_t p = {LV_COORD_MIN, 0}; in lv_obj_get_self_height() local 615 lv_event_send((lv_obj_t *)obj, LV_EVENT_GET_SELF_SIZE, &p); in lv_obj_get_self_height() 616 return p.y; in lv_obj_get_self_height() 798 void lv_obj_transform_point(const lv_obj_t * obj, lv_point_t * p, bool recursive, bool inv) in lv_obj_transform_point() argument 804 if(recursive) lv_obj_transform_point(lv_obj_get_parent(obj), p, recursive, inv); in lv_obj_transform_point() 805 if(do_tranf) transform_point(obj, p, inv); in lv_obj_transform_point() [all …]
|
/lvgl-3.5.0/src/widgets/ |
D | lv_slider.c | 131 lv_point_t p; in lv_slider_event() local 137 lv_indev_get_point(lv_indev_get_act(), &p); in lv_slider_event() 143 …if((base_dir != LV_BASE_DIR_RTL && p.x > slider->right_knob_area.x2) || (base_dir == LV_BASE_DIR_R… in lv_slider_event() 144 … p.x < slider->right_knob_area.x1)) { in lv_slider_event() 147 …else if((base_dir != LV_BASE_DIR_RTL && p.x < slider->left_knob_area.x1) || (base_dir == LV_BASE_D… in lv_slider_event() 148 … p.x > slider->left_knob_area.x2)) { in lv_slider_event() 153 …S((slider->left_knob_area.x1 + (slider->left_knob_area.x2 - slider->left_knob_area.x1) / 2) - p.x); in lv_slider_event() 154 …slider->right_knob_area.x1 + (slider->right_knob_area.x2 - slider->right_knob_area.x1) / 2) - p.x); in lv_slider_event() 168 if(p.y < slider->right_knob_area.y1) { in lv_slider_event() 171 else if(p.y > slider->left_knob_area.y2) { in lv_slider_event() [all …]
|
D | lv_arc.c | 432 lv_point_t p; in lv_arc_event() local 433 lv_indev_get_point(indev, &p); in lv_arc_event() 440 p.x -= center.x; in lv_arc_event() 441 p.y -= center.y; in lv_arc_event() 458 if(p.x * p.x + p.y * p.y > r * r) { in lv_arc_event() 468 if(p.x == 0 && p.y == 0) return; in lv_arc_event() 477 angle = lv_atan2(p.y, p.x); in lv_arc_event() 569 lv_point_t p; in lv_arc_event() local 571 get_center(obj, &p, &r); in lv_arc_event() 581 lv_area_set(&a, p.x - r, p.y - r, p.x + r, p.y + r); in lv_arc_event()
|
/lvgl-3.5.0/examples/styles/ |
D | lv_example_style_9.c | 20 static lv_point_t p[] = {{10, 30}, {30, 50}, {100, 0}}; in lv_example_style_9() local 21 lv_line_set_points(obj, p, 3); in lv_example_style_9()
|
D | lv_example_style_9.py | 15 p = [ {"x":10, "y":30}, variable 19 obj.set_points(p, 3)
|
/lvgl-3.5.0/src/extra/others/fragment/ |
D | lv_fragment_manager.c | 190 lv_fragment_managed_states_t * p = NULL; in lv_fragment_manager_send_event() local 191 _LV_LL_READ_BACK(&manager->attached, p) { in lv_fragment_manager_send_event() 192 if(!p->obj_created || p->destroying_obj) continue; in lv_fragment_manager_send_event() 193 lv_fragment_t * instance = p->instance; in lv_fragment_manager_send_event() 196 if(p->cls->event_cb && p->cls->event_cb(instance, code, userdata)) return true; in lv_fragment_manager_send_event()
|
/lvgl-3.5.0/src/extra/libs/gif/ |
D | gifdec.c | 370 int p; /* number of lines in current pass */ in interlaced_line_index() local 372 p = (h - 1) / 8 + 1; in interlaced_line_index() 373 if (y < p) /* pass 1 */ in interlaced_line_index() 375 y -= p; in interlaced_line_index() 376 p = (h - 5) / 8 + 1; in interlaced_line_index() 377 if (y < p) /* pass 2 */ in interlaced_line_index() 379 y -= p; in interlaced_line_index() 380 p = (h - 3) / 4 + 1; in interlaced_line_index() 381 if (y < p) /* pass 3 */ in interlaced_line_index() 383 y -= p; in interlaced_line_index() [all …]
|