summaryrefslogtreecommitdiff
path: root/pugl/pugl_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/pugl_internal.h')
-rw-r--r--pugl/pugl_internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/pugl/pugl_internal.h b/pugl/pugl_internal.h
index 8a193d6..5b2b1c7 100644
--- a/pugl/pugl_internal.h
+++ b/pugl/pugl_internal.h
@@ -49,6 +49,7 @@ struct PuglViewImpl {
PuglNativeWindow parent;
PuglContextType ctx_type;
+ uintptr_t transient_parent;
int width;
int height;
@@ -111,6 +112,12 @@ puglInitResizable(PuglView* view, bool resizable)
}
void
+puglInitTransientFor(PuglView* view, uintptr_t parent)
+{
+ view->transient_parent = parent;
+}
+
+void
puglInitContextType(PuglView* view, PuglContextType type)
{
view->ctx_type = type;