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: Ttextbox: Entityincrement: Entitydecrement: Entityincrement_value: Tdecrement_value: Tmin: Tmax: T

Implementations

Set the increment value of the spinbox

Set the decrement value of the spinbox

Set the minimum value of the spinbox

Set the maximum value of the spinbox

Set callback triggered when the spinbox is incremented

Set callback triggered when the spinbox is decremented

Trait Implementations

Adds the widget into state and returns the associated type Ret - an entity id or a tuple of entity ids

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.