]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/timer.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/timer.cpp
3 // Purpose: wxTimer implementation
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
25 #include "wx/window.h"
30 #include "wx/hashmap.h"
33 #include "wx/palmos/private.h"
36 extern "C" WXDLLIMPEXP_BASE HWND
37 wxCreateHiddenWindow(LPCTSTR
*pclassname
, LPCTSTR classname
, WNDPROC wndproc
);
39 // ----------------------------------------------------------------------------
41 // ----------------------------------------------------------------------------
43 // define a hash containing all the timers: it is indexed by timer id and
44 // contains the corresponding timer
45 WX_DECLARE_HASH_MAP(unsigned long, wxTimer
*, wxIntegerHash
, wxIntegerEqual
,
48 static wxTimerMap g_timerMap
;
50 // ----------------------------------------------------------------------------
52 // ----------------------------------------------------------------------------
54 void WINAPI
wxTimerProc(HWND hwnd
, WORD
, int idTimer
, DWORD
);
56 // ----------------------------------------------------------------------------
58 // ----------------------------------------------------------------------------
60 IMPLEMENT_ABSTRACT_CLASS(wxTimer
, wxEvtHandler
)
62 // ============================================================================
64 // ============================================================================
66 // ----------------------------------------------------------------------------
68 // ----------------------------------------------------------------------------
78 bool wxTimer::Start(int milliseconds
, bool oneShot
)
87 // ----------------------------------------------------------------------------
89 // ----------------------------------------------------------------------------
91 void wxProcessTimer(wxTimer
& timer
)
95 void WINAPI
wxTimerProc(HWND
WXUNUSED(hwnd
), WORD
, int idTimer
, DWORD
)