mod atlas; mod dispatcher; mod event; mod fonts; mod geometry; mod platform; mod renderer; mod sprite_cache; mod window; use cocoa::base::{BOOL, NO, YES}; pub use dispatcher::Dispatcher; pub use fonts::FontSystem; use platform::MacPlatform; use std::sync::Arc; use window::Window; pub fn platform() -> Arc { MacPlatform::new() } pub fn run() { MacPlatform::run(); } trait BoolExt { fn to_objc(self) -> BOOL; } impl BoolExt for bool { fn to_objc(self) -> BOOL { if self { YES } else { NO } } }