[−][src]Macro imgui_ext::Events
A macro that expands to the type that contains the UI events.
Input events include:
- Button presses
- Input updates
Because this macro uses concat_idents!
, it is a nightly-only feature.
ⓘThis example is not tested
#[derive(ImGuiExt)] struct Example { // ... } let mut my_ui = Example { /*..*/ }; let ui: &Ui = ...; handle_events(imgui_ext!(ui, &mut my_ui)); fn handle_events(events: Event!(Example)) { // ... }