Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
Loading...
Searching...
No Matches
w32std.h
Go to the documentation of this file.
1// Copyright (c) 1994-2010 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// Standard window server header file
15//
16//
17
18#ifndef __W32STD_H__
19#define __W32STD_H__
20
21#ifndef __FNTSTORE_H__
22#include <fntstore.h>
23#endif
24#ifndef __BITDEV_H__
25#include <bitdev.h>
26#endif
27#ifndef __BITSTD_H__
28#include <bitstd.h>
29#endif
30#include <e32keys.h>
31#include <textcursor.h>
32#include <pointerevent.h>
33#include <advancedpointerevent.h>
34#include <sizemode.h>
35#include <babitflags.h>
36#include <wspublishandsubscribedata.h>
37
38#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
39#include <graphics/windowserverconstants.h>
40#include <graphics/pointereventdata.h>
41#endif //SYMBIAN_ENABLE_SPLIT_HEADERS
42
43_LIT(KWSERVThreadName,"Wserv");
44
45class RWindowBase;
46class RWindow;
47class RWsBuffer;
48class MWsObjectProvider;
49class RWsDrawableSource;
50class TSizeMode;
51
66 {
87 };
88
98 {
102 CFbsBitGc::TGraphicsOrientation iRotation;
103 };
104
114 {
120 CFbsBitGc::TGraphicsOrientation iRotation;
121 };
122
130enum {
133 };
134
142
151enum
152 {
155 };
156
171enum {
174 };
175
187enum TCornerType
188// Bottom 16 bits available for corner type
189 {
216 };
217
226enum TCornerFlags
227// Top 16 bits available for corner flags
228 {
232 EWindowCornerNotTR=0x20000,
234 EWindowCornerNotBL=0x40000,
236 EWindowCornerNotBR=0x80000,
237 };
245 {
257 };
258
267enum TEventCode
268 {
308 EEventPointer, //5
374 EEventMarkInvalid, // For internal use only
426#ifdef SYMBIAN_PROCESS_MONITORING_AND_STARTUP
436 EEventRestartSystem,
437#endif
446 //Codes for events only passed into Key Click DLL's
453 EEventKeyRepeat=100,
457 //Codes for events only passed into anim dlls
469
470 //The range 900-999 is reserved for UI Framework events
472 EEventPowerMgmt = 900,
473 EEventReserved = 910,
474
475 //Event codes from EEventUser upwards may be used for non-wserv events.
476 //No event codes below this should be defined except by the window server
477
487 };
488
489
495enum THotKey
614
619 EHotKeyFirstKeyType=EHotKeyEnableLogging, //Must always be set to the first one
624 EHotKeyLastKeyType=EHotKeyCycleFocusScreen, //Must always be set to the last one
625 };
626
627
632enum TPasswordMode
633 {
656 };
657enum TPriorities {
661 EAllPriorities=KMinTInt,
662 };
663
672enum TSpriteFlags
673 {
677 ESpriteFlash=0x1,
689 };
690
691struct TSpriteMember
704 CFbsBitmap *iBitmap;
720 CFbsBitmap *iMaskBitmap;
723 TBool iInvertMask;
736 };
737
748enum TEventControl
749 {
758 };
759
771 {
772 //Basic Types
784 //Combinations of the above
796 };
798struct TKeyEvent
813 {
817 TUint iCode;
821 TInt iScanCode;
828 TInt iRepeats;
829 };
830
837 {
840 TUint iChangedModifiers;
843 TUint iModifiers;
844 };
845
854 {
855 enum
856 {
859 ECanBeSeen = 0x01,
862 ECantBeSeen = 0x02,
863 };
864 enum
865 {
867 EPartiallyVisible = 0x01,
869 ENotVisible = 0x02,
871 EFullyVisible = 0x04,
872 };
874 TUint iFlags;
875 };
876
885 {
892 TInt iDisplayNumber;
910 };
911
912struct TWsErrorMessage
918 {
920 enum TErrorCategory
921 {
936 EContrast,
937 };
941 TUint iError;
942 };
943
944class TWsRedrawEvent
954 {
955public:
956 inline TUint Handle() const;
957 inline TRect Rect() const;
958public:
959 void SetHandle(TUint aHandle);
960 void SetRect(TRect aRect);
961protected:
962 TUint iHandle;
963 TRect iRect;
964 };
965
974 {
975public:
976 inline TKeyEvent *Key() const;
977 inline TUint Handle() const;
978 inline void SetHandle(TUint aHandle);
979protected:
980 TUint iHandle;
981 TUint8 iEventData[sizeof(TKeyEvent)];
982 };
984class TWsEvent
996public:
998 enum
1003 EWsEventDataSize=sizeof(TAdvancedPointerEvent)
1005public:
1006 inline TWsEvent();
1007 inline TAdvancedPointerEvent* Pointer() const;
1008 inline TKeyEvent* Key() const;
1011 inline const TWsVisibilityChangedEvent* VisibilityChanged() const;
1013 inline const TWsDisplayChangedEvent* DisplayChanged() const;
1014 inline TWsErrorMessage* ErrorMessage() const;
1015 inline TUint8* EventData() const;
1016 inline TInt Type() const;
1017 inline TUint Handle() const;
1018 inline TTime Time() const;
1019 inline void SetType(TInt aType);
1020 inline void SetHandle(TUint aHandle);
1021 inline void SetTimeNow();
1022 inline TInt* Int() const;
1023 IMPORT_C void InitAdvancedPointerEvent(TPointerEvent::TType aType, TUint aModifiers, const TPoint3D &aPoint3D, TUint8 aPointerNumber);
1024 IMPORT_C void SetPointerNumber(TUint8 aPointerNumber);
1025 IMPORT_C void SetPointerZ(TInt aZ);
1026protected:
1027 TInt iType;
1028 TUint iHandle;
1031 };
1066 };
1067
1083 {
1101class TReadDescriptorType;
1102class TWriteDescriptorType;
1103class CWindowGc;
1104class RWsSession;
1105
1106class TWsGraphicId
1115 {
1116public:
1117 enum TUninitialized
1120 };
1122 IMPORT_C TWsGraphicId(TUid aUid);
1123 IMPORT_C TWsGraphicId(TInt aId);
1124 IMPORT_C TWsGraphicId(const TWsGraphicId& aCopy);
1125 IMPORT_C TUid Uid() const;
1126 IMPORT_C TBool IsUid() const;
1127 IMPORT_C void Set(TUid aUid);
1128 IMPORT_C TInt Id() const;
1129 IMPORT_C TBool IsId() const;
1130 IMPORT_C void Set(TInt aId);
1131 IMPORT_C TInt Compare(const TWsGraphicId& aOther) const;
1132private:
1133 friend class CWsGraphic;
1134 TUint iFlags;
1135 TInt iId;
1136 TInt iWsGraphicIdSpare[2];
1137 };
1139class CWsGraphic: public CBase
1145 {
1146protected:
1147 IMPORT_C CWsGraphic();
1148public:
1149 IMPORT_C ~CWsGraphic();
1150protected:
1151 // 2nd phase construction
1152 IMPORT_C void BaseConstructL(TUid aUid,TUid aType,const TDesC8& aData);
1153 IMPORT_C void BaseConstructL(TUid aType,const TDesC8& aData);
1154 IMPORT_C void BaseConstructL(const TWsGraphicId& aReplace,TUid aType,const TDesC8& aData);
1155 // sharing between clients
1156 IMPORT_C virtual TInt ShareGlobally();
1157 IMPORT_C virtual TInt Share(TSecureId aClientId);
1158 IMPORT_C virtual TInt UnShare(TSecureId aClientId);
1159 IMPORT_C virtual TInt UnShareGlobally();
1160public:
1161 IMPORT_C const TWsGraphicId& Id() const;
1162 IMPORT_C TBool IsActive() const;
1163 IMPORT_C void Destroy();
1164protected:
1165 IMPORT_C void SendMessage(const TDesC8& aData) const;
1166 IMPORT_C TInt SendSynchronMessage(const TDesC8& aData) const;
1167 IMPORT_C TInt Flush() const;
1168 IMPORT_C void SetGraphicExtension(MWsObjectProvider* aExt);
1169 IMPORT_C RWsSession& Session();
1171private:
1172 // events from wserv, to be implemented by derived classes
1177 virtual void HandleMessage(const TDesC8& aData) = 0;
1178
1183 virtual void OnReplace() = 0;
1184 IMPORT_C virtual void OnClientClose();
1185private:
1186 void BaseConstructL();
1187 IMPORT_C virtual TInt CWsGraphic_Reserved1();
1188 IMPORT_C virtual TInt CWsGraphic_Reserved2();
1189 IMPORT_C virtual TInt CWsGraphic_Reserved3();
1190public:
1191 class CManager;
1192private:
1193 friend class CManager;
1194 class CPimpl;
1195 friend class CPimpl;
1196 CPimpl* iPimpl;
1197 TInt iWsGraphicSpare[2];
1206 friend class RTFXEffect;
1207public:
1209 MWsClientClass(RWsBuffer *aBuffer);
1210 inline TInt WsHandle() const;
1211protected:
1212 void Write(const TAny *aData1,TInt aLength1,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;
1214 void Write(const TAny *aBuf, TInt aBufLen,TUint aOpcode,const TIpcArgs* aIpcArgs=NULL) const;
1215 void Write(TUint aOpcode) const;
1216 void WriteInt(TInt aInt, TUint aOpcode) const;
1217 void WriteRect(const TRect &aRect, TUint aOpcode) const;
1218 void WritePoint(const TPoint &aPoint, TUint aOpcode) const;
1219 void WriteSize(const TSize &aSize, TUint aOpcode) const;
1220 TInt WriteReply(TUint aOpcode,const TIpcArgs* aIpcArgs=NULL) const;
1221 TInt WriteReplyInt(TInt aInt, TUint aOpcode,const TIpcArgs* aIpcArgs=NULL) const;
1222 TInt WriteReply(const TAny *aBuf, TInt aBufLen,TUint aOpcode,const TIpcArgs* aIpcArgs=NULL) const;
1223 TInt WriteReply(const TAny *aBuf, TInt aBufLen,const TAny *aBuf2, TInt aBuflen2,TUint aOpcode,const TIpcArgs* aIpcArgs=NULL) const;
1224 TInt WriteReplyP(const TWriteDescriptorType& aReplyPackage,TUint aOpcode) const;
1225 TInt WriteReplyIntP(TInt aInt, const TWriteDescriptorType& aReplyPackage,TUint aOpcode) const;
1226 TInt WriteReplyP(const TAny *aBuf, TInt aBufLen, const TWriteDescriptorType& aReplyPackage,TUint aOpcode) const;
1227 TInt WriteReplyP(const TAny *aBuf, TInt aBufLen,const TAny *aBuf2, TInt aBuflen2, const TWriteDescriptorType& aReplyPackage,TUint aOpcode) const;
1228 TInt WriteReplyByProvidingRemoteReadAccess(const TAny* aBuf, TInt aBufLen,const TReadDescriptorType& aRemoteReadBuffer,TUint aOpcode) const;
1229 void AddToBitmapArray(const TInt aBitmapHandle)const;
1230 void AsyncRequest(TRequestStatus& aStatus, TUint aOpcode) const;
1234 void RefreshWindowSizeCache(const TSize& aNewSize) const;
1235 TInt CachedWindowSize(TSize& aSize) const;
1238private:
1239 void AppendData(const TAny *aData,TInt aLength,TBool aFinished);
1241protected:
1242 TInt32 iWsHandle;
1243 RWsBuffer *iBuffer;
1249class CWsBitmap;
1250class RAnimDll;
1251class RWsSpriteBase;
1253class RSoundPlugIn;
1254
1255
1256class RWsSession : public MWsClientClass, public RSessionBase
1298 friend class RWsBuffer;
1299 friend class RWindowTreeNode;
1300 friend class CWsScreenDevice;
1301 friend class CWsBitmap;
1302 friend class RAnimDll;
1303 friend class RWsSpriteBase;
1305 friend class RSoundPlugIn;
1306 friend class CWsGraphic;
1307 friend class RWsDrawableSource;
1308public:
1318 {
1332 };
1333 enum {ESystemInfoArraySize=16};
1338 {
1345 ELoggingStatusDump, //Window Tree Dump
1349 };
1350
1351 struct TWindowGroupChainInfo
1352 {
1353 /*Stores id and Parent id window group
1354
1355 This is used to define chained window groups's id and it's parent id.
1356 An array of these structures is returned by some of the varients of the function WindowGroupList.
1357 @publishedAll
1358 @released */
1359 TInt iId;
1360 TInt iParentId;
1361 };
1362
1363 struct SSystemInfo
1365 {
1367 };
1374 {
1386public:
1387 IMPORT_C RWsSession();
1388 IMPORT_C TInt Connect();
1389 IMPORT_C TInt Connect(RFs& aFileServer);
1390 IMPORT_C void Close();
1391 IMPORT_C TVersion Version() const;
1392
1393 IMPORT_C TInt SetHotKey(THotKey aType, TUint aKeyCode, TUint aModifierMask, TUint aModifier);
1394 IMPORT_C TInt ClearHotKeys(THotKey aType);
1395 IMPORT_C TInt RestoreDefaultHotKey(THotKey aType);
1396//
1397 IMPORT_C void EventReady(TRequestStatus *aStat);
1398 IMPORT_C void EventReadyCancel();
1399 IMPORT_C void GetEvent(TWsEvent &aEvent) const;
1400 IMPORT_C void PurgePointerEvents();
1401//
1402 IMPORT_C void RedrawReady(TRequestStatus *aStat);
1403 IMPORT_C void RedrawReadyCancel();
1404 IMPORT_C void GetRedraw(TWsRedrawEvent &aEvent);
1405//
1406 IMPORT_C void PriorityKeyReady(TRequestStatus *aStat);
1407 IMPORT_C void PriorityKeyReadyCancel();
1408 IMPORT_C void GetPriorityKey(TWsPriorityKeyEvent &aEvent) const;
1410 IMPORT_C void Flush();
1411 IMPORT_C TBool SetAutoFlush(TBool aState);
1412 IMPORT_C TInt SetKeyboardRepeatRate(const TTimeIntervalMicroSeconds32 &aInitialTime, const TTimeIntervalMicroSeconds32 &aTime);
1413 IMPORT_C void GetKeyboardRepeatRate(TTimeIntervalMicroSeconds32 &aInitialTime, TTimeIntervalMicroSeconds32 &aTime) const;
1414 IMPORT_C void GetDoubleClickSettings(TTimeIntervalMicroSeconds32 &aInterval, TInt &aDistance) const;
1415 IMPORT_C TInt SetDoubleClick(const TTimeIntervalMicroSeconds32 &aInterval, TInt aDistance);
1417 IMPORT_C TInt NumWindowGroups() const;
1418 IMPORT_C TInt WindowGroupList(CArrayFixFlat<TInt> *aWindowList) const;
1419 IMPORT_C TInt WindowGroupList(RArray<TWindowGroupChainInfo>* aWindowList) const;
1420 IMPORT_C TInt NumWindowGroups(TInt aPriority) const;
1421 IMPORT_C TInt WindowGroupList(TInt aPriority, CArrayFixFlat<TInt> *aWindowList) const;
1422 IMPORT_C TInt WindowGroupList(TInt aPriority, RArray<TWindowGroupChainInfo>* aWindowList) const;
1423 IMPORT_C TInt GetFocusWindowGroup() const;
1424 IMPORT_C TInt GetDefaultOwningWindow() const;
1425 IMPORT_C TInt SetWindowGroupOrdinalPosition(TInt aIdentifier, TInt aPosition);
1426 IMPORT_C TInt GetWindowGroupClientThreadId(TInt aIdentifier, TThreadId &aThreadId) const;
1427 IMPORT_C TInt GetWindowGroupHandle(TInt aIdentifier) const;
1428 IMPORT_C TInt GetWindowGroupOrdinalPriority(TInt aIdentifier) const;
1429 IMPORT_C TInt SendEventToWindowGroup(TInt aIdentifier, const TWsEvent &aEvent);
1430 IMPORT_C TInt SendEventToAllWindowGroups(const TWsEvent &aEvent);
1431 IMPORT_C TInt SendEventToAllWindowGroups(TInt aPriority, const TWsEvent &aEvent);
1432 IMPORT_C TInt SendEventToOneWindowGroupsPerClient(const TWsEvent &aEvent);
1433 IMPORT_C TInt GetWindowGroupNameFromIdentifier(TInt aIdentifier, TDes &aWindowName) const;
1434 IMPORT_C TInt FindWindowGroupIdentifier(TInt aPreviousIdentifier,const TDesC& aMatch,TInt aOffset=0) const;
1435 IMPORT_C TInt FindWindowGroupIdentifier(TInt aPreviousIdentifier,TThreadId aThreadId) const;
1436 IMPORT_C TInt SendMessageToWindowGroup(TInt aIdentifier, TUid aUid, const TDesC8 &aParams);
1437 IMPORT_C TInt SendMessageToAllWindowGroups(TUid aUid, const TDesC8& aParams);
1438 IMPORT_C TInt SendMessageToAllWindowGroups(TInt aPriority, TUid aUid, const TDesC8& aParams);
1439 IMPORT_C TInt FetchMessage(TUid &aUid, TPtr8 &aParams, const TWsEvent& aMessageEvent) const;
1440//
1441 IMPORT_C void SetShadowVector(const TPoint &aVector);
1442 IMPORT_C TPoint ShadowVector() const;
1444 IMPORT_C void SetBackgroundColor(TRgb aColor);
1445 IMPORT_C TRgb GetBackgroundColor() const;
1447 IMPORT_C TInt RegisterSurface(TInt aScreenNumber, const TSurfaceId& aSurface);
1448 IMPORT_C void UnregisterSurface(TInt aScreenNumber, const TSurfaceId& aSurface);
1450//
1451 IMPORT_C TInt SetSystemPointerCursor(const RWsPointerCursor &aPointerCursor,TInt aCursorNumber);
1452 IMPORT_C void ClearSystemPointerCursor(TInt aCursorNumber);
1453 IMPORT_C TInt ClaimSystemPointerCursorList();
1454 IMPORT_C void FreeSystemPointerCursorList();
1455//
1456 IMPORT_C TInt SetCustomTextCursor(TInt aIdentifier, const TArray<TSpriteMember>& aSpriteMemberArray, TUint aSpriteFlags, TCustomTextCursorAlignment aAlignment);
1457//
1458 IMPORT_C TInt ResourceCount() const;
1459 IMPORT_C void PasswordEntered();
1460 IMPORT_C void ComputeMode(TComputeMode aMode);
1461//
1462 IMPORT_C TInt HeapCount() const;
1463 IMPORT_C TInt DebugInfo(TInt aFunction, TInt aParam=0) const;
1464 IMPORT_C TInt DebugInfo(TInt aFunction, TDes8& aReturnBuf, TInt aParam=0) const;
1465 IMPORT_C void HeapSetFail(TInt aTAllocFail,TInt aValue);
1466 IMPORT_C void HeapSetBurstFail(TInt aTAllocFail,TInt aRate,TInt aBurst);
1467 IMPORT_C TInt SetModifierState(TEventModifier aModifier,TModifierState aState);
1468 IMPORT_C TInt GetModifierState() const;
1469//
1470 IMPORT_C TInt RequestOffEvents(TBool aOn,RWindowTreeNode *aWin=NULL);
1471 IMPORT_C TDisplayMode GetDefModeMaxNumColors(TInt& aColor,TInt& aGray) const;
1472 IMPORT_C TInt GetColorModeList(CArrayFixFlat<TInt> *aModeList) const;
1474 IMPORT_C void SetPointerCursorArea(const TRect& aArea);
1475 IMPORT_C void SetPointerCursorArea(TInt aScreenSizeMode,const TRect& aArea);
1476 IMPORT_C TRect PointerCursorArea() const;
1477 IMPORT_C TRect PointerCursorArea(TInt aScreenSizeMode) const;
1479 IMPORT_C TInt SetClientCursorMode(TPointerCursorMode aMode);
1481 IMPORT_C void SetDefaultSystemPointerCursor(TInt aCursorNumber);
1483 IMPORT_C TInt SetPointerCursorPosition(const TPoint& aPosition);
1484 IMPORT_C TPoint PointerCursorPosition() const;
1486 IMPORT_C void SetDefaultFadingParameters(TUint8 aBlackMap,TUint8 aWhiteMap);
1487 IMPORT_C void PrepareForSwitchOff();
1488 IMPORT_C void SetBufferSizeL(TInt aBufSize);
1489 IMPORT_C void SetMaxBufferSizeL(TInt aMaxBufSize);
1490 IMPORT_C TInt SetSystemFaded(TBool aFaded);
1491 IMPORT_C TInt SetSystemFaded(TBool aFaded,TUint8 aBlackMap,TUint8 aWhiteMap);
1492
1493// Functions for multiple screens
1494 IMPORT_C TInt SetFocusScreen(TInt aScreenNumber);
1495 IMPORT_C TInt GetFocusScreen() const;
1496 IMPORT_C void ClearAllRedrawStores();
1497 IMPORT_C TInt NumWindowGroups(TInt aScreenNumber,TInt aPriority) const;
1498 IMPORT_C TInt NumberOfScreens() const;
1499 IMPORT_C TInt WindowGroupList(CArrayFixFlat<TInt>* aWindowList,TInt aScreenNumber,TInt aPriority=EAllPriorities) const;
1500 IMPORT_C TInt GetFocusWindowGroup(TInt aScreenNumber) const;
1501 IMPORT_C TInt GetDefaultOwningWindow(TInt aScreenNumber) const;
1502 IMPORT_C TDisplayMode GetDefModeMaxNumColors(TInt aScreenNumber,TInt& aColor,TInt& aGray) const;
1503 IMPORT_C TInt GetColorModeList(TInt aScreenNumber,CArrayFixFlat<TInt>* aModeList) const;
1504#if defined(__WINS__)
1505// Function for WINS behaviour only
1506 IMPORT_C void SetRemoveKeyCode(TBool aRemove);
1507 IMPORT_C void SimulateXyInputType(TInt aInputType); //Only for testing WSERV
1508#endif
1510 IMPORT_C void SimulateRawEvent(TRawEvent aEvent);
1511 IMPORT_C void SimulateKeyEvent(TKeyEvent aEvent);
1512 IMPORT_C void LogCommand(TLoggingCommand aCommand);
1513 IMPORT_C void LogMessage(const TLogMessageText &aMessage);
1515// Functions for test code use only
1516 IMPORT_C void SystemInfo(TInt &aSystemInfoNumber, SSystemInfo &aSystemInfo);
1517 IMPORT_C void TestWrite(TInt aHandle,TInt aOpcode,const TAny *aData, TInt aLength);
1518 IMPORT_C void TestWriteReply(TInt aHandle,TInt aOpcode,const TAny *aData, TInt aLength);
1519 IMPORT_C void TestWriteReplyP(TInt aHandle,TInt aOpcode,const TAny *aData,TInt aLength,TDes8 *aReplyPackage);
1520 IMPORT_C TInt TestWriteReplyByProvidingRemoteReadAccess(TInt aHandle,TInt aOpcode,const TDesC8& aData,const TDesC8& aRemoteReadBuffer);
1521 IMPORT_C TInt TestWriteReplyByProvidingRemoteReadAccess(TInt aHandle,TInt aOpcode,const TDesC8& aData,const TDesC16& aRemoteReadBuffer);
1523 IMPORT_C TInt Finish();
1524 IMPORT_C void SyncMsgBuf();
1526// Getters and setters for pointer event's thresholds
1527 IMPORT_C TInt SetCloseProximityThresholds(TInt aEnterCloseProximityThreshold, TInt aExitCloseProximityThreshold);
1528 IMPORT_C TInt GetEnterCloseProximityThreshold() const;
1529 IMPORT_C TInt GetExitCloseProximityThreshold() const;
1530 IMPORT_C TInt SetHighPressureThresholds(TInt aEnterHighPressureThreshold, TInt aExitHighPressureThreshold);
1531 IMPORT_C TInt GetEnterHighPressureThreshold() const;
1532 IMPORT_C TInt GetExitHighPressureThreshold() const;
1533//
1534 IMPORT_C void EnableWindowSizeCacheL();
1535 IMPORT_C void SendEffectCommand(TInt aTfxCmd, const TDesC8& aTfxCmdData=KNullDesC8);
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);
1543//Application tells the window server the orientation of rendering it intends to use
1544 IMPORT_C void IndicateAppOrientation(TRenderOrientation aOrientation);
1546// functions not exported, used by CWsGraphic
1548 void GetGraphicMessage(TDes8& aData) const;
1550 void GraphicAbortMessage(TInt aError);
1552private:
1553 TInt doWindowGroupList(TInt aPriority, RArray<TWindowGroupChainInfo>* aWindowListCh, TInt aNumOpcode, TInt aListOpcode) const;
1554 TInt doWindowGroupList(TInt aScreenNumber, TInt aPriority, CArrayFixFlat<TInt>* aWindowListId, TInt aNumOpcode, TInt aListOpcode) const;
1555 TInt doSetHotKey(TInt aOpcode, TInt aType, TUint aKeycode, TUint aModifierMask, TUint aModifiers);
1556 void doReadEvent(TRequestStatus *aStat, TInt aOpcode);
1558private:
1559 void connectL();
1560 TInt DoFlush(const TIpcArgs& aIpcArgs);
1561 TInt DoSyncMsgBuf(const TIpcArgs& aIpcArgs);
1562 void DirectAcessActivation(TBool aIsNowActive);
1568
1579 friend class RWindowGroup;
1580 friend class RWindowBase;
1581 friend class CWindowGc;
1582 friend class RAnimDll;
1583 friend class RWsSprite;
1584public:
1589 enum TFadeControl
1590 {
1597 EFadeWindowOnly=EFalse,
1598 };
1599protected:
1602public:
1603 IMPORT_C void Close();
1604 IMPORT_C void Destroy();
1605 IMPORT_C TUint32 ClientHandle() const;
1606 IMPORT_C TUint32 Parent() const;
1607 IMPORT_C TUint32 PrevSibling() const;
1608 IMPORT_C TUint32 NextSibling() const;
1609 IMPORT_C TUint32 Child() const;
1610 IMPORT_C TInt OrdinalPriority() const;
1611 IMPORT_C TInt OrdinalPosition() const;
1612 IMPORT_C TInt FullOrdinalPosition() const;
1613 IMPORT_C void SetOrdinalPosition(TInt aPos);
1614 IMPORT_C void SetOrdinalPosition(TInt aPos,TInt aOrdinalPriority);
1615 IMPORT_C TInt ScreenNumber() const;
1616 IMPORT_C TInt WindowGroupId() const;
1617 IMPORT_C TInt SetPointerCursor(TInt aCursorNumber);
1618 IMPORT_C void SetCustomPointerCursor(const RWsPointerCursor &aPointerCursor);
1620 IMPORT_C void DisableOnEvents();
1625 IMPORT_C TInt EnableGroupListChangeEvents();
1626 IMPORT_C void DisableGroupListChangeEvents();
1628 IMPORT_C void DisableVisibilityChangeEvents();
1629 IMPORT_C TInt EnableErrorMessages(TEventControl aCircumstances);
1630 IMPORT_C void DisableErrorMessages();
1631 IMPORT_C TInt EnableModifierChangedEvents(TUint aModifierMask, TEventControl aCircumstances);
1633 IMPORT_C void SetNonFading(TBool aNonFading);
1634 IMPORT_C void SetFaded(TBool aFaded,TFadeControl aIncludeChildren);
1635 IMPORT_C void SetFaded(TBool aFaded,TFadeControl aIncludeChildren,TUint8 aBlackMap,TUint8 aWhiteMap);
1636 IMPORT_C void ClearPointerCursor();
1637 IMPORT_C RWsSession* Session() const;
1638protected:
1640 };
1641
1642
1643class TSurfaceId;
1644class TSurfaceConfiguration;
1645
1646class RWindowBase : public RWindowTreeNode
1657 {
1658public:
1663 enum TCaptureFlags
1665// Flags, these can be combined to customise pointer capture
1684 RWindowBase(RWsSession &aWs);
1685public:
1686 IMPORT_C void Activate();
1687 IMPORT_C void SetPosition(const TPoint &point);
1688 IMPORT_C TInt SetSizeErr(const TSize &size);
1689 IMPORT_C TInt SetExtentErr(const TPoint &point,const TSize &size);
1690 IMPORT_C TSize Size() const;
1691 IMPORT_C TPoint InquireOffset(const RWindowTreeNode &aWindow) const;
1692 IMPORT_C void PointerFilter(TUint32 aFilterMask, TUint32 aFilter);
1693 IMPORT_C void SetPointerGrab(TBool aState);
1694 IMPORT_C void ClaimPointerGrab(TBool aSendUpEvent=ETrue);
1695 IMPORT_C TInt ClaimPointerGrab(const TUint8 aPointerNumber, const TBool aSendUpEvent=ETrue);
1696 IMPORT_C void SetPointerCapture(TInt aFlags);
1697 IMPORT_C void SetPointerCapturePriority(TInt aPriority);
1698 IMPORT_C TInt GetPointerCapturePriority() const;
1699 IMPORT_C void SetVisible(TBool aState);
1700 IMPORT_C void SetShadowHeight(TInt aHeight);
1701 IMPORT_C void SetShadowDisabled(TBool aState);
1702 IMPORT_C TPoint Position() const;
1703 IMPORT_C TPoint AbsPosition() const;
1704 IMPORT_C TInt SetCornerType(TCornerType aCornerType, TInt aCornerFlags=0);
1705 IMPORT_C TInt SetShape(const TRegion &aRegion);
1706 IMPORT_C TInt SetRequiredDisplayMode(TDisplayMode aMode);
1707 IMPORT_C TDisplayMode DisplayMode() const;
1708 IMPORT_C void EnableBackup(TUint aBackupType=EWindowBackupAreaBehind);
1711 IMPORT_C TInt RequestPointerRepeatEvent(TTimeIntervalMicroSeconds32 aTime,const TRect &aRect, const TUint8 aPointerNumber); //< @prototype
1712 IMPORT_C TInt CancelPointerRepeatEventRequest(const TUint8 aPointerNumber); //< @prototype
1713 IMPORT_C TInt AllocPointerMoveBuffer(TInt aMaxPoints, TUint aFlags);
1714 IMPORT_C void FreePointerMoveBuffer();
1717 IMPORT_C TInt RetrievePointerMoveBuffer(TDes8 &aBuf) const;
1719 IMPORT_C TInt AddKeyRect(const TRect &aRect, TInt aScanCode, TBool aActivatedByPointerSwitchOn);
1720 IMPORT_C void RemoveAllKeyRects();
1721 IMPORT_C TInt PasswordWindow(TPasswordMode aPasswordMode);
1722 IMPORT_C void FadeBehind(TBool aFade);
1723 IMPORT_C TBool IsFaded() const;
1724 IMPORT_C TBool IsNonFading() const;
1725 IMPORT_C TInt MoveToGroup(TInt aIdentifier);
1726 IMPORT_C TInt SetBackgroundSurface(const TSurfaceId& aSurface);
1727 IMPORT_C TInt SetBackgroundSurface(const TSurfaceConfiguration& aConfiguration, TBool aTriggerRedraw);
1728 IMPORT_C void RemoveBackgroundSurface(TBool aTriggerRedraw);
1729 IMPORT_C TInt GetBackgroundSurface(TSurfaceConfiguration& aConfiguration) const;
1730 IMPORT_C void SetSurfaceTransparency(TBool aSurfaceTransparency);
1731 IMPORT_C TRgb KeyColor() const;
1732 IMPORT_C void EnableAdvancedPointers();
1733 IMPORT_C void SetPurpose(TInt aPurpose);
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;
1738protected:
1739 TInt construct(const RWindowTreeNode &parent,TUint32 aHandle, TInt aType, TDisplayMode aDisplayMode);
1740 };
1741
1742
1743class RBlankWindow : public RWindowBase
1753 {
1754public:
1755 IMPORT_C RBlankWindow();
1756 IMPORT_C RBlankWindow(RWsSession &aWs);
1757 IMPORT_C TInt Construct(const RWindowTreeNode &parent, TUint32 aHandle);
1758 IMPORT_C void SetColor(TRgb aColor);
1759 IMPORT_C void SetColor();
1760 IMPORT_C void SetSize(const TSize &size);
1761 IMPORT_C void SetExtent(const TPoint &point,const TSize &size);
1762 };
1764
1776protected:
1779public:
1780 IMPORT_C void Scroll(const TPoint &aOffset);
1781 IMPORT_C void Scroll(const TRect &aClipRect, const TPoint &aOffset);
1782 IMPORT_C void Scroll(const TPoint &aOffset, const TRect &aRect);
1783 IMPORT_C void Scroll(const TRect &aClipRect, const TPoint &aOffset, const TRect &aRect);
1784 IMPORT_C TRect GetDrawRect() const;
1785protected:
1786 void SetDrawRect(const TRect &aRect);
1787private:
1788 void doScroll(const TRect &aClipRect, const TPoint &aOffset, const TRect &aRect, TInt aOpcode);
1790 TRect iDrawRect;
1816public:
1817 IMPORT_C RWindow();
1818 IMPORT_C RWindow(RWsSession &aWs);
1819 IMPORT_C TInt Construct(const RWindowTreeNode &parent,TUint32 aHandle);
1820 IMPORT_C void BeginRedraw();
1821 IMPORT_C void BeginRedraw(const TRect &aRect);
1822 IMPORT_C void EndRedraw();
1823 IMPORT_C void Invalidate();
1824 IMPORT_C void Invalidate(const TRect &aRect);
1825 IMPORT_C void GetInvalidRegion(RRegion &aRegion) const;
1826 IMPORT_C void SetBackgroundColor(TRgb aColor);
1827 IMPORT_C void SetBackgroundColor();
1828 IMPORT_C void SetSize(const TSize &size);
1829 IMPORT_C void SetExtent(const TPoint &point,const TSize &size);
1831 IMPORT_C TInt SetTransparencyFactor(const TRgb& aTransparencyFactor);
1832 IMPORT_C TInt SetTransparencyBitmap(const CFbsBitmap& aTransparencyBitmap);
1833 IMPORT_C TInt SetTransparencyWsBitmap(const CWsBitmap& aTransparencyBitmap);
1834 IMPORT_C void SetNonTransparent();
1835 IMPORT_C void EnableRedrawStore(TBool aEnabled);
1836 IMPORT_C TInt SetTransparencyAlphaChannel();
1837 IMPORT_C TInt SetTransparentRegion(const TRegion& aRegion);
1838 IMPORT_C TInt SetTransparencyPolicy(TWsTransparencyPolicy aPolicy);
1839 IMPORT_C TBool IsRedrawStoreEnabled() const;
1840 IMPORT_C void EnableOSB(TBool);
1841 IMPORT_C void ClearRedrawStore();
1842 };
1843
1859 {
1860public:
1861 IMPORT_C RBackedUpWindow();
1862 IMPORT_C RBackedUpWindow(RWsSession &aWs);
1863 IMPORT_C TInt Construct(const RWindowTreeNode &parent,TDisplayMode aDisplayMode, TUint32 aHandle);
1864 IMPORT_C TInt BitmapHandle() const;
1865 IMPORT_C void UpdateScreen();
1866 IMPORT_C void UpdateScreen(const TRegion &aRegion);
1867 IMPORT_C void UpdateBackupBitmap();
1868 IMPORT_C void MaintainBackup();
1870
1878public:
1879 IMPORT_C RWindowGroup();
1880 IMPORT_C RWindowGroup(RWsSession &aWs);
1881 IMPORT_C TInt Construct(TUint32 aClientHandle);
1882 IMPORT_C TInt Construct(TUint32 aClientHandle,CWsScreenDevice* aScreenDevice);
1883 IMPORT_C TInt Construct(TUint32 aClientHandle,TBool aIsFocusable,CWsScreenDevice* aScreenDevice);
1884 IMPORT_C TInt Construct(TUint32 aClientHandle,TBool aIsFocusable);
1885 IMPORT_C TInt ConstructChildApp(TInt aIdOfParentWindowGroup,TUint32 aClientHandle);
1886 IMPORT_C TInt ConstructChildApp(TInt aIdOfParentWindowGroup,TUint32 aClientHandle,TBool aIsFocusable);
1887 IMPORT_C void AllowProcessToCreateChildWindowGroups(TUid aProcessSID);
1888 IMPORT_C void EnableReceiptOfFocus(TBool aState);
1889 IMPORT_C void AutoForeground(TBool aState);
1890 IMPORT_C void SetOrdinalPriorityAdjust(TInt aAdjust);
1891 IMPORT_C TInt SetOrdinalPositionErr(TInt aPos,TInt aOrdinalPriority);
1892 IMPORT_C TInt32 CaptureKey(TUint aKeycode, TUint aModifierMask, TUint aModifier);
1893 IMPORT_C TInt32 CaptureKey(TUint aKeycode, TUint aModifierMask, TUint aModifier, TInt aPriority);
1894 IMPORT_C void CancelCaptureKey(TInt32 aCaptureKey);
1895 IMPORT_C TInt32 CaptureKeyUpAndDowns(TUint aScanCode, TUint aModifierMask, TUint aModifier);
1896 IMPORT_C TInt32 CaptureKeyUpAndDowns(TUint aScanCode, TUint aModifierMask, TUint aModifier, TInt aPriority);
1897 IMPORT_C void CancelCaptureKeyUpAndDowns(TInt32 aCaptureKey);
1898 IMPORT_C TInt32 CaptureLongKey(TUint aInputKeyCode,TUint aOutputKeyCode,TUint aModifierMask,TUint aModifier
1899 ,TInt aPriority,TUint aFlags);
1900 IMPORT_C TInt32 CaptureLongKey(TTimeIntervalMicroSeconds32 aRepeatTime,TUint aInputKeyCode,TUint aOutputKeyCode
1901 ,TUint aModifierMask,TUint aModifier,TInt aPriority,TUint aFlags);
1902 IMPORT_C void CancelCaptureLongKey(TInt32 aCaptureKey);
1903 IMPORT_C TInt AddPriorityKey(TUint aKeycode, TUint aModifierMask, TUint aModifier);
1904 IMPORT_C void RemovePriorityKey(TUint aKeycode, TUint aModifierMask, TUint aModifier);
1905 IMPORT_C void SetTextCursor(RWindowBase &aWin, const TPoint &aPos, const TTextCursor &aCursor);
1906 IMPORT_C void SetTextCursor(RWindowBase &aWin, const TPoint &aPos, const TTextCursor &aCursor, const TRect &aClipRect);
1907 IMPORT_C void CancelTextCursor();
1908 IMPORT_C void SetOwningWindowGroup(TInt aIdentifier);
1909 IMPORT_C void DefaultOwningWindow();
1910 IMPORT_C TInt SetName(const TDesC &aName);
1911 IMPORT_C TInt Name(TDes &aWindowName) const;
1912 IMPORT_C TInt Identifier() const;
1913 IMPORT_C void DisableKeyClick(TBool aState);
1916 IMPORT_C void SimulatePointerEvent(TRawEvent aEvent);
1917 IMPORT_C void SimulateAdvancedPointerEvent(TRawEvent aEvent);
1918 IMPORT_C TInt ClearChildGroup();
1919 IMPORT_C TInt SetChildGroup(TInt aId);
1920private:
1921 TInt32 doCaptureKey(TUint aKey, TUint aModifierMask, TUint aModifiers, TInt aPriority, TInt aOpcode);
1922 void doCancelCaptureKey(TInt32 aCaptureKeyHandle, TInt aOpcode);
1923 TInt Construct(TInt aIdOfParentWindowGroup, TUint32 aClientHandle, TBool aIsFocusable, CWsScreenDevice* aScreenDevice);
1927class CWsBitmap : public CFbsBitmap, public MWsClientClass
1937public:
1938 IMPORT_C CWsBitmap();
1939 IMPORT_C CWsBitmap(RWsSession &aWs);
1940 IMPORT_C ~CWsBitmap();
1941 IMPORT_C TInt Create(const TSize& aSizeInPixels,TDisplayMode aDispMode);
1942 IMPORT_C TInt Duplicate(TInt aHandle);
1943 IMPORT_C TInt Load(const TDesC& aFileName,TInt32 aId,TBool aShareIfLoaded=ETrue);
1944 IMPORT_C void InternalizeL(RReadStream& aStream);
1945 IMPORT_C void Reset();
1946private:
1947 TInt createWsBitmap(TInt aErr);
1948 };
1949
1950class RWsGraphicMsgBuf;
1951
{
1957public:
1958 IMPORT_C TPtrC8 Pckg() const;
1959 IMPORT_C TUid TypeId() const;
1960 IMPORT_C TInt Size() const;
1961protected:
1962 IMPORT_C TWsGraphicMsgFixedBase(TUid aTypeId,TInt aSizeOfDerived);
1963private:
1964 const TUid iTypeId;
1965 const TInt iSize;
1967
1968class RWsGraphicMsgBuf: private RBuf8
1973 {
1974public:
1975 IMPORT_C RWsGraphicMsgBuf();
1976 using RBuf8::Close;
1977 using RBuf8::CleanupClosePushL;
1978 IMPORT_C TInt Append(TUid aTypeId,const TDesC8& aData);
1979 IMPORT_C TInt Append(TUid aTypeId,const TDesC16& aData);
1980 IMPORT_C TInt Append(TUid aTypeId,TInt aLen,TPtr8& aPtr);
1981 IMPORT_C TInt Append(const TWsGraphicMsgFixedBase& aMsg);
1982 IMPORT_C void Remove(TInt aIndex);
1983 IMPORT_C TInt Count() const;
1984 IMPORT_C TUid TypeId(TInt aIndex) const;
1985 IMPORT_C TPtrC8 Data(TInt aIndex) const;
1986 IMPORT_C TPtr8 Data(TInt aIndex);
1987 IMPORT_C void GetFixedMsg(TWsGraphicMsgFixedBase& aMsg,TInt aIndex) const;
1988 IMPORT_C const TDesC8& Pckg() const;
1989private:
1990 TInt ExpandForAppend(TInt aDataLen);
1991 void WriteHeader(TUid aUid,TInt aLen);
1992 TInt IntAt(TInt aOfs) const;
1993private:
1994 TInt iRMsgBufSpare[2];
2023 {
2024 friend class CWsScreenDevice;
2025public:
2033 {
2042 };
2044 IMPORT_C CWindowGc(CWsScreenDevice *aDevice);
2045 IMPORT_C virtual ~CWindowGc();
2046 IMPORT_C virtual TInt Construct();
2047 IMPORT_C virtual void Activate(RDrawableWindow &aDevice);
2048 IMPORT_C virtual void Deactivate();
2049//====================FROM CGraphicsContext.H===============================
2050 IMPORT_C virtual CGraphicsDevice* Device() const;
2051 IMPORT_C virtual void SetOrigin(const TPoint &aPoint=TPoint(0,0));
2052 IMPORT_C virtual void SetDrawMode(TDrawMode aDrawingMode);
2053 IMPORT_C virtual void SetClippingRect(const TRect& aRect);
2054 IMPORT_C virtual void CancelClippingRect();
2055 IMPORT_C virtual void Reset();
2056
2057 IMPORT_C virtual void UseFont(const CFont *aFont);
2058 IMPORT_C virtual void DiscardFont();
2059 IMPORT_C virtual void SetUnderlineStyle(TFontUnderline aUnderlineStyle);
2060 IMPORT_C virtual void SetStrikethroughStyle(TFontStrikethrough aStrikethroughStyle);
2061// Used to do justified text properly
2062 IMPORT_C virtual void SetWordJustification(TInt aExcessWidth,TInt aNumGaps);
2063// Used primarily to get accurate WYSIWYG
2064 IMPORT_C virtual void SetCharJustification(TInt aExcessWidth,TInt aNumChars);
2065
2066 IMPORT_C virtual void SetPenColor(const TRgb &aColor);
2067 IMPORT_C virtual void SetPenStyle(TPenStyle aPenStyle);
2068 IMPORT_C virtual void SetPenSize(const TSize& aSize);
2069
2070 IMPORT_C virtual void SetBrushColor(const TRgb &aColor);
2071 IMPORT_C virtual void SetBrushStyle(TBrushStyle aBrushStyle);
2072 IMPORT_C virtual void SetBrushOrigin(const TPoint &aOrigin);
2073 IMPORT_C virtual void UseBrushPattern(const CFbsBitmap *aDevice);
2074 IMPORT_C virtual void DiscardBrushPattern();
2075//
2076// Move the internal position, as used by DrawLineTo & DrawLineBy, and set by MoveTo,
2077// MoveBy, DrawLine, DrawLineTo, DrawLineBy and DrawPolyline
2078 IMPORT_C virtual void MoveTo(const TPoint &aPoint);
2079 IMPORT_C virtual void MoveBy(const TPoint &aPoint);
2080 IMPORT_C virtual void Plot(const TPoint &aPoint);
2081//
2082// Line drawing subject to pen color, width and style and draw mode
2083 IMPORT_C virtual void DrawArc(const TRect &aRect,const TPoint &aStart,const TPoint &aEnd);
2084 IMPORT_C virtual void DrawLine(const TPoint &aPoint1,const TPoint &aPoint2);
2085 IMPORT_C virtual void DrawLineTo(const TPoint &aPoint);
2086 IMPORT_C virtual void DrawLineBy(const TPoint &aPoint);
2087 IMPORT_C virtual void DrawPolyLine(const CArrayFix<TPoint> *aPointList);
2088 IMPORT_C virtual void DrawPolyLine(const TPoint* aPointList,TInt aNumPoints);
2090// Filled outlines
2091// Outlines subject to pen color, width and style and draw mode
2092// (set pen to ENullPen for no outline)
2093// Fill subject to brush style (color, hash or pattern) and origin and
2094// drawing mode (set brush to ENullBrush for no fill)
2095 IMPORT_C virtual void DrawPie(const TRect &aRect,const TPoint &aStart,const TPoint &aEnd);
2096 IMPORT_C virtual void DrawEllipse(const TRect &aRect);
2097 IMPORT_C virtual void DrawRect(const TRect &aRect);
2098 IMPORT_C virtual void DrawRoundRect(const TRect &aRect,const TSize &aEllipse);
2099 IMPORT_C virtual TInt DrawPolygon(const CArrayFix<TPoint> *aPointList,TFillRule aFillRule=EAlternate);
2100 IMPORT_C virtual TInt DrawPolygon(const TPoint* aPointList,TInt aNumPoints,TFillRule aFillRule=EAlternate);
2101//
2102// Uses the bitmap's Twips size and does a "stretch" blit in general
2103 IMPORT_C virtual void DrawBitmap(const TPoint &aTopLeft, const CFbsBitmap *aDevice);
2104 IMPORT_C virtual void DrawBitmap(const TRect &aDestRect, const CFbsBitmap *aDevice);
2105 IMPORT_C virtual void DrawBitmap(const TRect &aDestRect, const CFbsBitmap *aDevice, const TRect &aSourceRect);
2106 IMPORT_C virtual void DrawBitmapMasked(const TRect& aDestRect, const CFbsBitmap* aBitmap, const TRect& aSourceRect, const CFbsBitmap* aMaskBitmap, TBool aInvertMask);
2107 IMPORT_C virtual void DrawBitmapMasked(const TRect& aDestRect, const CWsBitmap* aBitmap, const TRect& aSourceRect, const CWsBitmap* aMaskBitmap, TBool aInvertMask);
2108
2109// Required as not all DrawText and DrawTextVertical functions are implemented in CWindowGc
2112//
2113// Text drawing subject to drawing mode
2114// Subject to used font, pen color, drawing mode,
2115// word and char justification
2116 IMPORT_C virtual void DrawText(const TDesC &aBuf,const TPoint &aPos);
2117//
2118// Subject to same as above plus brush for background
2119// (set brush to ENullBrush for no effect on background)
2120 IMPORT_C virtual void DrawText(const TDesC &aBuf,const TRect &aBox,TInt aBaselineOffset,TTextAlign aHoriz=ELeft,TInt aLeftMrg=0);
2121//================Extra functions from CBitmapContext==============
2122 IMPORT_C virtual void Clear();
2123 IMPORT_C virtual void Clear(const TRect &aRect);
2124 IMPORT_C virtual void CopyRect(const TPoint &anOffset,const TRect &aRect);
2125 IMPORT_C virtual void BitBlt(const TPoint &aPos, const CFbsBitmap *aBitmap);
2126 IMPORT_C virtual void BitBlt(const TPoint &aDestination, const CFbsBitmap *aBitmap, const TRect &aSource);
2127 IMPORT_C virtual void BitBltMasked(const TPoint& aPoint,const CFbsBitmap* aBitmap,const TRect& aSourceRect,const CFbsBitmap* aMaskBitmap,TBool aInvertMask);
2128 IMPORT_C virtual void BitBlt(const TPoint &aPoint, const CWsBitmap *aBitmap);
2129 IMPORT_C virtual void BitBlt(const TPoint &aDestination, const CWsBitmap *aBitmap, const TRect &aSource);
2130 IMPORT_C virtual void BitBltMasked(const TPoint& aPoint,const CWsBitmap *aBitmap,const TRect& aSourceRect,const CWsBitmap *aMaskBitmap,TBool aInvertMask);
2131 IMPORT_C virtual void MapColors(const TRect& aRect,const TRgb* aColors,TInt aNumPairs=2,TBool aMapForwards=ETrue);
2132
2133 IMPORT_C virtual void DrawTextVertical(const TDesC& aText,const TPoint& aPos,TBool aUp);
2134 IMPORT_C virtual void DrawTextVertical(const TDesC& aText,const TRect& aBox,TInt aBaselineOffset,TBool aUp,TTextAlign aVert=ELeft,TInt aMargin=0);
2135//=================Extra functions specific to wserv GDI==============
2136 IMPORT_C virtual void SetDitherOrigin(const TPoint& aPoint);
2137 IMPORT_C virtual TInt SetClippingRegion(const TRegion &aRegion);
2138 IMPORT_C virtual void CancelClippingRegion();
2139 IMPORT_C virtual void SetOpaque(TBool aDrawOpaque=ETrue);
2140//=================Functions also supplied by CFbsBitGc==============
2141 IMPORT_C virtual void SetFaded(TBool aFaded);
2142 IMPORT_C virtual void SetFadingParameters(TUint8 aBlackMap,TUint8 aWhiteMap);
2143 IMPORT_C virtual TInt AlphaBlendBitmaps(const TPoint& aDestPt, const CFbsBitmap* aSrcBmp, const TRect& aSrcRect, const CFbsBitmap* aAlphaBmp, const TPoint& aAlphaPt);
2144 IMPORT_C virtual TInt AlphaBlendBitmaps(const TPoint& aDestPt, const CWsBitmap* aSrcBmp, const TRect& aSrcRect, const CWsBitmap* aAlphaBmp, const TPoint& aAlphaPt);
2145//
2146 IMPORT_C TAny* Interface(TUid aInterfaceId);
2147 IMPORT_C const TAny* Interface(TUid aInterfaceId) const;
2149protected:
2150 IMPORT_C TInt APIExtension(TUid aUid, TAny*& aOutput, TAny* aInput);
2151
2152private:
2154 IMPORT_C void Reserved_CGraphicsContext_2();
2156 IMPORT_C void Reserved_CBitmapContext_1();
2157 IMPORT_C void Reserved_CBitmapContext_2();
2158 IMPORT_C void Reserved_CBitmapContext_3();
2160public:
2161 IMPORT_C virtual void DrawWsGraphic(const TWsGraphicId& aId,const TRect& aDestRect);
2162 IMPORT_C virtual void DrawWsGraphic(const TWsGraphicId& aId,const TRect& aDestRect,const TDesC8& aData);
2163private:
2164 IMPORT_C virtual void Reserved_CWindowGc_3();
2165 IMPORT_C virtual void Reserved_CWindowGc_4();
2166 IMPORT_C virtual void Reserved_CWindowGc_5();
2167
2168//=============================================================
2169private: // Private code
2170 TRgb Color(TInt aOpcode)const;
2171 void SetJustification(TInt aExcessWidth,TInt aNumGaps, TInt aOpcode);
2172 void DrawArcOrPie(const TRect &aRect,const TPoint &aStart,const TPoint &aEnd, TInt aOpcode);
2173 void doDrawPolyLine(const CArrayFix<TPoint> *aPointArray, const TPoint* aPointList,TInt aNumPoints);
2174 TInt doDrawPolygon(const CArrayFix<TPoint> *aPointArray,const TPoint* aPointList,TInt aNumPoints,TFillRule aFillRule);
2175 void WriteTextPos(TInt aOpcode,TInt aOpcodePtr,const TPoint &aPos,const TDesC &aBuf) const;
2176 void WriteTextCommand(TAny *aCmd, TInt aLen,const TDesC &aBuf,TInt aOpcode,TInt aOpcodePtr) const;
2177 void WriteTextCommand(TAny *aCmd, TInt aLen,const TDesC8 &aBuf,TInt aOpcode,TInt aOpcodePtr) const;
2178 TInt APIExGetUnderlineMetrics(TAny*& aOutput);
2179 TInt APIExSetShadowColor(TAny* aShadowColor);
2180 TInt APIExGetShadowColor(TAny*& aOutput);
2181 // New DrawText API's that take in context
2182 TInt APIExDrawText(const TDesC &aBuf,const TTextParameters* aParam,const TPoint &aPos);
2183 TInt APIExDrawText(const TDesC &aBuf,const TTextParameters* aParam,const TRect &aBox,TInt aBaselineOffset,TTextAlign aHoriz=ELeft,TInt aLeftMrg=0);
2184 TInt APIExDrawTextVertical(const TDesC& aText,const TTextParameters* aParam,const TPoint& aPos,TBool aUp);
2185 TInt APIExDrawTextVertical(const TDesC& aText,const TTextParameters* aParam,const TRect& aBox,TInt aBaselineOffset,TBool aUp,TTextAlign aVert=ELeft,TInt aMargin=0);
2186 TInt APIExInterface(TAny*& aInterface, TUid aInterfaceId);
2187
2188 void DrawResource(const TPoint& aPos, const RWsDrawableSource& aSource, TGraphicsRotation aRotation=EGraphicsRotationNone);
2189 void DrawResource(const TRect& aDestRect, const RWsDrawableSource& aSource, TGraphicsRotation aRotation=EGraphicsRotationNone);
2190 void DrawResource(const TRect& aDestRect, const RWsDrawableSource& aSource, const TRect& aSrcRect, TGraphicsRotation aRotation=EGraphicsRotationNone);
2191 void DrawResource(const TRect& aDestRect, const RWsDrawableSource& aSource, const TDesC8& aParam);
2192
2193private: // Private data
2194 class CPimpl;
2195 CPimpl* iPimpl;
2200class CWsScreenDevice : public CBitmapDevice, public MWsClientClass
2215public:
2226 ERemoveSprite=0,
2238public:
2242 IMPORT_C TInt Construct();
2243 IMPORT_C TInt Construct( TInt aDefaultScreenNumber ) ;
2244 IMPORT_C TAny* GetInterface(TUint aInterfaceId);
2245 inline const TAny* GetInterface(TUint aInterfaceId) const;
2246 IMPORT_C TBool IsModeDynamic(TInt aSizeMode) const;
2247 IMPORT_C TBool IsCurrentModeDynamic() const;
2248//==== From CGraphicsDevice ====//
2249 IMPORT_C TDisplayMode DisplayMode() const;
2250 IMPORT_C TSize SizeInPixels() const;
2251 IMPORT_C TSize SizeInTwips() const;
2252 IMPORT_C TInt HorizontalTwipsToPixels(TInt aTwips) const;
2253 IMPORT_C TInt VerticalTwipsToPixels(TInt aTwips) const;
2254 IMPORT_C TInt HorizontalPixelsToTwips(TInt aPixels) const;
2255 IMPORT_C TInt VerticalPixelsToTwips(TInt aPixels) const;
2256 IMPORT_C TRect PointerRect() const;
2257 IMPORT_C TInt CreateContext(CGraphicsContext *&aGc);
2258 inline TInt CreateContext(CWindowGc*& aGc);
2259 IMPORT_C virtual TInt GetNearestFontInTwips(CFont*& aFont,const TFontSpec& aFontSpec);
2260 IMPORT_C virtual TInt GetNearestFontToDesignHeightInTwips(CFont*& aFont,const TFontSpec& aFontSpec);
2261 IMPORT_C virtual TInt GetNearestFontToMaxHeightInTwips(CFont*& aFont,const TFontSpec& aFontSpec,TInt aMaxHeight);
2262 IMPORT_C TInt NumTypefaces() const;
2263 IMPORT_C void TypefaceSupport(TTypefaceSupport& aTypefaceSupport,TInt aTypefaceIndex) const;
2264 IMPORT_C TInt FontHeightInTwips(TInt aTypefaceIndex,TInt aHeightIndex) const;
2265// ==== From CBitmapDevice ====//
2266 IMPORT_C void GetPixel(TRgb& aColor,const TPoint& aPixel) const;
2267 IMPORT_C void GetScanLine(TDes8& aScanLine,const TPoint& aStartPixel,TInt aPixelLength, TDisplayMode aDispMode) const;
2268 IMPORT_C TInt AddFile(const TDesC& aName,TInt& aId);
2269 IMPORT_C void RemoveFile(TInt aId=0);
2270 IMPORT_C virtual TInt GetNearestFontInPixels(CFont*& aFont,const TFontSpec& aFontSpec);
2271 IMPORT_C virtual TInt GetNearestFontToDesignHeightInPixels(CFont*& aFont,const TFontSpec& aFontSpec);
2272 IMPORT_C virtual TInt GetNearestFontToMaxHeightInPixels(CFont*& aFont,const TFontSpec& aFontSpec,TInt aMaxHeight);
2273 IMPORT_C TInt FontHeightInPixels(TInt aTypefaceIndex,TInt aHeightIndex) const;
2274 IMPORT_C void ReleaseFont(CFont* aFont);
2275//===== From CFbsScreenDevice ====//
2276 IMPORT_C void PaletteAttributes(TBool& aModifiable,TInt& aNumEntries) const;
2277 IMPORT_C void SetPalette(CPalette* aPalette);
2278 IMPORT_C TInt GetPalette(CPalette*& aPalette) const;
2279//===== Extra functions ====//
2280 IMPORT_C TInt SetCustomPalette(const CPalette* aPalette);
2281 IMPORT_C TInt GetFontById(CFont*& aFont,TUid aUid,const TAlgStyle& aAlgStyle);
2282 IMPORT_C TBool RectCompare(const TRect &aRect1,const TRect &aRect2) const;
2283 IMPORT_C TBool RectCompare(const TRect& aRect1,const TRect &aRect2,TUint aFlags) const;
2284 IMPORT_C TInt CopyScreenToBitmap(const CFbsBitmap *aBitmap) const;
2285 IMPORT_C TInt CopyScreenToBitmap(const CFbsBitmap *aBitmap, const TRect &aRect) const;
2286 IMPORT_C TInt SetBackLight(TBool aBackLight);
2287//===== Screen Rotation functions ====//
2288 IMPORT_C void SetScreenSizeAndRotation(const TPixelsTwipsAndRotation &aSizeAndRotation);
2289 IMPORT_C void GetDefaultScreenSizeAndRotation(TPixelsTwipsAndRotation &aSizeAndRotation) const;
2290 IMPORT_C void SetScreenSizeAndRotation(const TPixelsAndRotation &aSizeAndRotation);
2291 IMPORT_C void GetDefaultScreenSizeAndRotation(TPixelsAndRotation &aSizeAndRotation) const;
2293 IMPORT_C void SetScreenModeEnforcement(TScreenModeEnforcement aMode) const;
2294 IMPORT_C void GetScreenModeSizeAndRotation(TInt aMode, TPixelsTwipsAndRotation &aSizeAndRotation) const;
2295 IMPORT_C void GetScreenModeSizeAndRotation(TInt aMode, TPixelsAndRotation &aSizeAndRotation) const;
2296 IMPORT_C void SetCurrentRotations(TInt aMode, CFbsBitGc::TGraphicsOrientation aRotation) const;
2297 IMPORT_C TInt GetRotationsList(TInt aMode, CArrayFixFlat<TInt> *aRotationList) const;
2298 IMPORT_C TInt NumScreenModes() const;
2299 IMPORT_C void SetScreenMode(TInt aMode);
2300 IMPORT_C TInt CurrentScreenMode() const;
2301 IMPORT_C void SetAppScreenMode(TInt aMode);
2302 IMPORT_C TPoint GetDefaultScreenModeOrigin() const;
2303 IMPORT_C TPoint GetScreenModeOrigin(TInt aMode) const;
2304 IMPORT_C TSize GetCurrentScreenModeScale() const;
2305 IMPORT_C TSize GetScreenModeScale(TInt aMode) const;
2307 IMPORT_C TPoint GetScreenModeScaledOrigin(TInt aMode) const;
2308 IMPORT_C TInt GetScreenSizeModeList(RArray<TInt>* aModeList) const;
2309 IMPORT_C TDisplayMode GetScreenModeDisplayMode(const TInt &aMode) const;
2310//===== Used for testing purpose only ====//
2311 IMPORT_C TSizeMode GetCurrentScreenModeAttributes() const;
2312 IMPORT_C void SetCurrentScreenModeAttributes(const TSizeMode &aModeAtt);
2313 IMPORT_C TInt GetScreenNumber() const;
2314private:
2315 CFbsTypefaceStore* TypeFaceStore()const;
2316 TSize DisplaySizeInPixels()const;
2317 TSize PhysicalScreenSizeInTwips()const;
2318private: // Private data
2319 class CScrDevExtension; //Implements extension interfaces, including and replacing typeface store
2320 CScrDevExtension* iExtension;
2321 TSize iPhysicalScreenSizeInTwips;
2322 TSize iDisplaySizeInPixels;
2323 friend class CWindowGc;
2324 };
2325
2326
2327class RWsSpriteBase : public MWsClientClass
2328// Client side class base class for sprites and pointer cursors
2338 {
2339protected:
2340 IMPORT_C RWsSpriteBase();
2341 IMPORT_C RWsSpriteBase(RWsSession &aWs);
2342public:
2343 IMPORT_C TInt Activate();
2344 IMPORT_C TInt AppendMember(const TSpriteMember &aMemberData);
2345 IMPORT_C void UpdateMember(TInt aIndex);
2346 IMPORT_C TInt UpdateMember(TInt aIndex, const TSpriteMember &aMemberData);
2347 IMPORT_C void Close();
2348 };
2349
2350
2359 {
2360public:
2361 IMPORT_C RWsSprite();
2362 IMPORT_C RWsSprite(RWsSession &aWs);
2363 IMPORT_C TInt Construct(RWindowTreeNode &aWindow, const TPoint &aPos, TInt aFlags);
2364 IMPORT_C void SetPosition(const TPoint &aPos);
2393 {
2394public:
2397 IMPORT_C TInt Construct(TInt aFlags);
2401class RAnim;
2416public:
2417 IMPORT_C RAnimDll();
2418 IMPORT_C virtual ~RAnimDll();
2419 IMPORT_C RAnimDll(RWsSession &aWs);
2420 IMPORT_C TInt Load(const TDesC &aFileName);
2421 IMPORT_C void Destroy();
2422 IMPORT_C virtual void Close();
2423private:
2424 TInt CommandReply(TInt aHandle, TInt aOpcode, const TIpcArgs* aIpcArgs=NULL);
2425 TInt CommandReply(TInt aHandle, TInt aOpcode, const TDesC8& aArgs, const TIpcArgs* aIpcArgs=NULL);
2426 void Command(TInt aHandle, TInt aOpcode, const TPtrC8 &aArgs);
2427 void Command(TInt aHandle, TInt aOpcode);
2428 void AsyncCommandReply(TRequestStatus& aStatus, TInt aOpcode, TIpcArgs& aIpcArgs);
2429 TInt CreateInstance(TInt32& aHandle, const MWsClientClass &aDevice, TInt aType, const TDesC8 &aArgs, TInt aOpcode, const TIpcArgs* aIpcArgs);
2430 void DestroyInstance(TInt aHandle);
2431private:
2432 friend class RAnim;
2433 };
2434
2435
2436class RAnim
2444 {
2445public:
2446 IMPORT_C virtual ~RAnim();
2447 IMPORT_C virtual void Close();
2448 IMPORT_C void Destroy();
2449protected:
2450 IMPORT_C RAnim();
2451 IMPORT_C RAnim(RAnimDll &aDll);
2452 IMPORT_C TInt Construct(const RWindowBase &aDevice, TInt aType, const TDesC8 &aParams);
2453 IMPORT_C TInt Construct(const RWindowBase &aDevice, TInt aType, const TDesC8 &aParams, const TIpcArgs& aIpcArgs);
2454 IMPORT_C TInt Construct(const RWsSprite &aDevice, TInt aType, const TDesC8 &aParams);
2455 IMPORT_C TInt Construct(const RWsSprite &aDevice, TInt aType, const TDesC8 &aParams, const TIpcArgs& aIpcArgs);
2456 IMPORT_C TInt CommandReply(TInt aOpcode);
2457 IMPORT_C TInt CommandReply(TInt aOpcode, const TPtrC8 &aArgs);
2458 IMPORT_C TInt CommandReply(TInt aOpcode, const TDesC8& aArgs, const TIpcArgs& aIpcArgs);
2459 IMPORT_C void Command(TInt aOpcode, const TPtrC8 &aArgs);
2460 IMPORT_C void Command(TInt aOpcode);
2461 IMPORT_C void AsyncCommandReply(TRequestStatus& aRequestStatus,TInt aOpcode, const TIpcArgs& aIpcArgs);
2462private:
2463 TInt32 iHandle;
2464 RAnimDll *iAnimDll;
2465 };
2466
2467class CDsaMsgQueue;
2479 {
2480public:
2491 {
2502 };
2505 enum TPriority
2506 {
2510 EPriorityVeryHigh=2000,
2511 };
2512public:
2513 IMPORT_C RDirectScreenAccess();
2514 IMPORT_C RDirectScreenAccess(RWsSession& aWs);
2515 IMPORT_C TInt Construct();
2516 IMPORT_C TInt Construct(TBool aRegionTrackingOnly);
2517 IMPORT_C TInt Request(RRegion*& aRegion,TRequestStatus& aStatus,const RWindowBase& aWindow);
2518 IMPORT_C void Completed();
2519 IMPORT_C void Cancel();
2520 IMPORT_C void Close();
2521private:
2522 RWsSession* iWs;
2523 CDsaMsgQueue* iMsgQueue;
2524 // To maintain BC we need the following
2525 RThread iWsThread;
2526 TRequestStatus* iDummyRequest;
2527 };
2528
2529
2538 {
2539public:
2555 virtual void AbortNow(RDirectScreenAccess::TTerminationReasons aReason)=0;
2557
2558
2570 {
2571public:
2588class CDirectScreenAccess : public CActive
2605 {
2606public:
2607 IMPORT_C static CDirectScreenAccess* NewL(RWsSession& aWs,CWsScreenDevice& aScreenDevice,RWindowBase& aWin,MDirectScreenAccess& aAbort);
2608 IMPORT_C static CDirectScreenAccess* NewL(RWsSession& aWs,CWsScreenDevice& aScreenDevice,RWindowBase& aWin,MDirectScreenAccess& aAbort,TBool aRegionTrackingOnly);
2610 IMPORT_C void StartL();
2611 inline CFbsBitGc* Gc();
2612 inline CFbsScreenDevice*& ScreenDevice();
2613 inline RRegion* DrawingRegion();
2614private:
2615 enum TFlags
2616 {
2617 EDirectCheckModeChange = 0x01,
2618 EDirectCheckSizeModeChange = 0x02,
2619 EDirectRegionTrackingOnly = 0x04,
2620 };
2621private:
2622 inline CDirectScreenAccess(RWsSession& aWs,CWsScreenDevice* aScreenDevice,RWindowBase& aWindow,MDirectScreenAccess& aAbort);
2623 void ConstructL(RWsSession& aWs,TBool aRegionTrackingOnly);
2624 void CreateScreenObjectsL(TDisplayMode aCurrentMode);
2625 void UpdateSizeAndRotation(CFbsBitGc* aGc);
2626 static TInt Restart(TAny* aDirect);
2627 void Restart();
2628 //Pure virtual functions from CActive
2629 void DoCancel();
2630 void RunL();
2631private:
2632 CFbsBitGc* iGc;
2633 CFbsScreenDevice* iScreenDevice;
2634 RRegion* iDrawingRegion;
2635 RWindowBase& iWindow;
2636 CWsScreenDevice* iWsScreenDevice;
2637 MDirectScreenAccess& iAbort;
2638 RDirectScreenAccess iDirectAccess;
2640 CIdle* iRestart;
2641 TSize iScreenSize;
2642 TBool iAborting;
2643 TUint iFlags;
2644 TInt iScreenNumber;
2656 {
2657public:
2659 enum
2660 {
2665 ESoundWrongPlugIn=KMinTInt
2666 };
2667public:
2668 IMPORT_C RSoundPlugIn();
2669 IMPORT_C RSoundPlugIn(RWsSession &aWs);
2670 IMPORT_C TInt Construct(TUid aUid=KNullUid);
2671 IMPORT_C void Close();
2672 IMPORT_C void Destroy();
2673 IMPORT_C TBool IsLoaded(TBool& aIsChangeable) const;
2674 IMPORT_C TInt Unload();
2675 IMPORT_C TInt Load(const TDesC &aFileName);
2676 IMPORT_C void SetKeyClick(TBool aEnabled);
2677 IMPORT_C void SetPenClick(TBool aEnabled);
2678 IMPORT_C TBool KeyClickEnabled() const;
2679 IMPORT_C TBool PenClickEnabled() const;
2680 IMPORT_C TInt CommandReply(TInt aOpcode, const TPtrC8 &aArgs);
2681 };
2682
2683inline TInt MWsClientClass::WsHandle() const
2687 {return(iWsHandle);}
2688
2689inline const TAny* CWsScreenDevice::GetInterface(TUint aInterfaceId) const
2691 return const_cast<CWsScreenDevice*>(this)->GetInterface(aInterfaceId);
2692 }
2693
2703 {return(CreateContext((CGraphicsContext *&)aGc));}
2704
2705inline TUint TWsRedrawEvent::Handle() const
2713 {return(iHandle);}
2714
2715inline TRect TWsRedrawEvent::Rect() const
2720 {return(iRect);}
2721
2726 {
2727 iType=0;
2728 iHandle=0;
2729 iTime=0;
2731 }
2732
2733inline TAdvancedPointerEvent* TWsEvent::Pointer() const
2746 {return((TAdvancedPointerEvent *)&iEventData);}
2747
2748inline TInt TAdvancedPointerEvent::PointerNumber() const
2769 {
2770 return IsAdvancedPointerEvent() ? DoGetPointerNumber() : ENonAdvancedPointerPointerNumber;
2771 }
2772
2773inline TInt TAdvancedPointerEvent::Proximity() const
2789 {
2790 return IsAdvancedPointerEvent() ? DoGetProximity() : ENonAdvancedPointerZCoordinate;
2791 }
2792
2793inline TInt TAdvancedPointerEvent::Pressure() const
2808 return IsAdvancedPointerEvent() ? DoGetPressure() : ENonAdvancedPointerZCoordinate;
2811inline TInt TAdvancedPointerEvent::ProximityAndPressure() const
2822 {return IsAdvancedPointerEvent() ? DoGetProximityAndPressure() : ENonAdvancedPointerZCoordinate;}
2823
2824inline TPoint3D TAdvancedPointerEvent::PositionAndPressure3D() const
2829 {
2830 TPoint3D point3D;
2831 point3D.iX=iPosition.iX;
2832 point3D.iY=iPosition.iY;
2833 point3D.iZ=ProximityAndPressure();
2834 return point3D;
2835 }
2836
2837inline TPoint3D TAdvancedPointerEvent::Position3D() const
2842 {
2843 TPoint3D point3D;
2844 point3D.iX=iPosition.iX;
2845 point3D.iY=iPosition.iY;
2846 point3D.iZ=IsAdvancedPointerEvent() ? DoGetProximity() : ENonAdvancedPointerZCoordinate;
2847 return point3D;
2848 }
2849
2850inline TPoint3D TAdvancedPointerEvent::Pressure3D() const
2855 {
2856 TPoint3D point3D;
2857 point3D.iX=iPosition.iX;
2858 point3D.iY=iPosition.iY;
2859 point3D.iZ=IsAdvancedPointerEvent() ? DoGetPressure() : ENonAdvancedPointerZCoordinate;
2860 return point3D;
2862
2863inline TKeyEvent *TWsEvent::Key() const
2870 {return((TKeyEvent *)&iEventData);}
2871
2879 { return reinterpret_cast<TWsVisibilityChangedEvent*>(iEventData); }
2880
2888 { return reinterpret_cast<const TWsVisibilityChangedEvent*>(iEventData); }
2889
2897 { return reinterpret_cast<TWsDisplayChangedEvent*>(iEventData); }
2898
2906 { return reinterpret_cast<const TWsDisplayChangedEvent*>(iEventData); }
2907
2915 {return((TModifiersChangedEvent *)&iEventData);}
2916
2924 {return((TWsErrorMessage *)&iEventData);}
2925
2926inline TUint8 *TWsEvent::EventData() const
2935 {return((TUint8 *)&iEventData);}
2936
2937inline TInt TWsEvent::Type() const
2941 {return(iType);}
2942
2943inline TUint TWsEvent::Handle() const
2951 {return(iHandle);}
2952
2953inline TTime TWsEvent::Time() const
2957 {return(iTime);}
2958
2959inline void TWsEvent::SetType(TInt aType)
2963 {iType=aType;}
2964
2965inline void TWsEvent::SetHandle(TUint aHandle)
2971 {iHandle=aHandle;}
2972
2973inline void TWsEvent::SetTimeNow()
2975 {iTime.UniversalTime();}
2976
2977inline TInt *TWsEvent::Int() const
2991 { return (TInt*)&iEventData; }
2992
2993inline TUint TWsPriorityKeyEvent::Handle() const
3001 {return(iHandle);}
3002
3003inline TKeyEvent *TWsPriorityKeyEvent::Key() const
3007 {return((TKeyEvent *)&iEventData);}
3008
3009inline void TWsPriorityKeyEvent::SetHandle(TUint aHandle)
3015 {iHandle=aHandle;}
3016
3017inline CDirectScreenAccess::CDirectScreenAccess(RWsSession& aWs,CWsScreenDevice* aScreenDevice,RWindowBase& aWindow,MDirectScreenAccess& aAbort)
3018 :CActive(RDirectScreenAccess::EPriorityVeryHigh), iWindow(aWindow), iAbort(aAbort), iDirectAccess(aWs)
3019 {iWsScreenDevice=aScreenDevice;}
3020
3021inline CFbsBitGc* CDirectScreenAccess::Gc()
3033 { return iGc; }
3034
3035inline CFbsScreenDevice*& CDirectScreenAccess::ScreenDevice()
3043 { return iScreenDevice; }
3044
3057 { return iDrawingRegion; }
3058
3059#endif //__W32STD_H__
The core class of the active object abstraction.
Definition e32base.h:1638
Array of fixed length objects contained within a flat dynamic buffer.
Definition e32base.h:488
A thin templated base class for arrays of fixed length objects.
Definition e32base.h:402
Container Base Class.
Definition e32base.h:60
An abstract, device-independent, interface to bitmapped graphics contexts.
Definition gdi.h:3181
Defines an abstract interface for the capabilities and attributes of a bitmapped graphics device.
Definition gdi.h:3358
An active object used to start direct screen access.
Definition w32std.h:2741
CFbsBitGc * Gc()
Gets the graphics context for drawing to the screen.
Definition w32std.h:3163
static IMPORT_C CDirectScreenAccess * NewL(RWsSession &aWs, CWsScreenDevice &aScreenDevice, RWindowBase &aWin, MDirectScreenAccess &aAbort)
Allocates and constructs the object and adds it to the current active scheduler.
CFbsScreenDevice *& ScreenDevice()
Gets the screen device to draw to.
Definition w32std.h:3177
IMPORT_C void StartL()
Informs the window server that you are going to start direct screen access and sets up a graphics con...
RRegion * DrawingRegion()
Gets the clipping region to draw to.
Definition w32std.h:3187
Abstract font interface.
Definition gdi.h:1347
Parameters used in drawing text within supplied context.
Definition gdi.h:2116
Abstract base class for all graphics contexts.
Definition gdi.h:1851
virtual void DrawText(const TDesC &aText, const TPoint &aPosition)=0
Draws text without a surrounding box.
virtual void DrawTextVertical(const TDesC &aText, const TPoint &aPos, TBool aUp)=0
Draws vertical text in the specified direction.
@ EAlternate
Only fill areas with odd winding numbers.
Definition gdi.h:2063
TTextAlign
Text alignment.
Definition gdi.h:1862
@ ELeft
Text is left-aligned.
Definition gdi.h:1864
Specifies the interface for concrete device classes.
Definition gdi.h:1205
An active object that performs low-priority processing when no higher-priority active objects are rea...
Definition e32base.h:1781
Provides user-definable palette support to the GDI.
Definition gdi.h:365
Window graphics context.
Definition w32std.h:2133
virtual IMPORT_C void SetDrawMode(TDrawMode aDrawingMode)
Sets the drawing mode.
virtual IMPORT_C void DrawBitmap(const TPoint &aTopLeft, const CFbsBitmap *aDevice)
Draws a bitmap at the specified point.
virtual IMPORT_C void DrawWsGraphic(const TWsGraphicId &aId, const TRect &aDestRect)
Draws an abstract artwork.
virtual IMPORT_C void DiscardBrushPattern()
Discards a non-built-in brush pattern.
virtual IMPORT_C void UseBrushPattern(const CFbsBitmap *aDevice)
Sets the brush pattern to the specified bitmap.
virtual IMPORT_C void DrawRect(const TRect &aRect)
Draws and fills a rectangle.
virtual IMPORT_C void SetBrushOrigin(const TPoint &aOrigin)
Sets the brush pattern origin.
virtual IMPORT_C void DrawBitmapMasked(const TRect &aDestRect, const CFbsBitmap *aBitmap, const TRect &aSourceRect, const CFbsBitmap *aMaskBitmap, TBool aInvertMask)
Draws a specified rectangle of a source bitmap to fit into a given rectangle using a given mask.
virtual IMPORT_C ~CWindowGc()
Destructor.
IMPORT_C TAny * Interface(TUid aInterfaceId)
virtual IMPORT_C TInt AlphaBlendBitmaps(const TPoint &aDestPt, const CFbsBitmap *aSrcBmp, const TRect &aSrcRect, const CFbsBitmap *aAlphaBmp, const TPoint &aAlphaPt)
Performs an alpha blending of the source data, aSrcBmp, with the CBitmapContext, using the data from ...
virtual IMPORT_C TInt DrawPolygon(const CArrayFix< TPoint > *aPointList, TFillRule aFillRule=EAlternate)
Draws and fills a polygon defined using an array of points.
virtual IMPORT_C void SetOpaque(TBool aDrawOpaque=ETrue)
Sets and unsets an opaque flag on the window.
virtual IMPORT_C void BitBltMasked(const TPoint &aPoint, const CFbsBitmap *aBitmap, const TRect &aSourceRect, const CFbsBitmap *aMaskBitmap, TBool aInvertMask)
Performs a masked bitmap block transfer.
virtual IMPORT_C void Deactivate()
Frees the graphics context to be used with another window.
virtual IMPORT_C void MapColors(const TRect &aRect, const TRgb *aColors, TInt aNumPairs=2, TBool aMapForwards=ETrue)
Maps pixels in the specified rectangle.
virtual IMPORT_C void SetClippingRect(const TRect &aRect)
Sets the clipping rectangle.
virtual IMPORT_C void DrawRoundRect(const TRect &aRect, const TSize &aEllipse)
Draws and fills a rectangle with rounded corners.
virtual IMPORT_C void MoveTo(const TPoint &aPoint)
Sets the drawing point relative to the co-ordinate origin.
virtual IMPORT_C void Plot(const TPoint &aPoint)
Draws a single point.
virtual IMPORT_C void SetCharJustification(TInt aExcessWidth, TInt aNumChars)
Sets character justification.
virtual IMPORT_C void Activate(RDrawableWindow &aDevice)
Activates the context for a given window and updates iDevice with the pointer to the screen device of...
virtual IMPORT_C void Clear()
Clears the whole bitmap.
virtual IMPORT_C void UseFont(const CFont *aFont)
Sets the device font to be used for text drawing.
virtual IMPORT_C void DrawPie(const TRect &aRect, const TPoint &aStart, const TPoint &aEnd)
Draws and fills a pie slice.
virtual IMPORT_C CGraphicsDevice * Device() const
Gets a pointer to the graphics context's graphics device.
virtual IMPORT_C void DrawLineTo(const TPoint &aPoint)
Draws a straight line from the current drawing point to a specified point.
virtual IMPORT_C void DrawEllipse(const TRect &aRect)
Draws and fills an ellipse.
virtual IMPORT_C void SetPenSize(const TSize &aSize)
Sets the line drawing size for the pen.
virtual IMPORT_C TInt SetClippingRegion(const TRegion &aRegion)
Sets the clipping region, any items that fall outside the extent of the clipping region will not be d...
virtual IMPORT_C void DrawArc(const TRect &aRect, const TPoint &aStart, const TPoint &aEnd)
Draws an arc.
virtual IMPORT_C void SetOrigin(const TPoint &aPoint=TPoint(0, 0))
Sets the position of the co-ordinate origin.
virtual IMPORT_C TInt Construct()
Completes construction.
virtual IMPORT_C void SetFaded(TBool aFaded)
Sets whether the graphics context is faded.
virtual IMPORT_C void CopyRect(const TPoint &anOffset, const TRect &aRect)
Copies a rectangle.
virtual IMPORT_C void DrawPolyLine(const CArrayFix< TPoint > *aPointList)
Draws a polyline from a set of points in an array.
virtual IMPORT_C void SetPenColor(const TRgb &aColor)
Sets the pen colour.
virtual IMPORT_C void SetStrikethroughStyle(TFontStrikethrough aStrikethroughStyle)
Sets the strikethrough style.
virtual IMPORT_C void DrawLine(const TPoint &aPoint1, const TPoint &aPoint2)
Draws a straight line between two points.
virtual IMPORT_C void MoveBy(const TPoint &aPoint)
Sets the drawing point relative to the current co-ordinates.
virtual IMPORT_C void SetBrushColor(const TRgb &aColor)
Sets the brush colour.
virtual IMPORT_C void DrawTextVertical(const TDesC &aText, const TPoint &aPos, TBool aUp)
Draws vertical text in the specified direction.
virtual IMPORT_C void BitBlt(const TPoint &aPos, const CFbsBitmap *aBitmap)
Performs a bitmap block transfer.
virtual IMPORT_C void SetBrushStyle(TBrushStyle aBrushStyle)
Sets the brush style.
TGraphicsRotation
Defines possible clockwise rotation values.
Definition w32std.h:2144
@ EGraphicsRotation90
A 90 degree rotation.
Definition w32std.h:2148
@ EGraphicsRotation180
A 180 degree rotation.
Definition w32std.h:2150
@ EGraphicsRotation270
A 270 degree rotation.
Definition w32std.h:2152
@ EGraphicsRotationNone
No rotation.
Definition w32std.h:2146
virtual IMPORT_C void SetFadingParameters(TUint8 aBlackMap, TUint8 aWhiteMap)
Sets the fading parameters.
virtual IMPORT_C void Reset()
Resets the graphics context to its default settings:
IMPORT_C TInt APIExtension(TUid aUid, TAny *&aOutput, TAny *aInput)
virtual IMPORT_C void SetPenStyle(TPenStyle aPenStyle)
Sets the line drawing style for the pen.
virtual IMPORT_C void SetUnderlineStyle(TFontUnderline aUnderlineStyle)
Sets the underline style.
virtual IMPORT_C void DrawLineBy(const TPoint &aPoint)
Draws a straight line relative to the current drawing point, using a vector.
virtual IMPORT_C void DiscardFont()
Discards a font.
virtual IMPORT_C void DrawText(const TDesC &aBuf, const TPoint &aPos)
Draws text without a surrounding box.
virtual IMPORT_C void CancelClippingRect()
Cancels any clipping rectangle.
virtual IMPORT_C void CancelClippingRegion()
Cancels the current clipping region.
virtual IMPORT_C void SetWordJustification(TInt aExcessWidth, TInt aNumGaps)
Adjusts the spaces between words to stretch or squeeze to a certain width.
virtual IMPORT_C void SetDitherOrigin(const TPoint &aPoint)
Sets the origin used for colour dithering.
Window server bitmap.
Definition w32std.h:2038
IMPORT_C TInt Duplicate(TInt aHandle)
Makes this bitmap a duplicate of the specified bitmap.
IMPORT_C CWsBitmap()
Default constructor.
IMPORT_C TInt Load(const TDesC &aFileName, TInt32 aId, TBool aShareIfLoaded=ETrue)
Loads a bitmap from a file.
IMPORT_C void InternalizeL(RReadStream &aStream)
Internalises a CWsBitmap from the read stream.
IMPORT_C void Reset()
Releases the bitmap's handle from the font and bitmap server.
IMPORT_C ~CWsBitmap()
Destructor.
IMPORT_C TInt Create(const TSize &aSizeInPixels, TDisplayMode aDispMode)
Creates a bitmap, specifying the size and display mode.
Client representation of a window-server-side piece of artwork owned by this Client.
Definition w32std.h:1224
friend class CPimpl
Definition w32std.h:1274
IMPORT_C TInt Flush() const
Flushes window server command buffer.
IMPORT_C void SendMessage(const TDesC8 &aData) const
Sends message to this graphic artwork peer on the server.
IMPORT_C TInt SendSynchronMessage(const TDesC8 &aData) const
virtual IMPORT_C TInt UnShare(TSecureId aClientId)
Stops this graphic artwork from being shared with all client sessions with the specific Secure ID.
IMPORT_C TBool IsActive() const
Checks whether a peer of this graphic artwork has been fully constructed on the server.
IMPORT_C void SetGraphicExtension(MWsObjectProvider *aExt)
virtual IMPORT_C TInt UnShareGlobally()
Prevents this graphic artwork from being shared with all the client sessions.
IMPORT_C ~CWsGraphic()
Destructor.
IMPORT_C RWsSession & Session()
virtual IMPORT_C TInt ShareGlobally()
Shares the graphic artwork with all the client sessions.
IMPORT_C const TWsGraphicId & Id() const
Returns graphic artwork Id.
IMPORT_C CWsGraphic()
Default Constructor.
virtual IMPORT_C TInt Share(TSecureId aClientId)
Explicitly shares this graphic artwork with client sessions with the specified Secure ID.
friend class CManager
Definition w32std.h:1272
IMPORT_C void Destroy()
Destroys the corresponding CWsGraphicDrawer instance on the server.
Software device screen.
Definition w32std.h:2328
IMPORT_C TDisplayMode GetScreenModeDisplayMode(const TInt &aMode) const
Gets the display mode of the screen for the specified screen mode.
IMPORT_C TPoint GetDefaultScreenModeOrigin() const
Gets the origin for the current screen mode.
IMPORT_C TBool IsCurrentModeDynamic() const
Returns whether the current screen size mode is dynamic or not.
IMPORT_C TPoint GetScreenModeOrigin(TInt aMode) const
Get the origin of the screen for the specified screen mode.
IMPORT_C TInt SetBackLight(TBool aBackLight)
IMPORT_C TInt VerticalTwipsToPixels(TInt aTwips) const
Converts a vertical dimension from twips to pixels.
IMPORT_C void RemoveFile(TInt aId=0)
Removes a font file from the font store.
IMPORT_C TInt Construct()
Completes construction of the object.
IMPORT_C TInt GetScreenSizeModeList(RArray< TInt > *aModeList) const
Gets the available screen size modes.
IMPORT_C void GetPixel(TRgb &aColor, const TPoint &aPixel) const
Gets the RGB colour of an individual pixel on a bitmapped graphics device.
IMPORT_C void SetAppScreenMode(TInt aMode)
Sets the application's screen mode; this also sets all the attributes of the screen mode.
IMPORT_C TDisplayMode DisplayMode() const
Gets the display mode of the device.
IMPORT_C TInt GetRotationsList(TInt aMode, CArrayFixFlat< TInt > *aRotationList) const
Gets the list of valid rotations for a particular screen size.
virtual IMPORT_C TInt GetNearestFontToDesignHeightInPixels(CFont *&aFont, const TFontSpec &aFontSpec)
virtual IMPORT_C TInt GetNearestFontInTwips(CFont *&aFont, const TFontSpec &aFontSpec)
IMPORT_C void GetDefaultScreenSizeAndRotation(TPixelsTwipsAndRotation &aSizeAndRotation) const
Gets the current screen size (in both pixels and twips) and rotation.
IMPORT_C TInt AddFile(const TDesC &aName, TInt &aId)
Adds a font file to the device's typeface store.
IMPORT_C TInt HorizontalTwipsToPixels(TInt aTwips) const
Converts a horizontal dimension from twips to pixels.
IMPORT_C TPoint GetCurrentScreenModeScaledOrigin() const
Gets the current screen mode's scaled origin.
IMPORT_C TAny * GetInterface(TUint aInterfaceId)
Interface Extension capability Use of this interface going forward will allow the published client in...
IMPORT_C TInt VerticalPixelsToTwips(TInt aPixels) const
Converts a vertical dimension from pixels to twips.
IMPORT_C TInt GetPalette(CPalette *&aPalette) const
Gets the device's current palette.
IMPORT_C void PaletteAttributes(TBool &aModifiable, TInt &aNumEntries) const
Gets the palette attributes of the device.
IMPORT_C TPoint GetScreenModeScaledOrigin(TInt aMode) const
Gets the specfied screen mode's scaled origin.
IMPORT_C void TypefaceSupport(TTypefaceSupport &aTypefaceSupport, TInt aTypefaceIndex) const
Gets typeface information for a specified typeface.
IMPORT_C TSize GetScreenModeScale(TInt aMode) const
Gets the scale for the specified screen mode.
IMPORT_C TInt NumScreenModes() const
Gets the number of available screen modes.
IMPORT_C TInt SetCustomPalette(const CPalette *aPalette)
Sets the custom palette.
IMPORT_C TInt GetFontById(CFont *&aFont, TUid aUid, const TAlgStyle &aAlgStyle)
Gets a font by its bitmap UID.
IMPORT_C TSize SizeInTwips() const
Gets the size of the device area in twips.
IMPORT_C TRect PointerRect() const
Gets the active area for the pointing device.
IMPORT_C void SetScreenModeEnforcement(TScreenModeEnforcement aMode) const
Sets the screen mode enforcement requirements.
IMPORT_C TInt CurrentScreenMode() const
Gets the current screen mode index.
virtual IMPORT_C TInt GetNearestFontToMaxHeightInPixels(CFont *&aFont, const TFontSpec &aFontSpec, TInt aMaxHeight)
IMPORT_C TSizeMode GetCurrentScreenModeAttributes() const
Used for testing purposes only.
IMPORT_C void ReleaseFont(CFont *aFont)
Releases the specified font.
IMPORT_C TInt NumTypefaces() const
Gets the number of typefaces supported by the graphics device.
IMPORT_C TInt HorizontalPixelsToTwips(TInt aPixels) const
Converts a horizontal dimension from pixels to twips.
virtual IMPORT_C TInt GetNearestFontToDesignHeightInTwips(CFont *&aFont, const TFontSpec &aFontSpec)
IMPORT_C void SetScreenMode(TInt aMode)
Sets the current screen mode.
IMPORT_C TInt FontHeightInTwips(TInt aTypefaceIndex, TInt aHeightIndex) const
Get the height of a font in twips.
IMPORT_C TBool RectCompare(const TRect &aRect1, const TRect &aRect2) const
Compares two areas of the screen to see if they have the same content.
IMPORT_C void SetCurrentScreenModeAttributes(const TSizeMode &aModeAtt)
Used for testing purposes only.
IMPORT_C TInt CreateContext(CGraphicsContext *&aGc)
Creates a graphics context for the device.
IMPORT_C TInt GetScreenNumber() const
Get device's screen number.
IMPORT_C TInt CopyScreenToBitmap(const CFbsBitmap *aBitmap) const
Saves the entire screen to a bitmap.
IMPORT_C void SetScreenSizeAndRotation(const TPixelsTwipsAndRotation &aSizeAndRotation)
Sets the current screen size in twips and pixels, and the rotation for the screen device.
virtual IMPORT_C TInt GetNearestFontToMaxHeightInTwips(CFont *&aFont, const TFontSpec &aFontSpec, TInt aMaxHeight)
IMPORT_C void GetScreenModeSizeAndRotation(TInt aMode, TPixelsTwipsAndRotation &aSizeAndRotation) const
Get the screen rotation and size, in both pixels and twips, for the specified screen mode.
TSpriteInCompare
Whether or not to include sprites when comparing areas of the screen.
Definition w32std.h:2332
@ EIncludeSprite
This enum can be specified as the 3rd parameter to CWsScreenDevice::RectCompare(const TRect &aRect1,...
Definition w32std.h:2345
@ ERemoveSprite
This enum can be specified as the 3rd parameter to CWsScreenDevice::RectCompare(const TRect &aRect1,...
Definition w32std.h:2340
@ EIncludeTextCursor
This enum can be specified as the 3rd parameter to CWsScreenDevice::RectCompare(const TRect &aRect1,...
Definition w32std.h:2350
IMPORT_C ~CWsScreenDevice()
Destructor.
IMPORT_C TSize GetCurrentScreenModeScale() const
Gets the scale for the current screen mode.
IMPORT_C TBool IsModeDynamic(TInt aSizeMode) const
Returns whether the given screen size mode is dynamic or not.
IMPORT_C TInt FontHeightInPixels(TInt aTypefaceIndex, TInt aHeightIndex) const
Gets the height, in pixels, of the specified typeface at one of its defined heights.
IMPORT_C void SetCurrentRotations(TInt aMode, CFbsBitGc::TGraphicsOrientation aRotation) const
Sets the screen rotation that should be used with a particular screen size.
IMPORT_C TSize SizeInPixels() const
Gets the size of the device area in pixels.
IMPORT_C CWsScreenDevice()
Default constructor.
IMPORT_C void SetPalette(CPalette *aPalette)
Sets the device's palette.
IMPORT_C void GetScanLine(TDes8 &aScanLine, const TPoint &aStartPixel, TInt aPixelLength, TDisplayMode aDispMode) const
Copies a scanline into a buffer.
IMPORT_C TScreenModeEnforcement ScreenModeEnforcement() const
Gets the current screen mode enforcement settings.
virtual IMPORT_C TInt GetNearestFontInPixels(CFont *&aFont, const TFontSpec &aFontSpec)
The interface for terminating direct screen access.
Definition w32std.h:2669
virtual void AbortNow(RDirectScreenAccess::TTerminationReasons aReason)=0
This function is called by the window server when direct screen access must stop (for example because...
The interface for restarting direct screen access.
Definition w32std.h:2704
virtual void Restart(RDirectScreenAccess::TTerminationReasons aReason)=0
This function is called by the window server as soon as direct screen access can resume.
Base class for all classes whose objects are clients of the window server.
Definition w32std.h:1286
void DestroyWindowSizeCacheEntry()
TInt WsHandle() const
Gets the server side handle for the object.
Definition w32std.h:2822
void WritePoint(const TPoint &aPoint, TUint aOpcode) const
TInt WriteReply(TUint aOpcode, const TIpcArgs *aIpcArgs=NULL) const
TInt WriteReplyByProvidingRemoteReadAccess(const TAny *aBuf, TInt aBufLen, const TReadDescriptorType &aRemoteReadBuffer, TUint aOpcode) const
TInt WriteReplyInt(TInt aInt, TUint aOpcode, const TIpcArgs *aIpcArgs=NULL) const
TInt32 iWsHandle
WARNING: Member variable for internal use ONLY.
Definition w32std.h:1323
TInt WriteReplyIntP(TInt aInt, const TWriteDescriptorType &aReplyPackage, TUint aOpcode) const
TInt CachedWindowSize(TSize &aSize) const
void WriteRect(const TRect &aRect, TUint aOpcode) const
void Write(const TAny *aData1, TInt aLength1, TInt aLength2, TUint aOpcode) const
void MarkWindowSizeCacheDirty()
void WriteSize(const TSize &aSize, TUint aOpcode) const
friend class RTFXEffect
Definition w32std.h:1287
RWsBuffer * iBuffer
WARNING: Member variable for internal use ONLY.
Definition w32std.h:1324
void WriteInt(TInt aInt, TUint aOpcode) const
void AddToBitmapArray(const TInt aBitmapHandle) const
TInt WriteReplyP(const TWriteDescriptorType &aReplyPackage, TUint aOpcode) const
TBool WindowSizeCacheEnabled() const
void RefreshWindowSizeCache(const TSize &aNewSize) const
void AsyncRequest(TRequestStatus &aStatus, TUint aOpcode) const
static void FillZ(TAny *aTrg, TInt aLength)
Fills a specified block of data with binary zeroes (i.e.
Client-side interface to the server-side animation DLL.
Definition w32std.h:2539
IMPORT_C TInt Load(const TDesC &aFileName)
Instructs the server to load an animation DLL.
virtual IMPORT_C void Close()
Closes an animation DLL.
IMPORT_C RAnimDll()
Default constructor.
IMPORT_C void Destroy()
Closes and deletes a previously loaded polymorphic DLL.
virtual IMPORT_C ~RAnimDll()
Empty virtual destructor.
Client-side handle to a server-side animation class.
Definition w32std.h:2570
IMPORT_C TInt Construct(const RWindowBase &aDevice, TInt aType, const TDesC8 &aParams)
Completes construction of the object based on a window device, and creates the server-side animation ...
IMPORT_C void AsyncCommandReply(TRequestStatus &aRequestStatus, TInt aOpcode, const TIpcArgs &aIpcArgs)
Sends a command and its arguments to the server-side CAnim instance asynchronously.
virtual IMPORT_C void Close()
Sends the close command.
virtual IMPORT_C ~RAnim()
Empty virtual destructor.
IMPORT_C void Command(TInt aOpcode, const TPtrC8 &aArgs)
Sends a command and its arguments to the server-side CAnim instance, and returns immediately.
IMPORT_C TInt CommandReply(TInt aOpcode)
Sends a command to the server-side CAnim instance, and waits for a response.
IMPORT_C void Destroy()
Closes and deletes the server-side animation object.
IMPORT_C RAnim()
Default constructor.
A simple and efficient array of fixed length objects.
Definition e32cmn.h:5928
Client-side handle to a drawable window with a backup bitmap.
Definition w32std.h:1957
IMPORT_C TInt Construct(const RWindowTreeNode &parent, TDisplayMode aDisplayMode, TUint32 aHandle)
Completes the construction of a backed up window.
IMPORT_C void UpdateBackupBitmap()
Copies to the backup bitmap any areas of the window which are not currently stored in the bitmap.
IMPORT_C void MaintainBackup()
Tells the window server to start maintaining a backup bitmap with the entire window contents.
IMPORT_C void UpdateScreen()
Copies the backup bitmap's image to the on-screen bitmap.
IMPORT_C RBackedUpWindow()
Default C++ constructor which creates a sessionless backed-up window handle.
IMPORT_C TInt BitmapHandle() const
Gets a handle to the backup bitmap.
Blank window.
Definition w32std.h:1842
IMPORT_C void SetColor()
Sets the background colour used for clearing when the window becomes uncovered or visible to none.
IMPORT_C void SetSize(const TSize &size)
Sets the size of the blank window.
IMPORT_C RBlankWindow()
Default C++ constructor which creates an invalid blank-window handle.
IMPORT_C TInt Construct(const RWindowTreeNode &parent, TUint32 aHandle)
Completes the construction of a valid blank-window handle.
IMPORT_C void SetExtent(const TPoint &point, const TSize &size)
Sets the extent of the blank window.
The interface between an application that directly accesses the screen and the window server.
Definition w32std.h:2607
IMPORT_C RDirectScreenAccess()
Default constructor.
IMPORT_C void Close()
Calls Completed() then deletes the server side resource and sets the client's handle to it to NULL.
IMPORT_C void Cancel()
Indicates to the window server that you have finished performing direct screen access.
TTerminationReasons
Provides the reason why direct screen access must terminate.
Definition w32std.h:2619
@ ETerminateRegion
A window is about to come in front of a part of the area that is being used for direct screen access.
Definition w32std.h:2624
@ ETerminateScreenMode
The screen's color depth (as enumerated by TDisplayMode) is about to change.
Definition w32std.h:2626
@ ETerminateCancel
The application has finished direct screen access.
Definition w32std.h:2621
@ ETerminateRotation
The current screen mode (the combination of screen rotation and screen size) is about to change.
Definition w32std.h:2629
IMPORT_C TInt Construct()
Second phase constructor.
IMPORT_C void Completed()
Indicates to the window server that you have responded to the completion of the request status passed...
IMPORT_C TInt Request(RRegion *&aRegion, TRequestStatus &aStatus, const RWindowBase &aWindow)
Issues a request to the window server for permission to perform direct screen access on a window.
TPriority
The priority of the active object that responds to notification that direct screen access must stop.
Definition w32std.h:2634
@ EPriorityVeryHigh
A suggested value for the priority of the active object that responds to notification from the window...
Definition w32std.h:2638
Handle to a drawable window.
Definition w32std.h:1866
RDrawableWindow()
Protected default constructor which creates a sessionless, uninitialised drawable-window handle.
void SetDrawRect(const TRect &aRect)
Protected system function.
IMPORT_C TRect GetDrawRect() const
Obtains the current rectangle being drawn to this window, during a window redraw cycle.
IMPORT_C void Scroll(const TPoint &aOffset)
Scrolls the window contents by an offset.
A handle to a file server session.
Definition f32file.h:2076
Expandable region.
Definition e32std.h:2838
Client-side handle to a session with a server.
Definition e32std.h:4611
Client interface to the key or pointer click plug-in DLL.
Definition w32std.h:2795
@ ESoundWrongPlugIn
The value returned by CommandReply() if no plug-in is loaded, or if the plug-in identified by the aUi...
Definition w32std.h:2804
IMPORT_C TInt Unload()
Unloads the plug-in if one is currently loaded and if it can be unloaded.
IMPORT_C TBool KeyClickEnabled() const
Tests whether key clicks are enabled, as set by SetKeyClick().
IMPORT_C void Close()
Sets the handle to zero and frees the resource owned by the server.
IMPORT_C void SetPenClick(TBool aEnabled)
Sets whether pointer clicks should be enabled or disabled.
IMPORT_C TBool IsLoaded(TBool &aIsChangeable) const
Tests whether a key or pointer click plug-in DLL is currently loaded.
IMPORT_C TInt CommandReply(TInt aOpcode, const TPtrC8 &aArgs)
Sends a command to the plug-in DLL and may receive a response.
IMPORT_C void SetKeyClick(TBool aEnabled)
Sets whether key clicks should be enabled or disabled.
IMPORT_C TInt Construct(TUid aUid=KNullUid)
Second phase constructor.
IMPORT_C TBool PenClickEnabled() const
Tests whether pointer clicks are enabled, as set by SetPenClick().
IMPORT_C RSoundPlugIn()
Default constructor.
IMPORT_C void Destroy()
Closes (by calling Close()) and deletes the object.
IMPORT_C TInt Load(const TDesC &aFileName)
Loads a new plug-in, replacing the existing one, if any.
A handle to a thread.
Definition e32std.h:4091
Client-side handle to a server-side window.
Definition w32std.h:1744
IMPORT_C TInt SetCornerType(TCornerType aCornerType, TInt aCornerFlags=0)
Sets the shape of a window's corners.
IMPORT_C void RemoveAllKeyRects()
Removes all the on-screen keys that have been added to this window.
IMPORT_C void CancelPointerRepeatEventRequest()
Cancels a request for a pointer repeat event.
IMPORT_C TPoint InquireOffset(const RWindowTreeNode &aWindow) const
Enquires the offset between this and another window.
IMPORT_C void DiscardPointerMoveBuffer()
Discards all events in the pointer move buffer.
IMPORT_C void EnableBackup(TUint aBackupType=EWindowBackupAreaBehind)
Requests that this window backs up all or part of the screen's contents.
IMPORT_C void EnableAdvancedPointers()
Dummy implementation in order to preserve compatibility with WSERV NGA.
IMPORT_C void RequestPointerRepeatEvent(TTimeIntervalMicroSeconds32 aTime, const TRect &aRect)
Requests a pointer repeat event.
IMPORT_C TInt AddKeyRect(const TRect &aRect, TInt aScanCode, TBool aActivatedByPointerSwitchOn)
Adds an on-screen key rectangle.
RWindowBase()
Protected default constructor; creates an uninitialised, sessionless window handle.
IMPORT_C TSize Size() const
Gets the window's current size.
IMPORT_C TRgb KeyColor() const
This function returns the key color for the window, if used.
IMPORT_C void SetShadowHeight(TInt aHeight)
Sets a window's shadow height.
IMPORT_C void RemoveBackgroundSurface(TBool aTriggerRedraw)
This removes any background surface that has been set to the window.
IMPORT_C TInt MoveToGroup(TInt aIdentifier)
Moves this window to another window group.
IMPORT_C TBool IsNonFading() const
Tests whether the current window is non-fading.
IMPORT_C TInt GetBackgroundSurface(TSurfaceConfiguration &aConfiguration) const
Retrieves a copy of the current configuration for background surface attached to the window.
IMPORT_C void DisablePointerMoveBuffer()
Instructs the window server to stop adding pointer events to the pointer move buffer.
IMPORT_C void SetPointerGrab(TBool aState)
Allows or disallows pointer grabs in a window.
TCaptureFlags
Capture behaviour flags.
Definition w32std.h:1751
@ TCaptureEnabled
Equivalent to TCaptureFlagEnabled.
Definition w32std.h:1765
@ TCaptureFlagDragDrop
If set, drag-drop events are sent to the window in which the pointer was lifted.
Definition w32std.h:1757
@ TCaptureFlagAllGroups
Capture events from windows belonging to any group, not just the group of the window on which the fla...
Definition w32std.h:1760
@ TCaptureFlagEnabled
If set, capture is enabled, disabled otherwise.
Definition w32std.h:1754
@ TCaptureDragDrop
Equivalent to the OR of the first three flags.
Definition w32std.h:1767
@ TCaptureDisabled
Equivalent to disabling all the above flags.
Definition w32std.h:1763
IMPORT_C void OverrideEffects(TInt aAction, const TFileName &aResourceDir, const TFileName &aFilenameOutgoing, const TFileName &aFilenameIncoming, TBitFlags aFlags=0)
IMPORT_C TInt SetExtentErr(const TPoint &point, const TSize &size)
Sets a backed-up window's extent, relative to its parent, and returns an error code from the server.
IMPORT_C void SetVisible(TBool aState)
Sets the window's visibility.
IMPORT_C void FreePointerMoveBuffer()
Frees the pointer move buffer.
IMPORT_C TInt RetrievePointerMoveBuffer(TDes8 &aBuf) const
Retrieves events from the pointer move buffer.
IMPORT_C TInt PasswordWindow(TPasswordMode aPasswordMode)
Makes this window the password window.
TInt construct(const RWindowTreeNode &parent, TUint32 aHandle, TInt aType, TDisplayMode aDisplayMode)
Panic condition: TW32Panic 17 in debug builds if called on an already constructed object.
IMPORT_C TPoint Position() const
Gets a window's position relative to its parent.
IMPORT_C TInt SetSizeErr(const TSize &size)
Sets the size of a backed-up window.
IMPORT_C TInt SetRequiredDisplayMode(TDisplayMode aMode)
Sets the window's display mode.
IMPORT_C void SetPurpose(TInt aPurpose)
IMPORT_C TInt FixNativeOrientation()
Dummy implementation in order to preserve compatibility with WSERV NGA.
IMPORT_C void SetPointerCapture(TInt aFlags)
Sets the pointer capture state.
IMPORT_C void SetShadowDisabled(TBool aState)
Enables or disables whether a window casts a shadow.
IMPORT_C void SetSurfaceTransparency(TBool aSurfaceTransparency)
Not supported in non-NGA.
IMPORT_C void EnablePointerMoveBuffer()
Enables the pointer move buffer for receiving pointer move events.
IMPORT_C TInt SetBackgroundSurface(const TSurfaceId &aSurface)
This sets the background of the window to be the given surface.
IMPORT_C void Activate()
Displays the window and enables it to receive events.
IMPORT_C TInt AllocPointerMoveBuffer(TInt aMaxPoints, TUint aFlags)
Allocates a buffer for storing pointer movements.
IMPORT_C TDisplayMode DisplayMode() const
Gets the window's current display mode.
IMPORT_C TInt GetPointerCapturePriority() const
Gets the windows's pointer capture priority.
IMPORT_C void FadeBehind(TBool aFade)
Sets whether or not all windows behind the current window, in the same window group,...
IMPORT_C void SetPosition(const TPoint &point)
Sets the position of a window relative to its parent.
IMPORT_C void ClaimPointerGrab(TBool aSendUpEvent=ETrue)
Claims the pointer grab from another window.
IMPORT_C void PointerFilter(TUint32 aFilterMask, TUint32 aFilter)
Sets the filter which controls which pointer events are sent to the client session.
IMPORT_C TSize SizeForEgl() const
Dummy implementation in order to preserve compatibility with WSERV NGA.
IMPORT_C TBool IsFaded() const
Tests whether the current window is faded.
IMPORT_C void SendEffectCommand(TInt aTfxCmd, const TDesC8 &aTfxCmdData=KNullDesC8)
IMPORT_C void SetPointerCapturePriority(TInt aPriority)
Sets the window's pointer capture priority.
IMPORT_C TInt SetShape(const TRegion &aRegion)
Sets a window's shape arbitrarily, if rectangular windows are not required.
IMPORT_C TPoint AbsPosition() const
Gets a window's absolute position - ie the windows position relative to the current screen size mode.
Client-side handle to a server-side window group.
Definition w32std.h:1977
IMPORT_C void CancelCaptureKeyUpAndDowns(TInt32 aCaptureKey)
Cancels a capture request for a key up or key down event.
IMPORT_C TInt AddPriorityKey(TUint aKeycode, TUint aModifierMask, TUint aModifier)
Adds a priority key.
IMPORT_C TInt EnableScreenChangeEvents()
Enables screen change event sending.
IMPORT_C TInt32 CaptureKeyUpAndDowns(TUint aScanCode, TUint aModifierMask, TUint aModifier)
Requests the capture of key-up and key-down events on behalf of a window group.
IMPORT_C void DefaultOwningWindow()
Makes this window group the default owning window group.
IMPORT_C void AutoForeground(TBool aState)
Sets or disables auto-foreground behaviour.
IMPORT_C void SimulateAdvancedPointerEvent(TRawEvent aEvent)
Dummy implementation in order to preserve compatibility with WSERV NGA.
IMPORT_C TInt32 CaptureLongKey(TUint aInputKeyCode, TUint aOutputKeyCode, TUint aModifierMask, TUint aModifier, TInt aPriority, TUint aFlags)
Requests capture of long key presses.
IMPORT_C void DisableKeyClick(TBool aState)
Disables key clicks.
IMPORT_C void DisableScreenChangeEvents()
Disables screen change event sending.
IMPORT_C void CancelCaptureLongKey(TInt32 aCaptureKey)
Cancels a previous long key capture request.
IMPORT_C RWindowGroup()
Creates a sessionless, uninitialised window group handle.
IMPORT_C void SimulatePointerEvent(TRawEvent aEvent)
Simulates a pointer event.
IMPORT_C void AllowProcessToCreateChildWindowGroups(TUid aProcessSID)
Allows a Window Group in the specified process to be be a child of this one.
IMPORT_C void CancelTextCursor()
Removes the text cursor.
IMPORT_C TInt SetChildGroup(TInt aId)
Sets a window group chain onto the current window group.
IMPORT_C TInt SetName(const TDesC &aName)
Sets the window group's name.
IMPORT_C void EnableReceiptOfFocus(TBool aState)
Enables or disables receipt of keyboard focus.
IMPORT_C void SetOwningWindowGroup(TInt aIdentifier)
Sets the owning window group for this window group.
IMPORT_C TInt Construct(TUint32 aClientHandle)
Completes construction of a window group.
IMPORT_C TInt ConstructChildApp(TInt aIdOfParentWindowGroup, TUint32 aClientHandle)
Completes construction of a window group.
IMPORT_C void CancelCaptureKey(TInt32 aCaptureKey)
Cancels a request for key capture.
IMPORT_C TInt SetOrdinalPositionErr(TInt aPos, TInt aOrdinalPriority)
Sets the ordinal position and ordinal priority of a window.
IMPORT_C TInt ClearChildGroup()
Clears all children of the current window group.
IMPORT_C void SetTextCursor(RWindowBase &aWin, const TPoint &aPos, const TTextCursor &aCursor)
Sets the text cursor.
IMPORT_C TInt32 CaptureKey(TUint aKeycode, TUint aModifierMask, TUint aModifier)
Requests key capture.
IMPORT_C void SetOrdinalPriorityAdjust(TInt aAdjust)
Sets the window group's priority adjust value.
IMPORT_C TInt Identifier() const
Gets the identifier of the window group.
IMPORT_C void RemovePriorityKey(TUint aKeycode, TUint aModifierMask, TUint aModifier)
Removes a priority key.
IMPORT_C TInt Name(TDes &aWindowName) const
Gets the window group's name, as set by SetName().
A handle to a node in the server-side window tree.
Definition w32std.h:1663
IMPORT_C void DisableFocusChangeEvents()
Disables delivery of focus changed events.
IMPORT_C void SetOrdinalPosition(TInt aPos)
Sets the ordinal position of a window.
IMPORT_C void DisableVisibilityChangeEvents()
Disables reporting of window visibility change events.
IMPORT_C TInt EnableVisibilityChangeEvents()
Enables reporting of window visibility change events.
IMPORT_C TInt FullOrdinalPosition() const
Get the current full ordinal position of a window.
IMPORT_C TInt OrdinalPriority() const
Gets the ordinal priority of the specified window.
IMPORT_C void DisableModifierChangedEvents()
Cancels notification of modifier changed events.
IMPORT_C TUint32 PrevSibling() const
Gets the node before this one in the sibling list.
IMPORT_C TInt EnableModifierChangedEvents(TUint aModifierMask, TEventControl aCircumstances)
Requests notification of modifier changed events.
IMPORT_C TInt WindowGroupId() const
Returns the window group Id of the parent window group.
IMPORT_C TInt EnableErrorMessages(TEventControl aCircumstances)
Requests notification of error message events.
TFadeControl
Fade control flags.
Definition w32std.h:1675
@ EFadeIncludeChildren
Include all child windows when fading/un-fading.
Definition w32std.h:1677
@ EFadeWindowOnly
Fade only the parent window.
Definition w32std.h:1682
IMPORT_C TInt EnableFocusChangeEvents()
Enables focus changed events.
IMPORT_C TInt EnableOnEvents(TEventControl aCircumstances=EEventControlOnlyWithKeyboardFocus)
Requests notification of 'on' events.
IMPORT_C TUint32 Parent() const
Gets the node's parent.
IMPORT_C void DisableGroupListChangeEvents()
Disables reporting of window group list change events.
IMPORT_C TUint32 Child() const
Gets the first child of the node.
IMPORT_C void Destroy()
Closes and deletes the node.
IMPORT_C void SetNonFading(TBool aNonFading)
Sets whether a window is non-fading.
IMPORT_C TInt EnableGroupListChangeEvents()
Enables reporting of window group list change events.
IMPORT_C void Close()
Closes the node.
IMPORT_C void SetFaded(TBool aFaded, TFadeControl aIncludeChildren)
Sets the window as faded or unfaded.
IMPORT_C TInt SetPointerCursor(TInt aCursorNumber)
Sets the pointer cursor from the system pointer cursor list.
IMPORT_C void DisableGroupChangeEvents()
Cancels notification of group changed events.
RWindowTreeNode()
Protected default constructor.
IMPORT_C TUint32 NextSibling() const
Gets the next window after this one in its sibling list.
IMPORT_C TInt EnableGroupChangeEvents()
Requests notification of group-change events.
IMPORT_C TInt OrdinalPosition() const
Gets the current ordinal position of the window tree node.
IMPORT_C void SetCustomPointerCursor(const RWsPointerCursor &aPointerCursor)
Sets the pointer cursor to an application-defined cursor.
IMPORT_C TUint32 ClientHandle() const
Gets the window's client handle.
IMPORT_C void DisableErrorMessages()
Cancels notification of error message events.
IMPORT_C RWsSession * Session() const
Returns the window server session that is used to create this window handle.
IMPORT_C void ClearPointerCursor()
Clears pointer cursor settings.
IMPORT_C void DisableOnEvents()
Cancels notification of 'on' events.
IMPORT_C TInt ScreenNumber() const
Get the screen number that a window is located on.
Handle to a standard window.
Definition w32std.h:1911
IMPORT_C TInt SetTransparencyWsBitmap(const CWsBitmap &aTransparencyBitmap)
Window transparency based on the use of a separate window mask bitmap has been deprecated.
IMPORT_C void Invalidate()
Invalidates the entire window.
IMPORT_C TInt Construct(const RWindowTreeNode &parent, TUint32 aHandle)
Completes the construction of the window handle.
IMPORT_C RWindow()
Default constructor which creates a sessionless, uninitialised window handle.
IMPORT_C TInt SetTransparentRegion(const TRegion &aRegion)
Sets the user-defined transparent region of a window.
IMPORT_C void SetExtent(const TPoint &point, const TSize &size)
Sets the size and position of a window.
IMPORT_C TInt SetTransparencyPolicy(TWsTransparencyPolicy aPolicy)
Sets the transparency policy of a window.
IMPORT_C void EnableRedrawStore(TBool aEnabled)
Enables or Disables the storing of redraw operations that do not intersect the viewport for a window.
IMPORT_C TInt SetTransparencyAlphaChannel()
Enables the use of an alpha channel to control the window's transparency.
IMPORT_C void SetNonTransparent()
Window transparency based on the use of a separate window mask bitmap has been deprecated.
IMPORT_C void EnableOSB(TBool)
Enables/Disables the WSERV to use its OSB.
IMPORT_C void GetInvalidRegion(RRegion &aRegion) const
Gets the invalid region.
IMPORT_C void ClearRedrawStore()
Clears the draw commands that are stored for this window from the redraw store.
IMPORT_C TBool IsRedrawStoreEnabled() const
Returns whether the window uses a redraw store to store drawing commands.
IMPORT_C void SetSize(const TSize &size)
Sets the size of a window.
IMPORT_C TInt SetTransparencyFactor(const TRgb &aTransparencyFactor)
The support for window transparency factor has been deprecated.
IMPORT_C void BeginRedraw()
Begins redrawing the window's invalid region.
IMPORT_C void SetBackgroundColor()
Sets the background colour used for clearing in server-initiated redraws to none.
IMPORT_C void EndRedraw()
Ends the current redraw.
IMPORT_C void HandleTransparencyUpdate()
Window transparency based on the use of a separate window mask bitmap has been deprecated.
IMPORT_C TInt SetTransparencyBitmap(const CFbsBitmap &aTransparencyBitmap)
Window transparency based on the use of a separate window mask bitmap has been deprecated.
Utility class for building data buffers to be attached to CWindowGc::DrawWsGraphic commands Useful wh...
Definition w32std.h:2080
IMPORT_C void Remove(TInt aIndex)
IMPORT_C TPtrC8 Data(TInt aIndex) const
IMPORT_C TUid TypeId(TInt aIndex) const
IMPORT_C TInt Count() const
Returns the number of messages in the buffer.
IMPORT_C const TDesC8 & Pckg() const
IMPORT_C RWsGraphicMsgBuf()
Default Constructor.
IMPORT_C TInt Append(TUid aTypeId, const TDesC8 &aData)
Append a descriptor as data.
IMPORT_C void GetFixedMsg(TWsGraphicMsgFixedBase &aMsg, TInt aIndex) const
Pointer cursor.
Definition w32std.h:2514
IMPORT_C RWsPointerCursor()
Default C++ constructor.
IMPORT_C TInt Construct(TInt aFlags)
Completes pointer cursor construction.
Window server session.
Definition w32std.h:1380
IMPORT_C TPointerCursorMode PointerCursorMode() const
Gets the current mode for the pointer cursor.
IMPORT_C TInt HeapCount() const
Gets the heap count.
IMPORT_C void ClearAllRedrawStores()
Clear the redraw store for all windows in the system By default Windows will recorded the drawing com...
@ ESystemInfoArraySize
Definition w32std.h:1416
IMPORT_C TInt SetHotKey(THotKey aType, TUint aKeyCode, TUint aModifierMask, TUint aModifier)
Sets the hot keys.
IMPORT_C TInt GetExitCloseProximityThreshold() const
Dummy implementation in order to preserve compatibility with WSERV NGA.
IMPORT_C void SetPointerCursorMode(TPointerCursorMode aMode)
Sets the current mode for the pointer cursor.
IMPORT_C TInt SetSystemFaded(TBool aFaded)
Sets all windows in the system as faded or unfaded, using the default fading parameters.
IMPORT_C TInt SetWindowGroupOrdinalPosition(TInt aIdentifier, TInt aPosition)
Sets the ordinal position of a window group.
IMPORT_C TInt SetModifierState(TEventModifier aModifier, TModifierState aState)
Sets the state of the modifier keys.
IMPORT_C TInt FindWindowGroupIdentifier(TInt aPreviousIdentifier, const TDesC &aMatch, TInt aOffset=0) const
Gets all window groups whose names match a given string, which can contain wildcards.
TComputeMode
Compute mode flags.
Definition w32std.h:1401
@ EPriorityControlDisabled
Client priority is permanently set to its current level.
Definition w32std.h:1407
@ EPriorityControlComputeOff
Client process's priority is set to EPriorityForeground when the window group takes focus,...
Definition w32std.h:1414
@ EPriorityControlComputeOn
Client process's priority is always set to EPriorityBackground.
Definition w32std.h:1409
IMPORT_C TInt NumberOfScreens() const
Number Of Screens.
IMPORT_C void Flush()
Sends all pending commands in the buffer to the window server.
IMPORT_C TInt GetWindowGroupHandle(TInt aIdentifier) const
Gets the handle of the window specified by the window group identifier.
IMPORT_C TInt SetDoubleClick(const TTimeIntervalMicroSeconds32 &aInterval, TInt aDistance)
Sets the system-wide double click settings.
IMPORT_C void GetRedraw(TWsRedrawEvent &aEvent)
Gets the redraw event from the session.
IMPORT_C TInt SetPointerCursorPosition(const TPoint &aPosition)
Sets the pointer cursor position.
IMPORT_C void GetPriorityKey(TWsPriorityKeyEvent &aEvent) const
Gets the completed priority key event from the window server session.
IMPORT_C TDisplayMode GetDefModeMaxNumColors(TInt &aColor, TInt &aGray) const
Gets the number of colours available in the richest supported colour mode, the number of greys availa...
IMPORT_C void SetDefaultFadingParameters(TUint8 aBlackMap, TUint8 aWhiteMap)
Sets the default fading parameters.
IMPORT_C void IndicateAppOrientation(TRenderOrientation aOrientation)
IMPORT_C void UnregisterSurface(TInt aScreenNumber, const TSurfaceId &aSurface)
This function removes the surface from the session's register of surfaces that are used in compositio...
void GraphicAbortMessage(TInt aError)
IMPORT_C void FreeSystemPointerCursorList()
Releases the system pointer cursor list and deletes all the entries in it.
IMPORT_C void PriorityKeyReadyCancel()
Cancels a priority key event request.
IMPORT_C TInt GetColorModeList(CArrayFixFlat< TInt > *aModeList) const
Gets the list of available colour modes.
IMPORT_C void RegisterEffect(TInt aAction, TInt aPurpose, const TFileName &aResourceDir, const TFileName &aFilenameOutgoing, const TFileName &aFilenameIncoming, TUint aAppUid=0, TBitFlags aFlags=0)
IMPORT_C TRgb GetBackgroundColor() const
Gets the window server's background colour.
IMPORT_C TInt GetExitHighPressureThreshold() const
Dummy implementation in order to preserve compatibility with WSERV NGA.
IMPORT_C void EnableWindowSizeCacheL()
Dummy implementation in order to preserve compatibility with WSERV NGA.
IMPORT_C void HeapSetBurstFail(TInt aTAllocFail, TInt aRate, TInt aBurst)
Sets the heap failure burst mode in the window server.
IMPORT_C TInt GetEnterHighPressureThreshold() const
Dummy implementation in order to preserve compatibility with WSERV NGA.
IMPORT_C TInt SendEventToWindowGroup(TInt aIdentifier, const TWsEvent &aEvent)
Sends an event to a window group.
IMPORT_C TInt SetKeyboardRepeatRate(const TTimeIntervalMicroSeconds32 &aInitialTime, const TTimeIntervalMicroSeconds32 &aTime)
Sets the system-wide keyboard repeat rate.
IMPORT_C TInt GetWindowGroupNameFromIdentifier(TInt aIdentifier, TDes &aWindowName) const
Gets the name of a window group from its identifier.
IMPORT_C TPoint ShadowVector() const
Gets the current value of the shadow vector.
IMPORT_C TInt ClearHotKeys(THotKey aType)
Clears all mappings for the specified hotkey, including the default mapping.
IMPORT_C TInt GetWindowGroupOrdinalPriority(TInt aIdentifier) const
Gets a window group's priority.
IMPORT_C void RedrawReadyCancel()
Cancels a redraw event request.
IMPORT_C void TestWrite(TInt aHandle, TInt aOpcode, const TAny *aData, TInt aLength)
IMPORT_C void SystemInfo(TInt &aSystemInfoNumber, SSystemInfo &aSystemInfo)
IMPORT_C TInt NumWindowGroups() const
Gets the total number of window groups currently running in the window server.
IMPORT_C TInt GetFocusScreen() const
Get focus screen.
IMPORT_C TInt SetHighPressureThresholds(TInt aEnterHighPressureThreshold, TInt aExitHighPressureThreshold)
Dummy implementation in order to preserve compatibility with WSERV NGA.
IMPORT_C TBool SetAutoFlush(TBool aState)
Sets a session's auto-flush state.
void GetGraphicMessage(TDes8 &aData) const
void GraphicMessageCancel()
IMPORT_C void ComputeMode(TComputeMode aMode)
Sets the mode used to control process priorities.
IMPORT_C TInt FetchMessage(TUid &aUid, TPtr8 &aParams, const TWsEvent &aMessageEvent) const
This function always causes a flush of the window server buffer.
IMPORT_C void ClearSystemPointerCursor(TInt aCursorNumber)
Clears a system pointer cursor from the list.
IMPORT_C TRect PointerCursorArea() const
Gets the pointer cursor area for the first screen display mode.
IMPORT_C TInt SendMessageToWindowGroup(TInt aIdentifier, TUid aUid, const TDesC8 &aParams)
Sends a message to a window group.
IMPORT_C TInt RequestOffEvents(TBool aOn, RWindowTreeNode *aWin=NULL)
Requests the window server to send OFF events to a window.
IMPORT_C void HeapSetFail(TInt aTAllocFail, TInt aValue)
Sets the heap failure mode in the window server.
IMPORT_C TInt ResourceCount() const
Gets the number of objects that the server has allocated for that client.
IMPORT_C void EventReadyCancel()
Cancels a request for standard events from the window server.
IMPORT_C TInt GetWindowGroupClientThreadId(TInt aIdentifier, TThreadId &aThreadId) const
Gets the thread ID of the client that owns the window group specified by the window group identifier.
IMPORT_C TInt GetFocusWindowGroup() const
Gets the identifier of the window group that currently has the keyboard focus.
IMPORT_C void SetDefaultSystemPointerCursor(TInt aCursorNumber)
Sets the default system pointer cursor.
friend class RWsDrawableSource
Definition w32std.h:1390
IMPORT_C void SimulateRawEvent(TRawEvent aEvent)
Simulates raw events.
IMPORT_C void GetEvent(TWsEvent &aEvent) const
Gets a standard event from the session for processing.
IMPORT_C TInt TestWriteReplyByProvidingRemoteReadAccess(TInt aHandle, TInt aOpcode, const TDesC8 &aData, const TDesC8 &aRemoteReadBuffer)
TCustomTextCursorAlignment
The vertical alignment of a custom text cursor sprite.
Definition w32std.h:1457
@ ECustomTextCursorAlignTop
The y-origin of each sprite member bitmap is aligned with the top of the line.
Definition w32std.h:1459
@ ECustomTextCursorAlignBottom
The y-origin of each sprite member bitmap is aligned with the bottom of the line.
Definition w32std.h:1465
@ ECustomTextCursorAlignBaseline
The y-origin of each sprite member bitmap is aligned with the baseline of the line.
Definition w32std.h:1462
IMPORT_C void ClearDefaultSystemPointerCursor()
Clears the default system pointer cursor.
IMPORT_C TInt SetFocusScreen(TInt aScreenNumber)
Set focus screen.
IMPORT_C TInt SetSystemPointerCursor(const RWsPointerCursor &aPointerCursor, TInt aCursorNumber)
Sets a cursor in the system pointer cursor list.
friend class RWsBuffer
Definition w32std.h:1381
IMPORT_C void PriorityKeyReady(TRequestStatus *aStat)
Requests priority key events from the window server.
IMPORT_C TInt GetEnterCloseProximityThreshold() const
Dummy implementation in order to preserve compatibility with WSERV NGA.
IMPORT_C TInt SetClientCursorMode(TPointerCursorMode aMode)
Sets the current mode for the pointer cursor.
IMPORT_C void RedrawReady(TRequestStatus *aStat)
Requests redraw events from the window server.
IMPORT_C void Close()
Closes the window server session.
void GraphicMessageReady(TRequestStatus *aStat)
IMPORT_C TInt ClaimSystemPointerCursorList()
Claims the system pointer cursor list.
IMPORT_C void LogCommand(TLoggingCommand aCommand)
Allows the window server client to enable or disable logging of window server events.
IMPORT_C RWsSession()
Default C++ constructor.
IMPORT_C void OverrideEffects(TInt aAction, TInt aPurpose, const TFileName &aResourceDir, const TFileName &aFilenameOutgoing, const TFileName &aFilenameIncoming, TBitFlags aFlags=0)
IMPORT_C void SetBufferSizeL(TInt aBufSize)
Sets both the buffer size and maximum buffer size for queuing commands to send to the Windows Server.
IMPORT_C void UnregisterEffect(TInt aAction, TInt aPurpose, TUint aAppUid=0)
IMPORT_C TVersion Version() const
Gets the window server version.
IMPORT_C TInt SendEventToOneWindowGroupsPerClient(const TWsEvent &aEvent)
IMPORT_C void SimulateKeyEvent(TKeyEvent aEvent)
Sends a simulated key event to the window server.
IMPORT_C void GetKeyboardRepeatRate(TTimeIntervalMicroSeconds32 &aInitialTime, TTimeIntervalMicroSeconds32 &aTime) const
Gets the current system-wide settings for the keyboard repeat rate.
IMPORT_C void SyncMsgBuf()
Sends all pending commands in the buffer to the window server.
IMPORT_C TInt GetDefaultOwningWindow() const
Gets the identifier of the current default owning window group.
TLoggingCommand
Window server logging commands passed to LogCommand().
Definition w32std.h:1421
@ ELoggingDisable
Disables logging.
Definition w32std.h:1425
@ ELoggingHeapDump
Logs information about the window server's heap size and usage, even if logging is not currently enab...
Definition w32std.h:1431
@ ELoggingEnable
Enables logging.
Definition w32std.h:1423
@ ELoggingStatusDump
Logs the current status of all the windows in the tree, even if logging is not currently enabled.
Definition w32std.h:1428
IMPORT_C TInt SendMessageToAllWindowGroups(TUid aUid, const TDesC8 &aParams)
Sends a message to all window groups.
IMPORT_C void PurgePointerEvents()
Removes all pointer events waiting to be delivered to this session.
IMPORT_C TPoint PointerCursorPosition() const
Gets the pointer cursor position.
IMPORT_C TInt RestoreDefaultHotKey(THotKey aType)
Restores the default mapping for a hot key.
IMPORT_C void PrepareForSwitchOff()
Prepares for switch off.
IMPORT_C void TestWriteReplyP(TInt aHandle, TInt aOpcode, const TAny *aData, TInt aLength, TDes8 *aReplyPackage)
IMPORT_C void PasswordEntered()
Disables the window server password mode.
IMPORT_C TInt PreferredSurfaceConfigurationSize() const
Returns the window server's preferred size for the TSurfaceConfiguration object, used for RWindow::Se...
IMPORT_C void UnregisterAllEffects()
IMPORT_C void SetBackgroundColor(TRgb aColor)
Sets the background colour for the window server.
IMPORT_C TInt GetModifierState() const
Gets the state of the modifier keys.
IMPORT_C void SetMaxBufferSizeL(TInt aMaxBufSize)
Sets the maximum size that the buffer for queuing commands to send to the Windows Server can expand t...
IMPORT_C void GetDoubleClickSettings(TTimeIntervalMicroSeconds32 &aInterval, TInt &aDistance) const
Gets the current system-wide settings for pointer double clicks.
IMPORT_C TInt SetCloseProximityThresholds(TInt aEnterCloseProximityThreshold, TInt aExitCloseProximityThreshold)
Dummy implementation in order to preserve compatibility with WSERV NGA.
IMPORT_C TInt SetCustomTextCursor(TInt aIdentifier, const TArray< TSpriteMember > &aSpriteMemberArray, TUint aSpriteFlags, TCustomTextCursorAlignment aAlignment)
Adds a custom text cursor to the server's list of cursors.
IMPORT_C void TestWriteReply(TInt aHandle, TInt aOpcode, const TAny *aData, TInt aLength)
IMPORT_C TInt DebugInfo(TInt aFunction, TInt aParam=0) const
IMPORT_C void SetShadowVector(const TPoint &aVector)
Sets the shadow vector.
IMPORT_C TInt Connect()
Connects the client session to the window server.
IMPORT_C TInt WindowGroupList(CArrayFixFlat< TInt > *aWindowList) const
Gets a list of identifiers of all window groups in all window server sessions.
TInt GraphicFetchHeaderMessage()
IMPORT_C void LogMessage(const TLogMessageText &aMessage)
Adds a message to the window server debug log if one is currently in operation.
IMPORT_C TInt RegisterSurface(TInt aScreenNumber, const TSurfaceId &aSurface)
This function registers a surface for use in composition on the screen associated with this device wi...
IMPORT_C TInt Finish()
Blocks until all outstanding window server rendering has been completed.
IMPORT_C void SetPointerCursorArea(const TRect &aArea)
Sets the area of the screen in which the virtual cursor can be used while in relative mouse mode,...
IMPORT_C void SendEffectCommand(TInt aTfxCmd, const TDesC8 &aTfxCmdData=KNullDesC8)
IMPORT_C TInt SendEventToAllWindowGroups(const TWsEvent &aEvent)
Sends the specified event to all existing window groups.
IMPORT_C void EventReady(TRequestStatus *aStat)
Requests standard events from the window server.
Sprite base class.
Definition w32std.h:2455
IMPORT_C TInt Activate()
Activates the sprite or pointer cursor.
IMPORT_C TInt AppendMember(const TSpriteMember &aMemberData)
Adds a sprite member to a sprite or pointer cursor.
IMPORT_C RWsSpriteBase()
Protected constructor.
IMPORT_C void Close()
Destroys the sprite or pointer cursor in the window server, and frees client-side resources used by t...
IMPORT_C void UpdateMember(TInt aIndex)
Updates the displayed sprite, taking into account any change to the content of the bitmaps for the sp...
Sprite.
Definition w32std.h:2478
IMPORT_C TInt Construct(RWindowTreeNode &aWindow, const TPoint &aPos, TInt aFlags)
Completes the construction of a sprite.
IMPORT_C RWsSprite()
Default C++ constructor.
IMPORT_C void SetPosition(const TPoint &aPos)
Sets the sprite's position.
Generic array.
Definition e32cmn.h:5358
A build-independent modifiable buffer descriptor.
Definition e32cmn.h:1578
Specifies the font specification in device independent terms.
Definition gdi.h:775
A Version 2 client/server class that clients use to package the arguments to be sent to a server.
Definition e32cmn.h:6817
Stores a three-dimensional point in Cartesian or polar co-ordinates.
Definition e32cmn.h:2333
TInt iZ
The z co-ordinate.
Definition e32cmn.h:2401
TInt iY
The y co-ordinate.
Definition e32cmn.h:2397
TInt iX
The x co-ordinate.
Definition e32cmn.h:2393
Stores a two-dimensional point in Cartesian co-ordinates.
Definition e32cmn.h:2285
Geometric rectangle.
Definition e32std.h:2670
Clipping region - abstract base class.
Definition e32std.h:2774
Indicates the completion status of a request made to a service provider.
Definition e32cmn.h:2243
24-bit RGB colour value with 8 bits each for red, green and blue.
Definition gdi.h:221
A class used to represent the Secure ID of a process or executable image.
Definition e32cmn.h:2041
Stores a two-dimensional size as a width and a height value.
Definition e32cmn.h:2442
Encapsulates the Id of a thread.
Definition e32std.h:3955
Represents a microsecond time interval stored in 32 rather than 64 bits.
Definition e32std.h:1678
Stores and manipulates the date and time.
Definition e32std.h:1889
IMPORT_C void UniversalTime()
Sets the date and time of this TTime to the universal time.
Typeface family support information.
Definition gdi.h:807
A globally unique 32-bit number.
Definition e32cmn.h:1959
Contains version information.
Definition e32cmn.h:2200
Window server event.
Definition w32std.h:1065
TInt iType
WARNING: Member variable for internal use ONLY.
Definition w32std.h:1097
TInt Type() const
Gets the type of event that occurred.
Definition w32std.h:3079
TWsDisplayChangedEvent * DisplayChanged()
Gets information about the display changed event.
Definition w32std.h:3032
TTime Time() const
Gets the time when the event occurred.
Definition w32std.h:3095
TWsEvent()
Constructor.
Definition w32std.h:2861
TUint Handle() const
Gets the window handle.
Definition w32std.h:3085
void SetTimeNow()
Sets the event time to the current time.
Definition w32std.h:3115
IMPORT_C void SetPointerZ(TInt aZ)
Dummy implementation in order to preserve compatibility with WSERV NGA.
TKeyEvent * Key() const
Gets the key event.
Definition w32std.h:3005
TTime iTime
WARNING: Member variable for internal use ONLY.
Definition w32std.h:1099
TModifiersChangedEvent * ModifiersChanged() const
Gets information about the modifier changed event.
Definition w32std.h:3050
void SetHandle(TUint aHandle)
Sets the event handle.
Definition w32std.h:3107
TWsErrorMessage * ErrorMessage() const
Gets an error event.
Definition w32std.h:3059
IMPORT_C void InitAdvancedPointerEvent(TPointerEvent::TType aType, TUint aModifiers, const TPoint3D &aPoint3D, TUint8 aPointerNumber)
Dummy implementation in order to preserve compatibility with WSERV NGA.
TInt * Int() const
Gets the event data as a TInt.
Definition w32std.h:3119
void SetType(TInt aType)
Sets the event type.
Definition w32std.h:3101
TUint iHandle
WARNING: Member variable for internal use ONLY.
Definition w32std.h:1098
@ EWsEventDataSize
This is the maximum number of bytes of data that can be returned by EventData().
Definition w32std.h:1073
IMPORT_C void SetPointerNumber(TUint8 aPointerNumber)
Dummy implementation in order to preserve compatibility with WSERV NGA.
TUint8 iEventData[EWsEventDataSize]
WARNING: Member variable for internal use ONLY.
Definition w32std.h:1100
TWsVisibilityChangedEvent * VisibilityChanged()
Gets information about the visibility changed event.
Definition w32std.h:3014
TAdvancedPointerEvent * Pointer() const
Gets the pointer event.
Definition w32std.h:2875
TUint8 * EventData() const
Gets information about the event.
Definition w32std.h:3068
Identifies an abstract artwork.
Definition w32std.h:1193
IMPORT_C TBool IsId() const
Identifies whether graphic artwork is transient.
IMPORT_C TBool IsUid() const
Identifies whether graphic artwork is non-transient.
IMPORT_C TInt Id() const
Returns the transient Id.
IMPORT_C void Set(TUid aUid)
Set to be a UID.
IMPORT_C TInt Compare(const TWsGraphicId &aOther) const
Compares another Id with this one.
IMPORT_C TUid Uid() const
Returns UID.
Base class for fixed-size messages to be attached to CWindowGc::DrawWsGraphic commands.
Definition w32std.h:2060
IMPORT_C TInt Size() const
IMPORT_C TUid TypeId() const
IMPORT_C TPtrC8 Pckg() const
Priority key events.
Definition w32std.h:1042
TUint Handle() const
Gets the handle for the window group which added the priority key.
Definition w32std.h:3135
TUint8 iEventData[sizeof(TKeyEvent)]
WARNING: Member variable for internal use ONLY.
Definition w32std.h:1049
void SetHandle(TUint aHandle)
Sets the window group event handle.
Definition w32std.h:3151
TKeyEvent * Key() const
Gets the priority key event.
Definition w32std.h:3145
TUint iHandle
WARNING: Member variable for internal use ONLY.
Definition w32std.h:1048
Window server redraw event.
Definition w32std.h:1020
TRect iRect
Rectangle to redraw.
Definition w32std.h:1029
TUint Handle() const
Gets the handle of the window which is the target of the redraw event.
Definition w32std.h:2844
void SetHandle(TUint aHandle)
TUint iHandle
WARNING: Member variable for internal use ONLY.
Definition w32std.h:1028
TRect Rect() const
Gets the rectangle to redraw.
Definition w32std.h:2854
void SetRect(TRect aRect)
TDes8 TDes
Defines a build-independent modifiable descriptor.
Definition e32cmn.h:1387
TDesC8 TDesC
Defines a build-independent non-modifiable descriptor.
Definition e32cmn.h:1345
#define KNullUid
Defines a null UID.
Definition e32cmn.h:1945
TFontStrikethrough
Font strike-through flags.
Definition gdi.h:557
TFontUnderline
Font underline flags.
Definition gdi.h:542
WARNING: Struct for internal use ONLY.
Definition w32std.h:1448
TInt iInfo[ESystemInfoArraySize]
Definition w32std.h:1449
Key event details.
Definition w32std.h:864
TUint iModifiers
State of modifier keys and pointing device.
Definition w32std.h:874
TInt iScanCode
The scan code of the key that caused the event.
Definition w32std.h:872
TUint iCode
The character code generated for an EEventKey, or 0 for a down or up event.
Definition w32std.h:868
TInt iRepeats
Count of auto repeats generated.
Definition w32std.h:879
Details of changed modifier keys.
Definition w32std.h:891
TUint iChangedModifiers
Contains a set bit for any modifier which has changed.
Definition w32std.h:894
TUint iModifiers
Current state of all modifiers, combined using a bitwise-OR.
Definition w32std.h:897
Pixels and rotation struct.
Definition w32std.h:104
CFbsBitGc::TGraphicsOrientation iRotation
The current screen orientation.
Definition w32std.h:108
TSize iPixelSize
The screen size, for a given screen mode, in pixels.
Definition w32std.h:106
Pixels, twips and rotation struct.
Definition w32std.h:123
TSize iPixelSize
The screen size, for a given screen mode, in pixels.
Definition w32std.h:125
TSize iTwipsSize
The screen size, for a given screen mode, in twips.
Definition w32std.h:127
CFbsBitGc::TGraphicsOrientation iRotation
The screen rotation.
Definition w32std.h:129
Sprite member.
Definition w32std.h:741
CFbsBitmap * iMaskBitmap
The bitmap mask.
Definition w32std.h:763
CGraphicsContext::TDrawMode iDrawMode
Specifies the drawing mode to use when drawing iBitmap if the mask is NULL.
Definition w32std.h:768
TTimeIntervalMicroSeconds32 iInterval
Time interval for which iBitmap is displayed.
Definition w32std.h:778
TPoint iOffset
Offset from the sprite's central position.
Definition w32std.h:773
CFbsBitmap * iBitmap
The bitmap to be displayed in the sprite or pointer cursor during the time interval specified by iInt...
Definition w32std.h:747
TBool iInvertMask
EFalse if the mask bitmap is not to be inverted (the default) or ETrue if it is to be inverted.
Definition w32std.h:766
Display changed events.
Definition w32std.h:945
TInt iResolutionListChangeId
Opaque value that changes when the resolution list has changed.
Definition w32std.h:969
TInt iDisplayNumber
Number of display that has changed, causing this event.
Definition w32std.h:952
TInt iConfigurationChangeId
Opaque value that changes when the current display configuration has changed.
Definition w32std.h:960
Error event details.
Definition w32std.h:981
TErrorCategory iErrorCategory
The error category.
Definition w32std.h:1002
TUint iError
The error code.
Definition w32std.h:1004
TErrorCategory
Error event types.
Definition w32std.h:984
@ EBackLight
An error occured while trying to turn the backlight on or off.
Definition w32std.h:995
@ EContrast
An error that occured while trying to change the contrast.
Definition w32std.h:999
@ EDrawingRegion
An error that occurs while the window server is calculating a drawing region for a particular window.
Definition w32std.h:991
@ ELogging
An error occured while trying to enable logging.
Definition w32std.h:997
Visibility changed events.
Definition w32std.h:911
@ ENotVisible
None of the window is visible, either directly or through a transparent window.
Definition w32std.h:926
@ EFullyVisible
All of the window is directly visible.
Definition w32std.h:928
@ EPartiallyVisible
Some (or all) of the window is visible, either directly or through a transparent window.
Definition w32std.h:924
TUint iFlags
A combination of one or more visibility event flags.
Definition w32std.h:931
@ ECanBeSeen
Some or all of the window is visible, either directly or through a transparent window.
Definition w32std.h:916
@ ECantBeSeen
None of the window is visible, either directly or through a transparent window.
Definition w32std.h:919
@ KOrdinalPositionSwitchToOwningWindow
Switch ordinal position to owning window.
Definition w32std.h:192
THotKey
Window server hot keys.
Definition w32std.h:530
@ EHotKeyBacklightOn
Switches the backlight on.
Definition w32std.h:583
@ EHotKeyCycleFocusScreen
Cycle focus screen from one to another in multiple screen environment.
Definition w32std.h:647
@ EHotKeyEnableLogging
Enables logging of all messages to and from the window server.
Definition w32std.h:537
@ EHotKeyHeapDump
Dumps a list of cells allocated on the window server's heap to the log.
Definition w32std.h:564
@ EHotKeyIncBrightness
Increases the screen's brightness.
Definition w32std.h:636
@ EHotKeyStateDump
Dumps a list of all windows to the log.
Definition w32std.h:546
@ EHotKeyCycleOrientation
Cycles the screen orientation through the specified rotations for the particular size mode you are in...
Definition w32std.h:631
@ EHotKeyBacklightOff
Switches the backlight off.
Definition w32std.h:588
@ EHotKeyScreenDimension0
Switches to screen size 0.
Definition w32std.h:598
@ EHotKeyCycleDisplaySize
Cycles the display though its possible sizes.
Definition w32std.h:617
@ EHotKeyDecContrast
Decreases the LCD contrast.
Definition w32std.h:574
@ EHotKeyLastKeyType
Value for last hot key.
Definition w32std.h:658
@ EHotKeyOfDeath
Kills the foreground application.
Definition w32std.h:550
@ EHotKeyFirstKeyType
Value for first hot key.
Definition w32std.h:653
@ EHotKeyDecBrightness
Decreases the screen's brightness.
Definition w32std.h:640
@ EHotKeyScreenDimension3
Switches to screen size 3.
Definition w32std.h:607
@ EHotKeyDisableLogging
Always disables window server logging, if active.
Definition w32std.h:541
@ EHotKeyScreenDimension1
Switches to screen size 1.
Definition w32std.h:603
@ EHotKeyBacklightToggle
Toggles the backlight.
Definition w32std.h:593
@ EHotKeyShutDown
Shuts down the window server.
Definition w32std.h:556
@ EHotKeyIncContrast
Increases the LCD contrast.
Definition w32std.h:569
@ EHotKeyScreenDimension2
Switches to screen size 2.
Definition w32std.h:605
@ EHotKeyOff
Switches the machine off.
Definition w32std.h:578
TBuf< KLogMessageLength > TLogMessageText
Log message text buffer.
Definition w32std.h:154
TPointerCursorMode
Pointer cursor mode flags.
Definition w32std.h:1119
@ EPointerCursorNormal
The default system pointer cursor is used unless the window the pointer cursor is above specifies one...
Definition w32std.h:1126
@ EPointerCursorFirstMode
First pointer cursor mode.
Definition w32std.h:1133
@ EPointerCursorFixed
The default system pointer cursor is used whenever there is a pointer cursor.
Definition w32std.h:1123
@ EPointerCursorWindow
There is no pointer cursor unless the pointer is above a window that has specified one.
Definition w32std.h:1129
@ EPointerCursorNone
Don't have a pointer cursor.
Definition w32std.h:1121
@ EPointerCursorLastMode
The final pointer cursor mode.
Definition w32std.h:1138
TPasswordMode
Password mode flags.
Definition w32std.h:670
@ EPasswordAlways
Password mode is enabled every time the machine is switched on.
Definition w32std.h:686
@ EPasswordOnceADayTriggerNow
Equivalent to setting the password mode to EPasswordOnceADay and triggering an instant password check...
Definition w32std.h:692
@ EPasswordOnceADay
Password mode is enabled only once a day.
Definition w32std.h:684
@ EPasswordNone
No password handling is performed by this window, but no other window can become the password window.
Definition w32std.h:679
@ EPasswordAlwaysTriggerNow
Equivalent to setting the password mode to EPasswordAlways and triggering an instant password check.
Definition w32std.h:689
@ EPasswordCancel
Releases ownership of password handling.
Definition w32std.h:676
@ KLogMessageLength
The length of the log message text buffer in characters.
Definition w32std.h:143
TCornerFlags
Corner flags.
Definition w32std.h:253
@ EWindowCornerNotBR
Do not apply corner shape to bottom right corner.
Definition w32std.h:261
@ EWindowCornerNotTL
Do not apply corner shape to top left corner.
Definition w32std.h:255
@ EWindowCornerNotBL
Do not apply corner shape to bottom left corner.
Definition w32std.h:259
@ EWindowCornerNotTR
Do not apply corner shape to top right corner.
Definition w32std.h:257
_LIT(KWSERVThreadName,"Wserv")
TSpriteFlags
Sprite flags.
Definition w32std.h:713
@ ESpriteFlash
Flash sprite on and off.
Definition w32std.h:717
@ ESpriteNoChildClip
This flag no longer has any effect.
Definition w32std.h:722
@ ESpriteNoShadows
The sprite's appearance will not change when it is on a shadowed part of the screen.
Definition w32std.h:728
TPriorities
Definition w32std.h:694
@ EAllPriorities
Defines the value EAllPriorities.
Definition w32std.h:698
TLongCaptureFlags
Flags which customise a long key press capture request made by a window group.
Definition w32std.h:1159
@ ELongCaptureRepeatEvents
If specified, causes the long key press to automatically repeat.
Definition w32std.h:1167
@ ELongCaptureWaitShort
Equivalent to the first two values being unset.
Definition w32std.h:1172
@ ELongCaptureShortEventImmediately
If specified, the normal ("short") key event is sent immediately (on key down) to the application wit...
Definition w32std.h:1164
@ ELongCaptureNormal
Equivalent to ELongCaptureShortEventImmediately being set and the other flags unset.
Definition w32std.h:1170
TWindowBackupType
Window backup type flags.
Definition w32std.h:273
@ EWindowBackupFullScreen
Backup the entire screen.
Definition w32std.h:284
@ EWindowBackupAreaBehind
Backup the area behind the current window only.
Definition w32std.h:277
TWsTransparencyPolicy
Transparency policies.
Definition w32std.h:1893
@ ETransparencyDefault
Default behaviour.
Definition w32std.h:1895
@ ETransparencyFreezeUnder
Freeze the content of underneath the transparent window to prevent redraw everytime the overlying win...
Definition w32std.h:1898
@ KPasswordWindowGroupPriority
Password window group priority.
Definition w32std.h:170
TCornerType
Window corner types.
Definition w32std.h:211
@ EWindowCorner2
Two pixel step.
Definition w32std.h:219
@ EWindowCorner1
Corner pixel removed.
Definition w32std.h:215
@ EWindowCorner3
Three pixel step.
Definition w32std.h:224
@ EWindowCorner5
Five pixel step.
Definition w32std.h:230
@ EWindowCornerRegion
Definition w32std.h:231
@ EWindowCornerSquare
Square corner.
Definition w32std.h:213
@ ECornerTypeMask
Corner type mask.
Definition w32std.h:237
TScreenModeEnforcement
Screen mode enforcement flags.
Definition w32std.h:69
@ ESizeEnforcementPixelsAndRotation
Pixels and rotation enforcement.
Definition w32std.h:81
@ ESizeEnforcementPixelsTwipsAndRotation
Pixels and Twips enforcement.
Definition w32std.h:89
@ ESizeEnforcementNone
No enforcement.
Definition w32std.h:76
TPointerFilter
Pointer event filter types.
Definition w32std.h:820
@ EPointerFilterEnterExit
Filters out both pointer enter and pointer exit events for this window.
Definition w32std.h:823
@ EPointerMoveEvents
Filters move and drag-pointer events from the event stream and simulates the move event before each p...
Definition w32std.h:844
@ EPointerGenerateSimulatedMove
Simulates a pointer move event before each pen down event.
Definition w32std.h:832
@ EPointerFilterMove
Filters out pointer-move events for this window.
Definition w32std.h:825
@ EPointerFilterDrag
Filters out pointer-drag events for this window.
Definition w32std.h:827
TEventCode
Types of standard events.
Definition w32std.h:299
@ EEventDirectScreenAccessEnd
Direct screen access end This is only sent to anim dlls (if they register to be notified).
Definition w32std.h:496
@ EEventPointerBufferReady
Pointer move buffer ready event.
Definition w32std.h:357
@ EEventFocusGained
Focus gained event.
Definition w32std.h:368
@ EEventWindowVisibilityChanged
The visibility of a window has changed.
Definition w32std.h:456
@ EEventGroupWindowClose
Definition w32std.h:486
@ EEventSwitchOn
On event.
Definition w32std.h:374
@ EEventSwitchOff
Off event.
Definition w32std.h:415
@ EEventHeartbeatTimerStateChange
Event to signal the starting or stopping of the wserv heartbeat timer This is only sent to anim dlls ...
Definition w32std.h:499
@ EEventPointerExit
Pointer exit event.
Definition w32std.h:353
@ EEventScreenDeviceChanged
Screen size mode change event.
Definition w32std.h:422
@ EEventKeyUp
Key up event.
Definition w32std.h:320
@ EEventDragDrop
Occurs as a duplicate of each pointer event if a window sets pointer capture with the TCaptureFlagDra...
Definition w32std.h:360
@ EEventKey
Key event.
Definition w32std.h:315
@ EEventGroupWindowOpen
Definition w32std.h:485
@ EEventFocusLost
Focus lost event.
Definition w32std.h:364
@ EEventKeyDown
Key down event.
Definition w32std.h:325
@ EEventWindowClose
Definition w32std.h:487
@ EEventPointerEnter
Pointer enter event.
Definition w32std.h:346
@ EEventErrorMessage
Error event.
Definition w32std.h:400
@ EEventWindowGroupListChanged
Window group list change event.
Definition w32std.h:449
@ EEventNull
Null event.
Definition w32std.h:303
@ EEventPointer
Pointer event.
Definition w32std.h:339
@ EEventWindowGroupsChanged
Window group changed event.
Definition w32std.h:391
@ EEventMessageReady
Message ready event.
Definition w32std.h:404
@ EEventPowerMgmt
900-909 WSERV protects with PowerMgmt
Definition w32std.h:503
@ EEventReserved
Definition w32std.h:504
@ EEventModifiersChanged
Modifier changed event.
Definition w32std.h:333
@ EEventKeySwitchOff
Event issued to off-event requesting windows when the off key is pressed.
Definition w32std.h:417
@ EEventFocusGroupChanged
Event sent whenever the window group with focus changes.
Definition w32std.h:426
@ EEventUser
User defined event.
Definition w32std.h:516
@ EEventPassword
Password event.
Definition w32std.h:384
@ EEventDisplayChanged
The display state or configuration has changed.
Definition w32std.h:476
@ EEventDirectScreenAccessBegin
Direct screen access begin This is only sent to anim dlls (if they register to be notified).
Definition w32std.h:492
@ EEventCaseOpened
Case opened event.
Definition w32std.h:432
@ EEventKeyRepeat
Repeating key event.
Definition w32std.h:484
@ EEventMarkInvalid
Definition w32std.h:405
@ EEventCaseClosed
Case closed event.
Definition w32std.h:441
TEventControl
Event reporting control.
Definition w32std.h:795
@ EEventControlOnlyWhenVisible
Events are delivered only when the requesting window or any of its children are visible on the screen...
Definition w32std.h:803
@ EEventControlAlways
Requested events are sent in all circumstances.
Definition w32std.h:797
@ EEventControlOnlyWithKeyboardFocus
Events are delivered only when the requesting window's window group has keyboard focus.
Definition w32std.h:800