[][src]Struct imgui::AngleSlider

#[must_use]pub struct AngleSlider<'a> { /* fields omitted */ }

Builder for an angle slider widget.

Implementations

impl<'a> AngleSlider<'a>[src]

pub fn new(label: &ImStr) -> AngleSlider<'_>[src]

Constructs a new angle slider builder.

pub fn range_degrees<R: InclusiveRangeBounds<f32>>(self, range: R) -> Self[src]

Sets the range (in degrees, inclusive)

pub fn min_degrees(self, min_degrees: f32) -> Self[src]

Sets the minimum value (in degrees)

pub fn max_degrees(self, max_degrees: f32) -> Self[src]

Sets the maximum value (in degrees)

pub fn display_format(self, display_format: &'a ImStr) -> Self[src]

Sets the display format using a C-style printf string

pub fn flags(self, flags: SliderFlags) -> Self[src]

Replaces all current settings with the given flags

pub fn build(self, _: &Ui<'_>, value_rad: &mut f32) -> bool[src]

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

Returns true if the slider value was changed.

Trait Implementations

impl<'a> Clone for AngleSlider<'a>[src]

impl<'a> Copy for AngleSlider<'a>[src]

impl<'a> Debug for AngleSlider<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for AngleSlider<'a>

impl<'a> Send for AngleSlider<'a>

impl<'a> Sync for AngleSlider<'a>

impl<'a> Unpin for AngleSlider<'a>

impl<'a> UnwindSafe for AngleSlider<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.