Adding support for the resize listener.
This time the code is using the Window from Kha and it is supposed to work with any Kha backend which implements the event.
The backends which don't support the event have an empty implementation for notifyOnResize(), this should be safe.
I've tried it on Kha-HTML5 with https://github.com/Kode/Kha/pull/1198 applied, and tried it as well with Kore-Metal, even if I cannot really say if there it is working (there are several other problems related with DPI).
Adding support for the resize listener. This time the code is using the Window from Kha and it is supposed to work with any Kha backend which implements the event. The backends which don't support the event have an empty implementation for notifyOnResize(), this should be safe. I've tried it on Kha-HTML5 with https://github.com/Kode/Kha/pull/1198 applied, and tried it as well with Kore-Metal, even if I cannot really say if there it is working (there are several other problems related with DPI).