]>
Commit | Line | Data |
---|---|---|
c801d85f | 1 | ///////////////////////////////////////////////////////////////////////////// |
80fdcdb9 | 2 | // Name: wx/gtk/private/timer.h |
c2ca375c | 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_GTK_PRIVATE_TIMER_H_ |
10 | #define _WX_GTK_PRIVATE_TIMER_H_ | |
11 | ||
3c029873 VZ |
12 | #if wxUSE_TIMER |
13 | ||
c2ca375c | 14 | #include "wx/private/timer.h" |
c801d85f | 15 | |
c801d85f KB |
16 | //----------------------------------------------------------------------------- |
17 | // wxTimer | |
18 | //----------------------------------------------------------------------------- | |
19 | ||
c2ca375c | 20 | class WXDLLIMPEXP_CORE wxGTKTimerImpl : public wxTimerImpl |
c801d85f | 21 | { |
03f38c58 | 22 | public: |
6dd0883d | 23 | wxGTKTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { m_sourceId = 0; } |
03f38c58 | 24 | |
c2ca375c | 25 | virtual bool Start( int millisecs = -1, bool oneShot = false ); |
03f38c58 | 26 | virtual void Stop(); |
855f31eb | 27 | virtual bool IsRunning() const { return m_sourceId != 0; } |
03f38c58 | 28 | |
c2ca375c VZ |
29 | protected: |
30 | int m_sourceId; | |
c801d85f KB |
31 | }; |
32 | ||
3c029873 VZ |
33 | #endif // wxUSE_TIMER |
34 | ||
c2ca375c | 35 | #endif // _WX_GTK_PRIVATE_TIMER_H_ |