1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 14:49:06 -04:00

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
This commit is contained in:
n4n5
2026-06-10 09:58:19 +02:00
committed by GitHub
parent 5012603e03
commit 923ddcf30d

View File

@@ -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;