From dc3cc8a46195f9971a234e68ef9decf819b8bb87 Mon Sep 17 00:00:00 2001 From: Jack Mac Date: Wed, 6 Oct 2021 10:55:33 -0400 Subject: [PATCH] fixed up for tests --- imgui-sdl2-support/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/imgui-sdl2-support/src/lib.rs b/imgui-sdl2-support/src/lib.rs index a2e56ae..2c899bb 100644 --- a/imgui-sdl2-support/src/lib.rs +++ b/imgui-sdl2-support/src/lib.rs @@ -81,6 +81,11 @@ fn to_sdl_cursor(cursor: MouseCursor) -> SystemCursor { /// /// # Example /// ```rust,no_run +/// # let mut event_pump: sdl2::EventPump = unimplemented!(); +/// # let window: sdl2::video::Window = unimplemented!(); +/// # let mut imgui = imgui::Context::create(); +/// # let mut platform = SdlPlatform::init(&mut imgui); +/// use imgui_sdl2_support::{SdlPlatform, filter_event}; /// // Assuming there are multiple windows, we only want to provide the events /// // of the window where we are rendering to imgui-rs /// for event in event_pump.poll_iter().filter(|event| filter_event(&window, event)) {