eq::EventHandler Class Reference

Base class for window system-specific event handlers. More...

#include <eventHandler.h>

Inheritance diagram for eq::EventHandler:
Inheritance graph
[legend]
Collaboration diagram for eq::EventHandler:
Collaboration graph
[legend]

List of all members.

Protected Member Functions

 EventHandler ()
 Constructs a new event handler.
virtual ~EventHandler ()
 Destructs the event handler.
void _computePointerDelta (const Window *window, Event &event)
 Compute the mouse move delta from the previous pointer event.
void _getRenderContext (const Window *window, Event &event)
 Find and set the rendering context at the mouse position.

Protected Attributes

Event _lastPointerEvent
 The previous pointer event to compute mouse movement deltas.
const Window_lastEventWindow
 The window of the previous pointer event.

Detailed Description

Base class for window system-specific event handlers.

Definition at line 32 of file eventHandler.h.


Constructor & Destructor Documentation

eq::EventHandler::EventHandler (  )  [inline, protected]

Constructs a new event handler.

Definition at line 38 of file eventHandler.h.

virtual eq::EventHandler::~EventHandler (  )  [inline, protected, virtual]

Destructs the event handler.

Definition at line 41 of file eventHandler.h.


Member Function Documentation

void eq::EventHandler::_computePointerDelta ( const Window window,
Event event 
) [protected]

Compute the mouse move delta from the previous pointer event.

Definition at line 36 of file eventHandler.cpp.

References _lastEventWindow, _lastPointerEvent, eq::Event::pointer, eq::Event::POINTER_BUTTON_PRESS, eq::Event::POINTER_BUTTON_RELEASE, eq::Event::POINTER_MOTION, and eq::Event::type.

void eq::EventHandler::_getRenderContext ( const Window window,
Event event 
) [protected]

Find and set the rendering context at the mouse position.

Definition at line 66 of file eventHandler.cpp.

References eq::Event::context, EQVERB, and eq::Window::getRenderContext().

Here is the call graph for this function:


Member Data Documentation

The previous pointer event to compute mouse movement deltas.

Definition at line 50 of file eventHandler.h.

Referenced by _computePointerDelta().

The window of the previous pointer event.

Definition at line 53 of file eventHandler.h.

Referenced by _computePointerDelta().


The documentation for this class was generated from the following files:
Generated on Sat Feb 6 13:04:07 2010 for Equalizer 0.9.1 by  doxygen 1.6.1