HumbleUI / JWM

Cross-platform window management and OS integration library for Java
Apache License 2.0
570 stars 46 forks source link

Getting raw window handle, NSWindow, or the like #270

Open mwcampbell opened 1 year ago

mwcampbell commented 1 year ago

To allow applications to do platform-specific things not directly supported by jwm, such as injecting an accessibility implementation (e.g. as supported by AccessKit), jwm should allow the user to get the platform-specific window handle (e.g. HWND or NSWindow pointer). I think it would make sense to do this via methods on the platform-specific Window subclasses, such as winGetHwnd and macGetNSWindow.

tonsky commented 1 year ago

Good idea! Care to do a PR?