From 7162fa4f5656ad7dfe2d6fea02f9f33c5aa1b1cf Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 17 Aug 2019 20:50:20 +0200 Subject: Add clipboard support --- pugl/detail/types.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pugl/detail/types.h') 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; -- cgit v1.2.1