diff -r 000000000000 -r f72a12da539e idlehomescreen/xmluirendering/uiengine/inc/xngesture.inl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/idlehomescreen/xmluirendering/uiengine/inc/xngesture.inl Thu Dec 17 08:40:49 2009 +0200 @@ -0,0 +1,68 @@ +/* +* 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_