]>
Commit | Line | Data |
---|---|---|
c801d85f | 1 | ///////////////////////////////////////////////////////////////////////////// |
c2ca375c VZ |
2 | // Name: wx/gtk1/private/timer.h |
3 | // Purpose: wxTimerImpl for wxGTK | |
c801d85f | 4 | // Author: Robert Roebling |
58614078 | 5 | // Copyright: (c) 1998 Robert Roebling |
65571936 | 6 | // Licence: wxWindows licence |
c801d85f KB |
7 | ///////////////////////////////////////////////////////////////////////////// |
8 | ||
c2ca375c VZ |
9 | #ifndef _WX_GTK1_PRIVATE_TIMER_H_ |
10 | #define _WX_GTK1_PRIVATE_TIMER_H_ | |
11 | ||
12 | #include "wx/private/timer.h" | |
c801d85f | 13 | |
c801d85f KB |
14 | //----------------------------------------------------------------------------- |
15 | // wxTimer | |
16 | //----------------------------------------------------------------------------- | |
17 | ||
c2ca375c | 18 | class WXDLLIMPEXP_CORE wxGTKTimerImpl : public wxTimerImpl |
c801d85f | 19 | { |
03f38c58 | 20 | public: |
c2ca375c | 21 | wxGTKTimerImpl(wxTimer *timer) : wxTimerImpl(timer) { m_tag = -1; } |
03f38c58 | 22 | |
c2ca375c | 23 | virtual bool Start(int millisecs = -1, bool oneShot = FALSE); |
03f38c58 VZ |
24 | virtual void Stop(); |
25 | ||
0470b1e6 | 26 | virtual bool IsRunning() const { return m_tag != -1; } |
03f38c58 | 27 | |
03f38c58 | 28 | private: |
c2ca375c VZ |
29 | // registered timeout id, -1 if the timer isn't running |
30 | int m_tag; | |
c801d85f KB |
31 | }; |
32 | ||
c2ca375c | 33 | #endif // _WX_GTK1_PRIVATE_TIMER_H_ |