From 3d27fe91f5c25405df0d332f17a7c6fc97d7da27 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 1 Nov 2014 00:48:15 +0100 Subject: Add support for transient child windows. No Windows support currently. Conflicts: pugl/pugl.h pugl/pugl_osx.m pugl/pugl_win.cpp pugl/pugl_x11.c --- pugl/pugl.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pugl/pugl.h') diff --git a/pugl/pugl.h b/pugl/pugl.h index 54b4c78..53115ff 100644 --- a/pugl/pugl.h +++ b/pugl/pugl.h @@ -176,6 +176,15 @@ puglInitWindowMinSize(PuglView* view, int width, int height); PUGL_API void puglInitResizable(PuglView* view, bool resizable); +/** + Set transient parent before creating a window. + + On X11, parent_id must be a Window. + On OSX, parent_id must be an NSView*. +*/ +PUGL_API void +puglInitTransientFor(PuglView* view, uintptr_t parent); + /** Set the context type before creating a window. */ -- cgit v1.2.3