Lines Matching refs:item
30 lv_obj_t * item; member
336 lv_obj_t * item = lv_obj_get_child(cont, item_id); in find_track_end() local
337 while(item) { in find_track_end()
338 if(item_id != item_start_id && lv_obj_has_flag(item, LV_OBJ_FLAG_FLEX_IN_NEW_TRACK)) break; in find_track_end()
340 …if(!lv_obj_has_flag_any(item, LV_OBJ_FLAG_IGNORE_LAYOUT | LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_FLOATIN… in find_track_end()
341 uint8_t grow_value = lv_obj_get_style_flex_grow(item, LV_PART_MAIN); 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()
356 … LV_PART_MAIN) : lv_obj_get_style_min_height(item, LV_PART_MAIN); 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()
358 … LV_PART_MAIN) : lv_obj_get_style_max_height(item, LV_PART_MAIN); in find_track_end()
365 lv_coord_t item_size = get_main_size(item); in find_track_end()
370 t->track_cross_size = LV_MAX(get_cross_size(item), t->track_cross_size); in find_track_end()
376 item = lv_obj_get_child(cont, item_id); in find_track_end()
385 if(item && item_id == item_start_id) { in find_track_end()
386 item = cont->spec_attr->children[item_id]; in find_track_end()
388 if(item) { 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()
451 lv_obj_t * item = lv_obj_get_child(cont, item_first_id); in children_repos() local
453 while(item && item_first_id != item_last_id) { in children_repos()
454 …if(lv_obj_has_flag_any(item, LV_OBJ_FLAG_IGNORE_LAYOUT | LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_FLOATING… in children_repos()
455 item = get_next_item(cont, f->rev, &item_first_id); in children_repos()
458 lv_coord_t grow_size = lv_obj_get_style_flex_grow(item, LV_PART_MAIN); in children_repos()
462 if(t->grow_dsc[i].item == item) { in children_repos()
469 item->w_layout = 1; in children_repos()
470 item->h_layout = 0; in children_repos()
473 item->h_layout = 1; in children_repos()
474 item->w_layout = 0; in children_repos()
477 if(s != area_get_main_size(&item->coords)) { in children_repos()
478 lv_obj_invalidate(item); in children_repos()
481 lv_area_copy(&old_coords, &item->coords); in children_repos()
482 area_set_main_size(&item->coords, s); in children_repos()
483 lv_event_send(item, LV_EVENT_SIZE_CHANGED, &old_coords); in children_repos()
484 lv_event_send(lv_obj_get_parent(item), LV_EVENT_CHILD_CHANGED, item); in children_repos()
485 lv_obj_invalidate(item); in children_repos()
489 item->w_layout = 0; in children_repos()
490 item->h_layout = 0; 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()
507 if(f->row && rtl) main_pos -= area_get_main_size(&item->coords); in children_repos()
510 lv_coord_t tr_x = lv_obj_get_style_translate_x(item, LV_PART_MAIN); in children_repos()
511 lv_coord_t tr_y = lv_obj_get_style_translate_y(item, LV_PART_MAIN); in children_repos()
512 lv_coord_t w = lv_obj_get_width(item); in children_repos()
513 lv_coord_t h = lv_obj_get_height(item); in children_repos()
517 lv_coord_t diff_x = abs_x - item->coords.x1 + tr_x; in children_repos()
518 lv_coord_t diff_y = abs_y - item->coords.y1 + tr_y; in children_repos()
523 lv_obj_invalidate(item); in children_repos()
524 item->coords.x1 += diff_x; in children_repos()
525 item->coords.x2 += diff_x; in children_repos()
526 item->coords.y1 += diff_y; in children_repos()
527 item->coords.y2 += diff_y; in children_repos()
528 lv_obj_invalidate(item); in children_repos()
529 lv_obj_move_children_by(item, diff_x, diff_y, false); in children_repos()
532 if(!(f->row && rtl)) main_pos += area_get_main_size(&item->coords) + item_gap + place_gap; in children_repos()
535 item = get_next_item(cont, f->rev, &item_first_id); in children_repos()