diff options
author | David Robillard <d@drobilla.net> | 2022-05-22 20:24:05 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-11-11 09:47:23 -0500 |
commit | 32733abab8546b708cab59a4df09f92eb3214f73 (patch) | |
tree | b6bed60281f9dd3b71006b7cb7aa7ab056d6a70c /include/pugl/pugl.h | |
parent | 61980dbb9e6968f9d99df9cbd4bbe2f46f0c5050 (diff) | |
download | pugl-32733abab8546b708cab59a4df09f92eb3214f73.tar.gz pugl-32733abab8546b708cab59a4df09f92eb3214f73.tar.bz2 pugl-32733abab8546b708cab59a4df09f92eb3214f73.zip |
Add region parameter to puglAcceptOffer()
Diffstat (limited to 'include/pugl/pugl.h')
-rw-r--r-- | include/pugl/pugl.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h index 39c051e..329acba 100644 --- a/include/pugl/pugl.h +++ b/include/pugl/pugl.h @@ -652,6 +652,8 @@ typedef struct { PuglEventType type; ///< #PUGL_DATA_OFFER PuglEventFlags flags; ///< Bitwise OR of #PuglEventFlag values double time; ///< Time in seconds + double x; ///< View-relative X coordinate + double y; ///< View-relative Y coordinate } PuglDataOfferEvent; /** @@ -665,6 +667,8 @@ typedef struct { PuglEventType type; ///< #PUGL_DATA PuglEventFlags flags; ///< Bitwise OR of #PuglEventFlag values double time; ///< Time in seconds + double x; ///< View-relative X coordinate + double y; ///< View-relative Y coordinate uint32_t typeIndex; ///< Index of datatype } PuglDataEvent; @@ -1521,12 +1525,16 @@ puglGetClipboardType(const PuglView* view, uint32_t typeIndex); @param typeIndex The index of the type that the view will accept. This is the `typeIndex` argument to the call of puglGetClipboardType() that returned the accepted type. + + @param region The region of the view that will accept the data. This may be + used by the system to avoid sending redundant events. */ PUGL_API PuglStatus puglAcceptOffer(PuglView* view, const PuglDataOfferEvent* offer, - uint32_t typeIndex); + uint32_t typeIndex, + PuglRect region); /** Set the clipboard contents. |