idlehomescreen/xmluirendering/uiengine/inc/xngesture.inl
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 00:04:13 +0200
changeset 5 c743ef5928ba
parent 0 f72a12da539e
permissions -rw-r--r--
Revision: 201003 Kit: 201005

/*
* Copyright (c) 2008-2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Gesture class - inline section
*
*/


// Protection for nested includes
#ifndef _XNGESTURE_INL_
#define _XNGESTURE_INL_

// -----------------------------------------------------------------------------
// TRealPoint inline implementation
// -----------------------------------------------------------------------------
//
namespace XnGestureHelper
    {

    // -------------------------------------------------------------------------
    // Default Constructor for the real point
    // -------------------------------------------------------------------------
    //
    inline TRealPoint::TRealPoint() :
        iX( 0 ), iY( 0 )
        {
        }
    

    // -------------------------------------------------------------------------
    // Copy constructor for real point
    // -------------------------------------------------------------------------
    //
    inline TRealPoint::TRealPoint( const TRealPoint& aPoint ) :
        iX( aPoint.iX ), iY( aPoint.iY )
        {
        }

    // -------------------------------------------------------------------------
    // Copy constructor for real point
    // -------------------------------------------------------------------------
    //
    inline TRealPoint::TRealPoint( TReal aX, TReal aY ) :
        iX( aX ), iY( aY )
        {
        }

    // -------------------------------------------------------------------------
    // Default constructor for real point
    // -------------------------------------------------------------------------
    //
    inline TBool TRealPoint::operator==( const TRealPoint& aPoint ) const
        {
        return iX == aPoint.iX && iY == aPoint.iY;
        }
    }
	
#endif //_XNGESTURE_INL_