Tweak Window API to fit a bit better

This commit is contained in:
Ryan McGrath 2019-05-28 20:27:37 -07:00
parent 2a73b399d9
commit 896702287f
No known key found for this signature in database
GPG key ID: 811674B62B666830
8 changed files with 90 additions and 29 deletions

View file

@ -41,6 +41,8 @@ struct AppState {
impl AppDelegate for AppState {
fn did_finish_launching(&mut self) {
self.window.set_title("Test");
self.window.set_dimensions(10., 10., 600., 600.);
self.window.show();
}
}
@ -77,7 +79,9 @@ fn main() {
});
app.run(AppState {
window: Window::new("Le Appy App", (0., 0., 600., 600.), WindowState {})
window: Window::new(WindowState {
})
});
}
```