Struct imgui::DragRange[][src]

pub struct DragRange<T, L, F = &'static str, M = &'static str> { /* fields omitted */ }
Expand description

Builder for a drag slider widget.

Implementations

Constructs a new drag slider builder.

Sets the value increment for a movement of one pixel.

Example: speed=0.2 means mouse needs to move 5 pixels to increase the slider value by 1

Sets the display format using a C-style printf string

Sets the display format for the max value using a C-style printf string

Replaces all current settings with the given flags

Builds a drag range slider that is bound to the given min/max values.

Returns true if the slider value was changed.

Builds a drag range slider that is bound to the given min/max values.

Returns true if the 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.