Version: 2.9.4
Public Member Functions
wxEventLoopActivator Class Reference

#include </home/zeitlin/src/wx/github/interface/wx/evtloop.h>


Detailed Description

Makes an event loop temporarily active.

This class is used to make the event loop active during its life-time, e.g.:

        class MyEventLoop : public wxEventLoopBase { ... };

        void RunMyLoop()
        {
            MyEventLoop loop;
            wxEventLoopActivator activate(&loop);

            ...
        } // the previously active event loop restored here

Library:  wxBase
Category:  Application and Process Management
参照:
wxEventLoopBase

Public Member Functions

 wxEventLoopActivator (wxEventLoopBase *loop)
 Makes the loop passed as the parameter currently active.
 ~wxEventLoopActivator ()
 Restores the previously active event loop stored by the constructor.

List of all members.


Constructor & Destructor Documentation

wxEventLoopActivator::wxEventLoopActivator ( wxEventLoopBase loop)

Makes the loop passed as the parameter currently active.

This saves the current return value of wxEventLoopBase::GetActive() and then calls wxEventLoopBase::SetActive() with the given loop.

wxEventLoopActivator::~wxEventLoopActivator ( )

Restores the previously active event loop stored by the constructor.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines