Struct arcdps_imgui::AngleSlider
source · pub struct AngleSlider<Label, Format = &'static str> { /* private fields */ }
Expand description
Builder for an angle slider widget.
Implementations§
source§impl<Label> AngleSlider<Label>
impl<Label> AngleSlider<Label>
source§impl<Label, Format> AngleSlider<Label, Format>
impl<Label, Format> AngleSlider<Label, Format>
sourcepub fn range_degrees(self, min_degrees: f32, max_degrees: f32) -> Self
pub fn range_degrees(self, min_degrees: f32, max_degrees: f32) -> Self
Sets the range in degrees (inclusive)
arcdps_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
.
sourcepub fn min_degrees(self, min_degrees: f32) -> Self
pub fn min_degrees(self, min_degrees: f32) -> Self
Sets the minimum value (in degrees)
sourcepub fn max_degrees(self, max_degrees: f32) -> Self
pub fn max_degrees(self, max_degrees: f32) -> Self
Sets the maximum value (in degrees)
sourcepub fn display_format<Format2: AsRef<str>>(
self,
display_format: Format2
) -> AngleSlider<Label, Format2>
pub fn display_format<Format2: AsRef<str>>( self, display_format: Format2 ) -> AngleSlider<Label, Format2>
Sets the display format using a C-style printf string
sourcepub fn flags(self, flags: SliderFlags) -> Self
pub fn flags(self, flags: SliderFlags) -> Self
Replaces all current settings with the given flags
Trait Implementations§
source§impl<Label: Clone, Format: Clone> Clone for AngleSlider<Label, Format>
impl<Label: Clone, Format: Clone> Clone for AngleSlider<Label, Format>
source§fn clone(&self) -> AngleSlider<Label, Format>
fn clone(&self) -> AngleSlider<Label, Format>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<Label: Copy, Format: Copy> Copy for AngleSlider<Label, Format>
Auto Trait Implementations§
impl<Label, Format> Freeze for AngleSlider<Label, Format>
impl<Label, Format> RefUnwindSafe for AngleSlider<Label, Format>where
Format: RefUnwindSafe,
Label: RefUnwindSafe,
impl<Label, Format> Send for AngleSlider<Label, Format>
impl<Label, Format> Sync for AngleSlider<Label, Format>
impl<Label, Format> Unpin for AngleSlider<Label, Format>
impl<Label, Format> UnwindSafe for AngleSlider<Label, Format>where
Format: UnwindSafe,
Label: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more