windowing/windowserver/inc/W32STD.H
changeset 36 01a6848ebfd7
parent 0 5d03bc08d59c
child 45 36b2e23a8629
equal deleted inserted replaced
0:5d03bc08d59c 36:01a6848ebfd7
     1 // Copyright (c) 1994-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1994-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
  1199 /** Base class for all classes whose objects are clients of the window server.
  1199 /** Base class for all classes whose objects are clients of the window server.
  1200 
  1200 
  1201 @publishedAll
  1201 @publishedAll
  1202 @released */
  1202 @released */
  1203 	{
  1203 	{
       
  1204 	friend class RTFXEffect;
  1204 public:
  1205 public:
  1205 	MWsClientClass();
  1206 	MWsClientClass();
  1206 	MWsClientClass(RWsBuffer *aBuffer);
  1207 	MWsClientClass(RWsBuffer *aBuffer);
  1207 	inline TInt WsHandle() const;
  1208 	inline TInt WsHandle() const;
  1208 protected:
  1209 protected:
  1209 	void Write(const TAny *aData, TInt aLength,const TAny *aData2, TInt aLength2,TUint aOpcode) const;
  1210 	void Write(const TAny *aData1,TInt aLength1,TInt aLength2,TUint aOpcode) const;
  1210 	void Write(const TAny *aBuf, TInt aBufLen,TUint aOpcode) const;
  1211 	void Write(const TAny *aData, TInt aLength,const TAny *aData2, TInt aLength2,TUint aOpcode,const TIpcArgs* aIpcArgs=NULL) const;
       
  1212 	void Write(const TAny *aBuf, TInt aBufLen,TUint aOpcode,const TIpcArgs* aIpcArgs=NULL) const;
  1211 	void Write(TUint aOpcode) const;
  1213 	void Write(TUint aOpcode) const;
  1212 	void WriteInt(TInt aInt, TUint aOpcode) const;
  1214 	void WriteInt(TInt aInt, TUint aOpcode) const;
  1213 	void WriteRect(const TRect &aRect, TUint aOpcode) const;
  1215 	void WriteRect(const TRect &aRect, TUint aOpcode) const;
  1214 	void WritePoint(const TPoint &aPoint, TUint aOpcode) const;
  1216 	void WritePoint(const TPoint &aPoint, TUint aOpcode) const;
  1215 	void WriteSize(const TSize &aSize, TUint aOpcode) const;
  1217 	void WriteSize(const TSize &aSize, TUint aOpcode) const;
  1228     TBool WindowSizeCacheEnabled() const;
  1230     TBool WindowSizeCacheEnabled() const;
  1229     void MarkWindowSizeCacheDirty();
  1231     void MarkWindowSizeCacheDirty();
  1230     void RefreshWindowSizeCache(const TSize& aNewSize) const;
  1232     void RefreshWindowSizeCache(const TSize& aNewSize) const;
  1231     TInt CachedWindowSize(TSize& aSize) const;
  1233     TInt CachedWindowSize(TSize& aSize) const;
  1232     void DestroyWindowSizeCacheEntry();
  1234     void DestroyWindowSizeCacheEntry();
       
  1235 
       
  1236 private:
       
  1237     void AppendData(const TAny *aData,TInt aLength,TBool aFinished);
  1233 	
  1238 	
  1234 protected:
  1239 protected:
  1235 	TInt32 iWsHandle;	/**< WARNING: Member variable for internal use ONLY. Compatibility is not guaranteed in future releases. Please access using the provided get/set APIs only. */
  1240 	TInt32 iWsHandle;	/**< WARNING: Member variable for internal use ONLY. Compatibility is not guaranteed in future releases. Please access using the provided get/set APIs only. */
  1236 	RWsBuffer *iBuffer;	/**< WARNING: Member variable for internal use ONLY. Compatibility is not guaranteed in future releases. Please access using the provided get/set APIs only. */
  1241 	RWsBuffer *iBuffer;	/**< WARNING: Member variable for internal use ONLY. Compatibility is not guaranteed in future releases. Please access using the provided get/set APIs only. */
  1237 	};
  1242 	};
  1494 	IMPORT_C TDisplayMode GetDefModeMaxNumColors(TInt aScreenNumber,TInt& aColor,TInt& aGray) const;
  1499 	IMPORT_C TDisplayMode GetDefModeMaxNumColors(TInt aScreenNumber,TInt& aColor,TInt& aGray) const;
  1495 	IMPORT_C TInt GetColorModeList(TInt aScreenNumber,CArrayFixFlat<TInt>* aModeList) const;
  1500 	IMPORT_C TInt GetColorModeList(TInt aScreenNumber,CArrayFixFlat<TInt>* aModeList) const;
  1496 #if defined(__WINS__)
  1501 #if defined(__WINS__)
  1497 // Function for WINS behaviour only
  1502 // Function for WINS behaviour only
  1498 	IMPORT_C void SetRemoveKeyCode(TBool aRemove);
  1503 	IMPORT_C void SetRemoveKeyCode(TBool aRemove);
  1499 	IMPORT_C void SimulateXyInputType(TXYInputType aInputType);		//Only for testing WSERV
  1504 	IMPORT_C void SimulateXyInputType(TInt aInputType);		//Only for testing WSERV
  1500 #endif
  1505 #endif
  1501 //
  1506 //
  1502 	IMPORT_C void SimulateRawEvent(TRawEvent aEvent);
  1507 	IMPORT_C void SimulateRawEvent(TRawEvent aEvent);
  1503 	IMPORT_C void SimulateKeyEvent(TKeyEvent aEvent);
  1508 	IMPORT_C void SimulateKeyEvent(TKeyEvent aEvent);
  1504 	IMPORT_C void LogCommand(TLoggingCommand aCommand);
  1509 	IMPORT_C void LogCommand(TLoggingCommand aCommand);
  1522 	IMPORT_C TInt SetHighPressureThresholds(TInt aEnterHighPressureThreshold, TInt aExitHighPressureThreshold);
  1527 	IMPORT_C TInt SetHighPressureThresholds(TInt aEnterHighPressureThreshold, TInt aExitHighPressureThreshold);
  1523 	IMPORT_C TInt GetEnterHighPressureThreshold() const;
  1528 	IMPORT_C TInt GetEnterHighPressureThreshold() const;
  1524 	IMPORT_C TInt GetExitHighPressureThreshold() const;
  1529 	IMPORT_C TInt GetExitHighPressureThreshold() const;
  1525 //
  1530 //
  1526     IMPORT_C void EnableWindowSizeCacheL();
  1531     IMPORT_C void EnableWindowSizeCacheL();
       
  1532 	IMPORT_C void SendEffectCommand(TInt aTfxCmd, const TDesC8& aTfxCmdData=KNullDesC8);
       
  1533 
       
  1534 // Registering/Unregistering of TFX effect, to allow animations to be associated with each transition
       
  1535 	IMPORT_C void RegisterEffect(TInt aAction, const TFileName& aResourceDir, const TFileName& aFilenamePhase1, const TFileName& aFilenamePhase2, TUint aAppUid = NULL);
       
  1536 	IMPORT_C void UnregisterEffect(TInt aAction);
       
  1537 	IMPORT_C void UnregisterAllEffects();
       
  1538 	IMPORT_C void OverrideEffects(TBool aOneShot, TInt aAction, const TFileName& aResourceDir, const TFileName& aFilenamePhase1, const TFileName& aFilenamePhase2);
  1527 	
  1539 	
  1528 // functions not exported, used by CWsGraphic
  1540 // functions not exported, used by CWsGraphic
  1529 	void GraphicMessageReady(TRequestStatus *aStat);
  1541 	void GraphicMessageReady(TRequestStatus *aStat);
  1530 	void GetGraphicMessage(TDes8& aData) const;
  1542 	void GetGraphicMessage(TDes8& aData) const;
  1531 	void GraphicMessageCancel();
  1543 	void GraphicMessageCancel();
  1710 	IMPORT_C void RemoveBackgroundSurface(TBool aTriggerRedraw);
  1722 	IMPORT_C void RemoveBackgroundSurface(TBool aTriggerRedraw);
  1711 	IMPORT_C TInt GetBackgroundSurface(TSurfaceConfiguration& aConfiguration) const;
  1723 	IMPORT_C TInt GetBackgroundSurface(TSurfaceConfiguration& aConfiguration) const;
  1712 	IMPORT_C void SetSurfaceTransparency(TBool aSurfaceTransparency);
  1724 	IMPORT_C void SetSurfaceTransparency(TBool aSurfaceTransparency);
  1713 	IMPORT_C TRgb KeyColor() const;
  1725 	IMPORT_C TRgb KeyColor() const;
  1714 	IMPORT_C void EnableAdvancedPointers();
  1726 	IMPORT_C void EnableAdvancedPointers();
       
  1727 	IMPORT_C void SetPurpose(TInt aPurpose);
       
  1728 	IMPORT_C void SendEffectCommand(TInt aTfxCmd, const TDesC8& aTfxCmdData=KNullDesC8);
       
  1729 	IMPORT_C void OverrideEffects(TBool aOneShot, TInt aAction, const TFileName& aResourceDir, const TFileName& aFilenamePhase1, const TFileName& aFilenamePhase2);
  1715 protected:
  1730 protected:
  1716 	TInt construct(const RWindowTreeNode &parent,TUint32 aHandle, TInt aType, TDisplayMode aDisplayMode);
  1731 	TInt construct(const RWindowTreeNode &parent,TUint32 aHandle, TInt aType, TDisplayMode aDisplayMode);
  1717 	};
  1732 	};
  1718 
  1733 
  1719 
  1734