]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/palmos/evtloop.h
routing native events first to the wx class and only if skipped call native handler
[wxWidgets.git] / include / wx / palmos / evtloop.h
... / ...
CommitLineData
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/palmos/evtloop.h
3// Purpose: wxEventLoop class for Palm OS
4// Author: William Osborne - minimal working wxPalmOS port
5// Modified by:
6// Created: 2004-10-14
7// RCS-ID: $Id$
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10///////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_PALMOS_EVTLOOP_H_
13#define _WX_PALMOS_EVTLOOP_H_
14
15// ----------------------------------------------------------------------------
16// wxEventLoop
17// ----------------------------------------------------------------------------
18
19class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxEventLoopBase
20{
21public:
22 wxGUIEventLoop();
23
24 // implement base class pure virtuals
25 virtual int Run();
26 virtual void Exit(int rc = 0);
27 virtual bool Pending() const;
28 virtual bool Dispatch();
29 virtual int DispatchTimeout(unsigned long timeout);
30 virtual bool IsRunning() const;
31
32 // MSW-specific methods
33 // --------------------
34
35 // preprocess a message, return true if processed (i.e. no further
36 // dispatching required)
37 virtual bool PreProcessMessage(WXMSG *msg);
38
39 // process a single message
40 virtual void ProcessMessage(WXMSG *msg);
41 virtual void WakeUp();
42
43protected:
44 // should we exit the loop?
45 bool m_shouldExit;
46
47 // the loop exit code
48 int m_exitcode;
49};
50
51#endif // _WX_PALMOS_EVTLOOP_H_
52