]>
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 | ||
10 | ||
11 | #ifndef __GTKTIMERH__ | |
12 | #define __GTKTIMERH__ | |
13 | ||
12028905 | 14 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
0470b1e6 | 15 | #pragma interface "timer.h" |
c801d85f KB |
16 | #endif |
17 | ||
c801d85f KB |
18 | //----------------------------------------------------------------------------- |
19 | // wxTimer | |
20 | //----------------------------------------------------------------------------- | |
21 | ||
20123d49 | 22 | class WXDLLIMPEXP_CORE wxTimer : public wxTimerBase |
c801d85f | 23 | { |
03f38c58 | 24 | public: |
ed791986 VZ |
25 | wxTimer() { Init(); } |
26 | wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id) | |
27 | { Init(); } | |
03f38c58 VZ |
28 | ~wxTimer(); |
29 | ||
03f38c58 VZ |
30 | virtual bool Start( int millisecs = -1, bool oneShot = FALSE ); |
31 | virtual void Stop(); | |
32 | ||
0470b1e6 | 33 | virtual bool IsRunning() const { return m_tag != -1; } |
03f38c58 VZ |
34 | |
35 | protected: | |
ed791986 VZ |
36 | void Init(); |
37 | ||
c801d85f | 38 | int m_tag; |
03f38c58 VZ |
39 | |
40 | private: | |
41 | DECLARE_ABSTRACT_CLASS(wxTimer) | |
c801d85f KB |
42 | }; |
43 | ||
44 | #endif // __GTKTIMERH__ |