Checkpoint

This commit is contained in:
Nathan Sobo 2023-09-21 14:10:53 -06:00
parent a0416e9c6d
commit d120d0cf2e
5 changed files with 51 additions and 35 deletions

View file

@ -1,5 +1,5 @@
use crate::{
current_platform, Context, LayoutId, Platform, Reference, TextSystem, View, Window,
current_platform, Context, LayoutId, Platform, Reference, RootView, TextSystem, Window,
WindowContext, WindowHandle, WindowId,
};
use anyhow::{anyhow, Result};
@ -68,7 +68,7 @@ impl AppContext {
pub fn open_window<S: 'static>(
&mut self,
options: crate::WindowOptions,
build_root_view: impl FnOnce(&mut WindowContext) -> View<S>,
build_root_view: impl FnOnce(&mut WindowContext) -> RootView<S>,
) -> WindowHandle<S> {
let id = self.windows.insert(None);
let handle = WindowHandle::new(id);