Struct imgui::Slider[][src]

pub struct Slider<Label, Data, Format = &'static str> { /* fields omitted */ }
Expand description

Builder for a slider widget.

Implementations

Constructs a new slider builder with the given range.

Sets the range inclusively, such that both values given are valid values which the slider can be dragged to.

imgui::Slider::new(im_str!("Example"), i8::MIN, i8::MAX)
    .range(4, 8)
    // Remember to call .build(&ui)
    ;

It is safe, though up to C++ Dear ImGui, on how to handle when min > max.

Sets the display format using a C-style printf string

Replaces all current settings with the given flags

Builds a slider that is bound to the given value.

Returns true if the slider value was changed.

Builds a horizontal array of multiple sliders attached to the given slice.

Returns true if any slider value was changed.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.