pub struct Control { /* private fields */ }
Expand description
The control access interface
Methods from Deref<Target = QueryExtCtrl>§
pub fn has_payload(&self) -> bool
Sourcepub fn min(&self) -> i64
pub fn min(&self) -> i64
Minimum value, inclusive
This field gives a lower bound for the control.
Sourcepub fn max(&self) -> i64
pub fn max(&self) -> i64
Maximum value, inclusive
This field gives an upper bound for the control
Sourcepub fn default(&self) -> i64
pub fn default(&self) -> i64
Default value of control
The default value of a CtrlType::Integer, CtrlType::Boolean, CtrlType::BitMask, CtrlType::Menu or CtrlType::IntegerMenu control. Not valid for other types of controls
Trait Implementations§
Source§impl AsRef<QueryExtCtrl> for Control
impl AsRef<QueryExtCtrl> for Control
Source§fn as_ref(&self) -> &QueryExtCtrl
fn as_ref(&self) -> &QueryExtCtrl
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for Control
impl RefUnwindSafe for Control
impl Send for Control
impl Sync for Control
impl Unpin for Control
impl UnwindSafe for Control
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more