No real changes, just refactor wxEventLoop/wxApp::ProcessIdle().
Old code called wxApp::ProcessIdle() from wxEventLoopManualRun::Run() which called wxEventLoop::ProcessIdle() which called wxApp methods from it. In the new version wxEventLoopManualRun::Run() calls wxEventLoopManualRun::ProcessIdle() which calls wxApp::ProcessIdle() which calls other wxApp methods which seems to make more sense and also allows overriding ProcessIdle() in either wxEventLoopManual or wxApp-derived classes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -320,6 +320,8 @@ public:
|
||||
// wxEventLoop redirections
|
||||
// ------------------------
|
||||
|
||||
// all these functions are forwarded to the corresponding methods of the
|
||||
// currently active event loop -- and do nothing if there is none
|
||||
virtual bool Pending();
|
||||
virtual bool Dispatch();
|
||||
|
||||
@@ -329,6 +331,13 @@ public:
|
||||
bool Yield(bool onlyIfNeeded = false);
|
||||
|
||||
virtual void WakeUpIdle();
|
||||
|
||||
// this method is called by the active event loop when there are no events
|
||||
// to process
|
||||
//
|
||||
// by default it generates the idle events and if you override it in your
|
||||
// derived class you should call the base class version to ensure that idle
|
||||
// events are still sent out
|
||||
virtual bool ProcessIdle();
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user