Equalizer  1.6.1
Public Member Functions | Static Public Member Functions | List of all members
eq::agl::EventHandler Class Reference

The event handler for AGL windows. More...

#include <eventHandler.h>

+ Inheritance diagram for eq::agl::EventHandler:
+ Collaboration diagram for eq::agl::EventHandler:

Public Member Functions

 EventHandler (agl::WindowIF *window)
 Construct a new AGL event handler for the given AGL window. More...
 
virtual ~EventHandler ()
 Destruct the AGL event handler. More...
 
agl::WindowIFgetWindow () const
 
bool handleEvent (EventRef event)
 

Static Public Member Functions

static void initMagellan (Node *node)
 Initialize space mouse event handling for this process. More...
 
static void exitMagellan (Node *node)
 De-initialize space mouse event handling for this process. More...
 

Additional Inherited Members

- Protected Member Functions inherited from eq::EventHandler
 EventHandler ()
 Construct a new event handler. More...
 
void _computePointerDelta (const Window *window, Event &event)
 
void _getRenderContext (const Window *window, Event &event)
 

Detailed Description

The event handler for AGL windows.

Any implementation of the agl::WindowIF can instantiate this event handler, which registers for Carbon events, translates each received event to an AGLWindowEvent and dispatches it to agl::WindowIF::processEvent.

Definition at line 39 of file agl/eventHandler.h.

Constructor & Destructor Documentation

eq::agl::EventHandler::EventHandler ( agl::WindowIF window)

Construct a new AGL event handler for the given AGL window.

Version
1.0
virtual eq::agl::EventHandler::~EventHandler ( )
virtual

Destruct the AGL event handler.

Version
1.0

Reimplemented from eq::EventHandler.

Member Function Documentation

static void eq::agl::EventHandler::exitMagellan ( Node node)
static

De-initialize space mouse event handling for this process.

See Also
Node::configInit
Version
1.0
agl::WindowIF* eq::agl::EventHandler::getWindow ( ) const
inline
Returns
the handled AGL window.
Version
1.0

Definition at line 67 of file agl/eventHandler.h.

static void eq::agl::EventHandler::initMagellan ( Node node)
static

Initialize space mouse event handling for this process.

Received space mouse events are processed by Node::processEvent().

Version
1.0

The documentation for this class was generated from the following file: