natiny_window_get_alive
bool natiny_window_get_alive(NatinyWindow id);
Checks whether a window is still open.
Parameters
| Name | Type | Description |
|---|---|---|
id |
NatinyWindow |
Window handle from natiny_window_create |
Returns
| Type | Description |
|---|---|
bool |
true if the window is open, false otherwise |
Example
bool open = natiny_window_get_alive(win);