Lines Matching refs:t
57 lv_coord_t item_gap, track_t * t);
59 … lv_coord_t abs_y, lv_coord_t max_main_size, lv_coord_t item_gap, track_t * t);
257 track_t t; in flex_update() local
260 t.grow_dsc_calc = 0; in flex_update()
261 … next_track_first_item = find_track_end(cont, &f, track_first_item, max_main_size, item_gap, &t); in flex_update()
262 total_track_cross_size += t.track_cross_size + track_gap; in flex_update()
281 track_t t; in flex_update() local
282 t.grow_dsc_calc = 1; in flex_update()
284 … next_track_first_item = find_track_end(cont, &f, track_first_item, max_main_size, item_gap, &t); in flex_update()
287 *cross_pos -= t.track_cross_size; in flex_update()
289 …epos(cont, &f, track_first_item, next_track_first_item, abs_x, abs_y, max_main_size, item_gap, &t); in flex_update()
291 lv_mem_buf_release(t.grow_dsc); in flex_update()
292 t.grow_dsc = NULL; in flex_update()
297 *cross_pos += t.track_cross_size + gap + track_gap; in flex_update()
315 lv_coord_t item_gap, track_t * t) in find_track_end() argument
327 t->track_main_size = 0; in find_track_end()
328 t->track_fix_main_size = 0; in find_track_end()
329 t->grow_item_cnt = 0; in find_track_end()
330 t->track_cross_size = 0; in find_track_end()
331 t->item_cnt = 0; in find_track_end()
332 t->grow_dsc = NULL; in find_track_end()
343 t->grow_item_cnt++; in find_track_end()
344 t->track_fix_main_size += item_gap; in find_track_end()
345 if(t->grow_dsc_calc) { in find_track_end()
346 grow_dsc_t * new_dsc = lv_mem_buf_get(sizeof(grow_dsc_t) * (t->grow_item_cnt)); in find_track_end()
350 if(t->grow_dsc) { in find_track_end()
351 … lv_memcpy(new_dsc, t->grow_dsc, sizeof(grow_dsc_t) * (t->grow_item_cnt - 1)); in find_track_end()
352 lv_mem_buf_release(t->grow_dsc); in find_track_end()
354 new_dsc[t->grow_item_cnt - 1].item = item; in find_track_end()
355 … new_dsc[t->grow_item_cnt - 1].min_size = f->row ? lv_obj_get_style_min_width(item, in find_track_end()
357 … new_dsc[t->grow_item_cnt - 1].max_size = f->row ? lv_obj_get_style_max_width(item, in find_track_end()
359 new_dsc[t->grow_item_cnt - 1].grow_value = grow_value; in find_track_end()
360 new_dsc[t->grow_item_cnt - 1].clamped = 0; in find_track_end()
361 t->grow_dsc = new_dsc; in find_track_end()
366 if(f->wrap && t->track_fix_main_size + item_size > max_main_size) break; in find_track_end()
367 t->track_fix_main_size += item_size + item_gap; in find_track_end()
370 t->track_cross_size = LV_MAX(get_cross_size(item), t->track_cross_size); in find_track_end()
371 t->item_cnt++; in find_track_end()
379 …if(t->track_fix_main_size > 0) t->track_fix_main_size -= item_gap; /*There is no gap after the las… in find_track_end()
382 t->track_main_size = t->grow_item_cnt ? max_main_size : t->track_fix_main_size; in find_track_end()
389 t->track_cross_size = get_cross_size(item); in find_track_end()
390 t->track_main_size = get_main_size(item); in find_track_end()
391 t->item_cnt = 1; in find_track_end()
402 … lv_coord_t abs_y, lv_coord_t max_main_size, lv_coord_t item_gap, track_t * t) in children_repos() argument
414 lv_coord_t grow_max_size = t->track_main_size - t->track_fix_main_size; in children_repos()
415 for(i = 0; i < t->grow_item_cnt; i++) { in children_repos()
416 if(t->grow_dsc[i].clamped == 0) { in children_repos()
417 grow_value_sum += t->grow_dsc[i].grow_value; in children_repos()
420 grow_max_size -= t->grow_dsc[i].final_size; in children_repos()
425 for(i = 0; i < t->grow_item_cnt; i++) { in children_repos()
426 if(t->grow_dsc[i].clamped == 0) { in children_repos()
429 lv_coord_t size = grow_unit * t->grow_dsc[i].grow_value; in children_repos()
430 … lv_coord_t size_clamp = LV_CLAMP(t->grow_dsc[i].min_size, size, t->grow_dsc[i].max_size); in children_repos()
433 t->grow_dsc[i].clamped = 1; in children_repos()
436 t->grow_dsc[i].final_size = size_clamp; in children_repos()
437 grow_value_sum -= t->grow_dsc[i].grow_value; in children_repos()
438 grow_max_size -= t->grow_dsc[i].final_size; in children_repos()
448 …place_content(f->main_place, max_main_size, t->track_main_size, t->item_cnt, &main_pos, &place_gap… in children_repos()
461 for(i = 0; i < t->grow_item_cnt; i++) { in children_repos()
462 if(t->grow_dsc[i].item == item) { in children_repos()
463 s = t->grow_dsc[i].final_size; in children_repos()
498 … cross_pos = (((t->track_cross_size + 1) & (~1)) - area_get_cross_size(&item->coords)) / 2; in children_repos()
501 cross_pos = t->track_cross_size - area_get_cross_size(&item->coords); in children_repos()