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§
Source§impl Clone for InspectArgsDefault
impl Clone for InspectArgsDefault
Source§fn clone(&self) -> InspectArgsDefault
fn clone(&self) -> InspectArgsDefault
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more