]>
Commit | Line | Data |
---|---|---|
c801d85f | 1 | ///////////////////////////////////////////////////////////////////////////// |
ed791986 | 2 | // Name: wx/gtk/timer.h |
c801d85f KB |
3 | // Purpose: |
4 | // Author: Robert Roebling | |
58614078 RR |
5 | // Id: $Id$ |
6 | // Copyright: (c) 1998 Robert Roebling | |
65571936 | 7 | // Licence: wxWindows licence |
c801d85f KB |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
855f31eb PC |
10 | #ifndef _WX_GTK_TIMER_H_ |
11 | #define _WX_GTK_TIMER_H_ | |
c801d85f | 12 | |
c801d85f KB |
13 | //----------------------------------------------------------------------------- |
14 | // wxTimer | |
15 | //----------------------------------------------------------------------------- | |
16 | ||
20123d49 | 17 | class WXDLLIMPEXP_CORE wxTimer : public wxTimerBase |
c801d85f | 18 | { |
03f38c58 | 19 | public: |
ed791986 VZ |
20 | wxTimer() { Init(); } |
21 | wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id) | |
22 | { Init(); } | |
d3c7fc99 | 23 | virtual ~wxTimer(); |
03f38c58 | 24 | |
855f31eb | 25 | virtual bool Start(int millisecs = -1, bool oneShot = false); |
03f38c58 VZ |
26 | virtual void Stop(); |
27 | ||
855f31eb | 28 | virtual bool IsRunning() const { return m_sourceId != 0; } |
03f38c58 | 29 | |
855f31eb | 30 | private: |
ed791986 VZ |
31 | void Init(); |
32 | ||
855f31eb | 33 | unsigned m_sourceId; |
03f38c58 | 34 | |
03f38c58 | 35 | DECLARE_ABSTRACT_CLASS(wxTimer) |
c801d85f KB |
36 | }; |
37 | ||
855f31eb | 38 | #endif // _WX_GTK_TIMER_H_ |