fn ticks_to_screen_x( ticks: i64, screen_rect: &Rect, ticks_per_screen_unit: f64, offset_ticks: i64, ) -> f32