Currently windows are destroyed and thus closed. It is possible to call wait_for_close on a window to wait for the user to close the window before continuing.
The idea is to simplify the common usage which I expect will be using wait_for_close by:
adding a close function to explicitly close the window;
doing the wait for close in the window destructor.
Allowing to explicitly hide and show the window.
Adding query functions for the state (closed, hidden, displayed).
I wonder if allowing to detach the window (with two modes: automatic wait_for_close and automatic close when emain terminates) warrants the added complexity. It's probably too early to decide.
Currently windows are destroyed and thus closed. It is possible to call wait_for_close on a window to wait for the user to close the window before continuing.
The idea is to simplify the common usage which I expect will be using wait_for_close by:
Allowing to explicitly hide and show the window.
Adding query functions for the state (closed, hidden, displayed).
I wonder if allowing to detach the window (with two modes: automatic wait_for_close and automatic close when emain terminates) warrants the added complexity. It's probably too early to decide.