added wxEventLoop::DispatchTimeout()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-12-26 22:28:34 +00:00
parent aa8cbe0b64
commit 9af42efda6
14 changed files with 216 additions and 38 deletions

View File

@@ -82,6 +82,24 @@ public:
*/
virtual bool Dispatch() = 0;
/**
Dispatch an event but not wait longer than the specified timeout for
it.
If an event is received before the specified @a timeout expires, it is
processed and the function returns 1 normally or 0 if the event loop
should quite. Otherwise, i.e. if the timeout expires, the functions
returns -1 without processing any events.
@param timeout
The maximal time to wait for the events in milliseconds.
@return
1 if an event was processed, 0 if the event loop should quit or -1
if the timeout expired.
*/
virtual int DispatchTimeout(unsigned long timeout) = 0;
/**
Return true if this event loop is currently running.