|
1 /* |
|
2 * Copyright (c) 2007-2008 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: Layout that performs cross fade |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __SHWCROSSFADELAYOUT_H__ |
|
21 #define __SHWCROSSFADELAYOUT_H__ |
|
22 |
|
23 #include <glxlayout.h> |
|
24 |
|
25 #include "shwtimedvalue.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CHuiCurvePath; |
|
29 |
|
30 /** |
|
31 * TShwCrossFadeLayout. |
|
32 * Layout that handles crossfade effect. |
|
33 * @author Kimmo Hoikka |
|
34 * @lib shwslideshowengine.lib |
|
35 * @internal reviewed 07/06/2007 by Loughlin |
|
36 */ |
|
37 NONSHARABLE_CLASS( TShwCrossFadeLayout ) : public TGlxLayout |
|
38 { |
|
39 public: |
|
40 |
|
41 /** |
|
42 * Constructor, initializes the layout. |
|
43 */ |
|
44 TShwCrossFadeLayout(); |
|
45 |
|
46 /** |
|
47 * Destructor |
|
48 */ |
|
49 ~TShwCrossFadeLayout(); |
|
50 |
|
51 /** |
|
52 * Specifies the opacity value |
|
53 * @param aOpacity the desired opacity target |
|
54 * @param aDuration the target time for opacity |
|
55 */ |
|
56 void Set( TReal32 aOpacity, TInt aDuration = 0 ); |
|
57 |
|
58 /** |
|
59 * This method pauses zoom and pan |
|
60 */ |
|
61 void Pause(); |
|
62 |
|
63 /** |
|
64 * This method resumes zoom and pan after pause. |
|
65 */ |
|
66 void Resume(); |
|
67 |
|
68 protected: // From TGlxLayout |
|
69 |
|
70 /// @ref TGlxLayout::DoSetLayoutValues |
|
71 void DoSetLayoutValues( TGlxLayoutInfo& aInfo ); |
|
72 /// @ref TGlxLayout::DoChanged |
|
73 TBool DoChanged() const; |
|
74 /// @ref TGlxLayout::DoClearChanged |
|
75 void DoClearChanged(); |
|
76 |
|
77 private: // Data and private parts |
|
78 |
|
79 /// Own: the opacity |
|
80 TShwTimedValue iOpacity; |
|
81 |
|
82 }; |
|
83 |
|
84 #endif // __SHWCROSSFADELAYOUT_H__ |