mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 21:48:36 +00:00
fixed up for tests
This commit is contained in:
parent
4a2d847b3a
commit
dc3cc8a461
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user