Home
last modified time | relevance | path

Searched refs:LV_MATH_ABS (Results 1 – 12 of 12) sorted by relevance

/lvgl-2.7.6/src/lv_core/
Dlv_indev.c1282 … if(LV_MATH_ABS(proc->types.pointer.drag_sum.x) > LV_MATH_ABS(proc->types.pointer.drag_sum.y)) { in indev_drag()
1291 … if((hor_en && LV_MATH_ABS(proc->types.pointer.drag_sum.x) >= indev_act->driver.drag_limit) || in indev_drag()
1292 … (ver_en && LV_MATH_ABS(proc->types.pointer.drag_sum.y) >= indev_act->driver.drag_limit)) { in indev_drag()
1335 … if(LV_MATH_ABS(proc->types.pointer.drag_sum.x) > LV_MATH_ABS(proc->types.pointer.drag_sum.y)) { in indev_drag()
1352LV_MATH_ABS(proc->types.pointer.drag_sum.x) > LV_MATH_ABS(proc->types.pointer.drag_sum.y))) { in indev_drag()
1358LV_MATH_ABS(proc->types.pointer.drag_sum.x) < LV_MATH_ABS(proc->types.pointer.drag_sum.y))) { in indev_drag()
1505 if((LV_MATH_ABS(proc->types.pointer.vect.x) < indev_act->driver.gesture_min_velocity) && in indev_gesture()
1506 (LV_MATH_ABS(proc->types.pointer.vect.y) < indev_act->driver.gesture_min_velocity)) { in indev_gesture()
1515 if((LV_MATH_ABS(proc->types.pointer.gesture_sum.x) > indev_act->driver.gesture_limit) || in indev_gesture()
1516 (LV_MATH_ABS(proc->types.pointer.gesture_sum.y) > indev_act->driver.gesture_limit)) { in indev_gesture()
[all …]
Dlv_obj.c3601 sh_width += LV_MATH_MAX(LV_MATH_ABS(sh_ofs_x), LV_MATH_ABS(sh_ofs_y));
/lvgl-2.7.6/src/lv_draw/
Dlv_draw_line.c338 bool flat = LV_MATH_ABS(xdiff) > LV_MATH_ABS(ydiff) ? true : false; in draw_line_skew()
350 if(flat) wcorr_i = (LV_MATH_ABS(ydiff) << 5) / LV_MATH_ABS(xdiff); in draw_line_skew()
351 else wcorr_i = (LV_MATH_ABS(xdiff) << 5) / LV_MATH_ABS(ydiff); in draw_line_skew()
Dlv_draw_mask.c213 param->flat = (LV_MATH_ABS(p2x - p1x) > LV_MATH_ABS(p2y - p1y)) ? 1 : 0; in lv_draw_mask_line_points_init()
327 param->delta_deg = LV_MATH_ABS(end_angle - start_angle); in lv_draw_mask_angle_init()
Dlv_draw_label.c165 if(LV_MATH_ABS(hint->coord_y - coords->y1) > LV_LABEL_HINT_UPDATE_TH - 2 * line_height) { in lv_draw_label()
/lvgl-2.7.6/src/lv_widgets/
Dlv_slider.c302 …dist_left = LV_MATH_ABS((ext->left_knob_area.x1 + (ext->left_knob_area.x2 - ext->left_knob_area.x1… in lv_slider_signal()
303 …dist_right = LV_MATH_ABS((ext->right_knob_area.x1 + (ext->right_knob_area.x2 - ext->right_knob_are… in lv_slider_signal()
319 …dist_left = LV_MATH_ABS((ext->left_knob_area.y1 + (ext->left_knob_area.y2 - ext->left_knob_area.y1… in lv_slider_signal()
320 …dist_right = LV_MATH_ABS((ext->right_knob_area.y1 + (ext->right_knob_area.y2 - ext->right_knob_are… in lv_slider_signal()
Dlv_arc.c166 if(LV_MATH_ABS(start - ext->arc_angle_start) >= 180) { in lv_arc_set_start_angle()
201 if(LV_MATH_ABS(end - ext->arc_angle_end) >= 180) { in lv_arc_set_end_angle()
258 if(LV_MATH_ABS(start - ext->bg_angle_start) >= 180) { in lv_arc_set_bg_start_angle()
291 if(LV_MATH_ABS(end - ext->bg_angle_end) >= 180) { in lv_arc_set_bg_end_angle()
Dlv_cpicker.c788 if((LV_MATH_ABS(p.x - ext->last_press_point.x) > indev->driver.drag_limit / 2) || in lv_cpicker_signal()
789 (LV_MATH_ABS(p.y - ext->last_press_point.y) > indev->driver.drag_limit / 2)) { in lv_cpicker_signal()
/lvgl-2.7.6/src/lv_misc/
Dlv_utils.c57 num = LV_MATH_ABS(num); in _lv_utils_num_to_str()
Dlv_math.h30 #define LV_MATH_ABS(x) ((x) > 0 ? (x) : (-(x))) macro
Dlv_color.c229 if(LV_MATH_ABS(delta) < 3) { in lv_color_rgb_to_hsv()
Dlv_anim.c196 int32_t d = LV_MATH_ABS((int32_t)start - end); in lv_anim_speed_to_time()