frang75 / nappgui_src

SDK for building cross-platform desktop apps in ANSI-C
https://www.nappgui.com
MIT License
506 stars 50 forks source link

Get native handle #58

Closed correaelias closed 10 months ago

correaelias commented 1 year ago

Great library, congratulations! How about adding a function to return the operating system's native identifier (at least for windows, views and panels)?

Something like: void *get_native_handle(...);

This is useful when using an external graphics library such as BGFX or integrating a game library such as SDL!

frang75 commented 1 year ago

Hi @correaelias, thanks for the feedback. You can use the (undocumented) function view_native(View *view);

It will return a HWND, GtkWidget or NSView handlers.