Add Disableable
trait (#3439)
This PR adds a new `Disableable` trait to use for elements that are capable of being disabled. Release Notes: - N/A
This commit is contained in:
parent
c23a610d52
commit
3e2c517dd1
7 changed files with 27 additions and 16 deletions
5
crates/ui2/src/disableable.rs
Normal file
5
crates/ui2/src/disableable.rs
Normal file
|
@ -0,0 +1,5 @@
|
|||
/// A trait for elements that can be disabled.
|
||||
pub trait Disableable {
|
||||
/// Sets whether the element is disabled.
|
||||
fn disabled(self, disabled: bool) -> Self;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue