pub struct MemberSettings {
pub read_only: bool,
pub bools: Option<BoolSettings>,
pub tuples: Option<TupleSettings>,
pub maps: Option<MapSettings>,
pub vec: Option<VecSettings>,
pub arrays: Option<ArraySettings>,
pub numerics_i32: Option<NumericTypeSettings>,
pub numerics_f32: Option<NumericTypeSettings>,
pub numerics_u32: Option<NumericTypeSettings>,
pub numerics_f64: Option<NumericTypeSettings>,
}Expand description
Per-member override settings layered on top of global ReflectSettings.
This provides an ImSettings-style configuration surface for specific
fields (members) of a reflected type, analogous to
ImSettings::push_member<&T::field>() in ImReflect.
Fields§
§read_only: boolWhether this member should be rendered in a read-only (disabled) state.
bools: Option<BoolSettings>Optional override for boolean style settings on this member.
tuples: Option<TupleSettings>Optional override for tuple rendering settings on this member.
maps: Option<MapSettings>Optional override for map rendering settings on this member.
vec: Option<VecSettings>Optional override for vector rendering settings on this member.
arrays: Option<ArraySettings>Optional override for fixed-size array rendering settings on this member.
numerics_i32: Option<NumericTypeSettings>Optional numeric settings override for i32 members.
numerics_f32: Option<NumericTypeSettings>Optional numeric settings override for f32 members.
numerics_u32: Option<NumericTypeSettings>Optional numeric settings override for u32 members.
numerics_f64: Option<NumericTypeSettings>Optional numeric settings override for f64 members.
Implementations§
Source§impl MemberSettings
impl MemberSettings
Sourcepub fn vec_reorder_only(&mut self) -> &mut Self
pub fn vec_reorder_only(&mut self) -> &mut Self
Convenience helper: mark a Vec<T> member as “reorder-only” (no
insertion/removal, but drag-to-reorder remains enabled).
Sourcepub fn vec_fixed(&mut self) -> &mut Self
pub fn vec_fixed(&mut self) -> &mut Self
Convenience helper: mark a Vec<T> member as “fixed” (no insertion,
removal, or reordering). The contents are still editable unless
combined with read_only.
Sourcepub fn arrays_fixed_order(&mut self) -> &mut Self
pub fn arrays_fixed_order(&mut self) -> &mut Self
Convenience helper: mark an array member as fixed-order (no reordering of elements, but still rendered inside an optional dropdown).
Sourcepub fn maps_const(&mut self) -> &mut Self
pub fn maps_const(&mut self) -> &mut Self
Convenience helper: mark a map member as “const-map” (no insertion or removal, keys/values still editable when not read-only).
Sourcepub fn maps_editable(&mut self) -> &mut Self
pub fn maps_editable(&mut self) -> &mut Self
Convenience helper: explicitly mark a map member as fully editable using default dropdown/table behavior.
Sourcepub fn numerics_f32_slider_0_to_1(&mut self, precision: u32) -> &mut Self
pub fn numerics_f32_slider_0_to_1(&mut self, precision: u32) -> &mut Self
Convenience helper: configure f32 numerics on this member as a slider
in the range [0, 1] with clamping and %.Nf formatting.
Sourcepub fn numerics_f32_slider_minus1_to_1(&mut self, precision: u32) -> &mut Self
pub fn numerics_f32_slider_minus1_to_1(&mut self, precision: u32) -> &mut Self
Convenience helper: configure f32 numerics on this member as a slider
in the range [-1, 1] with clamping and %.Nf formatting.
Sourcepub fn numerics_f32_drag_with_speed(
&mut self,
speed: f64,
precision: u32,
) -> &mut Self
pub fn numerics_f32_drag_with_speed( &mut self, speed: f64, precision: u32, ) -> &mut Self
Convenience helper: configure f32 numerics on this member as a drag
widget with a given speed and %.Nf formatting.
Sourcepub fn numerics_f32_percentage_slider_0_to_1(
&mut self,
precision: u32,
) -> &mut Self
pub fn numerics_f32_percentage_slider_0_to_1( &mut self, precision: u32, ) -> &mut Self
Convenience helper: configure f32 numerics on this member as a slider
in [0, 1] displayed as a percentage %.Nf%% with clamping.
Sourcepub fn numerics_f64_slider_0_to_1(&mut self, precision: u32) -> &mut Self
pub fn numerics_f64_slider_0_to_1(&mut self, precision: u32) -> &mut Self
Convenience helper: configure f64 numerics on this member as a slider
in the range [0, 1] with clamping and %.Nf formatting.
Sourcepub fn numerics_f64_slider_minus1_to_1(&mut self, precision: u32) -> &mut Self
pub fn numerics_f64_slider_minus1_to_1(&mut self, precision: u32) -> &mut Self
Convenience helper: configure f64 numerics on this member as a slider
in the range [-1, 1] with clamping and %.Nf formatting.
Sourcepub fn numerics_f64_drag_with_speed(
&mut self,
speed: f64,
precision: u32,
) -> &mut Self
pub fn numerics_f64_drag_with_speed( &mut self, speed: f64, precision: u32, ) -> &mut Self
Convenience helper: configure f64 numerics on this member as a drag
widget with a given speed and %.Nf formatting.
Sourcepub fn numerics_f64_percentage_slider_0_to_1(
&mut self,
precision: u32,
) -> &mut Self
pub fn numerics_f64_percentage_slider_0_to_1( &mut self, precision: u32, ) -> &mut Self
Convenience helper: configure f64 numerics on this member as a slider
in [0, 1] displayed as a percentage %.Nf%% with clamping.
Sourcepub fn numerics_i32_input_decimal(
&mut self,
step: i32,
step_fast: i32,
) -> &mut Self
pub fn numerics_i32_input_decimal( &mut self, step: i32, step_fast: i32, ) -> &mut Self
Convenience helper: configure i32 numerics on this member as an
input widget using decimal formatting (%d) and optional steps.
Pass zero for step or step_fast to leave that parameter unset.
Sourcepub fn numerics_i32_input_hex(&mut self) -> &mut Self
pub fn numerics_i32_input_hex(&mut self) -> &mut Self
Convenience helper: configure i32 numerics on this member as an
input widget using lowercase hexadecimal formatting (%x).
Sourcepub fn numerics_i32_slider_range(
&mut self,
min: i32,
max: i32,
clamp: bool,
) -> &mut Self
pub fn numerics_i32_slider_range( &mut self, min: i32, max: i32, clamp: bool, ) -> &mut Self
Convenience helper: configure i32 numerics on this member as a slider
over an explicit integer range, with optional clamping.
Sourcepub fn numerics_i32_slider_0_to_100(&mut self) -> &mut Self
pub fn numerics_i32_slider_0_to_100(&mut self) -> &mut Self
Convenience helper: configure i32 numerics on this member as a slider
in the range [0, 100] with clamping.
Sourcepub fn numerics_u32_input_decimal(
&mut self,
step: u32,
step_fast: u32,
) -> &mut Self
pub fn numerics_u32_input_decimal( &mut self, step: u32, step_fast: u32, ) -> &mut Self
Convenience helper: configure u32 numerics on this member as an
input widget using unsigned decimal formatting (%u) and optional
steps. Pass zero to leave a step unset.
Sourcepub fn numerics_u32_input_hex(&mut self) -> &mut Self
pub fn numerics_u32_input_hex(&mut self) -> &mut Self
Convenience helper: configure u32 numerics on this member as an
input widget using lowercase hexadecimal formatting (%x).
Sourcepub fn numerics_u32_slider_range(
&mut self,
min: u32,
max: u32,
clamp: bool,
) -> &mut Self
pub fn numerics_u32_slider_range( &mut self, min: u32, max: u32, clamp: bool, ) -> &mut Self
Convenience helper: configure u32 numerics on this member as a slider
over an explicit integer range, with optional clamping.
Sourcepub fn numerics_u32_slider_0_to_100(&mut self) -> &mut Self
pub fn numerics_u32_slider_0_to_100(&mut self) -> &mut Self
Convenience helper: configure u32 numerics on this member as a slider
in the range [0, 100] with clamping.
Trait Implementations§
Source§impl Clone for MemberSettings
impl Clone for MemberSettings
Source§fn clone(&self) -> MemberSettings
fn clone(&self) -> MemberSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more