diff options
-rw-r--r-- | include/pugl/pugl.h | 10 | ||||
-rw-r--r-- | src/implementation.c | 6 |
2 files changed, 16 insertions, 0 deletions
diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h index 96826a1..9e65aad 100644 --- a/include/pugl/pugl.h +++ b/include/pugl/pugl.h @@ -1027,6 +1027,16 @@ PuglStatus puglSetTransientParent(PuglView* view, PuglNativeView parent); /** + Return the transient parent of the window. + + @return The native handle to the window this view is a transient child of, + or null. +*/ +PUGL_API +PuglNativeView +puglGetTransientParent(const PuglView* view); + +/** Realize a view by creating a corresponding system view or window. After this call, the (initially invisible) underlying system view exists and diff --git a/src/implementation.c b/src/implementation.c index 5ef3ce9..9a8ea03 100644 --- a/src/implementation.c +++ b/src/implementation.c @@ -234,6 +234,12 @@ puglSetParentWindow(PuglView* view, PuglNativeView parent) return PUGL_SUCCESS; } +PuglNativeView +puglGetTransientParent(const PuglView* const view) +{ + return view->transientParent; +} + PuglStatus puglSetBackend(PuglView* view, const PuglBackend* backend) { |