forge
Explore
Log in

Don't you dare go Hollow

niri

Clone
★ 0

0 watching0 forksRustGPL-3.012.1 MiB9d8f4f8Ivan Molodetskikh1 month ago2997 commits

mod.rs41 lines, 1.1 KiBHistoryRawDownload
1use std::time::Duration;
2
3use niri::animation::Clock;
4use smithay::backend::renderer::element::RenderElement;
5use smithay::backend::renderer::gles::GlesRenderer;
6use smithay::utils::{Logical, Physical, Size};
7
8pub mod gradient_angle;
9pub mod gradient_area;
10pub mod gradient_oklab;
11pub mod gradient_oklab_alpha;
12pub mod gradient_oklch_alpha;
13pub mod gradient_oklch_decreasing;
14pub mod gradient_oklch_increasing;
15pub mod gradient_oklch_longer;
16pub mod gradient_oklch_shorter;
17pub mod gradient_srgb;
18pub mod gradient_srgb_alpha;
19pub mod gradient_srgblinear;
20pub mod gradient_srgblinear_alpha;
21pub mod layout;
22pub mod tile;
23pub mod window;
24
25pub struct Args {
26 pub size: Size<i32, Logical>,
27 pub clock: Clock,
28}
29
30pub 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}