]>
Commit | Line | Data |
---|---|---|
c801d85f | 1 | ///////////////////////////////////////////////////////////////////////////// |
c2ca375c VZ |
2 | // Name: wx/private/gtk/timer.h |
3 | // Purpose: wxTimerImpl for wxGTK | |
c801d85f | 4 | // Author: Robert Roebling |
58614078 RR |
5 | // Id: $Id$ |
6 | // Copyright: (c) 1998 Robert Roebling | |
65571936 | 7 | // Licence: wxWindows licence |
c801d85f KB |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
c2ca375c VZ |
10 | #ifndef _WX_GTK_PRIVATE_TIMER_H_ |
11 | #define _WX_GTK_PRIVATE_TIMER_H_ | |
12 | ||
13 | #include "wx/private/timer.h" | |
c801d85f | 14 | |
c801d85f KB |
15 | //----------------------------------------------------------------------------- |
16 | // wxTimer | |
17 | //----------------------------------------------------------------------------- | |
18 | ||
c2ca375c | 19 | class WXDLLIMPEXP_CORE wxGTKTimerImpl : public wxTimerImpl |
c801d85f | 20 | { |
03f38c58 | 21 | public: |
c2ca375c | 22 | wxGTKTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { m_sourceId = 0; }; |
03f38c58 | 23 | |
c2ca375c | 24 | virtual bool Start( int millisecs = -1, bool oneShot = false ); |
03f38c58 | 25 | virtual void Stop(); |
855f31eb | 26 | virtual bool IsRunning() const { return m_sourceId != 0; } |
03f38c58 | 27 | |
c2ca375c VZ |
28 | protected: |
29 | int m_sourceId; | |
c801d85f KB |
30 | }; |
31 | ||
c2ca375c | 32 | #endif // _WX_GTK_PRIVATE_TIMER_H_ |