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
VSTGUI::IPlatformTimer
Definition:
iplatformtimer.h:20
VSTGUI::IPlatformTimerCallback
Definition:
iplatformtimer.h:13
VSTGUI::X11::Timer
Definition:
x11timer.h:15
VSTGUI::X11::ITimerHandler
Definition:
x11frame.h:23
VSTGUI
Definition:
customcontrols.cpp:8
vstgui4
vstgui
lib
platform
linux
x11timer.h
Generated by
1.8.14