Skip to content

Commit e50c760

Browse files
committed
Add WindowDestroyed event
1 parent fe56e42 commit e50c760

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Writerside/topics/02.the-basics/window/window-events.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ that it reacts exclusively to the turning on or off of window controls
8686
(minimize, maximize, restore, close buttons and title bar) visibility.
8787
</note>
8888

89-
### Decoration Changed Event
89+
## Decoration Changed Event
9090
<secondary-label ref="event"/>
9191

9292
An `Boson\Window\Event\WindowDecorationChanged` event fired after
@@ -103,6 +103,17 @@ class WindowDecorationChanged<Window>
103103
- `$decoration` - Decorations type of the window.
104104
- `$previous` - Previous decorations type of the window.
105105

106+
## Destroyed Event
107+
<secondary-label ref="event"/>
108+
109+
An `Boson\Window\Event\WindowDestroyed` event fired after window has
110+
been destroyed (all references to it in the GC have been removed).
111+
112+
```php
113+
class WindowDestroyed<Window>
114+
```
115+
116+
106117
## Focused Event
107118
<secondary-label ref="event"/>
108119

0 commit comments

Comments
 (0)