haxeui / haxeui-kha

The Kha backend of the HaxeUI framework -
http://haxeui.org
MIT License
45 stars 16 forks source link

Add support for the Window's resize event #45

Closed maxfish closed 4 years ago

maxfish commented 4 years ago

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).

ianharrigan commented 4 years ago

I completely forgot about this! Many apologies, merged now

Ian