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>,
}
Expand description
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
sourceimpl Clone for InspectArgsDefault
impl Clone for InspectArgsDefault
sourcefn clone(&self) -> InspectArgsDefault
fn clone(&self) -> InspectArgsDefault
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InspectArgsDefault
impl Debug for InspectArgsDefault
sourceimpl Default for InspectArgsDefault
impl Default for InspectArgsDefault
sourcefn default() -> InspectArgsDefault
fn default() -> InspectArgsDefault
Returns the “default value” for a type. Read more
sourceimpl From<InspectArgsDefault> for InspectArgsSlider
impl From<InspectArgsDefault> for InspectArgsSlider
sourcefn from(default_args: InspectArgsDefault) -> Self
fn from(default_args: InspectArgsDefault) -> Self
Converts to this type from the input type.
sourceimpl From<InspectArgsDefault> for InspectArgsStruct
impl From<InspectArgsDefault> for InspectArgsStruct
sourcefn from(default_args: InspectArgsDefault) -> Self
fn from(default_args: InspectArgsDefault) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for InspectArgsDefault
impl Send for InspectArgsDefault
impl Sync for InspectArgsDefault
impl Unpin for InspectArgsDefault
impl UnwindSafe for InspectArgsDefault
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.