windowing/windowserver/inc/W32STD.H
branchRCL_3
changeset 164 25ffed67c7ef
parent 163 bbf46f59e123
equal deleted inserted replaced
163:bbf46f59e123 164:25ffed67c7ef
    30 #include <e32keys.h>
    30 #include <e32keys.h>
    31 #include <textcursor.h>
    31 #include <textcursor.h>
    32 #include <pointerevent.h>
    32 #include <pointerevent.h>
    33 #include <advancedpointerevent.h>
    33 #include <advancedpointerevent.h>
    34 #include <sizemode.h>
    34 #include <sizemode.h>
    35 #include <babitflags.h>
       
    36 #include <wspublishandsubscribedata.h>
       
    37 
    35 
    38 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
    36 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
    39 #include <graphics/windowserverconstants.h>
    37 #include <graphics/windowserverconstants.h>
    40 #include <graphics/pointereventdata.h>
    38 #include <graphics/pointereventdata.h>
    41 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS
    39 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS
  1201 /** 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.
  1202 
  1200 
  1203 @publishedAll
  1201 @publishedAll
  1204 @released */
  1202 @released */
  1205 	{
  1203 	{
  1206 	friend class RTFXEffect;
       
  1207 public:
  1204 public:
  1208 	MWsClientClass();
  1205 	MWsClientClass();
  1209 	MWsClientClass(RWsBuffer *aBuffer);
  1206 	MWsClientClass(RWsBuffer *aBuffer);
  1210 	inline TInt WsHandle() const;
  1207 	inline TInt WsHandle() const;
  1211 protected:
  1208 protected:
  1212 	void Write(const TAny *aData1,TInt aLength1,TInt aLength2,TUint aOpcode) const;
  1209 	void Write(const TAny *aData, TInt aLength,const TAny *aData2, TInt aLength2,TUint aOpcode) const;
  1213 	void Write(const TAny *aData, TInt aLength,const TAny *aData2, TInt aLength2,TUint aOpcode,const TIpcArgs* aIpcArgs=NULL) const;
  1210 	void Write(const TAny *aBuf, TInt aBufLen,TUint aOpcode) const;
  1214 	void Write(const TAny *aBuf, TInt aBufLen,TUint aOpcode,const TIpcArgs* aIpcArgs=NULL) const;
       
  1215 	void Write(TUint aOpcode) const;
  1211 	void Write(TUint aOpcode) const;
  1216 	void WriteInt(TInt aInt, TUint aOpcode) const;
  1212 	void WriteInt(TInt aInt, TUint aOpcode) const;
  1217 	void WriteRect(const TRect &aRect, TUint aOpcode) const;
  1213 	void WriteRect(const TRect &aRect, TUint aOpcode) const;
  1218 	void WritePoint(const TPoint &aPoint, TUint aOpcode) const;
  1214 	void WritePoint(const TPoint &aPoint, TUint aOpcode) const;
  1219 	void WriteSize(const TSize &aSize, TUint aOpcode) const;
  1215 	void WriteSize(const TSize &aSize, TUint aOpcode) const;
  1233     void MarkWindowSizeCacheDirty();
  1229     void MarkWindowSizeCacheDirty();
  1234     void RefreshWindowSizeCache(const TSize& aNewSize) const;
  1230     void RefreshWindowSizeCache(const TSize& aNewSize) const;
  1235     TInt CachedWindowSize(TSize& aSize) const;
  1231     TInt CachedWindowSize(TSize& aSize) const;
  1236     void DestroyWindowSizeCacheEntry();
  1232     void DestroyWindowSizeCacheEntry();
  1237 
  1233 
  1238 private:
  1234 #ifdef SYMBIAN_GRAPHICS_FIXNATIVEORIENTATION
  1239     void AppendData(const TAny *aData,TInt aLength,TBool aFinished);
  1235 	void EnableWindowNativeSizeCacheL();
  1240 	
  1236 	TBool WindowNativeSizeCacheEnabled() const;
       
  1237 	TInt SetWindowNativeSize(const TSize& aNativeSize) const;
       
  1238 	TInt WindowNativeSize(TSize& aSize) const;
       
  1239 	void DestroyWindowNativeSizeCacheEntry();
       
  1240 #endif // SYMBIAN_GRAPHICS_FIXNATIVEORIENTATION
       
  1241 
  1241 protected:
  1242 protected:
  1242 	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. */
  1243 	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. */
  1243 	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. */
  1244 	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. */
  1244 	};
  1245 	};
  1245 
  1246 
  1379 		ECustomTextCursorAlignBaseline,
  1380 		ECustomTextCursorAlignBaseline,
  1380 		/** The y-origin of each sprite member bitmap is aligned with the bottom of the
  1381 		/** The y-origin of each sprite member bitmap is aligned with the bottom of the
  1381 		line. */
  1382 		line. */
  1382 		ECustomTextCursorAlignBottom
  1383 		ECustomTextCursorAlignBottom
  1383 		};
  1384 		};
  1384 	
       
  1385 //
  1385 //
  1386 public:
  1386 public:
  1387 	IMPORT_C RWsSession();
  1387 	IMPORT_C RWsSession();
  1388 	IMPORT_C TInt Connect();
  1388 	IMPORT_C TInt Connect();
  1389 	IMPORT_C TInt Connect(RFs& aFileServer);
  1389 	IMPORT_C TInt Connect(RFs& aFileServer);
  1530 	IMPORT_C TInt SetHighPressureThresholds(TInt aEnterHighPressureThreshold, TInt aExitHighPressureThreshold);
  1530 	IMPORT_C TInt SetHighPressureThresholds(TInt aEnterHighPressureThreshold, TInt aExitHighPressureThreshold);
  1531 	IMPORT_C TInt GetEnterHighPressureThreshold() const;
  1531 	IMPORT_C TInt GetEnterHighPressureThreshold() const;
  1532 	IMPORT_C TInt GetExitHighPressureThreshold() const;
  1532 	IMPORT_C TInt GetExitHighPressureThreshold() const;
  1533 //
  1533 //
  1534     IMPORT_C void EnableWindowSizeCacheL();
  1534     IMPORT_C void EnableWindowSizeCacheL();
  1535 	IMPORT_C void SendEffectCommand(TInt aTfxCmd, const TDesC8& aTfxCmdData=KNullDesC8);
       
  1536 
       
  1537 // Registering/Unregistering of TFX effect, to allow animations to be associated with each transition
       
  1538 	IMPORT_C void RegisterEffect(TInt aAction, TInt aPurpose, const TFileName& aResourceDir, const TFileName& aFilenameOutgoing, const TFileName& aFilenameIncoming, TUint aAppUid=0, TBitFlags aFlags=0);
       
  1539 	IMPORT_C void UnregisterEffect(TInt aAction, TInt aPurpose, TUint aAppUid=0);
       
  1540 	IMPORT_C void UnregisterAllEffects();
       
  1541 	IMPORT_C void OverrideEffects(TInt aAction, TInt aPurpose, const TFileName& aResourceDir, const TFileName& aFilenameOutgoing, const TFileName& aFilenameIncoming, TBitFlags aFlags=0);
       
  1542 	
       
  1543 //Application tells the window server the orientation of rendering it intends to use
       
  1544 	IMPORT_C void IndicateAppOrientation(TRenderOrientation aOrientation);
       
  1545 	
  1535 	
  1546 // functions not exported, used by CWsGraphic
  1536 // functions not exported, used by CWsGraphic
  1547 	void GraphicMessageReady(TRequestStatus *aStat);
  1537 	void GraphicMessageReady(TRequestStatus *aStat);
  1548 	void GetGraphicMessage(TDes8& aData) const;
  1538 	void GetGraphicMessage(TDes8& aData) const;
  1549 	void GraphicMessageCancel();
  1539 	void GraphicMessageCancel();
  1728 	IMPORT_C void RemoveBackgroundSurface(TBool aTriggerRedraw);
  1718 	IMPORT_C void RemoveBackgroundSurface(TBool aTriggerRedraw);
  1729 	IMPORT_C TInt GetBackgroundSurface(TSurfaceConfiguration& aConfiguration) const;
  1719 	IMPORT_C TInt GetBackgroundSurface(TSurfaceConfiguration& aConfiguration) const;
  1730 	IMPORT_C void SetSurfaceTransparency(TBool aSurfaceTransparency);
  1720 	IMPORT_C void SetSurfaceTransparency(TBool aSurfaceTransparency);
  1731 	IMPORT_C TRgb KeyColor() const;
  1721 	IMPORT_C TRgb KeyColor() const;
  1732 	IMPORT_C void EnableAdvancedPointers();
  1722 	IMPORT_C void EnableAdvancedPointers();
  1733 	IMPORT_C void SetPurpose(TInt aPurpose);
  1723 	IMPORT_C TInt FixNativeOrientation();
  1734 	IMPORT_C void SendEffectCommand(TInt aTfxCmd, const TDesC8& aTfxCmdData=KNullDesC8);
  1724 	IMPORT_C TSize SizeForEgl() const;
  1735 	IMPORT_C void OverrideEffects(TInt aAction, const TFileName& aResourceDir, const TFileName& aFilenameOutgoing, const TFileName& aFilenameIncoming, TBitFlags aFlags=0);
       
  1736     IMPORT_C TInt FixNativeOrientation();
       
  1737     IMPORT_C TSize SizeForEgl() const;
       
  1738 protected:
  1725 protected:
  1739 	TInt construct(const RWindowTreeNode &parent,TUint32 aHandle, TInt aType, TDisplayMode aDisplayMode);
  1726 	TInt construct(const RWindowTreeNode &parent,TUint32 aHandle, TInt aType, TDisplayMode aDisplayMode);
  1740 	};
  1727 	};
  1741 
  1728 
  1742 
  1729