aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/pugl/detail/implementation.h27
-rw-r--r--include/pugl/detail/mac.m3
-rw-r--r--include/pugl/detail/mac_cairo.m3
-rw-r--r--include/pugl/detail/mac_gl.m3
-rw-r--r--include/pugl/detail/x11_gl.c3
5 files changed, 26 insertions, 13 deletions
diff --git a/include/pugl/detail/implementation.h b/include/pugl/detail/implementation.h
index ff97fef..c40a2bb 100644
--- a/include/pugl/detail/implementation.h
+++ b/include/pugl/detail/implementation.h
@@ -31,35 +31,44 @@
PUGL_BEGIN_DECLS
/// Set `blob` to `data` with length `len`, reallocating if necessary
-void puglSetBlob(PuglBlob* dest, const void* data, size_t len);
+void
+puglSetBlob(PuglBlob* dest, const void* data, size_t len);
/// Reallocate and set `*dest` to `string`
-void puglSetString(char** dest, const char* string);
+void
+puglSetString(char** dest, const char* string);
/// Allocate and initialise world internals (implemented once per platform)
PuglWorldInternals*
puglInitWorldInternals(PuglWorldType type, PuglWorldFlags flags);
/// Destroy and free world internals (implemented once per platform)
-void puglFreeWorldInternals(PuglWorld* world);
+void
+puglFreeWorldInternals(PuglWorld* world);
/// Allocate and initialise view internals (implemented once per platform)
-PuglInternals* puglInitViewInternals(void);
+PuglInternals*
+puglInitViewInternals(void);
/// Destroy and free view internals (implemented once per platform)
-void puglFreeViewInternals(PuglView* view);
+void
+puglFreeViewInternals(PuglView* view);
/// Return the Unicode code point for `buf` or the replacement character
-uint32_t puglDecodeUTF8(const uint8_t* buf);
+uint32_t
+puglDecodeUTF8(const uint8_t* buf);
/// Dispatch an event with a simple `type` to `view`
-void puglDispatchSimpleEvent(PuglView* view, PuglEventType type);
+void
+puglDispatchSimpleEvent(PuglView* view, PuglEventType type);
/// Dispatch `event` to `view` while already in the graphics context
-void puglDispatchEventInContext(PuglView* view, const PuglEvent* event);
+void
+puglDispatchEventInContext(PuglView* view, const PuglEvent* event);
/// Dispatch `event` to `view`, entering graphics context if necessary
-void puglDispatchEvent(PuglView* view, const PuglEvent* event);
+void
+puglDispatchEvent(PuglView* view, const PuglEvent* event);
/// Set internal (stored in view) clipboard contents
const void*
diff --git a/include/pugl/detail/mac.m b/include/pugl/detail/mac.m
index e12540b..efcaca0 100644
--- a/include/pugl/detail/mac.m
+++ b/include/pugl/detail/mac.m
@@ -1122,7 +1122,8 @@ puglStopTimer(PuglView* view, uintptr_t id)
return PUGL_UNKNOWN_ERROR;
}
-PuglStatus puglSendEvent(PuglView* view, const PuglEvent* event)
+PuglStatus
+puglSendEvent(PuglView* view, const PuglEvent* event)
{
if (event->type == PUGL_CLIENT) {
PuglWrapperView* wrapper = view->impl->wrapperView;
diff --git a/include/pugl/detail/mac_cairo.m b/include/pugl/detail/mac_cairo.m
index 1e8f98d..a8c05ec 100644
--- a/include/pugl/detail/mac_cairo.m
+++ b/include/pugl/detail/mac_cairo.m
@@ -151,7 +151,8 @@ puglMacCairoGetContext(PuglView* view)
return ((PuglCairoView*)view->impl->drawView)->cr;
}
-const PuglBackend* puglCairoBackend(void)
+const PuglBackend*
+puglCairoBackend(void)
{
static const PuglBackend backend = {puglStubConfigure,
puglMacCairoCreate,
diff --git a/include/pugl/detail/mac_gl.m b/include/pugl/detail/mac_gl.m
index 44e5667..bca790d 100644
--- a/include/pugl/detail/mac_gl.m
+++ b/include/pugl/detail/mac_gl.m
@@ -188,7 +188,8 @@ puglGetProcAddress(const char *name)
return func;
}
-const PuglBackend* puglGlBackend(void)
+const PuglBackend*
+puglGlBackend(void)
{
static const PuglBackend backend = {puglStubConfigure,
puglMacGlCreate,
diff --git a/include/pugl/detail/x11_gl.c b/include/pugl/detail/x11_gl.c
index b756355..d89a350 100644
--- a/include/pugl/detail/x11_gl.c
+++ b/include/pugl/detail/x11_gl.c
@@ -225,7 +225,8 @@ puglGetProcAddress(const char* name)
return glXGetProcAddress((const uint8_t*)name);
}
-const PuglBackend* puglGlBackend(void)
+const PuglBackend*
+puglGlBackend(void)
{
static const PuglBackend backend = {puglX11GlConfigure,
puglX11GlCreate,