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 /bindings/cpp | |
parent | 61980dbb9e6968f9d99df9cbd4bbe2f46f0c5050 (diff) | |
download | pugl-32733abab8546b708cab59a4df09f92eb3214f73.tar.gz pugl-32733abab8546b708cab59a4df09f92eb3214f73.tar.bz2 pugl-32733abab8546b708cab59a4df09f92eb3214f73.zip |
Add region parameter to puglAcceptOffer()
Diffstat (limited to 'bindings/cpp')
-rw-r--r-- | bindings/cpp/include/pugl/pugl.hpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bindings/cpp/include/pugl/pugl.hpp b/bindings/cpp/include/pugl/pugl.hpp index e374efc..b7f9fcf 100644 --- a/bindings/cpp/include/pugl/pugl.hpp +++ b/bindings/cpp/include/pugl/pugl.hpp @@ -660,10 +660,16 @@ public: @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. */ - Status acceptOffer(const DataOfferEvent& offer, const uint32_t typeIndex) + Status acceptOffer(const DataOfferEvent& offer, + const uint32_t typeIndex, + const Rect& region) { - return static_cast<Status>(puglAcceptOffer(cobj(), &offer, typeIndex)); + return static_cast<Status>( + puglAcceptOffer(cobj(), &offer, typeIndex, region)); } /// @copydoc puglSetViewStyle |