[−][src]Struct imgui_inspect::InspectArgsDefault
Options for using the default rendering style for the element. The options here are a superset of all other options since "default" could be any of the widgets
So, not all elements will necessarily be used/respected. Use the non-default traits for typesafe changes.
Marking a struct element with something like #[inspect(min_value = 5.0, max_value = 53.0)]
will make the widget for that member default to those values.
Fields
header: Option<bool>
If true, the struct will have a visual/expandable header added to it. This defaults to true.
To customize this, disable this header programmatically by passing your own
InspectArgsDefault into render
or render_mut
indent_children: Option<bool>
If true, any child elements (i.e. struct members) will be indented. This defaults to true.
min_value: Option<f32>
Minimum value for the widget. The precise meaning of this can vary depending on the widget type
max_value: Option<f32>
Maximum value for the widget. The precise meaning of this can vary depending on the widget type
step: Option<f32>
Minimum value for the widget. The precise meaning of this can vary depending on the widget type
Trait Implementations
impl Default for InspectArgsDefault
[src]
fn default() -> InspectArgsDefault
[src]
impl Clone for InspectArgsDefault
[src]
fn clone(&self) -> InspectArgsDefault
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<InspectArgsDefault> for InspectArgsSlider
[src]
fn from(default_args: InspectArgsDefault) -> Self
[src]
impl From<InspectArgsDefault> for InspectArgsStruct
[src]
fn from(default_args: InspectArgsDefault) -> Self
[src]
impl Debug for InspectArgsDefault
[src]
Auto Trait Implementations
impl Send for InspectArgsDefault
impl Unpin for InspectArgsDefault
impl Sync for InspectArgsDefault
impl UnwindSafe for InspectArgsDefault
impl RefUnwindSafe for InspectArgsDefault
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,