/lvgl-3.5.0/src/draw/sdl/ |
D | lv_draw_sdl_line.c | 31 lv_coord_t width; member 82 lv_area_t extension = {dsc->width / 2, dsc->width / 2, dsc->width / 2, dsc->width / 2}; in lv_draw_sdl_draw_line() 91 SDL_Rect srcrect = {0, 0, (int) length + dsc->width + 2, dsc->width + 2}, in lv_draw_sdl_draw_line() 92 dstrect = {t_coords.x1 - 1 - dsc->width / 2, t_coords.y1 - 1, srcrect.w, srcrect.h}; in lv_draw_sdl_draw_line() 93 SDL_Point center = {1 + dsc->width / 2, 1 + dsc->width / 2}; in lv_draw_sdl_draw_line() 116 key.width = dsc->width; in line_key_create() 124 length + dsc->width + 2, dsc->width + 2); in line_texture_create() 134 SDL_Rect line_rect = {1 + dsc->width / 2, 1, length, dsc->width}; in line_texture_create() 138 lv_area_t round_area = {0, 0, dsc->width - 1, dsc->width - 1}; in line_texture_create() 145 SDL_Rect round_src = {0, 0, dsc->width, dsc->width}; in line_texture_create() [all …]
|
D | lv_draw_sdl_utils.c | 121 SDL_Surface * lv_sdl_create_opa_surface(lv_opa_t * opa, lv_coord_t width, lv_coord_t height, lv_coo… in lv_sdl_create_opa_surface() argument 123 SDL_Surface * indexed = SDL_CreateRGBSurfaceFrom(opa, width, height, 8, stride, 0, 0, 0, 0); in lv_sdl_create_opa_surface() 130 …L_Texture * lv_sdl_create_opa_texture(SDL_Renderer * renderer, lv_opa_t * pixels, lv_coord_t width, in lv_sdl_create_opa_texture() argument 133 SDL_Surface * indexed = lv_sdl_create_opa_surface(pixels, width, height, stride); in lv_sdl_create_opa_texture() 139 void lv_sdl_to_8bpp(uint8_t * dest, const uint8_t * src, int width, int height, int stride, uint8_t… in lv_sdl_to_8bpp() argument 141 int src_len = width * height; in lv_sdl_to_8bpp() 172 dest[(cur / width * stride) + (cur % width)] = opa_table[src_bits]; in lv_sdl_to_8bpp()
|
D | lv_draw_sdl_utils.h | 49 SDL_Surface * lv_sdl_create_opa_surface(lv_opa_t * opa, lv_coord_t width, lv_coord_t height, lv_coo… 51 …L_Texture * lv_sdl_create_opa_texture(SDL_Renderer * renderer, lv_opa_t * pixels, lv_coord_t width, 54 void lv_sdl_to_8bpp(uint8_t * dest, const uint8_t * src, int width, int height, int stride, uint8_t…
|
D | lv_draw_sdl_arc.c | 65 area_in.x1 += dsc->width; in lv_draw_sdl_draw_arc() 66 area_in.y1 += dsc->width; in lv_draw_sdl_draw_arc() 67 area_in.x2 -= dsc->width; in lv_draw_sdl_draw_arc() 68 area_in.y2 -= dsc->width; in lv_draw_sdl_draw_arc() 98 get_cap_area((int16_t) start_angle, dsc->width, radius, center, &start_area); in lv_draw_sdl_draw_arc() 99 get_cap_area((int16_t) end_angle, dsc->width, radius, center, &end_area); in lv_draw_sdl_draw_arc() 100 lv_draw_mask_radius_init(&cap_start_param, &start_area, dsc->width / 2, false); in lv_draw_sdl_draw_arc() 102 lv_draw_mask_radius_init(&cap_end_param, &end_area, dsc->width / 2, false); in lv_draw_sdl_draw_arc()
|
D | lv_draw_sdl_texture_cache.c | 38 lv_coord_t width, height; member 110 int access, width, height; in lv_draw_sdl_texture_cache_put_advanced() local 111 if(SDL_QueryTexture(texture, &format, &access, &width, &height) != 0) { in lv_draw_sdl_texture_cache_put_advanced() 114 LV_LOG_INFO("cache texture %p, %d*%d@%dbpp", texture, width, height, SDL_BITSPERPIXEL(format)); in lv_draw_sdl_texture_cache_put_advanced() 115 lv_lru_set(lru, key, key_length, value, width * height * SDL_BITSPERPIXEL(format) / 8); in lv_draw_sdl_texture_cache_put_advanced()
|
/lvgl-3.5.0/src/misc/ |
D | lv_printf.c | 169 unsigned int width, unsigned int flags) in _out_rev() argument 176 for(i = len; i < width; i++) { in _out_rev() 188 while(idx - start_idx < width) { in _out_rev() 198 … bool negative, unsigned int base, unsigned int prec, unsigned int width, unsigned int flags) in _ntoa_format() argument 202 if(width && (flags & FLAGS_ZEROPAD) && (negative || (flags & (FLAGS_PLUS | FLAGS_SPACE)))) { in _ntoa_format() 203 width--; in _ntoa_format() 208 while((flags & FLAGS_ZEROPAD) && (len < width) && (len < PRINTF_NTOA_BUFFER_SIZE)) { in _ntoa_format() 215 if(!(flags & FLAGS_PRECISION) && len && ((len == prec) || (len == width))) { in _ntoa_format() 247 return _out_rev(out, buffer, idx, maxlen, buf, len, width, flags); in _ntoa_format() 252 … unsigned long base, unsigned int prec, unsigned int width, unsigned int flags) in _ntoa_long() argument [all …]
|
/lvgl-3.5.0/src/draw/sw/ |
D | lv_draw_sw_arc.c | 31 lv_coord_t width; member 65 if(dsc->width == 0) return; in lv_draw_sw_arc() 68 lv_coord_t width = dsc->width; in lv_draw_sw_arc() local 69 if(width > radius) width = radius; in lv_draw_sw_arc() 92 area_in.x1 += dsc->width; in lv_draw_sw_arc() 93 area_in.y1 += dsc->width; in lv_draw_sw_arc() 94 area_in.x2 -= dsc->width; in lv_draw_sw_arc() 95 area_in.y2 -= dsc->width; in lv_draw_sw_arc() 153 q_dsc.width = width; in lv_draw_sw_arc() 182 get_rounded_area(start_angle, radius, width, &round_area); in lv_draw_sw_arc() [all …]
|
D | lv_draw_sw_line.c | 55 if(dsc->width == 0) return; in lv_draw_sw_line() 61 clip_line.x1 = LV_MIN(point1->x, point2->x) - dsc->width / 2; in lv_draw_sw_line() 62 clip_line.x2 = LV_MAX(point1->x, point2->x) + dsc->width / 2; in lv_draw_sw_line() 63 clip_line.y1 = LV_MIN(point1->y, point2->y) - dsc->width / 2; in lv_draw_sw_line() 64 clip_line.y2 = LV_MAX(point1->y, point2->y) + dsc->width / 2; in lv_draw_sw_line() 83 int32_t r = (dsc->width >> 1); in lv_draw_sw_line() 84 int32_t r_corr = (dsc->width & 1) ? 0 : 1; in lv_draw_sw_line() 115 int32_t w = dsc->width - 1; in draw_line_hor() 201 int32_t w = dsc->width - 1; in draw_line_ver() 310 int32_t w = dsc->width; in draw_line_skew()
|
/lvgl-3.5.0/src/extra/widgets/meter/ |
D | lv_meter.h | 74 uint16_t width; member 79 uint16_t width; member 145 …t_scale_ticks(lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t cnt, uint16_t width, uint16_t len, 159 …meter_set_scale_major_ticks(lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t nth, uint16_t width, 187 …er_indicator_t * lv_meter_add_needle_line(lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t width, 212 lv_meter_indicator_t * lv_meter_add_arc(lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t width, l…
|
D | lv_meter.c | 87 …t_scale_ticks(lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t cnt, uint16_t width, uint16_t len, in lv_meter_set_scale_ticks() argument 91 scale->tick_width = width; in lv_meter_set_scale_ticks() 97 …meter_set_scale_major_ticks(lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t nth, uint16_t width, in lv_meter_set_scale_major_ticks() argument 101 scale->tick_major_width = width; in lv_meter_set_scale_major_ticks() 122 …er_indicator_t * lv_meter_add_needle_line(lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t width, in lv_meter_add_needle_line() argument 134 indic->type_data.needle_line.width = width; in lv_meter_add_needle_line() 162 lv_meter_indicator_t * lv_meter_add_arc(lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t width, l… in lv_meter_add_arc() argument 174 indic->type_data.arc.width = width; in lv_meter_add_arc() 353 arc_dsc.width = indic->type_data.arc.width; in draw_arcs() 479 line_dsc.width = line_width; in draw_ticks_and_labels() [all …]
|
/lvgl-3.5.0/src/extra/libs/ffmpeg/ |
D | lv_ffmpeg.c | 174 int width = player->ffmpeg_ctx->video_dec_ctx->width; in lv_ffmpeg_player_set_src() local 179 data_size = width * height * LV_IMG_PX_SIZE_ALPHA_BYTE; in lv_ffmpeg_player_set_src() 182 data_size = width * height * LV_COLOR_SIZE / 8; in lv_ffmpeg_player_set_src() 186 player->imgdsc.header.w = width; in lv_ffmpeg_player_set_src() 390 int width = ffmpeg_ctx->video_dec_ctx->width; in ffmpeg_output_video_frame() local 394 if(frame->width != width in ffmpeg_output_video_frame() 406 width, in ffmpeg_output_video_frame() 409 frame->width, frame->height, in ffmpeg_output_video_frame() 421 ffmpeg_ctx->video_dec_ctx->pix_fmt, width, height); in ffmpeg_output_video_frame() 435 if((width & 0x7) || (height & 0x7)) { in ffmpeg_output_video_frame() [all …]
|
/lvgl-3.5.0/scripts/ |
D | jpg_to_sjpg.py | 32 width, height = im.size variable 36 print("\tRES = " + str(width) + " x " + str(height) + '\n') 52 crop = im.crop((0, i*block_size, width, row_remaining + i*block_size)) 54 crop = im.crop((0, i*block_size, width, block_size + i*block_size)) 78 header = header + width.to_bytes(2, byteorder='little'); 119 c_code = c_code + "\t.header.w = " + str(width) + ",\n"
|
/lvgl-3.5.0/docs/widgets/core/ |
D | btnmatrix.md | 21 …E.g. `{"btn1", "btn2", "\n", "btn3", ""}`. Each line's buttons have their width calculated automat… 22 … the first row will have 2 buttons each with 50% width and a second row with 1 button having 100% … 25 The buttons' width can be set relative to the other button in the same row with `lv_btnmatrix_set_b… 26 …line with two buttons: *btnA, width = 1* and *btnB, width = 2*, *btnA* will have 33 % width and *b… 28 The width must be in the \[1..15\] range and the default width is 1. 30 In addition to the width, each button can be customized with the following parameters: 51 An element of `ctrl_map` should look like `ctrl_map[0] = width | LV_BTNM_CTRL_NO_REPEAT | LV_BTNM_…
|
D | table.md | 34 The width of the columns can be set with `lv_table_set_col_width(table, col_id, width)`. The overal… 43 If the label's width or height is set to `LV_SIZE_CONTENT` that size will be used to show the whole… 46 If the width or height is set to a smaller number than the "intrinsic" size then the table becomes …
|
/lvgl-3.5.0/src/extra/libs/gif/ |
D | gifdec.c | 71 uint16_t width, height, depth; in gif_open() local 91 width = read_num(gif_base); in gif_open() 111 gif = lv_mem_alloc(sizeof(gd_GIF) + 5 * width * height); in gif_open() 113 gif = lv_mem_alloc(sizeof(gd_GIF) + 4 * width * height); in gif_open() 115 gif = lv_mem_alloc(sizeof(gd_GIF) + 3 * width * height); in gif_open() 120 gif->width = width; in gif_open() 130 gif->frame = &gif->canvas[4 * width * height]; in gif_open() 132 gif->frame = &gif->canvas[3 * width * height]; in gif_open() 134 gif->frame = &gif->canvas[2 * width * height]; in gif_open() 137 memset(gif->frame, gif->bgindex, gif->width * gif->height); in gif_open() [all …]
|
/lvgl-3.5.0/src/extra/libs/rlottie/ |
D | lv_rlottie.c | 55 lv_obj_t * lv_rlottie_create_from_file(lv_obj_t * parent, lv_coord_t width, lv_coord_t height, cons… in lv_rlottie_create_from_file() argument 58 create_width = width; in lv_rlottie_create_from_file() 71 lv_obj_t * lv_rlottie_create_from_raw(lv_obj_t * parent, lv_coord_t width, lv_coord_t height, const… in lv_rlottie_create_from_raw() argument 74 create_width = width; in lv_rlottie_create_from_raw() 185 static void convert_to_rgba5658(uint32_t * pix, const size_t width, const size_t height) in convert_to_rgba5658() argument 208 for(size_t x = 0; x < width; x++) { in convert_to_rgba5658() 221 src += width; in convert_to_rgba5658()
|
D | lv_rlottie.h | 57 lv_obj_t * lv_rlottie_create_from_file(lv_obj_t * parent, lv_coord_t width, lv_coord_t height, cons… 59 lv_obj_t * lv_rlottie_create_from_raw(lv_obj_t * parent, lv_coord_t width, lv_coord_t height,
|
/lvgl-3.5.0/src/draw/ |
D | lv_draw_line.c | 40 dsc->width = 1; in lv_draw_line_dsc_init() 48 if(dsc->width == 0) return; in lv_draw_line()
|
/lvgl-3.5.0/src/extra/widgets/span/ |
D | lv_span.c | 64 static lv_coord_t convert_indent_pct(lv_obj_t * spans, lv_coord_t width); 329 lv_coord_t width = lv_obj_get_style_width(obj, LV_PART_MAIN); in lv_spangroup_refr_mode() local 330 if(LV_COORD_IS_PCT(width)) { in lv_spangroup_refr_mode() 331 width = 100; in lv_spangroup_refr_mode() 333 lv_coord_t height = lv_spangroup_get_expand_height(obj, width); in lv_spangroup_refr_mode() 368 uint32_t width = LV_COORD_IS_PCT(spans->indent) ? 0 : spans->indent; in lv_spangroup_get_expand_width() local 378 if(max_width > 0 && width >= max_width) { in lv_spangroup_get_expand_width() 384 width = width + letter_w + letter_space; in lv_spangroup_get_expand_width() 388 return width - letter_space; in lv_spangroup_get_expand_width() 391 lv_coord_t lv_spangroup_get_expand_height(lv_obj_t * obj, lv_coord_t width) in lv_spangroup_get_expand_height() argument [all …]
|
/lvgl-3.5.0/docs/overview/ |
D | coords.md | 8 - support min-width, max-width, min-height, max-height 10 … y=0 coordinate means the top-left corner of the parent plus the left/top padding plus border width 11 - width/height means the full size, the "content area" is smaller with padding and border width 17 - `LV_SIZE_CONTENT`: Special value to set the width/height of an object to involve all the children… 22 - bounding box: the width/height of the elements. 23 - border width: the width of the border. 25 - content: the content area which is the size of the bounding box reduced by the border width and p… 27 …content area is smaller than the bounding box with the padding and border width](/misc/boxmodel.pn… 87 lv_obj_set_x(btn, lv_pct(10)); //x = 10 % of parent content area width 153 The width and the height of an object can be set easily as well: [all …]
|
/lvgl-3.5.0/examples/widgets/chart/ |
D | lv_example_chart_2.c | 57 dsc->line_dsc->width = 2; in draw_event_cb() 62 dsc->line_dsc->width = 1; in draw_event_cb() 70 dsc->line_dsc->width = 2; in draw_event_cb() 75 dsc->line_dsc->width = 2; in draw_event_cb()
|
/lvgl-3.5.0/src/draw/nxp/vglite/ |
D | lv_draw_vglite_line.c | 90 lv_coord_t width = dsc->width; in lv_gpu_nxp_vglite_draw_line() local 115 …err = vg_lite_set_stroke(&path, cap_style, join_style, width, 8, stroke_dash_pattern, stroke_dash_… in lv_gpu_nxp_vglite_draw_line()
|
D | lv_draw_vglite_arc.c | 121 lv_coord_t width = dsc->width; /* inner arc radius = outer arc radius - width */ in lv_gpu_nxp_vglite_draw_arc() local 122 if(width > (lv_coord_t)radius) in lv_gpu_nxp_vglite_draw_arc() 123 width = radius; in lv_gpu_nxp_vglite_draw_arc() 148 cp_x = radius - width; in lv_gpu_nxp_vglite_draw_arc() 157 cp_x = radius - width / 2; in lv_gpu_nxp_vglite_draw_arc() 161 add_arc_path(arc_path, &pidx, width / 2, end_angle, (end_angle + 180), in lv_gpu_nxp_vglite_draw_arc() 166 cp_x = radius - width; in lv_gpu_nxp_vglite_draw_arc() 175 add_arc_path(arc_path, &pidx, radius - width, start_angle, end_angle, center, false); in lv_gpu_nxp_vglite_draw_arc() 179 cp_x = radius - width; in lv_gpu_nxp_vglite_draw_arc() 188 cp_x = radius - width / 2; in lv_gpu_nxp_vglite_draw_arc() [all …]
|
/lvgl-3.5.0/docs/libs/ |
D | gif.md | 25 - `LV_COLOR_DEPTH 8`: 3 x image width x image height 26 - `LV_COLOR_DEPTH 16`: 4 x image width x image height 27 - `LV_COLOR_DEPTH 32`: 5 x image width x image height
|
/lvgl-3.5.0/demos/ |
D | README.md | 60 <img src="https://github.com/lvgl/lvgl/tree/master/demos/widgets/screenshot1.png?raw=true" width=60… 75 <img src="https://github.com/lvgl/lvgl/tree/master/demos/music/screenshot1.gif?raw=true" width=600p… 83 ….com/lvgl/lvgl/tree/master/demos/keypad_encoder/screenshot1.png?raw=true" width=600px alt="Keypad … 88 <img src="https://github.com/lvgl/lvgl/tree/master/demos/benchmark/screenshot1.png?raw=true" width=… 93 <img src="https://github.com/lvgl/lvgl/tree/master/demos/stress/screenshot1.png?raw=true" width=600…
|