clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit ccfb56b5132c517cc0c18a4b7a00ddaa63eec363
parent f3e6c9521492384d9348de9f33399dd4cdd694a0
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Fri,  4 Mar 2022 17:43:54 +0100

Nicer like this

Diffstat:
Minclude/clap/ext/gui.h | 16+++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/include/clap/ext/gui.h b/include/clap/ext/gui.h @@ -61,16 +61,18 @@ static const CLAP_CONSTEXPR char CLAP_WINDOW_API_WAYLAND[] = "wayland"; extern "C" { #endif +typedef void *clap_hwnd; +typedef void *clap_nsview; +typedef unsigned long clap_xwnd; + // Represent a window reference. -// api is one of CLAP_GUI_API_XXX -// specific has to be casted to the corresponding clap_gui_window_xxx. typedef struct clap_window { - const char *api; + const char *api; // one of CLAP_WINDOW_API_XXX union { - void *cocoa_nsview; - unsigned long x11_window; - void *win32_window; - void *ptr; // for anything defined outside of clap + clap_nsview cocoa; + clap_xwnd x11; + clap_hwnd win32; + void *ptr; // for anything defined outside of clap }; } clap_window_t;