windowing/windowserver/tcontaindrawer/wsgraphicdrawercontext.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 1995-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 #ifndef __WSGRAPHICDRAWERCONTEXT_H__
       
    17 #define __WSGRAPHICDRAWERCONTEXT_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <e32std.h>
       
    21 
       
    22 class MWsGc;
       
    23 class TRgb;
       
    24 
       
    25 class MWsGraphicDrawerContext
       
    26 	{
       
    27 public:
       
    28 	virtual void Destroy() = 0;
       
    29 	virtual void DrawEllipse(MWsGc& aGc, const TRect& aRect, const TRgb& aColor) const = 0;
       
    30 	};
       
    31 
       
    32 class CWsGraphicDrawerNgaContext : public CBase, public MWsGraphicDrawerContext
       
    33 	{
       
    34 public:
       
    35 	static MWsGraphicDrawerContext* NewL();
       
    36 public:
       
    37 	void Destroy();
       
    38 	void DrawEllipse(MWsGc& aGc, const TRect& aRect, const TRgb& aColor) const;
       
    39 	};
       
    40 
       
    41 class CWsGraphicDrawerNonNgaContext : public CBase, public MWsGraphicDrawerContext
       
    42 	{
       
    43 public:
       
    44 	static MWsGraphicDrawerContext* NewL();
       
    45 public:
       
    46 	void Destroy();
       
    47 	void DrawEllipse(MWsGc& aGc, const TRect& aRect, const TRgb& aColor) const;
       
    48 	};
       
    49 
       
    50 #endif // __WSGRAPHICDRAWERCONTEXT_H__