equal
deleted
inserted
replaced
1 /******************************************************************************* |
|
2 * Copyright (c) 2005, 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. This program and the accompanying materials |
|
4 * are made available under the terms of the Eclipse Public License v1.0 |
|
5 * which accompanies this distribution, and is available at |
|
6 * http://www.eclipse.org/legal/epl-v10.html |
|
7 * |
|
8 * Contributors: |
|
9 * Nokia Corporation - S60 implementation |
|
10 *******************************************************************************/ |
|
11 |
|
12 |
|
13 #ifndef SWTTASKTIP_H |
|
14 #define SWTTASKTIP_H |
|
15 |
|
16 |
|
17 #include "eswtmobileextensions.h" |
|
18 |
|
19 |
|
20 /** |
|
21 * CSwtTaskTip |
|
22 * @lib eswt |
|
23 */ |
|
24 NONSHARABLE_CLASS(CSwtTaskTip) |
|
25 : public CBase |
|
26 , public MSwtTaskTip |
|
27 , public MSwtResourceChangeObserver |
|
28 { |
|
29 // Own methods |
|
30 public: |
|
31 static CSwtTaskTip* NewL(MSwtDisplay& aDisplay, TSwtPeer aPeer, TInt aStyle); |
|
32 |
|
33 // From MSwtTaskTip |
|
34 public: |
|
35 TSwtPeer Dispose(); |
|
36 TSwtPeer JavaPeer() const; |
|
37 TRect GetBarDefaultBounds(TBool aHasText) const; |
|
38 TRect GetLabelDefaultBounds(TBool aHasText) const; |
|
39 TRect GetShellDefaultBounds(TBool aHasText) const; |
|
40 |
|
41 // From MSwtResourceChangeObserver |
|
42 public: |
|
43 void OfferResourceChangeL(TInt aType); |
|
44 |
|
45 // Own methods |
|
46 private: |
|
47 CSwtTaskTip(MSwtDisplay& aDisplay, TSwtPeer aPeer, TInt aStyle); |
|
48 ~CSwtTaskTip(); |
|
49 void ConstructL(); |
|
50 void UpdateLayout(); |
|
51 |
|
52 // Data |
|
53 private: |
|
54 MSwtDisplay& iDisplay; |
|
55 const TSwtPeer iPeer; |
|
56 TInt iStyle; |
|
57 TRect iRectShell; |
|
58 TRect iRectShellBarOrLabelOnly; |
|
59 TRect iRectLabel; |
|
60 TRect iRectLabelOnly; |
|
61 TRect iRectBar; |
|
62 TRect iRectBarOnly; |
|
63 }; |
|
64 |
|
65 #endif // SWTTASKTIP_H |
|