aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/implementation.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-08-17 20:50:20 +0200
committerDavid Robillard <d@drobilla.net>2019-09-07 09:51:48 +0200
commit7162fa4f5656ad7dfe2d6fea02f9f33c5aa1b1cf (patch)
tree0f885354b2d75875003401379d5aaf9aadda226f /pugl/detail/implementation.h
parent27e43183d89aad98f6000ee187b05547776ae4c2 (diff)
downloadpugl-7162fa4f5656ad7dfe2d6fea02f9f33c5aa1b1cf.tar.gz
pugl-7162fa4f5656ad7dfe2d6fea02f9f33c5aa1b1cf.tar.bz2
pugl-7162fa4f5656ad7dfe2d6fea02f9f33c5aa1b1cf.zip
Add clipboard support
Diffstat (limited to 'pugl/detail/implementation.h')
-rw-r--r--pugl/detail/implementation.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/pugl/detail/implementation.h b/pugl/detail/implementation.h
index 7f50ecf..874e7e1 100644
--- a/pugl/detail/implementation.h
+++ b/pugl/detail/implementation.h
@@ -24,12 +24,16 @@
#include "pugl/detail/types.h"
#include "pugl/pugl.h"
+#include <stddef.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
+/** Set `blob` to `data` with length `len`, reallocating if necessary. */
+void puglSetBlob(PuglBlob* blob, const void* data, size_t len);
+
/** Reallocate and set `*dest` to `string`. */
void puglSetString(char** dest, const char* string);
@@ -51,6 +55,17 @@ uint32_t puglDecodeUTF8(const uint8_t* buf);
/** Dispatch `event` to `view`, optimising configure/expose if possible. */
void puglDispatchEvent(PuglView* view, const PuglEvent* event);
+/** Set internal (stored in view) clipboard contents. */
+const void*
+puglGetInternalClipboard(const PuglView* view, const char** type, size_t* len);
+
+/** Set internal (stored in view) clipboard contents. */
+PuglStatus
+puglSetInternalClipboard(PuglView* view,
+ const char* type,
+ const void* data,
+ size_t len);
+
#ifdef __cplusplus
} /* extern "C" */
#endif