implement onMouseDoubleClick event in UIWidget

This commit is contained in:
Eduardo Bart
2012-02-03 03:25:01 -02:00
parent 4563471790
commit 1340699b01
4 changed files with 22 additions and 0 deletions

View File

@@ -27,6 +27,7 @@
void Timer::restart()
{
m_startTicks = g_clock.ticks();
m_stopped = false;
}
ticks_t Timer::ticksElapsed()

View File

@@ -31,13 +31,17 @@ public:
Timer() { restart(); }
void restart();
void stop() { m_stopped = true; }
ticks_t startTicks() { return m_startTicks; }
ticks_t ticksElapsed();
double timeElapsed() { return ticksElapsed()/1000.0; }
bool running() { return !m_stopped; }
private:
ticks_t m_startTicks;
Boolean<false> m_stopped;
};
#endif