equal
deleted
inserted
replaced
|
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 SWDIRECTGDIIMAGESOURCEIMPL_H_ |
|
17 #define SWDIRECTGDIIMAGESOURCEIMPL_H_ |
|
18 |
|
19 /** |
|
20 @file |
|
21 @internalComponent |
|
22 */ |
|
23 |
|
24 #include "directgdiimageref.h" |
|
25 #include <e32def.h> |
|
26 |
|
27 class CSwDirectGdiDriverImpl; |
|
28 |
|
29 /** |
|
30 A concrete software implementation of an image source represented by an RSgImage. |
|
31 */ |
|
32 NONSHARABLE_CLASS(CSwDirectGdiImageSourceImpl) : public CDirectGdiImageRef |
|
33 { |
|
34 public: |
|
35 static TInt New(CSwDirectGdiImageSourceImpl*& aImage, CSwDirectGdiDriverImpl& aDriver, const RSgImage& aSgImage); |
|
36 virtual ~CSwDirectGdiImageSourceImpl(); |
|
37 inline TInt Stride() const { return iStride; } |
|
38 inline TAny* DataBuffer() const { return iDataBuffer; } |
|
39 |
|
40 private: |
|
41 CSwDirectGdiImageSourceImpl(CSwDirectGdiDriverImpl& aDriver); |
|
42 TInt Construct(const RSgImage& aSgImage); |
|
43 |
|
44 private: |
|
45 CSwDirectGdiDriverImpl& iDriver; |
|
46 TAny* iDataBuffer; |
|
47 TInt iStride; |
|
48 }; |
|
49 |
|
50 #endif /*SWDIRECTGDIIMAGESOURCEIMPL_H_*/ |