aboutsummaryrefslogtreecommitdiffstats
path: root/include/pugl/pugl.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-21 21:23:22 +0200
committerDavid Robillard <d@drobilla.net>2020-10-21 21:23:57 +0200
commit244a0a5b3fb1b03a4165e523f549cfecaca6187d (patch)
tree1e1a6efab26d4a0cc12f0fd99e69c661436f8327 /include/pugl/pugl.hpp
parent4535f74f63f21ca6c51ca8e2d0081d7add34dcb7 (diff)
downloadpugl-244a0a5b3fb1b03a4165e523f549cfecaca6187d.tar.gz
pugl-244a0a5b3fb1b03a4165e523f549cfecaca6187d.tar.bz2
pugl-244a0a5b3fb1b03a4165e523f549cfecaca6187d.zip
Add timer methods to C++ wrapper
Diffstat (limited to 'include/pugl/pugl.hpp')
-rw-r--r--include/pugl/pugl.hpp12
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