Trait egui_probe::EguiProbe

source ·
pub trait EguiProbe {
    // Required method
    fn probe(&mut self, ui: &mut Ui, style: &Style) -> Response;

    // Provided methods
    fn has_inner(&mut self) -> bool { ... }
    fn iterate_inner(&mut self, f: &mut dyn FnMut(&str, &mut dyn EguiProbe)) { ... }
}
Expand description

Provides ability to show probbing UI to values.

Required Methods§

source

fn probe(&mut self, ui: &mut Ui, style: &Style) -> Response

Shows probbing UI to edit the value.

Provided Methods§

source

fn has_inner(&mut self) -> bool

Returns true if the value has sub-values for probbing. This will cause the value to be

source

fn iterate_inner(&mut self, f: &mut dyn FnMut(&str, &mut dyn EguiProbe))

Shows probbing UI to edit the inner values.

It should add pairs of widgets to the UI for each record. If record has sub-records it should flatten them.

Implementations on Foreign Types§

source§

impl EguiProbe for &str

source§

fn probe(&mut self, ui: &mut Ui, _: &Style) -> Response

source§

impl EguiProbe for bool

source§

fn probe(&mut self, ui: &mut Ui, style: &Style) -> Response

source§

impl EguiProbe for f32

source§

fn probe(&mut self, ui: &mut Ui, _: &Style) -> Response

source§

impl EguiProbe for f64

source§

fn probe(&mut self, ui: &mut Ui, _: &Style) -> Response

source§

impl EguiProbe for i8

source§

fn probe(&mut self, ui: &mut Ui, _: &Style) -> Response

source§

impl EguiProbe for i16

source§

fn probe(&mut self, ui: &mut Ui, _: &Style) -> Response

source§

impl EguiProbe for i32

source§

fn probe(&mut self, ui: &mut Ui, _: &Style) -> Response

source§

impl EguiProbe for i64

source§

fn probe(&mut self, ui: &mut Ui, _: &Style) -> Response

source§

impl EguiProbe for isize

source§

fn probe(&mut self, ui: &mut Ui, _: &Style) -> Response

source§

impl EguiProbe for u8

source§

fn probe(&mut self, ui: &mut Ui, _: &Style) -> Response

source§

impl EguiProbe for u16

source§

fn probe(&mut self, ui: &mut Ui, _: &Style) -> Response

source§

impl EguiProbe for u32

source§

fn probe(&mut self, ui: &mut Ui, _: &Style) -> Response

source§

impl EguiProbe for u64

source§

fn probe(&mut self, ui: &mut Ui, _: &Style) -> Response

source§

impl EguiProbe for usize

source§

fn probe(&mut self, ui: &mut Ui, _: &Style) -> Response

source§

impl EguiProbe for String

source§

fn probe(&mut self, ui: &mut Ui, _: &Style) -> Response

source§

impl EguiProbe for Color32

source§

fn probe(&mut self, ui: &mut Ui, _style: &Style) -> Response

source§

impl EguiProbe for Hsva

source§

fn probe(&mut self, ui: &mut Ui, _style: &Style) -> Response

source§

impl EguiProbe for Rgba

source§

fn probe(&mut self, ui: &mut Ui, _style: &Style) -> Response

source§

impl EguiProbe for Frame

source§

fn probe(&mut self, ui: &mut Ui, _style: &Style) -> Response

source§

fn has_inner(&mut self) -> bool

source§

fn iterate_inner(&mut self, f: &mut dyn FnMut(&str, &mut dyn EguiProbe))

source§

impl EguiProbe for Pos2

source§

fn probe(&mut self, ui: &mut Ui, _style: &Style) -> Response

source§

impl EguiProbe for Rect

source§

fn probe(&mut self, ui: &mut Ui, style: &Style) -> Response

source§

impl EguiProbe for Vec2

source§

fn probe(&mut self, ui: &mut Ui, _style: &Style) -> Response

source§

impl EguiProbe for Margin

source§

fn probe(&mut self, ui: &mut Ui, _style: &Style) -> Response

source§

fn has_inner(&mut self) -> bool

source§

fn iterate_inner(&mut self, f: &mut dyn FnMut(&str, &mut dyn EguiProbe))

source§

impl EguiProbe for Shadow

source§

fn probe(&mut self, ui: &mut Ui, _style: &Style) -> Response

source§

fn has_inner(&mut self) -> bool

source§

fn iterate_inner(&mut self, f: &mut dyn FnMut(&str, &mut dyn EguiProbe))

source§

impl EguiProbe for Rounding

source§

fn probe(&mut self, ui: &mut Ui, _style: &Style) -> Response

source§

fn has_inner(&mut self) -> bool

source§

fn iterate_inner(&mut self, f: &mut dyn FnMut(&str, &mut dyn EguiProbe))

source§

impl EguiProbe for Stroke

source§

fn probe(&mut self, ui: &mut Ui, _style: &Style) -> Response

source§

fn has_inner(&mut self) -> bool

source§

fn iterate_inner(&mut self, f: &mut dyn FnMut(&str, &mut dyn EguiProbe))

source§

impl<K, V, S> EguiProbe for HashMap<K, V, S>
where K: Display + FromStr + Eq + Hash, V: EguiProbe + Default, S: BuildHasher,

source§

fn probe(&mut self, ui: &mut Ui, style: &Style) -> Response

source§

fn has_inner(&mut self) -> bool

source§

fn iterate_inner(&mut self, f: &mut dyn FnMut(&str, &mut dyn EguiProbe))

source§

impl<P> EguiProbe for Box<P>
where P: EguiProbe,

source§

fn probe(&mut self, ui: &mut Ui, style: &Style) -> Response

source§

impl<T> EguiProbe for &mut [T]
where T: EguiProbe,

source§

fn probe(&mut self, ui: &mut Ui, _style: &Style) -> Response

source§

fn has_inner(&mut self) -> bool

source§

fn iterate_inner(&mut self, f: &mut dyn FnMut(&str, &mut dyn EguiProbe))

source§

impl<T> EguiProbe for Option<T>
where T: EguiProbe + Default,

source§

fn probe(&mut self, ui: &mut Ui, style: &Style) -> Response

source§

fn has_inner(&mut self) -> bool

source§

fn iterate_inner(&mut self, f: &mut dyn FnMut(&str, &mut dyn EguiProbe))

source§

impl<T> EguiProbe for Vec<T>
where T: EguiProbe + Default,

source§

fn probe(&mut self, ui: &mut Ui, style: &Style) -> Response

source§

fn has_inner(&mut self) -> bool

source§

fn iterate_inner(&mut self, f: &mut dyn FnMut(&str, &mut dyn EguiProbe))

source§

impl<T, const N: usize> EguiProbe for &mut [T; N]
where T: EguiProbe,

source§

fn probe(&mut self, ui: &mut Ui, _style: &Style) -> Response

source§

fn has_inner(&mut self) -> bool

source§

fn iterate_inner(&mut self, f: &mut dyn FnMut(&str, &mut dyn EguiProbe))

source§

impl<T, const N: usize> EguiProbe for [T; N]
where T: EguiProbe,

source§

fn probe(&mut self, ui: &mut Ui, _style: &Style) -> Response

source§

fn has_inner(&mut self) -> bool

source§

fn iterate_inner(&mut self, f: &mut dyn FnMut(&str, &mut dyn EguiProbe))

Implementors§

source§

impl<F> EguiProbe for EguiProbeFn<F>
where F: FnMut(&mut Ui, &Style) -> Response,