nhamblenne / eighties

A simple graphic library for C++
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Change what's happening when leaving the emain function #1

Closed nhamblenne closed 3 years ago

nhamblenne commented 3 years ago

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.