Struct imgui::AngleSlider [−][src]
pub struct AngleSlider<Label, Format = &'static str> { /* fields omitted */ }
Expand description
Builder for an angle slider widget.
Implementations
Sets the range in degrees (inclusive)
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
.
Sets the minimum value (in degrees)
Sets the maximum value (in degrees)
pub 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
Replaces all current settings with the given flags
Trait Implementations
Auto Trait Implementations
impl<Label, Format> RefUnwindSafe for AngleSlider<Label, Format> where
Format: RefUnwindSafe,
Label: RefUnwindSafe,
impl<Label, Format> Send for AngleSlider<Label, Format> where
Format: Send,
Label: Send,
impl<Label, Format> Sync for AngleSlider<Label, Format> where
Format: Sync,
Label: Sync,
impl<Label, Format> Unpin for AngleSlider<Label, Format> where
Format: Unpin,
Label: Unpin,
impl<Label, Format> UnwindSafe for AngleSlider<Label, Format> where
Format: UnwindSafe,
Label: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more