os/graphics/graphicstest/uibench/s60/src/windows/tsmallwindowopenvg.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 CTSMALLWINDOWOPENVG_H
    23 #define CTSMALLWINDOWOPENVG_H
    24 
    25 
    26 #include "twindow.h"
    27 #include "eglenvironment.h"
    28 
    29 #include <e32std.h>
    30 #include <e32base.h>
    31 #include <EGL/egl.h>
    32 #include <VG/openvg.h>
    33 #include <VG/vgu.h>
    34 
    35 // CLASS DECLARATION
    36 
    37 /**
    38  *  CTSmallWindow
    39  * 
    40  */
    41 class CTSmallWindowOpenVG : public CTWindow
    42 	{
    43 public:
    44 	virtual ~CTSmallWindowOpenVG();
    45     static CTWindow* NewL(RWsSession &aWs,
    46             const RWindowTreeNode &aParent, 
    47             const TPoint& aStartingPoint,
    48             const TSize& aWindowSize);
    49 
    50     virtual void RenderL();
    51 		
    52 private:
    53 	CTSmallWindowOpenVG(const TPoint& aStartingPoint, const TSize& aWindowSize);
    54 	void ConstructL(RWsSession &aWs, const RWindowTreeNode &aParent);
    55 
    56 private:
    57 	EGLDisplay iDisplay;
    58 	EGLSurface iSurface;
    59 	EGLContext iContextVG;
    60 	
    61     VGfloat iCurrentRotation;
    62     VGPaint iStrokePaint;
    63     VGPaint iFillPaint;
    64     VGPath  iPath;
    65 
    66     TInt iTime;
    67 	};
    68 
    69 #endif // CTSMALLWINDOWOPENVG_H