pub struct Spinbox<'ui> { /* private fields */ }
Implementations§
source§impl<'ui> Spinbox<'ui>
impl<'ui> Spinbox<'ui>
sourcepub fn value(&self) -> NonNegativeInt
pub fn value(&self) -> NonNegativeInt
The current value of this spinbox.
sourcepub fn set_value(&self, value: impl Into<NonNegativeInt>)
pub fn set_value(&self, value: impl Into<NonNegativeInt>)
Sets the value of this spinbox.
sourcepub fn on_changed<F>(&'ui self, f: F)where
F: 'ui + FnMut(),
pub fn on_changed<F>(&'ui self, f: F)where F: 'ui + FnMut(),
Sets a callback for when this spinbox changes.
This callback is unset by default. This is not activated when set_value
is called.
Methods from Deref<Target = Control>§
sourcepub fn is_visible(&self) -> bool
pub fn is_visible(&self) -> bool
Determines if this control is visible.
Controls are visible by default except for Window
s, which are invisible
by default.
sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Determines if this control responds to user interaction.
Controls are enabled by default.
sourcepub fn is_enabled_to_user(&self) -> bool
pub fn is_enabled_to_user(&self) -> bool
Determines if this control, and all of its parent controls, are enabled.
If this control is not a child of a parent control, then this function is equivalent to
is_enabled
.
sourcepub fn native_handle(&self) -> *mut c_void
pub fn native_handle(&self) -> *mut c_void
A handle to the underlying OS object.