graphicsdeviceinterface/directgdiadaptation/swsrc/swdirectgdiimagetargetimpl.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 2007-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 SWDIRECTGDIIMAGETARGETIMPL_H_
       
    17 #define SWDIRECTGDIIMAGETARGETIMPL_H_
       
    18 
       
    19 /**
       
    20 @file
       
    21 @internalComponent
       
    22 */
       
    23 
       
    24 #include "directgdiimageref.h"
       
    25 #include <e32def.h>
       
    26 
       
    27 class CSwDirectGdiDriverImpl;
       
    28 class CFbsDrawDevice;
       
    29 
       
    30 /**
       
    31 A concrete software implementation of an image target represented by RSgImage.
       
    32 */
       
    33 NONSHARABLE_CLASS(CSwDirectGdiImageTargetImpl) : public CDirectGdiImageRef
       
    34 {
       
    35 public:
       
    36 	static TInt New(CSwDirectGdiImageTargetImpl*& aImage, CSwDirectGdiDriverImpl& aDriver, CFbsDrawDevice* aDrawDevice, const RSgImage& aSgImage);
       
    37 	virtual ~CSwDirectGdiImageTargetImpl();
       
    38 	CFbsDrawDevice* DrawDevice() const;
       
    39 	
       
    40 private:
       
    41 	CSwDirectGdiImageTargetImpl(CSwDirectGdiDriverImpl& aDriver, CFbsDrawDevice*);
       
    42 	TInt Construct(const RSgImage& aSgImage);
       
    43 	
       
    44 private:
       
    45 	CSwDirectGdiDriverImpl& iDriver;
       
    46 	CFbsDrawDevice* iDrawDevice;
       
    47 };
       
    48 
       
    49 #endif /*SWDIRECTGDIIMAGETARGETIMPL_H_*/