Syntax
#define LV_CLAMP(min, val, max) (LV_MAX(min, (LV_MIN(val, max)))) ![]()
return LV_CLAMP(min_time * 10, time, max_time * 10);![]()
cir_x_right = LV_CLAMP(0, cir_x_right + i, len);![]()
cir_x_left = LV_CLAMP(0, cir_x_left - aa_len + 1, len);![]()
int32_t clr_start = LV_CLAMP(0, cir_x_left + 1, len);![]()
int32_t clr_len = LV_CLAMP(0, cir_x_right - clr_start, len - clr_start);![]()
new_id = LV_CLAMP(0, new_id, (int32_t)dropdown->option_cnt - 1);![]()
new_id = LV_CLAMP(0, new_id, (int32_t)roller->option_cnt - 1);![]()
new_value = LV_CLAMP(real_min_value, new_value, real_max_value);![]()
table->row_h[i] = LV_CLAMP(minh, calculated_height, maxh);![]()
table->row_h[row] = LV_CLAMP(minh, calculated_height, maxh);