[−][src]Function imgui_ext::imgui_ext
pub fn imgui_ext<U: ImGuiExt>(ui: &Ui, ext: &mut U) -> U::Events
Render imgui UI and collect all the events
(If you use imgui_ext::prelude::*
, you might want to use the UiExt
trait to do the same thing).
ⓘThis example is not tested
#[derive(ImGuiExt)] struct Example { #[derive(checkbox(catch = "click"))] check_box: bool, } // initialize imgui and example... let events = imgui_ext(ui, &mut example); if events.click { println!("New value: {}", example.check_box); }