]>
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"
32 #include "wx/hashmap.h"
34 #include "wx/palmos/private.h"
37 extern "C" WXDLLIMPEXP_BASE HWND
38 wxCreateHiddenWindow(LPCTSTR
*pclassname
, LPCTSTR classname
, WNDPROC wndproc
);
40 // ----------------------------------------------------------------------------
42 // ----------------------------------------------------------------------------
44 // define a hash containing all the timers: it is indexed by timer id and
45 // contains the corresponding timer
46 WX_DECLARE_HASH_MAP(unsigned long, wxTimer
*, wxIntegerHash
, wxIntegerEqual
,
49 static wxTimerMap g_timerMap
;
51 // ----------------------------------------------------------------------------
53 // ----------------------------------------------------------------------------
55 void WINAPI
wxTimerProc(HWND hwnd
, WORD
, int idTimer
, DWORD
);
57 // ----------------------------------------------------------------------------
59 // ----------------------------------------------------------------------------
61 IMPLEMENT_ABSTRACT_CLASS(wxTimer
, wxEvtHandler
)
63 // ============================================================================
65 // ============================================================================
67 // ----------------------------------------------------------------------------
69 // ----------------------------------------------------------------------------
79 bool wxTimer::Start(int milliseconds
, bool oneShot
)
88 // ----------------------------------------------------------------------------
90 // ----------------------------------------------------------------------------
92 void wxProcessTimer(wxTimer
& timer
)
96 void WINAPI
wxTimerProc(HWND
WXUNUSED(hwnd
), WORD
, int idTimer
, DWORD
)
100 #endif // wxUSE_TIMER