Home
last modified time | relevance | path

Searched refs:LV_COORD_GET_PCT (Results 1 – 6 of 6) sorted by relevance

/lvgl-3.5.0/src/core/
Dlv_obj_pos.c116 w = (LV_COORD_GET_PCT(w) * parent_w) / 100; in lv_obj_refr_size()
150 h = (LV_COORD_GET_PCT(h) * parent_h) / 100; in lv_obj_refr_size()
646 if(LV_COORD_IS_PCT(x)) x = (pw * LV_COORD_GET_PCT(x)) / 100; in lv_obj_refr_pos()
647 if(LV_COORD_IS_PCT(y)) y = (ph * LV_COORD_GET_PCT(y)) / 100; in lv_obj_refr_pos()
654 if(LV_COORD_IS_PCT(tr_x)) tr_x = (w * LV_COORD_GET_PCT(tr_x)) / 100; in lv_obj_refr_pos()
655 if(LV_COORD_IS_PCT(tr_y)) tr_y = (h * LV_COORD_GET_PCT(tr_y)) / 100; in lv_obj_refr_pos()
976 if(LV_COORD_IS_PCT(min_width)) min_width = (ref_width * LV_COORD_GET_PCT(min_width)) / 100; in lv_clamp_width()
977 if(LV_COORD_IS_PCT(max_width)) max_width = (ref_width * LV_COORD_GET_PCT(max_width)) / 100; in lv_clamp_width()
983 if(LV_COORD_IS_PCT(min_height)) min_height = (ref_height * LV_COORD_GET_PCT(min_height)) / 100; in lv_clamp_height()
984 if(LV_COORD_IS_PCT(max_height)) max_height = (ref_height * LV_COORD_GET_PCT(max_height)) / 100; in lv_clamp_height()
[all …]
Dlv_refr.c921 pivot.x = (LV_COORD_GET_PCT(pivot.x) * lv_area_get_width(&obj->coords)) / 100; in refr_obj()
924 pivot.y = (LV_COORD_GET_PCT(pivot.y) * lv_area_get_height(&obj->coords)) / 100; in refr_obj()
/lvgl-3.5.0/src/misc/
Dlv_area.h268 #define LV_COORD_GET_PCT(x) (_LV_COORD_PLAIN(x) > 1000 ? 1000 - _LV_COORD_PLAIN(x) : _LV_COORD_… macro
/lvgl-3.5.0/src/extra/layouts/flex/
Dlv_flex.c520 if(LV_COORD_IS_PCT(tr_x)) tr_x = (w * LV_COORD_GET_PCT(tr_x)) / 100; in children_repos()
521 if(LV_COORD_IS_PCT(tr_y)) tr_y = (h * LV_COORD_GET_PCT(tr_y)) / 100; in children_repos()
/lvgl-3.5.0/src/extra/layouts/grid/
Dlv_grid.c675 if(LV_COORD_IS_PCT(tr_x)) tr_x = (w * LV_COORD_GET_PCT(tr_x)) / 100; in item_repos()
676 if(LV_COORD_IS_PCT(tr_y)) tr_y = (h * LV_COORD_GET_PCT(tr_y)) / 100; in item_repos()
/lvgl-3.5.0/src/extra/widgets/span/
Dlv_span.c744 indent = (width * LV_COORD_GET_PCT(spans->indent)) / 100; in convert_indent_pct()