[][src]Struct imgui_inspect::InspectArgsDefault

pub struct InspectArgsDefault {
    pub header: Option<bool>,
    pub indent_children: Option<bool>,
    pub min_value: Option<f32>,
    pub max_value: Option<f32>,
    pub step: Option<f32>,
}

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]

impl Clone for InspectArgsDefault[src]

impl From<InspectArgsDefault> for InspectArgsSlider[src]

impl From<InspectArgsDefault> for InspectArgsStruct[src]

impl Debug for InspectArgsDefault[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]