windowing/windowserver/inc/Graphics/pointereventdata.h
changeset 121 d72fc2aace31
parent 103 2717213c588a
child 136 62bb7c97884c
child 137 c2203c16a985
equal deleted inserted replaced
103:2717213c588a 121:d72fc2aace31
     1 // Copyright (c) 1994-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 // Data passed to a Key Click Plug-in using the function CClickMaker::OtherEvent when the 
       
    15 // aType value is EEventPointer.
       
    16 //
       
    17 
       
    18 #ifndef POINTEREVENTDATA_H
       
    19 #define POINTEREVENTDATA_H
       
    20 
       
    21 /**
       
    22 Passed to a Key Click Plug-in using the function CClickMaker::OtherEvent when the 
       
    23 aType value is EEventPointer.
       
    24 This includes information about the window the pointer event will be sent to.
       
    25 This is the normally the window being clicked on by the user, but pointer capturing 
       
    26 and grabbing may affect this.
       
    27 
       
    28 @publishedPartner
       
    29 @released 
       
    30 */
       
    31 class TPointerEventData
       
    32 	{
       
    33 public:
       
    34 	enum TSource
       
    35 		/**
       
    36 		A list of locations that WSERV receives events from
       
    37 		*/
       
    38 		{
       
    39 		/** The source is not specified. */
       
    40 		EUnspecified,
       
    41 		/** The event came from the kernel. */
       
    42 		EKernel,
       
    43 		/** The event came from a client API. */
       
    44 		EClient,
       
    45 		/** The event came from an Anim DLL. */
       
    46 		EAnimDLL,
       
    47 		};
       
    48 public:
       
    49 	/**
       
    50 	The version number of the data passed with EEventPointer, current always 0.
       
    51 	*/
       
    52 	TInt iVersion;
       
    53 	/**
       
    54 	The screen position of pointer event.
       
    55 	*/
       
    56 	TPoint iCurrentPos;
       
    57 	/**
       
    58 	The full pointer event data previously passed to the CClickMaker::PointerEvent function,
       
    59 	except that the iParentPosition will be the actual parent position, when previously passed
       
    60 	to the plug-in this value was the screen position.
       
    61 	*/
       
    62 	TAdvancedPointerEvent iPointerEvent;
       
    63 	/**
       
    64 	The client handle of the window or zero if the window is not a client window.
       
    65 	*/
       
    66 	TUint32 iClientHandle;
       
    67 	/**
       
    68 	The current top left of the window on the screen.
       
    69 	*/
       
    70 	TPoint iWindowOrigin;
       
    71 	/**
       
    72 	The Window Group Identifier of the window group that is a parent (or grand parent etc.)
       
    73 	of the window the event is sent to or zero if the window is not a client window.
       
    74 	*/
       
    75 	TInt iWindowGroupId;
       
    76 	/**
       
    77 	The source that WSERV recieves the event from,
       
    78 	currently set to EUnspecified as this is for future expansion.
       
    79 	*/
       
    80 	TSource iSource;
       
    81 	};
       
    82 
       
    83 #endif // POINTEREVENTDATA_H