Struct imgui::VerticalSlider [−][src]
pub struct VerticalSlider<Label, Data, Format = &'static str> { /* fields omitted */ }
Expand description
Builder for a vertical slider widget.
Implementations
Constructs a new vertical slider builder with the given size and range.
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
.
impl<Label, Data, Format> VerticalSlider<Label, Data, Format> where
Label: AsRef<str>,
Data: DataTypeKind,
Format: AsRef<str>,
impl<Label, Data, Format> VerticalSlider<Label, Data, Format> where
Label: AsRef<str>,
Data: DataTypeKind,
Format: AsRef<str>,
Sets the range for the vertical slider.
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
.
pub 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
Replaces all current settings with the given flags
Trait Implementations
Auto Trait Implementations
impl<Label, Data, Format> RefUnwindSafe for VerticalSlider<Label, Data, Format> where
Data: RefUnwindSafe,
Format: RefUnwindSafe,
Label: RefUnwindSafe,
impl<Label, Data, Format> Send for VerticalSlider<Label, Data, Format> where
Data: Send,
Format: Send,
Label: Send,
impl<Label, Data, Format> Sync for VerticalSlider<Label, Data, Format> where
Data: Sync,
Format: Sync,
Label: Sync,
impl<Label, Data, Format> Unpin for VerticalSlider<Label, Data, Format> where
Data: Unpin,
Format: Unpin,
Label: Unpin,
impl<Label, Data, Format> UnwindSafe for VerticalSlider<Label, Data, Format> where
Data: UnwindSafe,
Format: UnwindSafe,
Label: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more