[][src]Trait imgui_inspect::InspectRenderDefault

pub trait InspectRenderDefault<T> {
    fn render(
        data: &[&T],
        label: &'static str,
        ui: &Ui,
        args: &InspectArgsDefault
    );
fn render_mut(
        data: &mut [&mut T],
        label: &'static str,
        ui: &Ui,
        args: &InspectArgsDefault
    ) -> bool; }

Renders a value using the default widget

Required methods

fn render(data: &[&T], label: &'static str, ui: &Ui, args: &InspectArgsDefault)

Render the element in an immutable way (i.e. static text)

(Hopefully in the future this can be better. See https://github.com/ocornut/imgui/issues/211)

fn render_mut(
    data: &mut [&mut T],
    label: &'static str,
    ui: &Ui,
    args: &InspectArgsDefault
) -> bool

Render the element in a mutable way. Using this trait, the default widget to use is based on the type.

Loading content...

Implementations on Foreign Types

impl InspectRenderDefault<bool> for bool[src]

impl InspectRenderDefault<f32> for f32[src]

impl<T: InspectRenderDefault<T>> InspectRenderDefault<Option<T>> for Option<T>[src]

impl InspectRenderDefault<u32> for u32[src]

impl InspectRenderDefault<usize> for usize[src]

Loading content...

Implementors

Loading content...