Lines Matching refs:idx

331 lv_obj_t * lv_obj_get_child(const lv_obj_t * obj, int32_t idx)  in lv_obj_get_child()  argument
338 if(idx < 0) { in lv_obj_get_child()
339 idx = obj->spec_attr->child_cnt + idx; in lv_obj_get_child()
340 if(idx < 0) return NULL; in lv_obj_get_child()
341 idu = (uint32_t) idx; in lv_obj_get_child()
344 idu = idx; in lv_obj_get_child()
348 else return obj->spec_attr->children[idx]; in lv_obj_get_child()
351 lv_obj_t * lv_obj_get_child_by_type(const lv_obj_t * obj, int32_t idx, const lv_obj_class_t * class… in lv_obj_get_child_by_type() argument
359 if(idx >= 0) { in lv_obj_get_child_by_type()
362 if(idx == 0) return obj->spec_attr->children[i]; in lv_obj_get_child_by_type()
363 else idx--; in lv_obj_get_child_by_type()
368 idx++; /*-1 means the first child*/ in lv_obj_get_child_by_type()
371 if(idx == 0) return obj->spec_attr->children[i]; in lv_obj_get_child_by_type()
372 else idx++; in lv_obj_get_child_by_type()
379 lv_obj_t * lv_obj_get_sibling(const lv_obj_t * obj, int32_t idx) in lv_obj_get_sibling() argument
382 int32_t sibling_idx = (int32_t)lv_obj_get_index(obj) + idx; in lv_obj_get_sibling()
388 lv_obj_t * lv_obj_get_sibling_by_type(const lv_obj_t * obj, int32_t idx, const lv_obj_class_t * cla… in lv_obj_get_sibling_by_type() argument
393 int32_t sibling_idx = (int32_t)lv_obj_get_index_by_type(obj, class_p) + idx; in lv_obj_get_sibling_by_type()
444 uint32_t idx = 0; in lv_obj_get_index_by_type() local
448 if(child == obj) return idx; in lv_obj_get_index_by_type()
449 idx++; in lv_obj_get_index_by_type()