]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/timer.cpp
Implement wxGetMouseState
[wxWidgets.git] / src / palmos / timer.cpp
CommitLineData
ffecfa5a 1/////////////////////////////////////////////////////////////////////////////
e2731512 2// Name: src/palmos/timer.cpp
ffecfa5a 3// Purpose: wxTimer implementation
e2731512 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a
JS
5// Modified by:
6// Created: 10/13/04
e2731512 7// RCS-ID: $Id$
ffecfa5a
JS
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
ffecfa5a
JS
12// For compilers that support precompilation, includes "wx.h".
13#include "wx/wxprec.h"
14
15#ifdef __BORLANDC__
16 #pragma hdrstop
17#endif
18
19#if wxUSE_TIMER
20
c0badb70
WS
21#include "wx/timer.h"
22
ffecfa5a 23#ifndef WX_PRECOMP
ffecfa5a 24 #include "wx/list.h"
8ecff181 25 #include "wx/window.h"
ffecfa5a
JS
26 #include "wx/event.h"
27 #include "wx/app.h"
28 #include "wx/intl.h"
29 #include "wx/log.h"
30#endif
31
32#include "wx/hashmap.h"
33
ffecfa5a
JS
34#include "wx/palmos/private.h"
35
36// from utils.cpp
37extern "C" WXDLLIMPEXP_BASE HWND
38wxCreateHiddenWindow(LPCTSTR *pclassname, LPCTSTR classname, WNDPROC wndproc);
39
40// ----------------------------------------------------------------------------
41// private globals
42// ----------------------------------------------------------------------------
43
44// define a hash containing all the timers: it is indexed by timer id and
45// contains the corresponding timer
46WX_DECLARE_HASH_MAP(unsigned long, wxTimer *, wxIntegerHash, wxIntegerEqual,
47 wxTimerMap);
48
49static wxTimerMap g_timerMap;
50
51// ----------------------------------------------------------------------------
52// private functions
53// ----------------------------------------------------------------------------
54
55void WINAPI wxTimerProc(HWND hwnd, WORD, int idTimer, DWORD);
56
57// ----------------------------------------------------------------------------
58// macros
59// ----------------------------------------------------------------------------
60
61IMPLEMENT_ABSTRACT_CLASS(wxTimer, wxEvtHandler)
62
63// ============================================================================
64// implementation
65// ============================================================================
66
67// ----------------------------------------------------------------------------
68// wxTimer class
69// ----------------------------------------------------------------------------
70
71void wxTimer::Init()
72{
73}
74
75wxTimer::~wxTimer()
76{
77}
78
79bool wxTimer::Start(int milliseconds, bool oneShot)
80{
81 return false;
82}
83
84void wxTimer::Stop()
85{
86}
87
88// ----------------------------------------------------------------------------
89// private functions
90// ----------------------------------------------------------------------------
91
92void wxProcessTimer(wxTimer& timer)
93{
94}
95
96void WINAPI wxTimerProc(HWND WXUNUSED(hwnd), WORD, int idTimer, DWORD)
97{
98}
99
100#endif // wxUSE_TIMER