diff options
author | David Robillard <d@drobilla.net> | 2022-05-22 17:48:16 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-11-11 09:49:51 -0500 |
commit | c59e88aa6fa60c6f7424da737fcaf0496a0bf3d6 (patch) | |
tree | ca5e6f85207f3f51bd3015a67c23d9dd0c917846 /bindings/cpp/include/pugl/pugl.hpp | |
parent | 32733abab8546b708cab59a4df09f92eb3214f73 (diff) | |
download | pugl-c59e88aa6fa60c6f7424da737fcaf0496a0bf3d6.tar.gz pugl-c59e88aa6fa60c6f7424da737fcaf0496a0bf3d6.tar.bz2 pugl-c59e88aa6fa60c6f7424da737fcaf0496a0bf3d6.zip |
Add API support for multiple clipboards
Adds a PuglClipboard enum, and uses it everywhere necessary to "structurally"
support multiple clipboards. Towards re-using this API to support DnD.
Diffstat (limited to 'bindings/cpp/include/pugl/pugl.hpp')
-rw-r--r-- | bindings/cpp/include/pugl/pugl.hpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/bindings/cpp/include/pugl/pugl.hpp b/bindings/cpp/include/pugl/pugl.hpp index b7f9fcf..18dd015 100644 --- a/bindings/cpp/include/pugl/pugl.hpp +++ b/bindings/cpp/include/pugl/pugl.hpp @@ -138,6 +138,9 @@ using ViewStyleFlag = PuglViewStyleFlag; /// @copydoc PuglViewStyleFlags using ViewStyleFlags = PuglViewStyleFlags; +/// @copydoc PuglClipboard +using Clipboard = PuglClipboard; + /// @copydoc PuglRealizeEvent using RealizeEvent = Event<PUGL_REALIZE, PuglRealizeEvent>; @@ -636,15 +639,16 @@ public: } /// @copydoc puglGetNumClipboardTypes - uint32_t numClipboardTypes() const + uint32_t numClipboardTypes(const Clipboard clipboard) const { - return puglGetNumClipboardTypes(cobj()); + return puglGetNumClipboardTypes(cobj(), clipboard); } /// @copydoc puglGetClipboardType - const char* clipboardType(const uint32_t typeIndex) const + const char* clipboardType(const Clipboard clipboard, + const uint32_t typeIndex) const { - return puglGetClipboardType(cobj(), typeIndex); + return puglGetClipboardType(cobj(), clipboard, typeIndex); } /** |