windowing/windowserver/nga/SERVER/advancedpointereventhelper.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // advanced pointer event helper header file
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef __ADANCEDPOINTEREVENTHELPER_H__
       
    19 #define __ADANCEDPOINTEREVENTHELPER_H__
       
    20 
       
    21 #include "W32STD.H"
       
    22 
       
    23 class TAdvancedPointerEventHelper
       
    24 	{
       
    25 public:	
       
    26 	static void InitAdvancedPointerEvent(TWsEvent& aEvent, TPointerEvent::TType aType, TUint aModifiers, const TPoint3D &aPoint3D, TUint8 aPointerNumber);
       
    27 	static void InitAdvancedPointerEvent(TWsEvent& aEvent, TPointerEvent::TType aType, TUint aModifiers, const TPoint3D &aPoint3D, const TPoint &aParentPosition, TUint8 aPointerNumber);
       
    28 	static TUint8 PointerNumber(const TWsEvent& aWsEvent);	
       
    29 	static void SetPointerNumber(TWsEvent& aWsEvent, TUint8 aPointerNumber);
       
    30 	static TInt Z(const TWsEvent& aWsEvent);
       
    31 	static void SetZ(TWsEvent& aWsEvent, TInt aZ);
       
    32 	static void Copy(const TAdvancedPointerEvent& aSrcEvent, TAdvancedPointerEvent& aDestEvent);
       
    33 	};
       
    34 
       
    35 #endif // __ADANCEDPOINTEREVENTHELPER_H__