]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/timer.h
deprecate wxTR_EXTENDED and remove it from the docs
[wxWidgets.git] / include / wx / gtk / timer.h
index 010c6316322c9e07d50f82e96bb64475481515f0..cb1d10e8c1d7790a681b2f787c6fd8f9975a0121 100644 (file)
@@ -7,8 +7,8 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifndef __GTKTIMERH__
-#define __GTKTIMERH__
+#ifndef _WX_GTK_TIMER_H_
+#define _WX_GTK_TIMER_H_
 
 //-----------------------------------------------------------------------------
 // wxTimer
@@ -22,18 +22,17 @@ public:
         { Init(); }
     virtual ~wxTimer();
 
-    virtual bool Start( int millisecs = -1, bool oneShot = FALSE );
+    virtual bool Start(int millisecs = -1, bool oneShot = false);
     virtual void Stop();
 
-    virtual bool IsRunning() const { return m_tag != -1; }
+    virtual bool IsRunning() const { return m_sourceId != 0; }
 
-protected:
+private:
     void Init();
 
-    int  m_tag;
+    unsigned m_sourceId;
 
-private:
     DECLARE_ABSTRACT_CLASS(wxTimer)
 };
 
-#endif // __GTKTIMERH__
+#endif // _WX_GTK_TIMER_H_