I was wondering if this code (helpers.cpp) is required:
// Check if the mouse cursor is over this gui window.
const auto windowBounds = ofRectangle(settings.windowPos, settings.windowSize.x, settings.windowSize.y);
settings.mouseOverGui |= windowBounds.inside(ofGetMouseX(), ofGetMouseY());
Side note: it would be very helpful to have some documentation (even a paragraph), especially about ImGui vs ofxImGui, what's the benefit of BeginWindow vs Begin, why is ofxImGui needed or what does it make simpler. It's not so obvious when looking at the source code of both projects. Still, I'm happy that both exist :dancer:
I was wondering if this code (helpers.cpp) is required:
when we can do:
There's also
ImGui::IsMouseHoveringWindow()
.Side note: it would be very helpful to have some documentation (even a paragraph), especially about ImGui vs ofxImGui, what's the benefit of BeginWindow vs Begin, why is ofxImGui needed or what does it make simpler. It's not so obvious when looking at the source code of both projects. Still, I'm happy that both exist :dancer: