Struct arcdps_imgui::VerticalSlider
source · pub struct VerticalSlider<Label, Data, Format = &'static str> { /* private fields */ }
Expand description
Builder for a vertical slider widget.
Implementations§
source§impl<Label, Data> VerticalSlider<Label, Data>
impl<Label, Data> VerticalSlider<Label, Data>
sourcepub fn new(label: Label, size: [f32; 2], min: Data, max: Data) -> Self
pub fn new(label: Label, size: [f32; 2], min: Data, max: Data) -> Self
Constructs a new vertical slider builder with the given size and range.
arcdps_imgui::VerticalSlider::new(im_str!("Example"), [20.0, 20.0], i8::MIN, i8::MAX)
.range(4, 8)
// Remember to call .build(&ui)
;
It is safe, though up to C++ Dear ImGui, on how to handle when
min > max
.
source§impl<Label, Data, Format> VerticalSlider<Label, Data, Format>
impl<Label, Data, Format> VerticalSlider<Label, Data, Format>
sourcepub fn range(self, min: Data, max: Data) -> Self
pub fn range(self, min: Data, max: Data) -> Self
Sets the range for the vertical slider.
arcdps_imgui::VerticalSlider::new(im_str!("Example"), [20.0, 20.0], i8::MIN, i8::MAX)
.range(4, 8)
// Remember to call .build(&ui)
;
It is safe, though up to C++ Dear ImGui, on how to handle when
min > max
.
sourcepub fn display_format<Format2: AsRef<str>>(
self,
display_format: Format2
) -> VerticalSlider<Label, Data, Format2>
pub fn display_format<Format2: AsRef<str>>( self, display_format: Format2 ) -> VerticalSlider<Label, Data, 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§
Auto Trait Implementations§
impl<Label, Data, Format> Freeze for VerticalSlider<Label, Data, Format>
impl<Label, Data, Format> RefUnwindSafe for VerticalSlider<Label, Data, Format>
impl<Label, Data, Format> Send for VerticalSlider<Label, Data, Format>
impl<Label, Data, Format> Sync for VerticalSlider<Label, Data, Format>
impl<Label, Data, Format> Unpin for VerticalSlider<Label, Data, Format>
impl<Label, Data, Format> UnwindSafe for VerticalSlider<Label, Data, Format>
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