| 1 | use std::time::Duration; |
| 2 | |
| 3 | use niri::animation::Clock; |
| 4 | use smithay::backend::renderer::element::RenderElement; |
| 5 | use smithay::backend::renderer::gles::GlesRenderer; |
| 6 | use smithay::utils::{Logical, Physical, Size}; |
| 7 | |
| 8 | pub mod gradient_angle; |
| 9 | pub mod gradient_area; |
| 10 | pub mod gradient_oklab; |
| 11 | pub mod gradient_oklab_alpha; |
| 12 | pub mod gradient_oklch_alpha; |
| 13 | pub mod gradient_oklch_decreasing; |
| 14 | pub mod gradient_oklch_increasing; |
| 15 | pub mod gradient_oklch_longer; |
| 16 | pub mod gradient_oklch_shorter; |
| 17 | pub mod gradient_srgb; |
| 18 | pub mod gradient_srgb_alpha; |
| 19 | pub mod gradient_srgblinear; |
| 20 | pub mod gradient_srgblinear_alpha; |
| 21 | pub mod layout; |
| 22 | pub mod tile; |
| 23 | pub mod window; |
| 24 | |
| 25 | pub struct Args { |
| 26 | pub size: Size<i32, Logical>, |
| 27 | pub clock: Clock, |
| 28 | } |
| 29 | |
| 30 | pub trait TestCase { |
| 31 | fn resize(&mut self, _width: i32, _height: i32) {} |
| 32 | fn are_animations_ongoing(&self) -> bool { |
| 33 | false |
| 34 | } |
| 35 | fn advance_animations(&mut self, _current_time: Duration) {} |
| 36 | fn render( |
| 37 | &mut self, |
| 38 | renderer: &mut GlesRenderer, |
| 39 | size: Size<i32, Physical>, |
| 40 | ) -> Vec<Box<dyn RenderElement<GlesRenderer>>>; |
| 41 | } |