LCOV - code coverage report
Current view: top level - eq/client - systemWindow.cpp (source / functions) Hit Total Coverage
Test: lcov2.info Lines: 23 26 88.5 %
Date: 2014-06-18 Functions: 12 14 85.7 %

          Line data    Source code
       1             : 
       2             : /* Copyright (c) 2005-2013, Stefan Eilemann <eile@equalizergraphics.com>
       3             :  *                    2014, Daniel Nachbaur <danielnachbaur@gmail.com>
       4             :  *                    2009, Maxim Makhinya
       5             :  *
       6             :  * This library is free software; you can redistribute it and/or modify it under
       7             :  * the terms of the GNU Lesser General Public License version 2.1 as published
       8             :  * by the Free Software Foundation.
       9             :  *
      10             :  * This library is distributed in the hope that it will be useful, but WITHOUT
      11             :  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
      12             :  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
      13             :  * details.
      14             :  *
      15             :  * You should have received a copy of the GNU Lesser General Public License
      16             :  * along with this library; if not, write to the Free Software Foundation, Inc.,
      17             :  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
      18             :  */
      19             : 
      20             : #include "systemWindow.h"
      21             : 
      22             : #include "notifierInterface.h"
      23             : 
      24             : #include <co/objectOCommand.h>
      25             : 
      26             : namespace eq
      27             : {
      28             : 
      29          17 : SystemWindow::SystemWindow( NotifierInterface& parent,
      30             :                             const WindowSettings& settings )
      31             :     : _parent( parent )
      32          17 :     , _settings( settings )
      33             : {
      34          17 : }
      35             : 
      36          17 : SystemWindow::~SystemWindow()
      37             : {
      38          17 : }
      39             : 
      40           2 : void SystemWindow::setPixelViewport( const PixelViewport& pvp )
      41             : {
      42           2 :     _settings.setPixelViewport( pvp );
      43           2 : }
      44             : 
      45          45 : const PixelViewport& SystemWindow::getPixelViewport() const
      46             : {
      47          45 :     return _settings.getPixelViewport();
      48             : }
      49             : 
      50          13 : uint32_t SystemWindow::getColorFormat() const
      51             : {
      52          13 :     return _settings.getColorFormat();
      53             : }
      54             : 
      55           0 : void SystemWindow::setName( const std::string& name )
      56             : {
      57           0 :     _settings.setName( name );
      58           0 : }
      59             : 
      60          17 : const std::string& SystemWindow::getName() const
      61             : {
      62          17 :     return _settings.getName();
      63             : }
      64             : 
      65             : int32_t
      66         472 : SystemWindow::getIAttribute( const WindowSettings::IAttribute attr ) const
      67             : {
      68         472 :     return _settings.getIAttribute( attr );
      69             : }
      70             : 
      71          17 : const SystemWindow* SystemWindow::getSharedContextWindow() const
      72             : {
      73          17 :     return _settings.getSharedContextWindow();
      74             : }
      75             : 
      76           6 : EventOCommand SystemWindow::sendError( const uint32_t error )
      77             : {
      78           6 :     return _parent.sendError( error );
      79             : }
      80             : 
      81          10 : bool SystemWindow::processEvent( const Event& event )
      82             : {
      83          10 :     return _parent.processEvent( event );
      84             : }
      85             : 
      86          36 : }

Generated by: LCOV version 1.10