core/window: handle graphics context loss

This commit is contained in:
outfoxxed 2025-07-15 15:36:28 -07:00
parent a2146f6394
commit 3dfb7d8827
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E
4 changed files with 33 additions and 2 deletions

View file

@ -239,6 +239,12 @@ signals:
/// This signal is emitted when the window is closed by the user, the display server,
/// or an error. It is not emitted when @@visible is set to false.
void closed();
/// This signal is emitted when resources a window depends on to display are lost,
/// or could not be acquired during window creation. The most common trigger for
/// this signal is a lack of VRAM when creating or resizing a window.
///
/// Following this signal, @@closed(s) will be sent.
void resourcesLost();
void windowConnected();
void visibleChanged();
void backingWindowVisibleChanged();