[−][src]Struct imgui::AngleSlider
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]
fn clone(&self) -> AngleSlider<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,