diff options
Diffstat (limited to 'include/pugl/detail/implementation.h')
-rw-r--r-- | include/pugl/detail/implementation.h | 27 |
1 files changed, 18 insertions, 9 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* |