pub struct ReflectSettings { /* private fields */ }Expand description
Settings that control how certain types are rendered by dear-imgui-reflect.
This mirrors some of the concepts from ImReflect’s ImSettings type, but is
intentionally smaller and focused on common container behaviors.
Implementations§
Source§impl ReflectSettings
impl ReflectSettings
Sourcepub fn vec(&self) -> &VecSettings
pub fn vec(&self) -> &VecSettings
Settings that apply to all Vec<T> containers rendered via reflection.
Sourcepub fn vec_mut(&mut self) -> &mut VecSettings
pub fn vec_mut(&mut self) -> &mut VecSettings
Mutable access to settings that apply to all Vec<T> containers.
Sourcepub fn bools(&self) -> &BoolSettings
pub fn bools(&self) -> &BoolSettings
Settings that apply to all bool fields rendered via reflection.
Sourcepub fn bools_mut(&mut self) -> &mut BoolSettings
pub fn bools_mut(&mut self) -> &mut BoolSettings
Mutable access to settings that apply to all bool fields.
Sourcepub fn arrays(&self) -> &ArraySettings
pub fn arrays(&self) -> &ArraySettings
Settings that apply to fixed-size arrays rendered via reflection.
Sourcepub fn arrays_mut(&mut self) -> &mut ArraySettings
pub fn arrays_mut(&mut self) -> &mut ArraySettings
Mutable access to settings that apply to fixed-size arrays.
Sourcepub fn maps(&self) -> &MapSettings
pub fn maps(&self) -> &MapSettings
Settings that apply to string-keyed maps rendered via reflection.
Sourcepub fn maps_mut(&mut self) -> &mut MapSettings
pub fn maps_mut(&mut self) -> &mut MapSettings
Mutable access to settings that apply to string-keyed maps.
Sourcepub fn tuples(&self) -> &TupleSettings
pub fn tuples(&self) -> &TupleSettings
Settings that apply to tuple-like values rendered via reflection.
Sourcepub fn tuples_mut(&mut self) -> &mut TupleSettings
pub fn tuples_mut(&mut self) -> &mut TupleSettings
Mutable access to settings that apply to tuple-like values.
Sourcepub fn numerics_i32(&self) -> &NumericTypeSettings
pub fn numerics_i32(&self) -> &NumericTypeSettings
Type-level numeric settings for i32 values rendered via reflection.
Sourcepub fn numerics_i32_mut(&mut self) -> &mut NumericTypeSettings
pub fn numerics_i32_mut(&mut self) -> &mut NumericTypeSettings
Mutable access to type-level numeric settings for i32 values.
Sourcepub fn numerics_f32(&self) -> &NumericTypeSettings
pub fn numerics_f32(&self) -> &NumericTypeSettings
Type-level numeric settings for f32 values rendered via reflection.
Sourcepub fn numerics_f32_mut(&mut self) -> &mut NumericTypeSettings
pub fn numerics_f32_mut(&mut self) -> &mut NumericTypeSettings
Mutable access to type-level numeric settings for f32 values.
Sourcepub fn numerics_u32(&self) -> &NumericTypeSettings
pub fn numerics_u32(&self) -> &NumericTypeSettings
Type-level numeric settings for u32 values rendered via reflection.
Sourcepub fn numerics_u32_mut(&mut self) -> &mut NumericTypeSettings
pub fn numerics_u32_mut(&mut self) -> &mut NumericTypeSettings
Mutable access to type-level numeric settings for u32 values.
Sourcepub fn numerics_f64(&self) -> &NumericTypeSettings
pub fn numerics_f64(&self) -> &NumericTypeSettings
Type-level numeric settings for f64 values rendered via reflection.
Sourcepub fn numerics_f64_mut(&mut self) -> &mut NumericTypeSettings
pub fn numerics_f64_mut(&mut self) -> &mut NumericTypeSettings
Mutable access to type-level numeric settings for f64 values.
Sourcepub fn member<T: 'static>(&self, field: &str) -> Option<&MemberSettings>
pub fn member<T: 'static>(&self, field: &str) -> Option<&MemberSettings>
Returns member-level settings for a given type and field name, if any.
This provides an ImSettings-style per-member override analogous to
push_member<&T::field>() in ImReflect.
Member keys follow the paths generated by the derive macro:
- Named-field structs:
"field_name" - Tuple structs:
"0","1", … - Enums with payloads:
"Variant.field_name"or"Variant.0","Variant.1", … - Tuple element overrides:
"tuple_field[0]","tuple_field[1]", …
Sourcepub fn for_member<T: 'static>(&mut self, field: &str) -> &mut MemberSettings
pub fn for_member<T: 'static>(&mut self, field: &str) -> &mut MemberSettings
Returns a mutable handle to member-level settings for a given type and field name, creating a default entry if it does not yet exist.
See ReflectSettings::member for the expected member-key formats.
Trait Implementations§
Source§impl Clone for ReflectSettings
impl Clone for ReflectSettings
Source§fn clone(&self) -> ReflectSettings
fn clone(&self) -> ReflectSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more