Struct imgui::AngleSlider[][src]

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

Builder for an angle slider widget.

Implementations

Constructs a new angle slider builder, where its minimum defaults to -360.0 and maximum defaults to 360.0

Sets the range in degrees (inclusive)

imgui::AngleSlider::new(im_str!("Example"))
    .range_degrees(-20.0, 20.0)
    // Remember to call .build(&ui)
    ;

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

Sets the minimum value (in degrees)

Sets the maximum value (in degrees)

Sets the display format using a C-style printf string

Replaces all current settings with the given flags

Builds an angle slider that is bound to the given value (in radians).

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.