LCOV - code coverage report
Current view: top level - eq/client - eventHandler.h (source / functions) Hit Total Coverage
Test: lcov2.info Lines: 2 2 100.0 %
Date: 2014-06-18 Functions: 2 3 66.7 %

          Line data    Source code
       1             : 
       2             : /* Copyright (c) 2006-2011, Stefan Eilemann <eile@equalizergraphics.com>
       3             :  *                    2014, Daniel Nachbaur <danielnachbaur@gmail.com>
       4             :  *
       5             :  * This library is free software; you can redistribute it and/or modify it under
       6             :  * the terms of the GNU Lesser General Public License version 2.1 as published
       7             :  * by the Free Software Foundation.
       8             :  *
       9             :  * This library is distributed in the hope that it will be useful, but WITHOUT
      10             :  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
      11             :  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
      12             :  * details.
      13             :  *
      14             :  * You should have received a copy of the GNU Lesser General Public License
      15             :  * along with this library; if not, write to the Free Software Foundation, Inc.,
      16             :  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
      17             :  */
      18             : 
      19             : #ifndef EQ_EVENTHANDLER_H
      20             : #define EQ_EVENTHANDLER_H
      21             : 
      22             : #include <eq/client/event.h>         // member
      23             : 
      24             : namespace eq
      25             : {
      26             :     /** Base class for window system-specific event handlers */
      27             :     class EventHandler
      28             :     {
      29             :     protected:
      30             :         /** Construct a new event handler. @version 1.0 */
      31          15 :         EventHandler() {}
      32             : 
      33             :         /** Destruct the event handler. @version 1.0 */
      34          15 :         virtual ~EventHandler(){}
      35             : 
      36             :         /**
      37             :          * @internal
      38             :          * Compute the mouse move delta from the previous pointer event.
      39             :          */
      40             :         EQ_API void _computePointerDelta( Event& event );
      41             : 
      42             :     private:
      43             :         /** The previous pointer event to compute mouse movement deltas. */
      44             :         Event _lastPointerEvent;
      45             :     };
      46             : }
      47             : 
      48             : #endif // EQ_EVENTHANDLER_H
      49             : 

Generated by: LCOV version 1.10