| 34 | } |
| 35 | |
| 36 | static void anim_rotation_callback(void* var, int32_t v) { |
| 37 | auto* object = (lv_obj_t*) var; |
| 38 | auto width = lv_obj_get_width(object); |
| 39 | auto height = lv_obj_get_width(object); |
| 40 | lv_obj_set_style_transform_pivot_x(object, width / 2, 0); |
| 41 | lv_obj_set_style_transform_pivot_y(object, height / 2, 0); |
| 42 | lv_obj_set_style_transform_rotation(object, v, 0); |
| 43 | } |
| 44 | |
| 45 | static void spinner_constructor(const lv_obj_class_t* object_class, lv_obj_t* object) { |
| 46 | lv_obj_remove_flag(object, LV_OBJ_FLAG_CLICKABLE); |
nothing calls this directly
no outgoing calls
no test coverage detected