[][src]Macro imgui_ext::Events

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

A macro that expands to the type that contains catched input events.

Basically this is equivalent to writing: <Example as ImGuiExt>::Events.

Example

This example is not tested
use imgui_ext::prelude::*;

#[derive(ImGuiExt)]
struct Example { /*...*/ }

let mut example = Example { /*...*/ };

// init imgui (ui)...

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

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