profiles 0.1.2

A Rust crate built on RAMP that provides all the tools to configure AIR profiles.
1
2
3
4
5
6
7
8
9
10
11
use pelican_ui::events::Event;
use pelican_ui::Context;

#[derive(Debug, Clone, Copy)]
pub struct UpdateProfileEvent;

impl Event for UpdateProfileEvent {
    fn pass(self: Box<Self>, _ctx: &mut Context, children: Vec<((f32, f32), (f32, f32))>) -> Vec<Option<Box<dyn Event>>> {
        children.into_iter().map(|_| Some(self.clone() as Box<dyn Event>)).collect()
    }
}