]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/timer.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: palmos/timer.cpp
3 // Purpose: wxTimer implementation
4 // Author: William Osborne
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
13 #pragma implementation "timer.h"
16 // For compilers that support precompilation, includes "wx.h".
17 #include "wx/wxprec.h"
26 #include "wx/window.h"
34 #include "wx/hashmap.h"
38 #include "wx/palmos/private.h"
41 extern "C" WXDLLIMPEXP_BASE HWND
42 wxCreateHiddenWindow(LPCTSTR
*pclassname
, LPCTSTR classname
, WNDPROC wndproc
);
44 // ----------------------------------------------------------------------------
46 // ----------------------------------------------------------------------------
48 // define a hash containing all the timers: it is indexed by timer id and
49 // contains the corresponding timer
50 WX_DECLARE_HASH_MAP(unsigned long, wxTimer
*, wxIntegerHash
, wxIntegerEqual
,
53 static wxTimerMap g_timerMap
;
55 // ----------------------------------------------------------------------------
57 // ----------------------------------------------------------------------------
59 void WINAPI
wxTimerProc(HWND hwnd
, WORD
, int idTimer
, DWORD
);
61 // ----------------------------------------------------------------------------
63 // ----------------------------------------------------------------------------
65 IMPLEMENT_ABSTRACT_CLASS(wxTimer
, wxEvtHandler
)
67 // ============================================================================
69 // ============================================================================
71 // ----------------------------------------------------------------------------
73 // ----------------------------------------------------------------------------
83 bool wxTimer::Start(int milliseconds
, bool oneShot
)
92 // ----------------------------------------------------------------------------
94 // ----------------------------------------------------------------------------
96 void wxProcessTimer(wxTimer
& timer
)
100 void WINAPI
wxTimerProc(HWND
WXUNUSED(hwnd
), WORD
, int idTimer
, DWORD
)
104 #endif // wxUSE_TIMER