aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-08-04 19:51:49 +0200
committerDavid Robillard <d@drobilla.net>2019-09-03 08:34:39 +0200
commit075c5c5927e511dd03d9608a285ed58ef395120b (patch)
treeaadda860de0eecc07ef331cb94e9900068be200d /pugl/pugl.h
parente7ccbec8f5f0097ca54b8d7ea27e0815b069b57c (diff)
downloadpugl-075c5c5927e511dd03d9608a285ed58ef395120b.tar.gz
pugl-075c5c5927e511dd03d9608a285ed58ef395120b.tar.bz2
pugl-075c5c5927e511dd03d9608a285ed58ef395120b.zip
Replace puglInitTransientFor() with puglSetTransientFor()
Diffstat (limited to 'pugl/pugl.h')
-rw-r--r--pugl/pugl.h30
1 files changed, 21 insertions, 9 deletions
diff --git a/pugl/pugl.h b/pugl/pugl.h
index 26593f2..017338c 100644
--- a/pugl/pugl.h
+++ b/pugl/pugl.h
@@ -535,15 +535,6 @@ PUGL_API void
puglInitWindowParent(PuglView* view, PuglNativeWindow parent);
/**
- Set transient parent before creating a window.
-
- On X11, parent must be a Window.
- On OSX, parent must be an NSView*.
-*/
-PUGL_API void
-puglInitTransientFor(PuglView* view, uintptr_t parent);
-
-/**
Set the graphics backend to use.
This needs to be called once before creating the window to set the graphics
@@ -646,6 +637,15 @@ PUGL_API PuglStatus
puglSetAspectRatio(PuglView* view, int minX, int minY, int maxX, int maxY);
/**
+ Set the transient parent of the window.
+
+ This is used for things like dialogs, to have them associated with the
+ window they are a transient child of properly.
+*/
+PUGL_API void
+puglSetTransientFor(PuglView* view, PuglNativeWindow parent);
+
+/**
@name Context
Functions for accessing the drawing context.
@{
@@ -842,6 +842,18 @@ puglInitWindowAspectRatio(PuglView* view,
}
/**
+ Set transient parent before creating a window.
+
+ On X11, parent must be a Window.
+ On OSX, parent must be an NSView*.
+*/
+static inline PUGL_DEPRECATED_BY("puglSetTransientFor") void
+puglInitTransientFor(PuglView* view, uintptr_t parent)
+{
+ puglSetTransientFor(view, (PuglNativeWindow)parent);
+}
+
+/**
Enable or disable resizing before creating a window.
@deprecated Use puglInitWindowHint() with @ref PUGL_RESIZABLE.