(self, app: F)
| 11 | } |
| 12 | |
| 13 | fn run<F>(self, app: F) |
| 14 | where |
| 15 | F: FnOnce() -> Box<dyn Application> |
| 16 | { |
| 17 | let mut app = app(); |
| 18 | app.init(); |
| 19 | |
| 20 | let window = self.rust_ui.window(); |
| 21 | println!("Running desktop app with window size: {:?}", window.dimensions()); |
| 22 | // Implement event loop |
| 23 | } |
| 24 | } |