diff options
author | David Robillard <d@drobilla.net> | 2019-11-03 15:06:28 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-11-03 21:03:18 +0100 |
commit | d53ce364a7c7c0d9b0d1fa87077df2dff69688e9 (patch) | |
tree | 79df347a766952a7888765d26a9bc867c38d7c84 /pugl/pugl.h | |
parent | b848d137909fa71e5ede2d46fa2fcb5f1509ecba (diff) | |
download | pugl-d53ce364a7c7c0d9b0d1fa87077df2dff69688e9.tar.gz pugl-d53ce364a7c7c0d9b0d1fa87077df2dff69688e9.tar.bz2 pugl-d53ce364a7c7c0d9b0d1fa87077df2dff69688e9.zip |
Add puglGetNativeWorld()
Diffstat (limited to 'pugl/pugl.h')
-rw-r--r-- | pugl/pugl.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pugl/pugl.h b/pugl/pugl.h index 70d6f42..1344410 100644 --- a/pugl/pugl.h +++ b/pugl/pugl.h @@ -442,6 +442,16 @@ PUGL_API void puglFreeWorld(PuglWorld* world); /** + Return a pointer to the native handle of the world. + + On X11, this returns a pointer to the Display. + On OSX, this returns NULL. + On Windows, this returns a handle to the calling process module. +*/ +PUGL_API void* +puglGetNativeWorld(PuglWorld* world); + +/** Set the class name of the application. This is a stable identifier for the application, used as the window |