Struct arcdps_imgui::DragRange
source · pub struct DragRange<T, L, F = &'static str, M = &'static str> { /* private fields */ }
Expand description
Builder for a drag slider widget.
Implementations§
source§impl<T, L, F, M> DragRange<T, L, F, M>
impl<T, L, F, M> DragRange<T, L, F, M>
pub fn range(self, min: T, max: T) -> Self
sourcepub fn speed(self, speed: f32) -> Self
pub fn speed(self, speed: f32) -> Self
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
sourcepub fn display_format<F2: AsRef<str>>(
self,
display_format: F2
) -> DragRange<T, L, F2, M>
pub fn display_format<F2: AsRef<str>>( self, display_format: F2 ) -> DragRange<T, L, F2, M>
Sets the display format using a C-style printf string
sourcepub fn max_display_format<M2: AsRef<str>>(
self,
max_display_format: M2
) -> DragRange<T, L, F, M2>
pub fn max_display_format<M2: AsRef<str>>( self, max_display_format: M2 ) -> DragRange<T, L, F, M2>
Sets the display format for the max value 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§
impl<T: Copy, L: Copy, F: Copy, M: Copy> Copy for DragRange<T, L, F, M>
Auto Trait Implementations§
impl<T, L, F, M> Freeze for DragRange<T, L, F, M>
impl<T, L, F, M> RefUnwindSafe for DragRange<T, L, F, M>
impl<T, L, F, M> Send for DragRange<T, L, F, M>
impl<T, L, F, M> Sync for DragRange<T, L, F, M>
impl<T, L, F, M> Unpin for DragRange<T, L, F, M>
impl<T, L, F, M> UnwindSafe for DragRange<T, L, F, M>
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