Update contrib.
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
20 #pragma warning( disable : 4201 )
21 #define WIN32_LEAN_AND_MEAN
24 #pragma warning( default : 4201 )
30 RWindows describes an object, which creates and manages a Windows OS window,
31 used for the Symbian OS drawing operations on the Emulator.
32 A single window object can be shared between one or more RWindows clients.
38 static RWindows* GetWindow(TInt aScreenNo, TAny* aHwnd,const TSize& aSize);
39 static void ReleaseWindow(TInt aScreenNo);
40 void Update(const TRegion& aRgn,const TSize& aSize);
41 TUint8* PixelAddress(TInt aX,TInt aY);
42 TUint32* EpocBitmapBits() const {return iEpocBitmapBits;}
43 void SetOrientation(TInt aOrientation);
44 TInt Orientation() const;
45 TSize GetOrientedSize();
46 TRect GetOrientedRect(const TRect &aSize);
49 void ConstructL(TAny* aHwnd,const TSize& aSize);
51 void UpdateRect(const TRect& aRect,const TSize& aSize);
53 TDisplayMode iDisplayMode;
54 TSize iEpocBitmapSize;
55 TInt iEpocBitmapLinePitch;
61 BITMAPINFO* iBitmapInfo;
64 BITMAPINFO* i90BitmapInfo;
65 TUint8* i90BitmapBits;
68 TUint32* iEpocBitmapBits;
73 RWindows* WindowHandler(TInt aScreenNo);
74 void CreateScreenSemaphoreName(TInt aScreenNo, TDes& aScreenSemaphoreName);