Home
last modified time | relevance | path

Searched refs:obj_to_rotate (Results 1 – 2 of 2) sorted by relevance

/lvgl-latest/src/widgets/arc/
Dlv_arc.h235 void lv_arc_rotate_obj_to_angle(const lv_obj_t * obj, lv_obj_t * obj_to_rotate, int32_t r_offset);
Dlv_arc.c381 void lv_arc_rotate_obj_to_angle(const lv_obj_t * obj, lv_obj_t * obj_to_rotate, int32_t r_offset) in lv_arc_rotate_obj_to_angle() argument
384 LV_ASSERT_NULL(obj_to_rotate); in lv_arc_rotate_obj_to_angle()
396 lv_obj_align_to(obj_to_rotate, obj, LV_ALIGN_CENTER, 0, -arc_r); in lv_arc_rotate_obj_to_angle()
401 int32_t pivot_x = obj_to_rotate->coords.x1 - center.x; in lv_arc_rotate_obj_to_angle()
402 int32_t pivot_y = obj_to_rotate->coords.y1 - center.y; in lv_arc_rotate_obj_to_angle()
403 lv_obj_set_style_transform_pivot_x(obj_to_rotate, -pivot_x, 0); in lv_arc_rotate_obj_to_angle()
404 lv_obj_set_style_transform_pivot_y(obj_to_rotate, -pivot_y, 0); in lv_arc_rotate_obj_to_angle()
405 lv_obj_set_style_transform_rotation(obj_to_rotate, angle * 10 + 900, 0); in lv_arc_rotate_obj_to_angle()