Lines Matching refs:center
42 static void get_center(const lv_obj_t * obj, lv_point_t * center, lv_coord_t * arc_r);
44 static void get_knob_area(lv_obj_t * arc, const lv_point_t * center, lv_coord_t r, lv_area_t * knob…
338 lv_point_t center; in lv_arc_align_obj_to_angle() local
340 get_center(obj, ¢er, &arc_r); in lv_arc_align_obj_to_angle()
359 lv_point_t center; in lv_arc_rotate_obj_to_angle() local
361 get_center(obj, ¢er, &arc_r); in lv_arc_rotate_obj_to_angle()
372 lv_coord_t pivot_x = obj_to_rotate->coords.x1 - center.x; in lv_arc_rotate_obj_to_angle()
373 lv_coord_t pivot_y = obj_to_rotate->coords.y1 - center.y; in lv_arc_rotate_obj_to_angle()
439 lv_point_t center; in lv_arc_event() local
441 get_center(obj, ¢er, &r); in lv_arc_event()
443 p.x -= center.x; in lv_arc_event()
444 p.y -= center.y; in lv_arc_event()
651 lv_point_t center; in lv_arc_draw() local
653 get_center(obj, ¢er, &arc_r); in lv_arc_draw()
667 part_draw_dsc.p1 = ¢er; in lv_arc_draw()
672 …lv_draw_arc(draw_ctx, &arc_dsc, ¢er, part_draw_dsc.radius, arc->bg_angle_start + arc->rotation, in lv_arc_draw()
692 part_draw_dsc.p1 = ¢er; in lv_arc_draw()
698 …lv_draw_arc(draw_ctx, &arc_dsc, ¢er, part_draw_dsc.radius, arc->indic_angle_start + arc->rotat… in lv_arc_draw()
705 get_knob_area(obj, ¢er, arc_r, &knob_area); in lv_arc_draw()
774 static void get_center(const lv_obj_t * obj, lv_point_t * center, lv_coord_t * arc_r) in get_center() argument
784 center->x = obj->coords.x1 + r + left_bg; in get_center()
785 center->y = obj->coords.y1 + r + top_bg; in get_center()
815 static void get_knob_area(lv_obj_t * obj, const lv_point_t * center, lv_coord_t r, lv_area_t * knob… in get_knob_area() argument
830 knob_area->x1 = center->x + knob_x - left_knob - indic_width_half; in get_knob_area()
831 knob_area->x2 = center->x + knob_x + right_knob + indic_width_half; in get_knob_area()
832 knob_area->y1 = center->y + knob_y - top_knob - indic_width_half; in get_knob_area()
833 knob_area->y2 = center->y + knob_y + bottom_knob + indic_width_half; in get_knob_area()