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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user