21
|
1 |
/*
|
|
2 |
* Copyright (c) 2002 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: Image to be shown in about screen.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef ABOUTIMAGE_H
|
|
20 |
#define ABOUTIMAGE_H
|
|
21 |
|
|
22 |
// INCLUDES
|
|
23 |
|
|
24 |
// FORWARD DECLARATIONS
|
|
25 |
class CFbsBitmap;
|
|
26 |
|
|
27 |
// CONSTANTS
|
|
28 |
|
|
29 |
const TInt KImageTopMargin = 4 ;
|
|
30 |
const TInt KImageBottomMargin = 4;
|
|
31 |
|
|
32 |
// CLASS DECLARATION
|
|
33 |
|
|
34 |
/**
|
|
35 |
*
|
|
36 |
*/
|
|
37 |
class CAboutImage : public CBase
|
|
38 |
{
|
|
39 |
public: // Constructors and destructor
|
|
40 |
|
|
41 |
static CAboutImage* NewLC( const TDesC& aFileName, TInt aBitmapId,
|
|
42 |
TInt aStartLine, TInt aBaseLineDelta, TBool aTypeFlag );
|
|
43 |
|
|
44 |
/**
|
|
45 |
* Destructor
|
|
46 |
*/
|
|
47 |
~CAboutImage();
|
|
48 |
|
|
49 |
public: // New functions
|
|
50 |
|
|
51 |
TInt HeightInPixels() const;
|
|
52 |
TInt WidthInPixels() const;
|
|
53 |
TInt StartLine() const;
|
|
54 |
TInt EndLine() const;
|
|
55 |
TInt Lines() const;
|
|
56 |
const CFbsBitmap* Bitmap() const;
|
|
57 |
const CFbsBitmap* BitmapMask() const;
|
|
58 |
|
|
59 |
private: // private constructor
|
|
60 |
|
|
61 |
/**
|
|
62 |
* C++ default constructor.
|
|
63 |
*/
|
|
64 |
CAboutImage();
|
|
65 |
|
|
66 |
private: // Data
|
|
67 |
|
|
68 |
CFbsBitmap* iBitmap; // owned
|
|
69 |
CFbsBitmap* iBitmapMask; //owned
|
|
70 |
TInt iStartLine;
|
|
71 |
TInt iEndLine;
|
|
72 |
};
|
|
73 |
|
|
74 |
#endif // ABOUTIMAGE_H
|
|
75 |
|
|
76 |
// End of File
|