We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13fd812 commit 214a60aCopy full SHA for 214a60a
iui/src/controls/create_macro.rs
@@ -55,6 +55,18 @@ macro_rules! define_control {
55
unsafe { ui_sys::uiControlHide(control.ui_control) }
56
}
57
58
+ // Enable this control.
59
+ pub fn enable(&mut self, _ctx: &UI) {
60
+ let control: Control = self.clone().into();
61
+ unsafe { ui_sys::uiControlEnable(control.ui_control) }
62
+ }
63
+
64
+ // Disable this control.
65
+ pub fn disable(&mut self, _ctx: &UI) {
66
67
+ unsafe { ui_sys::uiControlDisable(control.ui_control) }
68
69
70
/// Create an `iui` struct for this control from the raw pointer for it.
71
///
72
/// # Unsafety
0 commit comments