imnodes-rs

Tests

These are bindings for imnodes using cimnodes for imgui-rs.

They are inspsired by implot-rs.

example image

docs

cargo doc --no-deps --open

TODO/ Ideas

nice to have:

Example (see imnodes-wgpu-examples/src/hello_world.rs)

```rust use imgui::{im_str, Ui}; use imnodes::{editor, PinShape};

pub fn show(ui: &Ui, context: &mut imnodes::EditorContext) { let mut idgen = context.newidentifier_generator();

editor(context, |mut editor| {
    editor.add_node(id_gen.next_node(), |mut node| {
        node.add_titlebar(|| {
            ui.text(im_str!("simple node :)"));
        });

        node.add_input(id_gen.next_input_pin(), PinShape::Circle, || {
            ui.text(im_str!("input"));
        });

        node.add_output(id_gen.next_output_pin(), PinShape::QuadFilled, || {
            ui.text(im_str!("output"));
        });
    });
});

}

```