aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-22 16:53:02 +0200
committerDavid Robillard <d@drobilla.net>2019-09-03 08:32:16 +0200
commit93f4920cfc03d1a2a8c0df9c6d863cdf20c6ab32 (patch)
tree64ef7427a32b88183bae8720b07fc9258b769b3e /pugl/pugl.h
parent496f17c3804c79d304aa6095b92768593d1cc700 (diff)
downloadpugl-93f4920cfc03d1a2a8c0df9c6d863cdf20c6ab32.tar.gz
pugl-93f4920cfc03d1a2a8c0df9c6d863cdf20c6ab32.tar.bz2
pugl-93f4920cfc03d1a2a8c0df9c6d863cdf20c6ab32.zip
Add puglDispatchEvents()
Diffstat (limited to 'pugl/pugl.h')
-rw-r--r--pugl/pugl.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/pugl/pugl.h b/pugl/pugl.h
index 923d361..3639a96 100644
--- a/pugl/pugl.h
+++ b/pugl/pugl.h
@@ -472,6 +472,17 @@ PUGL_API PuglStatus
puglPollEvents(PuglWorld* world, double timeout);
/**
+ Dispatch any pending events to views.
+
+ This processes all pending events, dispatching them to the appropriate
+ views. View event handlers will be called in the scope of this call. This
+ function does not block, if no events are pending it will return
+ immediately.
+*/
+PUGL_API PuglStatus
+puglDispatchEvents(PuglWorld* world);
+
+/**
@}
@name Initialization
Configuration functions which must be called before creating a window.
@@ -756,8 +767,10 @@ puglWaitForEvent(PuglView* view);
This handles input events as well as rendering, so it should be called
regularly and rapidly enough to keep the UI responsive. This function does
not block if no events are pending.
+
+ @deprecated Use puglDispatchEvents().
*/
-PUGL_API PuglStatus
+PUGL_API PUGL_DEPRECATED_BY("puglDispatchEvents") PuglStatus
puglProcessEvents(PuglView* view);
/**