1. 2.3.
For a complete example, take a look at the imgui-rs' GitHub repository.
This crate provides an SDL2 based backend platform for imgui-rs.
A backend platform handles window/input device events and manages their
state.
There are three things you need to do to use this library correctly: