Struct tuix::Spinbox [−]
pub struct Spinbox<T> {
pub value: T,
pub textbox: Entity,
pub increment: Entity,
pub decrement: Entity,
pub increment_value: T,
pub decrement_value: T,
pub min: T,
pub max: T,
// some fields omitted
}
Fields
value: T
textbox: Entity
increment: Entity
decrement: Entity
increment_value: T
decrement_value: T
min: T
max: T
Implementations
pub fn with_increment(self, increment_value: T) -> Spinbox<T>
pub fn with_increment(self, increment_value: T) -> Spinbox<T>
Set the increment value of the spinbox
pub fn with_decrement(self, decrement_value: T) -> Spinbox<T>
pub fn with_decrement(self, decrement_value: T) -> Spinbox<T>
Set the decrement value of the spinbox
Set callback triggered when the spinbox is incremented
Set callback triggered when the spinbox is decremented
pub fn on_change<F>(self, callback: F) -> Spinbox<T> where
F: 'static + Fn(&mut Spinbox<T>, &mut State, Entity),
Trait Implementations
impl<T> Widget for Spinbox<T> where
T: 'static + Default + Debug + Display + Copy + PartialEq<T> + FromStr + Num + One + AddAssign<T> + SubAssign<T> + PartialOrd<T> + CheckedAdd + CheckedSub,
impl<T> Widget for Spinbox<T> where
T: 'static + Default + Debug + Display + Copy + PartialEq<T> + FromStr + Num + One + AddAssign<T> + SubAssign<T> + PartialOrd<T> + CheckedAdd + CheckedSub,
Auto Trait Implementations
impl<T> !RefUnwindSafe for Spinbox<T>
impl<T> !UnwindSafe for Spinbox<T>
Blanket Implementations
Mutably borrows from an owned value. Read more