[][src]Macro imgui_ext::Events

macro_rules! Events {
    ( $ui:ident ) => { ... };
}

A macro that expands to the type that contains the UI events.

Notes

  • Currently unimplemented. See #.
  • Because this macro should use concat_idents!, it's only available in Rust nightly.

Example

This example is not tested
#[derive(ImGuiExt)]
struct Example {
    // ...
}

fn handle_events(events: Event!(Example)) {
    // ...
}

let mut my_ui = Example { /*..*/ };
let ui: &Ui = ...;

handle_events(ui.imgui_ext(&mut my_ui));