diff --git a/crates/gpui/src/window.rs b/crates/gpui/src/window.rs index b3afcdb63d..ad6ace22cc 100644 --- a/crates/gpui/src/window.rs +++ b/crates/gpui/src/window.rs @@ -593,8 +593,7 @@ impl Frame { } } -// Holds the state for a specific window. -#[doc(hidden)] +/// Holds the state for a specific window. pub struct Window { pub(crate) handle: AnyWindowHandle, pub(crate) invalidator: WindowInvalidator, @@ -1007,6 +1006,7 @@ impl Window { subscription } + /// Replaces the root entity of the window with a new one. pub fn replace_root( &mut self, cx: &mut App, @@ -1021,6 +1021,7 @@ impl Window { view } + /// Returns the root entity of the window, if it has one. pub fn root(&self) -> Option>> where E: 'static + Render,