/lvgl-latest/scripts/ |
D | style_api_gen.py | 368 def obj_style_get(p): argument 369 if 'section' in p: return 371 cast = style_get_cast(p['style_type'], p['var_type']) 372 …print("static inline " + p['var_type'] + " lv_obj_get_style_" + p['name'].lower() +"(const struct … 374 print(" lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_" + p['name'] + ");") 375 print(" return " + cast + "v." + p['style_type'] + ";") 379 if 'filtered' in p and p['filtered']: 380 …print("static inline " + p['var_type'] + " lv_obj_get_style_" + p['name'].lower() +"_filtered(cons… 382 …tyle_apply_color_filter(obj, part, lv_obj_get_style_prop(obj, part, LV_STYLE_" + p['name'] + "));") 383 print(" return " + cast + "v." + p['style_type'] + ";") [all …]
|
/lvgl-latest/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-latest/tests/unity/ |
D | unity_support.c | 51 static int read_png_file(png_img_t * p, const char * file_name); 53 static void png_release(png_img_t * p); 81 png_img_t p; in lv_test_assert_img_eq() local 82 int res = read_png_file(&p, fn_ref_full); in lv_test_assert_img_eq() 99 for(y = 0; y < p.height; y++) { in lv_test_assert_img_eq() 100 png_byte * row = p.row_pointers[y]; in lv_test_assert_img_eq() 102 for(x = 0; x < p.width; x++) { in lv_test_assert_img_eq() 134 png_release(&p); in lv_test_assert_img_eq() 144 static int read_png_file(png_img_t * p, const char * file_name) in read_png_file() argument 162 p->png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); in read_png_file() [all …]
|
/lvgl-latest/src/draw/ |
D | lv_draw_mask.c | 50 lv_draw_mask_line_param_t * p); 53 … lv_draw_mask_line_param_t * p); 174 _lv_draw_mask_common_dsc_t * p = NULL; in lv_draw_mask_remove_id() local 177 p = LV_GC_ROOT(_lv_draw_mask_list[id]).param; in lv_draw_mask_remove_id() 182 return p; in lv_draw_mask_remove_id() 193 _lv_draw_mask_common_dsc_t * p = NULL; in lv_draw_mask_remove_custom() local 197 p = LV_GC_ROOT(_lv_draw_mask_list[i]).param; in lv_draw_mask_remove_custom() 201 return p; in lv_draw_mask_remove_custom() 211 void lv_draw_mask_free_param(void * p) in lv_draw_mask_free_param() argument 213 _lv_draw_mask_common_dsc_t * pdsc = p; in lv_draw_mask_free_param() [all …]
|
D | lv_img_buf.c | 364 lv_point_t p[4] = { in _lv_img_buf_get_transformed_area() local 370 lv_point_transform(&p[0], angle, zoom, pivot); in _lv_img_buf_get_transformed_area() 371 lv_point_transform(&p[1], angle, zoom, pivot); in _lv_img_buf_get_transformed_area() 372 lv_point_transform(&p[2], angle, zoom, pivot); in _lv_img_buf_get_transformed_area() 373 lv_point_transform(&p[3], angle, zoom, pivot); in _lv_img_buf_get_transformed_area() 374 res->x1 = LV_MIN4(p[0].x, p[1].x, p[2].x, p[3].x) - 2; in _lv_img_buf_get_transformed_area() 375 res->x2 = LV_MAX4(p[0].x, p[1].x, p[2].x, p[3].x) + 2; in _lv_img_buf_get_transformed_area() 376 res->y1 = LV_MIN4(p[0].y, p[1].y, p[2].y, p[3].y) - 2; in _lv_img_buf_get_transformed_area() 377 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-latest/src/misc/ |
D | lv_area.c | 26 static bool lv_point_within_circle(const lv_area_t * area, const lv_point_t * p); 335 lv_point_t p; in _lv_area_is_in() local 337 p.x = ain_p->x1; in _lv_area_is_in() 338 p.y = ain_p->y1; in _lv_area_is_in() 339 if(_lv_area_is_point_on(aholder_p, &p, radius) == false) return false; in _lv_area_is_in() 341 p.x = ain_p->x2; in _lv_area_is_in() 342 p.y = ain_p->y1; in _lv_area_is_in() 343 if(_lv_area_is_point_on(aholder_p, &p, radius) == false) return false; in _lv_area_is_in() 345 p.x = ain_p->x1; in _lv_area_is_in() 346 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 | 287 return LV_GC_ROOT(lv_mem_buf[i]).p; in lv_mem_buf_get() 302 LV_GC_ROOT(lv_mem_buf[i_guess]).p); in lv_mem_buf_get() 303 return LV_GC_ROOT(lv_mem_buf[i_guess]).p; in lv_mem_buf_get() 310 void * buf = lv_mem_realloc(LV_GC_ROOT(lv_mem_buf[i]).p, size); in lv_mem_buf_get() 316 LV_GC_ROOT(lv_mem_buf[i]).p = buf; in lv_mem_buf_get() 317 MEM_TRACE("allocated (buffer id: %d, address: %p)", i, LV_GC_ROOT(lv_mem_buf[i]).p); in lv_mem_buf_get() 318 return LV_GC_ROOT(lv_mem_buf[i]).p; in lv_mem_buf_get() 331 void lv_mem_buf_release(void * p) in lv_mem_buf_release() argument 333 MEM_TRACE("begin (address: %p)", p); in lv_mem_buf_release() 336 if(LV_GC_ROOT(lv_mem_buf[i]).p == p) { in lv_mem_buf_release() [all …]
|
/lvgl-latest/examples/widgets/chart/ |
D | lv_example_chart_4.c | 24 lv_point_t p; in event_cb() local 25 lv_chart_get_point_pos_by_id(chart, ser, id, &p); in event_cb() 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()
|
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
|
D | lv_example_chart_9.c | 11 uint16_t p = lv_chart_get_point_count(chart); in add_data() local 15 a[(s + 1) % p] = LV_CHART_POINT_NONE; in add_data() 16 a[(s + 2) % p] = LV_CHART_POINT_NONE; in add_data() 17 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
|
/lvgl-latest/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-latest/src/extra/widgets/colorwheel/ |
D | lv_colorwheel.c | 288 lv_point_t p[2]; in draw_disc_grad() local 289 p[0].x = cx + ((r + cir_w_extra) * lv_trigo_sin(angle_trigo) >> LV_TRIGO_SHIFT); in draw_disc_grad() 290 p[0].y = cy + ((r + cir_w_extra) * lv_trigo_cos(angle_trigo) >> LV_TRIGO_SHIFT); in draw_disc_grad() 291 p[1].x = cx + ((r - cir_w - cir_w_extra) * lv_trigo_sin(angle_trigo) >> LV_TRIGO_SHIFT); in draw_disc_grad() 292 p[1].y = cy + ((r - cir_w - cir_w_extra) * lv_trigo_cos(angle_trigo) >> LV_TRIGO_SHIFT); in draw_disc_grad() 294 lv_draw_line(draw_ctx, &line_dsc, &p[0], &p[1]); in draw_disc_grad() 447 lv_point_t p; in lv_colorwheel_event() local 449 p.x = obj->coords.x1 + lv_obj_get_width(obj) / 2; in lv_colorwheel_event() 450 p.y = obj->coords.y1 + lv_obj_get_height(obj) / 2; in lv_colorwheel_event() 453 lv_indev_get_point(indev, &p); in lv_colorwheel_event() [all …]
|
/lvgl-latest/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-latest/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 …]
|
/lvgl-latest/src/core/ |
D | lv_obj_pos.c | 29 static void transform_point(const lv_obj_t * obj, lv_point_t * p, bool inv); 606 lv_point_t p = {0, LV_COORD_MIN}; in lv_obj_get_self_width() local 607 lv_event_send((lv_obj_t *)obj, LV_EVENT_GET_SELF_SIZE, &p); in lv_obj_get_self_width() 608 return p.x; in lv_obj_get_self_width() 613 lv_point_t p = {LV_COORD_MIN, 0}; in lv_obj_get_self_height() local 614 lv_event_send((lv_obj_t *)obj, LV_EVENT_GET_SELF_SIZE, &p); in lv_obj_get_self_height() 615 return p.y; in lv_obj_get_self_height() 796 void lv_obj_transform_point(const lv_obj_t * obj, lv_point_t * p, bool recursive, bool inv) in lv_obj_transform_point() argument 802 if(recursive) lv_obj_transform_point(lv_obj_get_parent(obj), p, recursive, inv); in lv_obj_transform_point() 803 if(do_tranf) transform_point(obj, p, inv); in lv_obj_transform_point() [all …]
|
/lvgl-latest/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-latest/src/extra/others/fragment/ |
D | lv_fragment_manager.c | 189 lv_fragment_managed_states_t * p = NULL; in lv_fragment_manager_send_event() local 190 _LV_LL_READ_BACK(&manager->attached, p) { in lv_fragment_manager_send_event() 191 if(!p->obj_created || p->destroying_obj) continue; in lv_fragment_manager_send_event() 192 lv_fragment_t * instance = p->instance; in lv_fragment_manager_send_event() 195 if(p->cls->event_cb && p->cls->event_cb(instance, code, userdata)) return true; in lv_fragment_manager_send_event()
|
/lvgl-latest/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 …]
|
/lvgl-latest/src/extra/libs/tiny_ttf/ |
D | stb_rect_pack.h | 530 const stbrp_rect * p = (const stbrp_rect *) a; in rect_height_compare() local 532 if(p->h > q->h) in rect_height_compare() 534 if(p->h < q->h) in rect_height_compare() 536 return (p->w > q->w) ? -1 : (p->w < q->w); in rect_height_compare() 541 const stbrp_rect * p = (const stbrp_rect *) a; in rect_original_order() local 543 return (p->was_packed < q->was_packed) ? -1 : (p->was_packed > q->was_packed); in rect_original_order()
|
D | stb_truetype_htcw.h | 1243 static stbtt__buf stbtt__new_buf(const void * p, size_t size) in stbtt__new_buf() 1252 r.data = (stbtt_uint8 *)p; in stbtt__new_buf() 1408 #define ttBYTE(p, offset) (* (stbtt_uint8 *) (p+offset)) argument 1409 #define ttCHAR(p, offset) (* (stbtt_int8 *) (p+offset)) argument 1410 static stbtt_uint16 ttUSHORT(const stbtt_uint8 * p, stbtt_uint32 offset) in ttUSHORT() argument 1412 return p[offset + 0] * 256 + p[offset + 1]; in ttUSHORT() 1414 static stbtt_int16 ttSHORT(const stbtt_uint8 * p, stbtt_uint32 offset) in ttSHORT() argument 1416 return p[offset + 0] * 256 + p[offset + 1]; in ttSHORT() 1418 static stbtt_uint32 ttULONG(const stbtt_uint8 * p, stbtt_uint32 offset) in ttULONG() argument 1420 return (p[offset + 0] << 24) + (p[offset + 1] << 16) + (p[offset + 2] << 8) + p[offset + 3]; in ttULONG() [all …]
|