]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_evtloop.i
get rid of \\ macros and change See Also -> See also
[wxWidgets.git] / wxPython / src / _evtloop.i
CommitLineData
96d49f0e
RD
1/////////////////////////////////////////////////////////////////////////////
2// Name: _evtloop.i
3// Purpose: SWIG interface for wxEventLoop
4//
5// Author: Robin Dunn
6//
7// Created: 18-Sept-2004
8// RCS-ID: $Id$
9// Copyright: (c) 2004 by Total Control Software
10// Licence: wxWindows license
11/////////////////////////////////////////////////////////////////////////////
12
13// Not a %module
14
15
16//---------------------------------------------------------------------------
17// TODO: wxPyEventLoop that virtualizes all the methods...
18
19//---------------------------------------------------------------------------
20%newgroup
21
22%{
23#include <wx/evtloop.h>
24%}
25
26class wxEventLoop
27{
28public:
29 wxEventLoop();
30 virtual ~wxEventLoop();
31
32 // start the event loop, return the exit code when it is finished
33 virtual int Run();
34
35 // exit from the loop with the given exit code
36 virtual void Exit(int rc = 0);
37
38 // return true if any events are available
39 virtual bool Pending() const;
40
41 // dispatch a single event, return false if we should exit from the loop
42 virtual bool Dispatch();
43
44 // is the event loop running now?
45 virtual bool IsRunning() const;
46
47 // return currently active (running) event loop, may be NULL
48 static wxEventLoop *GetActive();
49
50 // set currently active (running) event loop
51 static void SetActive(wxEventLoop* loop);
52};
53
54
55//---------------------------------------------------------------------------