os/graphics/graphicstest/uibench/s60/src/windows/tsmallwindowzoom.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 TSMALLWINDOWZOOM_H
    23 #define TSMALLWINDOWZOOM_H
    24 
    25 
    26 #include "tsmallwindowraster.h"
    27 
    28 
    29 class CTSmallWindowZoom : public CTSmallWindowRaster
    30 	{
    31 public:
    32 	virtual ~CTSmallWindowZoom();
    33 
    34 	static CTWindow* NewL(RWsSession &aWs,
    35 			const RWindowTreeNode &aParent, 
    36 			const TPoint& aStartingPoint,
    37 			const TSize& aWindowSize);
    38 
    39 	virtual void LoadL(CSurfaceUtility* aUtility, TPtrC aFileName);
    40 	virtual void RenderL();
    41 	
    42 protected:
    43 	CTSmallWindowZoom(const TPoint& aStartingPoint, const TSize& aWindowSize);
    44 	void ConstructL(RWsSession &aWs, const RWindowTreeNode &aParent);
    45 	
    46 private:
    47     enum TZoom {EZoomIn, EZoomOut};
    48     
    49 private:
    50 	TRect            iZoomRect; 
    51 	TInt 			 iDelta;
    52 	TZoom            iZoom;
    53 	};
    54 
    55 #endif // CTSMALLWINDOWZOOM_H