diff options
author | David Robillard <d@drobilla.net> | 2020-10-21 21:23:22 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-21 21:23:57 +0200 |
commit | 244a0a5b3fb1b03a4165e523f549cfecaca6187d (patch) | |
tree | 1e1a6efab26d4a0cc12f0fd99e69c661436f8327 /include/pugl | |
parent | 4535f74f63f21ca6c51ca8e2d0081d7add34dcb7 (diff) | |
download | pugl-244a0a5b3fb1b03a4165e523f549cfecaca6187d.tar.gz pugl-244a0a5b3fb1b03a4165e523f549cfecaca6187d.tar.bz2 pugl-244a0a5b3fb1b03a4165e523f549cfecaca6187d.zip |
Add timer methods to C++ wrapper
Diffstat (limited to 'include/pugl')
-rw-r--r-- | include/pugl/pugl.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/pugl/pugl.hpp b/include/pugl/pugl.hpp index d9e725a..d62ecca 100644 --- a/include/pugl/pugl.hpp +++ b/include/pugl/pugl.hpp @@ -570,6 +570,18 @@ public: return static_cast<Status>(puglRequestAttention(cobj())); } + /// @copydoc puglStartTimer + Status startTimer(const uintptr_t id, const double timeout) + { + return static_cast<Status>(puglStartTimer(cobj(), id, timeout)); + } + + /// @copydoc puglStopTimer + Status stopTimer(const uintptr_t id) + { + return static_cast<Status>(puglStopTimer(cobj(), id)); + } + /** @} @name Event Handlers |