aboutsummaryrefslogtreecommitdiffstats
path: root/src/internal.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-01-02 17:04:04 -0500
committerDavid Robillard <d@drobilla.net>2023-01-02 17:04:04 -0500
commit2eb319fbef4c611387f421afab0f8ccefbc298cf (patch)
treed377a73acd4bc84c6321b044829a143be0aa0961 /src/internal.h
parente1eaf1583025ed182b9a7226f3eb17e08e81bd34 (diff)
downloadpugl-2eb319fbef4c611387f421afab0f8ccefbc298cf.tar.gz
pugl-2eb319fbef4c611387f421afab0f8ccefbc298cf.tar.bz2
pugl-2eb319fbef4c611387f421afab0f8ccefbc298cf.zip
Factor out common realize checks and initialization
Diffstat (limited to 'src/internal.h')
-rw-r--r--src/internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/internal.h b/src/internal.h
index e3e7924..066dc7e 100644
--- a/src/internal.h
+++ b/src/internal.h
@@ -28,6 +28,10 @@ puglSetString(char** dest, const char* string);
uint32_t
puglDecodeUTF8(const uint8_t* buf);
+/// Prepare a view to be realized by the platform implementation if possible
+PuglStatus
+puglPreRealize(PuglView* view);
+
/// Dispatch an event with a simple `type` to `view`
PuglStatus
puglDispatchSimpleEvent(PuglView* view, PuglEventType type);