aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/types.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/types.h
parent27e43183d89aad98f6000ee187b05547776ae4c2 (diff)
downloadpugl-7162fa4f5656ad7dfe2d6fea02f9f33c5aa1b1cf.tar.gz
pugl-7162fa4f5656ad7dfe2d6fea02f9f33c5aa1b1cf.tar.bz2
pugl-7162fa4f5656ad7dfe2d6fea02f9f33c5aa1b1cf.zip
Add clipboard support
Diffstat (limited to 'pugl/detail/types.h')
-rw-r--r--pugl/detail/types.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/pugl/detail/types.h b/pugl/detail/types.h
index 7c11f42..4ac224b 100644
--- a/pugl/detail/types.h
+++ b/pugl/detail/types.h
@@ -45,6 +45,12 @@ typedef struct PuglInternalsImpl PuglInternals;
/** View hints. */
typedef int PuglHints[PUGL_NUM_WINDOW_HINTS];
+/** Blob of arbitrary data. */
+typedef struct {
+ void* data; //!< Dynamically allocated data
+ size_t len; //!< Length of data in bytes
+} PuglBlob;
+
/** Cross-platform view definition. */
struct PuglViewImpl {
PuglWorld* world;
@@ -53,6 +59,7 @@ struct PuglViewImpl {
PuglHandle handle;
PuglEventFunc eventFunc;
char* title;
+ PuglBlob clipboard;
PuglNativeWindow parent;
uintptr_t transientParent;
PuglHints hints;