Struct bevy_mod_imgui::prelude::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>
sourcepub fn new(label: Label) -> AngleSlider<Label>
pub fn new(label: Label) -> AngleSlider<Label>
Constructs a new angle slider builder, where its minimum defaults to -360.0 and maximum defaults to 360.0
source§impl<Label, Format> AngleSlider<Label, Format>
impl<Label, Format> AngleSlider<Label, Format>
sourcepub fn range_degrees(
self,
min_degrees: f32,
max_degrees: f32
) -> AngleSlider<Label, Format>
pub fn range_degrees( self, min_degrees: f32, max_degrees: f32 ) -> AngleSlider<Label, Format>
Sets the range in degrees (inclusive)
imgui::AngleSlider::new("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) -> AngleSlider<Label, Format>
pub fn min_degrees(self, min_degrees: f32) -> AngleSlider<Label, Format>
Sets the minimum value (in degrees)
sourcepub fn max_degrees(self, max_degrees: f32) -> AngleSlider<Label, Format>
pub fn max_degrees(self, max_degrees: f32) -> AngleSlider<Label, Format>
Sets the maximum value (in degrees)
sourcepub fn display_format<Format2>(
self,
display_format: Format2
) -> AngleSlider<Label, Format2>
pub fn display_format<Format2>( self, display_format: Format2 ) -> AngleSlider<Label, Format2>
Sets the display format using a C-style printf string
sourcepub fn flags(self, flags: SliderFlags) -> AngleSlider<Label, Format>
pub fn flags(self, flags: SliderFlags) -> AngleSlider<Label, Format>
Replaces all current settings with the given flags
Trait Implementations§
source§impl<Label, Format> Clone for AngleSlider<Label, Format>
impl<Label, Format> 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 moresource§impl<Label, Format> Debug for AngleSlider<Label, Format>
impl<Label, Format> Debug for AngleSlider<Label, Format>
impl<Label, Format> Copy for AngleSlider<Label, Format>
Auto Trait Implementations§
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§
§impl<T, U> AsBindGroupShaderType<U> for T
impl<T, U> AsBindGroupShaderType<U> for T
§fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
Return the
T [ShaderType] for self. When used in [AsBindGroup]
derives, it is safe to assume that all images in self exist.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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.