ASPiK SDK
x11timer.h
1 // This file is part of VSTGUI. It is subject to the license terms
2 // in the LICENSE file found in the top-level directory of this
3 // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
4 
5 #pragma once
6 
7 #include "../iplatformtimer.h"
8 #include "x11frame.h"
9 
10 //------------------------------------------------------------------------
11 namespace VSTGUI {
12 namespace X11 {
13 
14 //------------------------------------------------------------------------
15 class Timer : public IPlatformTimer, public ITimerHandler
16 {
17 public:
18  Timer (IPlatformTimerCallback* callback);
19  ~Timer () noexcept;
20 
21  bool start (uint32_t periodMs) override;
22  bool stop () override;
23 
24  void onTimer () override;
25 
26 private:
27  IPlatformTimerCallback* callback = nullptr;
28 };
29 
30 //------------------------------------------------------------------------
31 } // X11
32 } // VSTGUI
Definition: iplatformtimer.h:20
Definition: iplatformtimer.h:13
Definition: x11timer.h:15
Definition: x11frame.h:23
Definition: customcontrols.cpp:8