diff --git a/crates/egui/src/containers/area.rs b/crates/egui/src/containers/area.rs index 953391cad857..f493c20cded6 100644 --- a/crates/egui/src/containers/area.rs +++ b/crates/egui/src/containers/area.rs @@ -55,6 +55,8 @@ impl State { /// }); /// # }); /// ``` +/// +/// The previous rectangle used by this area can be obtained through [`crate::Memory::area_rect()`]. #[must_use = "You should call .show()"] #[derive(Clone, Copy, Debug)] pub struct Area { diff --git a/crates/egui/src/containers/window.rs b/crates/egui/src/containers/window.rs index 2e4a9a3efe9d..ca4f6190d24b 100644 --- a/crates/egui/src/containers/window.rs +++ b/crates/egui/src/containers/window.rs @@ -21,6 +21,9 @@ use super::*; /// ui.label("Hello World!"); /// }); /// # }); +/// ``` +/// +/// The previous rectangle used by this window can be obtained through [`crate::Memory::area_rect()`]. #[must_use = "You should call .show()"] pub struct Window<'open> { title: WidgetText,