From f88687a95d73a2ac2590b1b9bc59506f7d6b498f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 21 Oct 2020 15:24:45 +0200 Subject: Cleanup: Always put return types on their own line --- include/pugl/detail/implementation.h | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'include/pugl/detail/implementation.h') 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* -- cgit v1.2.1