|
1 /* |
|
2 * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * CPicture derived class. For DisplayText to show icon and text |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef CSATUIMESSAGEQUERYICON_H |
|
22 #define CSATUIMESSAGEQUERYICON_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <gdi.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class TSize; |
|
29 class CFbsBitmap; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 class CSatUiMessageQueryIcon :public CPicture |
|
34 { |
|
35 |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * C++ default constructor. |
|
40 * @param aSize Size of the picture in twips. |
|
41 * @param aBitmap Bitmap |
|
42 */ |
|
43 CSatUiMessageQueryIcon( TSize aSize, CFbsBitmap& aBitmap ); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 virtual ~CSatUiMessageQueryIcon(); |
|
49 |
|
50 public: // From CPicture |
|
51 |
|
52 /** |
|
53 * Draw the picture. |
|
54 * @param aGc Graphic context. |
|
55 * @param aTopLeft Co-ordinates of left corner. |
|
56 * @param aClipRect Clipping rectangle. |
|
57 * @param aMap Device map. |
|
58 */ |
|
59 virtual void Draw( CGraphicsContext& aGc, |
|
60 const TPoint& aTopLeft, |
|
61 const TRect& aClipRect, |
|
62 MGraphicsDeviceMap* aMap ) const; |
|
63 /** |
|
64 * From CPicture. |
|
65 * A derived class must implement this function. |
|
66 */ |
|
67 virtual void ExternalizeL( RWriteStream& aStream ) const; |
|
68 |
|
69 /** |
|
70 * Get the picture's size in twips. |
|
71 * @param aSize Size. |
|
72 */ |
|
73 virtual void GetOriginalSizeInTwips( TSize& aSize ) const; |
|
74 |
|
75 protected: // Data |
|
76 |
|
77 TSize iSizeInTwips; |
|
78 CFbsBitmap* iBitmap; |
|
79 }; |
|
80 |
|
81 #endif |
|
82 |