destroy_display¶
MiniLibX: mlx_destroy_display
Closes every window of this connection and removes its loop hook.
Parameters¶
| Name | Type | Description |
|---|---|---|
mlx |
Mlx |
The connection to shut down |
Returns¶
None.
Notes¶
- Every open window closes immediately, as if you'd called
destroy_windowon each one. No DestroyNotify hooks are called. - The loop hook is removed.
- Called while
loopis running, the loop returns at the end of the current frame, since no windows are left. - In MiniLibX the connection can't be used afterwards, and you
freeit yourself. In malibx it stays usable: you can open new windows on it. Python frees it when it's no longer referenced. - You don't need it for a clean exit. Python closes everything when the program ends.