Lines Matching refs:base

345 void lv_obj_align_to(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align, lv_coord_t x_ofs, lv_…  in lv_obj_align_to()  argument
350 if(base == NULL) base = lv_obj_get_parent(obj); in lv_obj_align_to()
352 LV_ASSERT_OBJ(base, MY_CLASS); in lv_obj_align_to()
362 lv_coord_t bborder = lv_obj_get_style_border_width(base, LV_PART_MAIN); in lv_obj_align_to()
363 lv_coord_t bleft = lv_obj_get_style_pad_left(base, LV_PART_MAIN) + bborder; in lv_obj_align_to()
364 lv_coord_t btop = lv_obj_get_style_pad_top(base, LV_PART_MAIN) + bborder; in lv_obj_align_to()
367 … if(lv_obj_get_style_base_dir(base, LV_PART_MAIN) == LV_BASE_DIR_RTL) align = LV_ALIGN_TOP_RIGHT; in lv_obj_align_to()
373 x = lv_obj_get_content_width(base) / 2 - lv_obj_get_width(obj) / 2 + bleft; in lv_obj_align_to()
374 y = lv_obj_get_content_height(base) / 2 - lv_obj_get_height(obj) / 2 + btop; in lv_obj_align_to()
381 x = lv_obj_get_content_width(base) / 2 - lv_obj_get_width(obj) / 2 + bleft; in lv_obj_align_to()
386 x = lv_obj_get_content_width(base) - lv_obj_get_width(obj) + bleft; in lv_obj_align_to()
392 y = lv_obj_get_content_height(base) - lv_obj_get_height(obj) + btop; in lv_obj_align_to()
395 x = lv_obj_get_content_width(base) / 2 - lv_obj_get_width(obj) / 2 + bleft; in lv_obj_align_to()
396 y = lv_obj_get_content_height(base) - lv_obj_get_height(obj) + btop; in lv_obj_align_to()
400 x = lv_obj_get_content_width(base) - lv_obj_get_width(obj) + bleft; in lv_obj_align_to()
401 y = lv_obj_get_content_height(base) - lv_obj_get_height(obj) + btop; in lv_obj_align_to()
406 y = lv_obj_get_content_height(base) / 2 - lv_obj_get_height(obj) / 2 + btop; in lv_obj_align_to()
410 x = lv_obj_get_content_width(base) - lv_obj_get_width(obj) + bleft; in lv_obj_align_to()
411 y = lv_obj_get_content_height(base) / 2 - lv_obj_get_height(obj) / 2 + btop; in lv_obj_align_to()
420 x = lv_obj_get_width(base) / 2 - lv_obj_get_width(obj) / 2; in lv_obj_align_to()
425 x = lv_obj_get_width(base) - lv_obj_get_width(obj); in lv_obj_align_to()
431 y = lv_obj_get_height(base); in lv_obj_align_to()
435 x = lv_obj_get_width(base) / 2 - lv_obj_get_width(obj) / 2; in lv_obj_align_to()
436 y = lv_obj_get_height(base); in lv_obj_align_to()
440 x = lv_obj_get_width(base) - lv_obj_get_width(obj); in lv_obj_align_to()
441 y = lv_obj_get_height(base); in lv_obj_align_to()
451 y = lv_obj_get_height(base) / 2 - lv_obj_get_height(obj) / 2; in lv_obj_align_to()
456 y = lv_obj_get_height(base) - lv_obj_get_height(obj); in lv_obj_align_to()
460 x = lv_obj_get_width(base); in lv_obj_align_to()
465 x = lv_obj_get_width(base); in lv_obj_align_to()
466 y = lv_obj_get_height(base) / 2 - lv_obj_get_height(obj) / 2; in lv_obj_align_to()
470 x = lv_obj_get_width(base); in lv_obj_align_to()
471 y = lv_obj_get_height(base) - lv_obj_get_height(obj); in lv_obj_align_to()
476 x += x_ofs + base->coords.x1 - parent->coords.x1 + lv_obj_get_scroll_right(parent) - pleft; in lv_obj_align_to()
479 x += x_ofs + base->coords.x1 - parent->coords.x1 + lv_obj_get_scroll_left(parent) - pleft; in lv_obj_align_to()
481 y += y_ofs + base->coords.y1 - parent->coords.y1 + lv_obj_get_scroll_top(parent) - ptop; in lv_obj_align_to()