|
1 /* |
|
2 * Copyright (c) 1997-1999 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 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __AKNSCIND_H |
|
20 #define __AKNSCIND_H |
|
21 |
|
22 #ifndef __AKNSCBUT_H |
|
23 #include <aknscbut.h> |
|
24 #endif |
|
25 |
|
26 // CLASS DEFINITIONS |
|
27 class CEikImage; |
|
28 class CGulIcon; |
|
29 /** |
|
30 CAknScrollIndicator |
|
31 |
|
32 This class implements the bitmap drawing routines and indicating functionality of Avkon's |
|
33 up and down scrolling indicator. |
|
34 |
|
35 This is class is used by CAknScrollbutton. |
|
36 */ |
|
37 |
|
38 NONSHARABLE_CLASS(CAknScrollIndicator) : public CCoeControl |
|
39 { |
|
40 public: |
|
41 static CAknScrollIndicator* NewL(CAknScrollButton::TType aType); |
|
42 static CAknScrollIndicator* NewL(CAknScrollButton::TType aType, CAknScrollButton::TTypeOfScrollBar aTypeOfScrollBar); |
|
43 virtual ~CAknScrollIndicator(); |
|
44 |
|
45 public: // new functions |
|
46 void DrawScrollIndicator(const TRect& aRect); |
|
47 void SetPosition(const TInt aFocusPosition, const TInt aScrollSpan); |
|
48 void SetWindowOwning( const TBool aBool ); |
|
49 |
|
50 private: |
|
51 CAknScrollIndicator(CAknScrollButton::TType aType); |
|
52 void ConstructL(); |
|
53 void ConstructL(CAknScrollButton::TTypeOfScrollBar aTypeOfScrollBar); |
|
54 |
|
55 private: |
|
56 CEikImage* iBitmap; |
|
57 TInt iFocusPosition; |
|
58 TInt iScrollSpan; |
|
59 CAknScrollButton::TType iType; |
|
60 CFbsBitmap* iColorBitmap; |
|
61 CFbsBitGc* iColorBmpGc; |
|
62 CFbsBitmapDevice* iColorBmpDev; |
|
63 //off-screen bitmap for masking |
|
64 CFbsBitmap* iMaskBitmap; |
|
65 CFbsBitGc* iMaskBmpGc; |
|
66 CFbsBitmapDevice* iMaskBmpDev; |
|
67 CAknScrollButton::TTypeOfScrollBar iTypeOfScrollBar; |
|
68 CGulIcon* iIcon; |
|
69 TBool iIsWindowOwningScrollBar; |
|
70 }; |
|
71 |
|
72 #endif |
|
73 |