From b1b6401ce724cccf9a15e19629fbfb645e6e57cb Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Tue, 25 Feb 2025 02:11:46 +0800 Subject: [PATCH] =?UTF-8?q?gpui:=20Don=E2=80=99t=20hide=20`Window`=20in=20?= =?UTF-8?q?docs=20(#25449)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Release Notes: - N/A This side effect is only appearing in outside project. ## Before image ## After image --------- Co-authored-by: Marshall Bowers --- crates/gpui/src/window.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/gpui/src/window.rs b/crates/gpui/src/window.rs index b3afcdb63d30822901f88d5b4dff2e21f9f721cc..ad6ace22cced91a560cb40913fb9252a153939d4 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,