idlehomescreen/xmluirendering/uiengine/inc/xngesture.inl
changeset 0 f72a12da539e
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     1 /*
       
     2 * Copyright (c) 2008-2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Gesture class - inline section
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // Protection for nested includes
       
    20 #ifndef _XNGESTURE_INL_
       
    21 #define _XNGESTURE_INL_
       
    22 
       
    23 // -----------------------------------------------------------------------------
       
    24 // TRealPoint inline implementation
       
    25 // -----------------------------------------------------------------------------
       
    26 //
       
    27 namespace XnGestureHelper
       
    28     {
       
    29 
       
    30     // -------------------------------------------------------------------------
       
    31     // Default Constructor for the real point
       
    32     // -------------------------------------------------------------------------
       
    33     //
       
    34     inline TRealPoint::TRealPoint() :
       
    35         iX( 0 ), iY( 0 )
       
    36         {
       
    37         }
       
    38     
       
    39 
       
    40     // -------------------------------------------------------------------------
       
    41     // Copy constructor for real point
       
    42     // -------------------------------------------------------------------------
       
    43     //
       
    44     inline TRealPoint::TRealPoint( const TRealPoint& aPoint ) :
       
    45         iX( aPoint.iX ), iY( aPoint.iY )
       
    46         {
       
    47         }
       
    48 
       
    49     // -------------------------------------------------------------------------
       
    50     // Copy constructor for real point
       
    51     // -------------------------------------------------------------------------
       
    52     //
       
    53     inline TRealPoint::TRealPoint( TReal aX, TReal aY ) :
       
    54         iX( aX ), iY( aY )
       
    55         {
       
    56         }
       
    57 
       
    58     // -------------------------------------------------------------------------
       
    59     // Default constructor for real point
       
    60     // -------------------------------------------------------------------------
       
    61     //
       
    62     inline TBool TRealPoint::operator==( const TRealPoint& aPoint ) const
       
    63         {
       
    64         return iX == aPoint.iX && iY == aPoint.iY;
       
    65         }
       
    66     }
       
    67 	
       
    68 #endif //_XNGESTURE_INL_