1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: declares wxEventLoop class
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 2001 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_EVTLOOP_H_
13 #define _WX_EVTLOOP_H_
16 #pragma interface "evtloop.h"
19 // ----------------------------------------------------------------------------
20 // wxEventLoop: a GUI event loop
21 // ----------------------------------------------------------------------------
23 class WXDLLEXPORT wxEventLoop
27 wxEventLoop() { m_impl
= NULL
; }
30 virtual ~wxEventLoop();
32 // start the event loop, return the exit code when it is finished
35 // exit from the loop with the given exit code
36 virtual void Exit(int rc
= 0);
38 // return TRUE if any events are available
39 virtual bool Pending() const;
41 // dispatch a single event, return FALSE if we should exit from the loop
42 virtual bool Dispatch();
44 // is the event loop running now?
45 virtual bool IsRunning() const;
48 // the pointer to the port specific implementation class
49 class WXDLLEXPORT wxEventLoopImpl
*m_impl
;
52 #endif // _WX_EVTLOOP_H_