diff options
author | David Robillard <d@drobilla.net> | 2021-12-16 20:11:47 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-12-16 20:11:47 -0500 |
commit | 7570f3d40a258511fe25f4c239d2f746c97340e0 (patch) | |
tree | 424cbf50d1a85086fe9bc56422f0148f38ab844a /include/pugl | |
parent | 461e2316ad5315777e494d3a57fd28ac1f73cda5 (diff) | |
download | pugl-7570f3d40a258511fe25f4c239d2f746c97340e0.tar.gz pugl-7570f3d40a258511fe25f4c239d2f746c97340e0.tar.bz2 pugl-7570f3d40a258511fe25f4c239d2f746c97340e0.zip |
Rename puglSetTransientFor to puglSetTransientParent
Diffstat (limited to 'include/pugl')
-rw-r--r-- | include/pugl/pugl.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h index 59b8847..96826a1 100644 --- a/include/pugl/pugl.h +++ b/include/pugl/pugl.h @@ -1024,7 +1024,7 @@ puglSetParentWindow(PuglView* view, PuglNativeView parent); */ PUGL_API PuglStatus -puglSetTransientFor(PuglView* view, PuglNativeView parent); +puglSetTransientParent(PuglView* view, PuglNativeView parent); /** Realize a view by creating a corresponding system view or window. @@ -1456,11 +1456,23 @@ puglInitWindowAspectRatio(PuglView* view, On X11, parent must be a Window. On OSX, parent must be an NSView*. */ -static inline PUGL_DEPRECATED_BY("puglSetTransientFor") +static inline PUGL_DEPRECATED_BY("puglSetTransientParent") void puglInitTransientFor(PuglView* view, uintptr_t parent) { - puglSetTransientFor(view, (PuglNativeWindow)parent); + puglSetTransientParent(view, (PuglNativeWindow)parent); +} + +/** + Set transient parent before creating a window. + + @deprecated Use puglSetTransientParent(). +*/ +static inline PUGL_DEPRECATED_BY("puglSetTransientParent") +PuglStatus +puglSetTransientFor(PuglView* view, uintptr_t parent) +{ + return puglSetTransientParent(view, (PuglNativeWindow)parent); } /** |