56 ImGui_SDL(
float width_points,
float height_points,
float pixels_per_point);
61 void set_visible(
bool v) { _visible = v; }
65 void set_interactive(
bool v) { _interactive = v; }
75 bool mod_shift()
const;
77 float width_points()
const {
return _width_points; }
78 float height_points()
const {
return _height_points; }
79 float width_pixels()
const {
return _pixels_per_point * _width_points; }
80 float height_pixels()
const {
return _pixels_per_point * _height_points; }
81 float pixels_per_point()
const {
return _pixels_per_point; }
85 bool _interactive =
true;
88 float _pixels_per_point;
bool visible() const
When invisible, you can still call ImGui functions, but you cannot see or interact any widgets...
Definition: imgui_sdl.hpp:60
bool interactive() const
When not interactive, any ImGui widgets are passive (you can't click them).
Definition: imgui_sdl.hpp:64
bool mod_command() const
Key modifiers:
void on_event(const SDL_Event &e)
You must call this yourself!
~ImGui_SDL()
Will call ImGui::Shutdown.
Definition: imgui_sdl.hpp:53
Definition: coroutine.hpp:18