Searched refs:LV_CLAMP (Results 1 – 16 of 16) sorted by relevance
/lvgl-latest/src/drivers/libinput/ |
D | lv_libinput.c | 449 …point.x = (int32_t)LV_CLAMP(INT32_MIN, libinput_event_touch_get_x_transformed(touch_event, hor_res… in _read_pointer() 451 …point.y = (int32_t)LV_CLAMP(INT32_MIN, libinput_event_touch_get_y_transformed(touch_event, ver_res… in _read_pointer() 516 …dsc->pointer_position.x = (int32_t)LV_CLAMP(0, dsc->pointer_position.x + libinput_event_pointer_ge… in _read_pointer() 518 …dsc->pointer_position.y = (int32_t)LV_CLAMP(0, dsc->pointer_position.y + libinput_event_pointer_ge… in _read_pointer() 526 …point.x = (int32_t)LV_CLAMP(INT32_MIN, libinput_event_pointer_get_absolute_x_transformed(pointer_e… in _read_pointer() 528 …point.y = (int32_t)LV_CLAMP(INT32_MIN, libinput_event_pointer_get_absolute_y_transformed(pointer_e… in _read_pointer()
|
/lvgl-latest/src/drivers/nuttx/ |
D | lv_nuttx_touchscreen.c | 131 data->point.x = LV_CLAMP(0, sample->point[0].x, hor_max); in conv_touch_sample() 132 data->point.y = LV_CLAMP(0, sample->point[0].y, ver_max); in conv_touch_sample()
|
/lvgl-latest/src/others/xml/ |
D | lv_xml_utils.c | 68 v = LV_CLAMP(0, v, 255); in lv_xml_to_opa()
|
/lvgl-latest/src/misc/ |
D | lv_math.h | 167 #define LV_CLAMP(min, val, max) (LV_MAX(min, (LV_MIN(val, max)))) macro
|
D | lv_anim.c | 501 return LV_CLAMP(min_time * 10, time, max_time * 10); in lv_anim_resolve_speed()
|
/lvgl-latest/src/widgets/led/ |
D | lv_led.c | 84 led->bright = LV_CLAMP(LV_LED_BRIGHT_MIN, bright, LV_LED_BRIGHT_MAX); in lv_led_set_brightness()
|
/lvgl-latest/src/widgets/line/ |
D | lv_line.c | 177 return LV_CLAMP(0, max * LV_COORD_GET_PCT((int32_t)coord) / 100, max); in resolve_point_coord()
|
/lvgl-latest/src/widgets/bar/ |
D | lv_bar.c | 102 value = LV_CLAMP(bar->min_value, value, bar->max_value); in lv_bar_set_value() 120 value = LV_CLAMP(bar->min_value, value, bar->max_value); in lv_bar_set_start_value()
|
/lvgl-latest/src/draw/sw/ |
D | lv_draw_sw_mask.c | 924 cir_x_right = LV_CLAMP(0, cir_x_right + i, len); in lv_draw_mask_radius() 928 cir_x_left = LV_CLAMP(0, cir_x_left - aa_len + 1, len); in lv_draw_mask_radius() 942 int32_t clr_start = LV_CLAMP(0, cir_x_left + 1, len); in lv_draw_mask_radius() 943 int32_t clr_len = LV_CLAMP(0, cir_x_right - clr_start, len - clr_start); in lv_draw_mask_radius()
|
/lvgl-latest/src/widgets/roller/ |
D | lv_roller.c | 156 roller->inf_page_cnt = LV_CLAMP(3, EXTRA_INF_SIZE / normal_h, 15); in lv_roller_set_options() 464 new_id = LV_CLAMP(0, new_id, (int32_t)roller->option_cnt - 1); in lv_roller_event()
|
/lvgl-latest/src/drivers/evdev/ |
D | lv_evdev.c | 120 return LV_CLAMP(out_min, v, out_max); in _evdev_calibrate()
|
/lvgl-latest/src/core/ |
D | lv_obj_pos.c | 979 return LV_CLAMP(min_width, width, max_width); in lv_clamp_width() 986 return LV_CLAMP(min_height, height, max_height); in lv_clamp_height()
|
/lvgl-latest/src/widgets/slider/ |
D | lv_slider.c | 615 new_value = LV_CLAMP(real_min_value, new_value, real_max_value); in update_knob_pos()
|
/lvgl-latest/src/layouts/flex/ |
D | lv_flex.c | 368 … int32_t size_clamp = LV_CLAMP(t->grow_dsc[i].min_size, size, t->grow_dsc[i].max_size); in children_repos()
|
/lvgl-latest/src/widgets/table/ |
D | lv_table.c | 889 table->row_h[i] = LV_CLAMP(minh, calculated_height, maxh); in refr_size_form_row() 915 table->row_h[row] = LV_CLAMP(minh, calculated_height, maxh); in refr_cell_size()
|
/lvgl-latest/src/widgets/dropdown/ |
D | lv_dropdown.c | 810 new_id = LV_CLAMP(0, new_id, (int32_t)dropdown->option_cnt - 1); in lv_dropdown_event()
|