graphicscomposition/surfaceupdate/tsrc/tsurfacehelper.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     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 
       
    18 /**
       
    19  @file
       
    20  @test
       
    21  @internalComponent - Internal Symbian test code 
       
    22 */
       
    23 
       
    24 #ifndef __TSURFACEHELPER_H__
       
    25 #define __TSURFACEHELPER_H__
       
    26 
       
    27 #include <e32base.h>
       
    28 #include <gdi.h>
       
    29 #include <pixelformats.h>
       
    30 #include <graphics/surface.h>
       
    31 #include <graphics/surfacemanager.h>
       
    32 #include "twindows.h"
       
    33 
       
    34 class CSurfaceHelper : public CBase
       
    35 	{
       
    36 public:
       
    37 	static CSurfaceHelper* NewL();
       
    38 	~CSurfaceHelper();
       
    39 	TSurfaceId CreateSurfaceL(const TSize& aSize, TUidPixelFormat aPixelFormat, TInt aStride, TInt aBuffers);
       
    40 	void FillRectangleL(const TSurfaceId& aSurface, const TPoint& aStartPos, const TSize& aSize, const TRgb& aColor);
       
    41 private:
       
    42 	void ConstructL();
       
    43 	void DestroySurfaces();
       
    44 private:
       
    45 	RSurfaceManager iManager;
       
    46 	RArray<TSurfaceId> iSurfaces; 
       
    47 	};
       
    48 
       
    49 
       
    50 
       
    51 #endif //__TSURFACEHELPER_H__