/lvgl-latest/src/misc/ |
D | lv_tlsf.c | 198 tlsf_decl int tlsf_fls_sizet(size_t size) in tlsf_fls_sizet() argument 200 int high = (int)(size >> 32); in tlsf_fls_sizet() 206 bits = tlsf_fls((int)size & 0xffffffff); in tlsf_fls_sizet() 326 size_t size; member 350 offsetof(block_header_t, size) + sizeof(size_t); 383 return block->size & ~(block_header_free_bit | block_header_prev_free_bit); in block_size() 386 static void block_set_size(block_header_t * block, size_t size) in block_set_size() argument 388 const size_t oldsize = block->size; in block_set_size() 389 block->size = size | (oldsize & (block_header_free_bit | block_header_prev_free_bit)); in block_set_size() 399 return tlsf_cast(int, block->size & block_header_free_bit); in block_is_free() [all …]
|
D | lv_mem.c | 50 static void lv_mem_walker(void * ptr, size_t size, int used, void * user); 125 void * lv_mem_alloc(size_t size) in lv_mem_alloc() argument 127 MEM_TRACE("allocating %lu bytes", (unsigned long)size); in lv_mem_alloc() 128 if(size == 0) { in lv_mem_alloc() 134 void * alloc = lv_tlsf_malloc(tlsf, size); in lv_mem_alloc() 136 void * alloc = LV_MEM_CUSTOM_ALLOC(size); in lv_mem_alloc() 140 LV_LOG_INFO("couldn't allocate memory (%lu bytes)", (unsigned long)size); in lv_mem_alloc() 151 lv_memset(alloc, 0xaa, size); in lv_mem_alloc() 157 cur_used += size; in lv_mem_alloc() 179 size_t size = lv_tlsf_free(tlsf, data); in lv_mem_free() local [all …]
|
D | lv_utils.c | 54 void * _lv_utils_bsearch(const void * key, const void * base, uint32_t n, uint32_t size, in _lv_utils_bsearch() argument 61 middle += (n / 2) * size; in _lv_utils_bsearch() 64 base = (middle += size); in _lv_utils_bsearch()
|
D | lv_mem.h | 48 uint16_t size; member 74 void * lv_mem_alloc(size_t size); 108 void * lv_mem_buf_get(uint32_t size);
|
D | lv_tlsf.h | 68 void * lv_tlsf_realloc(lv_tlsf_t tlsf, void * ptr, size_t size); 83 typedef void (*lv_tlsf_walker)(void * ptr, size_t size, int used, void * user);
|
D | lv_utils.h | 47 void * _lv_utils_bsearch(const void * key, const void * base, uint32_t n, uint32_t size,
|
D | lv_style.c | 255 size_t size = (style->prop_cnt - 1) * (sizeof(lv_style_value_t) + sizeof(uint16_t)); in lv_style_remove_prop() local 256 uint8_t * new_values_and_props = lv_mem_alloc(size); in lv_style_remove_prop() 439 size_t size = (style->prop_cnt + 1) * (sizeof(lv_style_value_t) + sizeof(uint16_t)); in lv_style_set_prop_internal() local 440 uint8_t * values_and_props = lv_mem_realloc(style->v_p.values_and_props, size); in lv_style_set_prop_internal() 465 size_t size = (style->prop_cnt + 1) * (sizeof(lv_style_value_t) + sizeof(uint16_t)); in lv_style_set_prop_internal() local 466 uint8_t * values_and_props = lv_mem_alloc(size); in lv_style_set_prop_internal()
|
/lvgl-latest/src/draw/sw/ |
D | lv_draw_sw_gradient.c | 64 static uint32_t compute_key(const lv_grad_dsc_t * g, lv_coord_t size, lv_coord_t w) in compute_key() argument 68 …return (v.value ^ size ^ (w >> 1)); /*Yes, this is correct, it's like a hash that changes if the w… in compute_key() 75 s += ALIGN(c->size * sizeof(lv_color32_t)); in get_cache_item_size() 118 size_t size = get_cache_item_size(c); in free_item() local 119 size_t next_items_size = (size_t)(grad_cache_end - (uint8_t *)c) - size; in free_item() 120 grad_cache_end -= size; in free_item() 123 lv_memcpy(c, ((uint8_t *)c) + size, next_items_size); in free_item() 126 c->map = (lv_color_t *)(((uint8_t *)c->map) - size); in free_item() 128 c->hmap = (lv_color32_t *)(((uint8_t *)c->hmap) - size); in free_item() 130 c->error_acc = (lv_scolor24_t *)(((uint8_t *)c->error_acc) - size); in free_item() [all …]
|
D | lv_draw_sw_rect.c | 41 static void /* LV_ATTRIBUTE_FAST_MEM */ shadow_blur_corner(lv_coord_t size, lv_coord_t sw, uint16_t… 339 lv_point_t size; in draw_bg_img() local 340 …lv_txt_get_size(&size, dsc->bg_img_src, dsc->bg_img_symbol_font, 0, 0, LV_COORD_MAX, LV_TEXT_FLAG_… in draw_bg_img() 342 a.x1 = coords->x1 + lv_area_get_width(coords) / 2 - size.x / 2; in draw_bg_img() 343 a.x2 = a.x1 + size.x - 1; in draw_bg_img() 344 a.y1 = coords->y1 + lv_area_get_height(coords) / 2 - size.y / 2; in draw_bg_img() 345 a.y2 = a.y1 + size.y - 1; in draw_bg_img() 949 int32_t size = sw_ori + r; in shadow_draw_corner_buf() local 969 lv_opa_t * mask_line = lv_mem_buf_get(size); in shadow_draw_corner_buf() 971 for(y = 0; y < size; y++) { in shadow_draw_corner_buf() [all …]
|
D | lv_draw_sw_dither.c | 55 lv_color32_t tmp = grad->hmap[LV_CLAMP(0, j - 4, grad->size)]; in lv_dither_ordered_hor() 76 lv_color32_t tmp = grad->hmap[LV_CLAMP(0, y - 4, grad->size)]; in lv_dither_ordered_ver() 120 for(lv_coord_t x = 1; x < grad->size - 1; x++) { in lv_dither_err_diff_hor() 151 grad->map[grad->size - 1] = lv_color_hex(grad->hmap[grad->size - 1].full); in lv_dither_err_diff_hor()
|
/lvgl-latest/src/extra/libs/png/ |
D | lv_png.c | 79 uint32_t size[2]; in decoder_info() local 87 lv_fs_read(&f, &size, 8, &rn); in decoder_info() 96 header->w = (lv_coord_t)((size[0] & 0xff000000) >> 24) + ((size[0] & 0x00ff0000) >> 8); in decoder_info() 97 header->h = (lv_coord_t)((size[1] & 0xff000000) >> 24) + ((size[1] & 0x00ff0000) >> 8); in decoder_info() 106 const uint32_t * size = ((uint32_t *)img_dsc->data) + 4; in decoder_info() local 123 header->w = (lv_coord_t)((size[0] & 0xff000000) >> 24) + ((size[0] & 0x00ff0000) >> 8); in decoder_info() 130 header->h = (lv_coord_t)((size[1] & 0xff000000) >> 24) + ((size[1] & 0x00ff0000) >> 8); in decoder_info()
|
D | lodepng.c | 74 static void* lodepng_malloc(size_t size) { in lodepng_malloc() argument 76 if(size > LODEPNG_MAX_ALLOC) return 0; in lodepng_malloc() 78 return lv_mem_alloc(size); in lodepng_malloc() 94 void* lodepng_malloc(size_t size); 121 const void* LODEPNG_RESTRICT src, size_t size) { in lodepng_memcpy() argument 122 lv_memcpy(dst, src, size); in lodepng_memcpy() 218 size_t size; /*size in number of unsigned longs*/ member 223 ((uivector*)p)->size = ((uivector*)p)->allocsize = 0; in uivector_cleanup() 229 static unsigned uivector_resize(uivector* p, size_t size) { in uivector_resize() argument 230 size_t allocsize = size * sizeof(unsigned); in uivector_resize() [all …]
|
/lvgl-latest/docs/overview/ |
D | coords.md | 7 - Explicitly set coordinates are stored in styles (size, position, layouts, etc.) 11 - width/height means the full size, the "content area" is smaller with padding and border width 16 - percentage: The percentage of the size of the object or its parent (depending on the property). `… 25 - content: the content area which is the size of the bounding box reduced by the border width and p… 38 …n LVGL checks if there are any "dirty" objects. If so it refreshes their position, size and layout. 43 The size and position might depend on the parent or layout. Therefore `lv_obj_update_layout` recalc… 62 /*The size of obj1 will be set back to the default in the end*/ 63 lv_obj_set_size(obj1, 200, 100); /*Now obj1 has 200;100 size*/ 67 /*obj2 will have 200;100 size in the end */ 85 Percentage values are calculated from the parent's content area size. [all …]
|
/lvgl-latest/src/extra/libs/freetype/ |
D | lv_freetype.c | 41 FT_Size size; member 385 font->line_height = (face_size->face->size->metrics.height >> 6); in lv_ft_font_init_cache() 386 font->base_line = -(face_size->face->size->metrics.descender >> 6); in lv_ft_font_init_cache() 388 FT_Fixed scale = face_size->face->size->metrics.y_scale; in lv_ft_font_init_cache() 476 FT_Face face = dsc->size->face; in get_glyph_dsc_cb_nocache() 480 if(face->size != dsc->size) { in get_glyph_dsc_cb_nocache() 481 FT_Activate_Size(dsc->size); in get_glyph_dsc_cb_nocache() 530 FT_Face face = dsc->size->face; in get_glyph_bitmap_cb_nocache() 568 FT_Size size; in lv_ft_font_init_nocache() local 569 FT_Error error = FT_New_Size(face, &size); in lv_ft_font_init_nocache() [all …]
|
/lvgl-latest/examples/widgets/chart/ |
D | lv_example_chart_6.c | 30 lv_point_t size; in event_cb() local 31 lv_txt_get_size(&size, buf, LV_FONT_DEFAULT, 0, 0, LV_COORD_MAX, LV_TEXT_FLAG_NONE); in event_cb() 35 a.y1 = a.y2 - size.y - 10; in event_cb() 37 a.x2 = a.x1 + size.x + 10; in event_cb()
|
D | lv_example_chart_6.py | 63 size = lv.point_t() 64 … lv.txt_get_size(size, value_txt, lv.font_default(), 0, 0, lv.COORD.MAX, lv.TEXT_FLAG.NONE) 68 a.y1 = a.y2 - size.y - 10 70 a.x2 = a.x1 + size.x + 10
|
/lvgl-latest/docs/widgets/core/ |
D | img.md | 59 ### Auto-size 60 …he image object is set to `LV_SIZE_CONTENT` the object's size will be set according to the size of… 63 If the object's size is greater than the image size in any directions, then the image will be repea… 69 Useful if the object size is smaller than the image source size. 75 …ger value enlarges the images (e.g. `512` double size), a smaller value shrinks it (e.g. `128` hal… 102 If you need the object size to be updated to the transformed size set `lv_img_set_size_mode(img, LV… 103 … the object is set to `LV_SIZE_CONTENT` the object's size will be set to the zoomed and rotated si… 104 If an explicit size is set then the overflowing content will be cropped.
|
D | line.md | 14 ### Auto-size 15 …_SIZE_CONTENT`. This means it will automatically set its size to fit all the points. If the size i…
|
/lvgl-latest/src/widgets/ |
D | lv_label.c | 765 lv_point_t size; in lv_label_event() local 778 lv_txt_get_size(&size, label->text, font, letter_space, line_space, w, flag); in lv_label_event() 781 self_size->x = LV_MAX(self_size->x, size.x); in lv_label_event() 782 self_size->y = LV_MAX(self_size->y, size.y); in lv_label_event() 824 lv_point_t size; in draw_main() local 825 …lv_txt_get_size(&size, label->text, label_draw_dsc.font, label_draw_dsc.letter_space, label_draw_d… in draw_main() 827 if(size.x > lv_area_get_width(&txt_coords)) { in draw_main() 864 lv_point_t size; in draw_main() local 865 …lv_txt_get_size(&size, label->text, label_draw_dsc.font, label_draw_dsc.letter_space, label_draw_d… in draw_main() 869 if(size.x > lv_area_get_width(&txt_coords)) { in draw_main() [all …]
|
/lvgl-latest/src/extra/others/imgfont/ |
D | lv_imgfont.c | 54 size_t size = sizeof(imgfont_dsc_t) + sizeof(lv_font_t); in lv_imgfont_create() local 55 imgfont_dsc_t * dsc = (imgfont_dsc_t *)lv_mem_alloc(size); in lv_imgfont_create() 57 lv_memset_00(dsc, size); in lv_imgfont_create()
|
/lvgl-latest/docs/libs/ |
D | tiny_ttf.md | 9 create a TTF font instance at the specified font size. You can then 21 After a font is created, you can change the font size in pixels by using 28 available). The cache size is indicated in bytes.
|
/lvgl-latest/docs/widgets/extra/ |
D | span.md | 16 …up_refr_mode()` after you have modified `span` style(eg:set text, changed the font size, del span). 28 e.g. `uint32_t size = lv_spangroup_get_child_cnt(spangroup)` 41 - `LV_SPAN_MODE_FIXED` fixes the object size. 42 - `LV_SPAN_MODE_EXPAND` Expand the object size to the text size but stay on a single line.
|
/lvgl-latest/src/extra/libs/tiny_ttf/ |
D | lv_tiny_ttf.c | 24 size_t size; member 35 if(to_read + stream->position >= stream->size) { in ttf_cb_stream_read() 36 to_read = stream->size - stream->position; in ttf_cb_stream_read() 48 if(position > stream->size) { in ttf_cb_stream_seek() 49 stream->position = stream->size; in ttf_cb_stream_seek() 197 dsc->stream.size = data_size; in lv_tiny_ttf_create()
|
/lvgl-latest/docs/_static/css/ |
D | custom.css | 36 font-size: 1.1em; 45 font-size: 1.1em; 125 font-size: 1.1em;
|
/lvgl-latest/src/extra/layouts/grid/ |
D | lv_grid.c | 438 lv_coord_t size = LV_COORD_MIN; in calc_cols() local 451 size = LV_MAX(size, lv_obj_get_width(item)); in calc_cols() 453 if(size >= 0) c->w[i] = size; in calc_cols() 507 lv_coord_t size = LV_COORD_MIN; in calc_rows() local 520 size = LV_MAX(size, lv_obj_get_height(item)); in calc_rows() 522 if(size >= 0) c->h[i] = size; in calc_rows()
|