~brian-sidebotham/wxwidgets-cmake/wxpython-2.9.4

« back to all changes in this revision

Viewing changes to include/wx/gtk/private/timer.h

  • Committer: Brian Sidebotham
  • Date: 2013-08-03 14:30:08 UTC
  • Revision ID: brian.sidebotham@gmail.com-20130803143008-c7806tkych1tp6fc
Initial import into Bazaar

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/////////////////////////////////////////////////////////////////////////////
 
2
// Name:        wx/gtk/private/timer.h
 
3
// Purpose:     wxTimerImpl for wxGTK
 
4
// Author:      Robert Roebling
 
5
// Id:          $Id: timer.h 70165 2011-12-29 14:42:13Z SN $
 
6
// Copyright:   (c) 1998 Robert Roebling
 
7
// Licence:     wxWindows licence
 
8
/////////////////////////////////////////////////////////////////////////////
 
9
 
 
10
#ifndef _WX_GTK_PRIVATE_TIMER_H_
 
11
#define _WX_GTK_PRIVATE_TIMER_H_
 
12
 
 
13
#if wxUSE_TIMER
 
14
 
 
15
#include "wx/private/timer.h"
 
16
 
 
17
//-----------------------------------------------------------------------------
 
18
// wxTimer
 
19
//-----------------------------------------------------------------------------
 
20
 
 
21
class WXDLLIMPEXP_CORE wxGTKTimerImpl : public wxTimerImpl
 
22
{
 
23
public:
 
24
    wxGTKTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { m_sourceId = 0; }
 
25
 
 
26
    virtual bool Start( int millisecs = -1, bool oneShot = false );
 
27
    virtual void Stop();
 
28
    virtual bool IsRunning() const { return m_sourceId != 0; }
 
29
 
 
30
protected:
 
31
    int m_sourceId;
 
32
};
 
33
 
 
34
#endif // wxUSE_TIMER
 
35
 
 
36
#endif // _WX_GTK_PRIVATE_TIMER_H_