os/graphics/graphicstest/uibench/s60/src/windows/tsmallwindowraster.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 /**
    17  @file
    18  @test
    19  @internalComponent - Internal Symbian test code 
    20 */
    21 
    22 #ifndef TSMALLWINDOWRASTER_H
    23 #define TSMALLWINDOWRASTER_H
    24 
    25 
    26 #include "twindow.h"
    27 
    28 
    29 /**
    30  *  CTSmallWindowRaster
    31  * 
    32  */
    33 class CTSmallWindowRaster : public CTWindow
    34 	{
    35 public:
    36 	virtual ~CTSmallWindowRaster();
    37 
    38 	static CTWindow* NewL(RWsSession &aWs,
    39 			const RWindowTreeNode &aParent, 
    40 			const TPoint& aStartingPoint,
    41 			const TSize& aWindowSize);
    42 
    43 	virtual void LoadL(CSurfaceUtility* aUtility, TPtrC aFileName);
    44 	virtual void RenderL();
    45 	
    46 protected:
    47 	CTSmallWindowRaster(const TPoint& aStartingPoint, const TSize& aWindowSize);
    48 	void ConstructL(RWsSession &aWs, const RWindowTreeNode &aParent);
    49 	void DrawBitmap(TRect& aDestRect);
    50 	
    51 protected:
    52     TRect            iSourceRect;
    53     
    54 private:
    55 	CWsScreenDevice* iScreenDev;
    56 	CWindowGc*       iGc;
    57 	
    58     TRect            iDestRect;
    59     CFbsBitmap*      iSourceBitmap;
    60 	};
    61 
    62 #endif // TSMALLWINDOWRASTER_H