ptsd/lib.rs
1// #[derive(Debug, Component)]
2// pub struct Listener<D: Drawable, T: Hash + Debug + Clone + 'static>(Stack, prism::Listener<D, T>);
3// impl<D: Drawable, T: Hash + Debug + Clone + 'static> OnEvent for Listener<D, T> {}
4// impl<D: Drawable, T: Hash + Debug + Clone + 'static> Listener<D, T> {
5// pub fn new(ctx: &mut Context, theme: &Theme, inner: D, updated_on: impl Fn(&mut Context, &Theme, &mut D, T) + 'static) -> Self {
6// let theme = theme.clone();
7// let updated_on = move |ctx: &mut Context, inner: &mut D, other: T| (updated_on)(ctx, &theme.clone(), inner, other);
8// Listener(Stack::default(), prism::Listener::new(ctx, inner, updated_on))
9// }
10// }
11
12pub mod theme;
13pub use theme::*;
14mod color;
15
16pub mod colors;
17
18pub mod interface;
19pub use interface::*;
20
21pub mod interactions;
22pub mod utils;