Checkpoint

This commit is contained in:
Nathan Sobo 2023-09-19 20:55:13 -06:00
parent 8406c0d9a3
commit 37d0f06e07
24 changed files with 5138 additions and 54 deletions

View file

@ -51,9 +51,9 @@ impl AppContext {
) -> WindowHandle<S> {
let id = self.windows.insert(None);
let handle = WindowHandle::new(id);
self.platform.open_window(handle.into(), options);
let platform_window = self.platform.open_window(handle.into(), options);
let mut window = Window::new(id);
let mut window = Window::new(id, platform_window);
let root_view = build_root_view(&mut WindowContext::mutable(self, &mut window));
window.root_view.replace(Box::new(root_view));