mod event; #[cfg(target_os = "macos")] pub mod mac; pub mod current { #[cfg(target_os = "macos")] pub use super::mac::*; } use std::path::PathBuf; use event::Event; pub trait App { fn on_finish_launching(self, callback: F) -> Self where; fn on_become_active(self, callback: F) -> Self; fn on_resign_active(self, callback: F) -> Self; fn on_event bool>(self, callback: F) -> Self; fn on_open_files)>(self, callback: F) -> Self; fn run(self); }