Commit 8ca8445
committed
Refactor EventEmitter to use typed events
EventEmitter is now a template class requiring a base event type, enforcing compile-time type safety for emitted events and listeners. Updated DisplayManager, KeyboardMonitor, Menu, MenuItem, TrayIcon, and WindowManager to inherit from EventEmitter with their respective event types. Refactored event classes (MenuEvent, TrayIconEvent, etc.) to provide a common base for related events. Removed the old untyped event_emitter.cpp implementation and updated platform-specific code to use typed events.1 parent 2d08dd5 commit 8ca8445
14 files changed
Lines changed: 277 additions & 231 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
This file was deleted.
0 commit comments