lv_clamp_width() function
Clamp a width between min and max width. If the min/max width is in percentage value use the ref_width
Arguments
min_width
the minimal width
max_width
the maximal width
ref_width
the reference width used when min/max width is in percentage
Return value
the clamped width
![]()
w = lv_clamp_width(w, minw, maxw, parent_w);
lv_clamp_width() is called by 1 function:
![]()
lv_clamp_width()
lv_clamp_width():
![]()
lv_clamp_width()