windowing/windowserver/inc/W32STD.H
branchRCL_3
changeset 163 bbf46f59e123
parent 26 15986eb6c500
child 164 25ffed67c7ef
equal deleted inserted replaced
150:57c618273d5c 163:bbf46f59e123
    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>
    35 
    37 
    36 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
    38 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
    37 #include <graphics/windowserverconstants.h>
    39 #include <graphics/windowserverconstants.h>
    38 #include <graphics/pointereventdata.h>
    40 #include <graphics/pointereventdata.h>
    39 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS
    41 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS
  1199 /** Base class for all classes whose objects are clients of the window server.
  1201 /** Base class for all classes whose objects are clients of the window server.
  1200 
  1202 
  1201 @publishedAll
  1203 @publishedAll
  1202 @released */
  1204 @released */
  1203 	{
  1205 	{
       
  1206 	friend class RTFXEffect;
  1204 public:
  1207 public:
  1205 	MWsClientClass();
  1208 	MWsClientClass();
  1206 	MWsClientClass(RWsBuffer *aBuffer);
  1209 	MWsClientClass(RWsBuffer *aBuffer);
  1207 	inline TInt WsHandle() const;
  1210 	inline TInt WsHandle() const;
  1208 protected:
  1211 protected:
  1209 	void Write(const TAny *aData, TInt aLength,const TAny *aData2, TInt aLength2,TUint aOpcode) const;
  1212 	void Write(const TAny *aData1,TInt aLength1,TInt aLength2,TUint aOpcode) const;
  1210 	void Write(const TAny *aBuf, TInt aBufLen,TUint aOpcode) const;
  1213 	void Write(const TAny *aData, TInt aLength,const TAny *aData2, TInt aLength2,TUint aOpcode,const TIpcArgs* aIpcArgs=NULL) const;
       
  1214 	void Write(const TAny *aBuf, TInt aBufLen,TUint aOpcode,const TIpcArgs* aIpcArgs=NULL) const;
  1211 	void Write(TUint aOpcode) const;
  1215 	void Write(TUint aOpcode) const;
  1212 	void WriteInt(TInt aInt, TUint aOpcode) const;
  1216 	void WriteInt(TInt aInt, TUint aOpcode) const;
  1213 	void WriteRect(const TRect &aRect, TUint aOpcode) const;
  1217 	void WriteRect(const TRect &aRect, TUint aOpcode) const;
  1214 	void WritePoint(const TPoint &aPoint, TUint aOpcode) const;
  1218 	void WritePoint(const TPoint &aPoint, TUint aOpcode) const;
  1215 	void WriteSize(const TSize &aSize, TUint aOpcode) const;
  1219 	void WriteSize(const TSize &aSize, TUint aOpcode) const;
  1229     void MarkWindowSizeCacheDirty();
  1233     void MarkWindowSizeCacheDirty();
  1230     void RefreshWindowSizeCache(const TSize& aNewSize) const;
  1234     void RefreshWindowSizeCache(const TSize& aNewSize) const;
  1231     TInt CachedWindowSize(TSize& aSize) const;
  1235     TInt CachedWindowSize(TSize& aSize) const;
  1232     void DestroyWindowSizeCacheEntry();
  1236     void DestroyWindowSizeCacheEntry();
  1233 
  1237 
  1234 #ifdef SYMBIAN_GRAPHICS_FIXNATIVEORIENTATION
  1238 private:
  1235 	void EnableWindowNativeSizeCacheL();
  1239     void AppendData(const TAny *aData,TInt aLength,TBool aFinished);
  1236 	TBool WindowNativeSizeCacheEnabled() const;
  1240 	
  1237 	TInt SetWindowNativeSize(const TSize& aNativeSize) const;
       
  1238 	TInt WindowNativeSize(TSize& aSize) const;
       
  1239 	void DestroyWindowNativeSizeCacheEntry();
       
  1240 #endif // SYMBIAN_GRAPHICS_FIXNATIVEORIENTATION
       
  1241 
       
  1242 protected:
  1241 protected:
  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. */
  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. */
  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. */
  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. */
  1245 	};
  1244 	};
  1246 
  1245 
  1380 		ECustomTextCursorAlignBaseline,
  1379 		ECustomTextCursorAlignBaseline,
  1381 		/** The y-origin of each sprite member bitmap is aligned with the bottom of the
  1380 		/** The y-origin of each sprite member bitmap is aligned with the bottom of the
  1382 		line. */
  1381 		line. */
  1383 		ECustomTextCursorAlignBottom
  1382 		ECustomTextCursorAlignBottom
  1384 		};
  1383 		};
       
  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);
  1535 	
  1545 	
  1536 // functions not exported, used by CWsGraphic
  1546 // functions not exported, used by CWsGraphic
  1537 	void GraphicMessageReady(TRequestStatus *aStat);
  1547 	void GraphicMessageReady(TRequestStatus *aStat);
  1538 	void GetGraphicMessage(TDes8& aData) const;
  1548 	void GetGraphicMessage(TDes8& aData) const;
  1539 	void GraphicMessageCancel();
  1549 	void GraphicMessageCancel();
  1718 	IMPORT_C void RemoveBackgroundSurface(TBool aTriggerRedraw);
  1728 	IMPORT_C void RemoveBackgroundSurface(TBool aTriggerRedraw);
  1719 	IMPORT_C TInt GetBackgroundSurface(TSurfaceConfiguration& aConfiguration) const;
  1729 	IMPORT_C TInt GetBackgroundSurface(TSurfaceConfiguration& aConfiguration) const;
  1720 	IMPORT_C void SetSurfaceTransparency(TBool aSurfaceTransparency);
  1730 	IMPORT_C void SetSurfaceTransparency(TBool aSurfaceTransparency);
  1721 	IMPORT_C TRgb KeyColor() const;
  1731 	IMPORT_C TRgb KeyColor() const;
  1722 	IMPORT_C void EnableAdvancedPointers();
  1732 	IMPORT_C void EnableAdvancedPointers();
  1723 	IMPORT_C TInt FixNativeOrientation();
  1733 	IMPORT_C void SetPurpose(TInt aPurpose);
  1724 	IMPORT_C TSize SizeForEgl() const;
  1734 	IMPORT_C void SendEffectCommand(TInt aTfxCmd, const TDesC8& aTfxCmdData=KNullDesC8);
       
  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;
  1725 protected:
  1738 protected:
  1726 	TInt construct(const RWindowTreeNode &parent,TUint32 aHandle, TInt aType, TDisplayMode aDisplayMode);
  1739 	TInt construct(const RWindowTreeNode &parent,TUint32 aHandle, TInt aType, TDisplayMode aDisplayMode);
  1727 	};
  1740 	};
  1728 
  1741 
  1729 
  1742