From 923ddcf30d48673cffdd5a04df793c3f6396a1ff Mon Sep 17 00:00:00 2001 From: n4n5 Date: Wed, 10 Jun 2026 09:58:19 +0200 Subject: [PATCH] Enhance documentation for Ui::disabled method (#8209) * [x] I have followed the instructions in the PR template Related to https://github.com/emilk/egui/discussions/4263 --- crates/egui/src/ui_builder.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/egui/src/ui_builder.rs b/crates/egui/src/ui_builder.rs index 0900d0d06..67ed692a2 100644 --- a/crates/egui/src/ui_builder.rs +++ b/crates/egui/src/ui_builder.rs @@ -117,6 +117,8 @@ impl UiBuilder { /// Make the new `Ui` disabled, i.e. grayed-out and non-interactive. /// /// Note that if the parent `Ui` is disabled, the child will always be disabled. + /// + /// See also [`crate::Ui::add_enabled`], [`crate::Ui::add_enabled_ui`] and [`crate::Ui::is_enabled`]. #[inline] pub fn disabled(mut self) -> Self { self.disabled = true;