aboutsummaryrefslogtreecommitdiffstats
path: root/include/pugl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-01-04 11:02:32 -0500
committerDavid Robillard <d@drobilla.net>2023-01-04 13:28:46 -0500
commit2e8e543725e7e3b375321b93c0f5a2e684b60911 (patch)
tree5ed8d077186df5a01c881d764a872f9daaa3060a /include/pugl
parent0da2b2695face3321e0e39c50b47f6156dfed4e2 (diff)
downloadpugl-2e8e543725e7e3b375321b93c0f5a2e684b60911.tar.gz
pugl-2e8e543725e7e3b375321b93c0f5a2e684b60911.tar.bz2
pugl-2e8e543725e7e3b375321b93c0f5a2e684b60911.zip
Add puglUnrealize()
Diffstat (limited to 'include/pugl')
-rw-r--r--include/pugl/pugl.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h
index 5a60e80..fda8af2 100644
--- a/include/pugl/pugl.h
+++ b/include/pugl/pugl.h
@@ -1163,9 +1163,7 @@ 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
- can be accessed with puglGetNativeView(). There is currently no
- corresponding unrealize function, the system view will be destroyed along
- with the view when puglFreeView() is called.
+ can be accessed with puglGetNativeView().
The view should be fully configured using the above functions before this is
called. This function may only be called once per view.
@@ -1175,6 +1173,16 @@ PuglStatus
puglRealize(PuglView* view);
/**
+ Unrealize a view by destroying the corresponding system view or window.
+
+ This is the inverse of puglRealize(). After this call, the view no longer
+ corresponds to a real system view, and can be realized again later.
+*/
+PUGL_API
+PuglStatus
+puglUnrealize(PuglView* view);
+
+/**
Show the view.
If the view has not yet been realized, the first call to this function will